summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-04Mojo: Add a way to create thread-safe interfaces in Javaandroid-o-mr1-iot-release-smart-display-r3oreo-mr1-1.2-iot-releasemaster-cuttlefish-testing-releaseLuis Hector Chavez
This change adds Interface.Manager.buildThreadSafeProxy(), which is roughly analogous to mojo::ThreadSafeInterfacePtr<T>. Given that Java does not have move-only semantics, the Proxy object that is passed is unbound and a new object is returned. Bug: None Test: cheets_ContainerSmokeTest in Chrome OS Change-Id: I6565f9e526e3fa8f8cb222cb8cd11e95bb57f7d3 Reviewed-on: https://chromium-review.googlesource.com/1147320 Reviewed-by: Ken Rockot <rockot@chromium.org> Commit-Queue: Luis Hector Chavez <lhchavez@chromium.org> Cr-Commit-Position: refs/heads/master@{#577429}
2018-09-25libchrome: Fixup the soong pluginandroid-o-mr1-iot-release-1.0.5Luis Hector Chavez
This change addresses a subset of the comments left after landing https://android-review.googlesource.com/c/platform/external/libchrome/+/757314 Bug: 109924413 Test: m Change-Id: Id4ac6aa81e13aa382e3b009900f7e4f8ee987098
2018-09-14libchrome: Use python2 for merge_srcjarsLuis Hector Chavez
This change avoids a build break in mac_sdk. Bug: None Test: m Change-Id: I658fd59bb4cec63d3aa378812db15f06b5f0284e
2018-09-14libchrome: Create a soong plugin to clean up source/header generationLuis Hector Chavez
This change adds a soong plugin that significantly cleans up the generation of source/header files from .mojom files. Bug: 109924413 Test: m Change-Id: Ic2cf32f1bb914f826eee4c8559285e0ed4e23ced
2018-09-06Suppress more -Wimplicit-fallthrough.Chih-Hung Hsieh
-Wimplicit-fallthrough will be enabled globally. Test: build with global -Wimplicit-fallthrough. Change-Id: I445f9cd14a0b13ab603f269cf734e306b26c3dfb
2018-09-04Suppress -Wimplicit-fallthrough.android-o-mr1-iot-release-1.0.4Chih-Hung Hsieh
-Wimplicit-fallthrough will be enabled globally. Test: build with global -Wimplicit-fallthrough. Change-Id: I5ab8b090f1bfca4cd952501e3b5b2eb5c708e4eb
2018-08-10libchrome: Update mojom_source_generator.sh to support pickle filesLuis Hector Chavez
This change adds support for pickle files (*.p). In particular: * Stops hardcoding external/libchrome as an include directory. Most packages will want to include the provided --package as an include path instead. * Allows specifying explicit -I arguments. This allows other packages to take a dependency on external/libchrome explicitly. * Uses bash array+=("value") syntax instead of array=("${array[@]}" "value") for extra succintness. * Cleans up some duplicated code paths. Bug: 79557560 Test: m Change-Id: I93fd835a29ac2133e972dbb25c1f62157ecb0101 Merged-In: I93fd835a29ac2133e972dbb25c1f62157ecb0101
2018-08-10mojo: Point the time.timemap traits header to the right locationLuis Hector Chavez
A previous change fixed the various time-related typemaps, but the .typemap file itself was not changed. This change fixes that. Bug: 79557560 Test: m Change-Id: I955b47df5ef0405838fb4334ad123c8cfadbc33c Merged-In: I955b47df5ef0405838fb4334ad123c8cfadbc33c
2018-08-01ThreadLocalStorage: Add a function to destroy pthread key used in libchromeandroid-o-mr1-iot-release-1.0.3Hirokazu Honda
am: 780a5f1a24 Change-Id: Ide6027489d3fda71bb47f891e33d3366012b2203
2018-08-01ThreadLocalStorage: Add a function to destroy pthread key used in libchromeHirokazu Honda
MojoProcessSupport needs to destroy pthread key which is globally used in libchrome. The key is stored in a local variable in thread_local_storage.cc. This adds a function to destroy the key so that MojoProcessSupport can do it. Bug: 110722333 Test: No crash in opening DRMInfo.app Test: PlayStore still works Test: cheets_ContainerSmokeTest and cheets_LoginScreen Change-Id: Ib10c83deb5f7ef141d4ab9883e0d2c31d422a1b1
2018-07-13[mojo]: Add a way to handle unhandled RuntimeExceptionsLuis Hector Chavez
am: 1fef1a6783 Change-Id: I7674a6651149e599af532b396b53a5722fc603bc
2018-07-13Revert hacks to avoid runtime crashesLuis Hector Chavez
am: 1ec13ff8a4 Change-Id: I15a898683e19b5a35939a2111394081c75c3bd00
2018-07-13Quiesce the mojom source generationLuis Hector Chavez
am: b23cbe0133 Change-Id: I377840f1499ecf230bf89952176e5ede332498e4
2018-07-13[mojo]: Add a way to handle unhandled RuntimeExceptionsandroid-n-iot-release-smart-display-r2Luis Hector Chavez
This change makes it possible to allow interfaces to globally handle unhandled RuntimeExceptions, in their bindings or in the callbacks. Bug: 28814913 Test: Android-on-Chrome OS has the same behavior as before Test: Android-on-Chrome OS, when setting the DefaultExceptionHandler's delegate can now forward the unhandled exceptions to the crash server. Change-Id: I2b7455a0344a109e1d2416a74ad4a0b98cd007f0 Reviewed-on: https://chromium-review.googlesource.com/1101898 Reviewed-by: Ken Rockot <rockot@chromium.org> Commit-Queue: Luis Hector Chavez <lhchavez@chromium.org> Cr-Commit-Position: refs/heads/master@{#568128}
2018-07-13Revert hacks to avoid runtime crashesLuis Hector Chavez
Now that there is a legitimate way to handle RuntimeExceptions, let's stop mucking with the generated code. Bug: 28814913 Test: m Change-Id: Id101fa4df5bdeab74e9ba4c377252a8c3c9ae622
2018-07-13Quiesce the mojom source generationandroid-p-preview-5Luis Hector Chavez
This change adds the --quiet flag to zip, so that it can perform its duties in complete silence. Bug: None Test: m Change-Id: I1865b8902d37dd5ee6e0ac7b9cd37513da9627a1
2018-06-13Remove unused references to external/valgrind.Elliott Hughes
am: 4509b726d0 Change-Id: I8f4ffcaf49af8c15e06ee390c4b65b6b62c021a1
2018-06-13Remove unused references to external/valgrind.android-p-preview-4android-o-mr1-iot-release-1.0.2android-n-iot-release-smart-displayElliott Hughes
Bug: http://b/77856586 Test: builds Change-Id: Ib62e6ada084edf3ba3da9fa80dbc4440135f4049
2018-06-13Remove Android-specific valgrind patch.Elliott Hughes
am: 5eabd664a4 Change-Id: I6e39e2a56030ad1c50d140ff093b1a0b77b098d1
2018-06-12Remove Android-specific valgrind patch.Elliott Hughes
Bug: http://b/77856586 Test: builds Change-Id: I98f2926f5acc7a55a1fb6166573cb7753ea16a92
2018-06-05Use libmojo_mojom.srcjar. am: 5877901a80Hidehiko Abe
am: 6bf72936ed Change-Id: I885bc99bba8ce2e0f3c2875695f14ae181f7c4ac
2018-06-05Use libmojo_mojom.srcjar.Hidehiko Abe
am: 5877901a80 Change-Id: Id0916165b1dde255b102568e9493ab146ab5d266
2018-06-06Use libmojo_mojom.srcjar.android-n-iot-release-polk-at1Hidehiko Abe
So that it is no longer needed to list all generated java files in Android.bp. Bug: 79557560 Test: Built, and made sure android.mojo.jar contains generated class files. Change-Id: I4349f85353b79a730b049e76e839133cad37ee04
2018-06-05Generate common_custom_types__type_mappings on build time. am: efb5eadb43Hidehiko Abe
am: 8332c76bc5 Change-Id: I213c2641ad328dd15a2f4be79f0aee335609c03f
2018-06-05Generate common_custom_types__type_mappings on build time.Hidehiko Abe
am: efb5eadb43 Change-Id: I0f353d1446be8c880d068d47ca3066c6c4e19786
2018-06-05Generate common_custom_types__type_mappings on build time.Hidehiko Abe
Instead of checking in pre-generated files, this CL generates the file on build time. Note that gen/mojo/common/common_custom_types__type_mappings file is not yet removed. It is necessary to wait for internal catch up. Bug: 79557560 Test: Built. No diff between generated file and pre-generated file. Change-Id: Ia285fda93242216c8149d2871406235574e6258b
2018-06-05Implement per-directory uprev. am: 083f3cdf55Hidehiko Abe
am: 56d9ee343e Change-Id: Ief6523b9d290cc441f99b0baf945380cc6dd6ab9
2018-06-05Implement per-directory uprev.Hidehiko Abe
am: 083f3cdf55 Change-Id: I2e1d2ef5948607ab35b26ff651305778f53a2502
2018-06-05Implement per-directory uprev.Hidehiko Abe
Some sub directories in libchrome should be uprev'ed by just cp -rp. Currently, the uprev is just per file, and files newly added in the directory are simply ignored. This CL implements per-directory uprev, so new files in the directory will also be uprev'ed correctly. Bug: 79557560 Test: Ran update_libchrome.py and no diff. Change-Id: I93b386ba1ba7ccd3f1982b69f97ac7c9ba7731ee
2018-06-04Remove trace_event. am: ad62a8245aHidehiko Abe
am: e2c1a37558 Change-Id: Ic9d128b2317a3fef85d2dfca425a25b0a4cface1
2018-06-04Remove trace_event.Hidehiko Abe
am: ad62a8245a Change-Id: I671033cdf0bcb8c67b657127cbfc5f77a211565a
2018-06-01Remove trace_event.android-o-mr1-iot-release-1.0.1Hidehiko Abe
trace_event is a feature to measure profiling. However, it won't be usable in standard library like libchrome, so remove it. For build compatibility, small stub and trace_event_common.h are kept. Bug: 80375012 Test: Built locally. Change-Id: Ie2a87d2fa0d3cdbd856044498d0dd2072da2e9ab
2018-05-30[mojo]: Avoid a crash when NodeController pending invitations diverge am: ↵Luis Hector Chavez
0c4351892b am: 4376617d0a Change-Id: I6c5ac95856507be1029133f663475e9dea4556c8
2018-05-30[mojo]: Avoid a crash when NodeController pending invitations divergeLuis Hector Chavez
am: 0c4351892b Change-Id: I169c63b0b10c6f0c5b9ff74efbefda0d8006f2fd
2018-05-30[mojo]: Avoid a crash when NodeController pending invitations divergeLuis Hector Chavez
This change avoids a crash when NodeController::pending_broker_clients_ and NodeController::pending_invitations_ diverge. This might happen with complex enough node topologies, where there is a node that proxies invitations to a set of other nodes. Bug: 62219143 Test: ARC still boots Change-Id: Ia678f464fafb69628600ec00dac19da3b6868fe0 Reviewed-on: https://chromium-review.googlesource.com/1069728 Reviewed-by: Ken Rockot <rockot@chromium.org> Commit-Queue: Luis Hector Chavez <lhchavez@chromium.org> Cr-Commit-Position: refs/heads/master@{#560857} (cherry picked from commit 30a0b449c8f7036c300d808db96b391220b7698f)
2018-05-28Remove unused files. am: d973b822b9Hidehiko Abe
am: 28040c0ea8 Change-Id: I880af7dc317b0625ec042a34cdd243fca1301804
2018-05-28Remove unused files.Hidehiko Abe
am: d973b822b9 Change-Id: I157e52f212e0a9e33febb6f403a4477152113b9a
2018-05-29Remove unused files.Hidehiko Abe
event_types.h and id_map.h are moved out from base/ in Chrome ToT. Becuase these are unused, remove them. Bug: 79557560 Test: Ran treehugger. Change-Id: I012f39a51396987bbb87d6978cc53b74d4568c0c
2018-05-23Make libmojo available to vendor components am: 9f9c37c2ddJeffrey Kardatzke
am: bad52fd52e Change-Id: I1ce381095cab40d963b64371d630cb8d1a6967a4
2018-05-23Make libmojo available to vendor componentsJeffrey Kardatzke
am: 9f9c37c2dd Change-Id: I294dbf299abd8333229f0f264059e885e356e5b0
2018-05-22Make libmojo available to vendor componentsJeffrey Kardatzke
Bug: 78144322 Test: Builds Change-Id: Ie4f06817c97a476474f09e2ef7bc9fb62f1d4cbb
2018-04-25Remove os_compat_android. am: 2e2446af20Hidehiko Abe
am: 6f377309fa Change-Id: I0d66fe723109f69ccd9f129881d6eaf1a25db501
2018-04-25Remove os_compat_android.Hidehiko Abe
am: 2e2446af20 Change-Id: I15b886d7b35086db3133f8165ace7fee33ad333a
2018-04-25Remove os_compat_android.android-wear-p-preview-2android-p-preview-3android-p-preview-2android-o-mr1-iot-release-1.0.0android-n-iot-release-lg-thinq-wk7Hidehiko Abe
Originally, it was introduced in libmojo, when the library was built with OS_ANDROID. Now, it is no longer OS_ANDROID so those files are no longer used. Bug: 73270448 Test: Built locally. Made sure "#include "base/os_compat_android.h" is wrapped by "#if defined(OS_ANDROID)". Change-Id: Idf9cedb1af69aa4d19bd6b1bbfc9292ee53ac9c0
2018-04-23Migrate libmojo repository into libchrome, part 2. am: b268b43ac6Hidehiko Abe
am: 0ab20ac228 Change-Id: I1b1afe0c902f1d122b100f5bf56d1df4a94eb090
2018-04-23Migrate libmojo repository into libchrome, part 2.Hidehiko Abe
am: b268b43ac6 Change-Id: I7b2c3d7cfed03673c33eb497be20e238bd0aac33
2018-04-24Migrate libmojo repository into libchrome, part 2.Hidehiko Abe
This CL moves following files. - .gitignore - Android.bp is merged into libchrome's Android.bp. - base/android/* - build/* except build_config.h which is exactly same with libchrome's. - ipc/* - mojo/* except mojo/public/tools/bindings/generators/__init__.py which is unused and not in chrome repository. - soong/* into libchrome_tools/ - third_party/{catapult,jinja2,markupsafe,ply}/* - ui/gfx/{geometry,range}/mojo/* Then, update several paths/build rules to be adapted. Bug: 73606903 Test: Built locally. Ran on DUT. Change-Id: I2a532a42aa68dcb215dbd71d8673192311509726
2018-04-19Add hidehiko to OWNERS as Mojo maintainer. am: 4a54b98aa4Hidehiko Abe
am: e389a13ad8 Change-Id: Icd20eb0b17fc7ce4882db270c8b413b625235906
2018-04-19Add hidehiko to OWNERS as Mojo maintainer.Hidehiko Abe
am: 4a54b98aa4 Change-Id: I3a24f1f071d3278ca39c6f4492fe0d08e8a7d532
2018-04-20Add hidehiko to OWNERS as Mojo maintainer.Hidehiko Abe
Similar to libmojo/OWNERS, add myself to libchrome because libmojo is being merged into libchrome. Bug: None Test: None Change-Id: I5c6f411e812530571e1bcbd91bf14b6db0ba60b8