Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Issue 228723002: Java API for mojo system. (Closed)

Created:
6 years, 8 months ago by qsr
Modified:
6 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, darin (slow to review), viettrungluu+watch_chromium.org, ben+mojo_chromium.org, abarth-chromium
Visibility:
Public.

Description

Java API for mojo system. This CL introduce the java API for mojo system. It also introduces the android implementation of this API. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265658

Patch Set 1 #

Patch Set 2 : Move to system namespace. #

Total comments: 1

Patch Set 3 : Update #

Patch Set 4 : Update API #

Patch Set 5 : Update wait API #

Patch Set 6 : Update WaitMany API #

Patch Set 7 : Adding data pipes #

Patch Set 8 : Adding shared handle. #

Total comments: 45

Patch Set 9 : Follow review #

Patch Set 10 : Fix manifest sdk version. #

Patch Set 11 : Follow reviews + fix API. #

Total comments: 4

Patch Set 12 : Follow review #

Total comments: 29

Patch Set 13 : Follow review. #

Patch Set 14 : Move core implementation to mojo/android #

Patch Set 15 : Adding empty file to force creation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3029 lines, -27 lines) Patch
A + mojo/android/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/android/javatests/AndroidManifest.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
A + mojo/android/javatests/apk/EMPTY View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 chunks +-1 lines, --1 lines 0 comments Download
A mojo/android/javatests/core_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +20 lines, -0 lines 0 comments Download
A mojo/android/javatests/core_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +26 lines, -0 lines 0 comments Download
A + mojo/android/javatests/init_library.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +5 lines, -11 lines 0 comments Download
A mojo/android/javatests/src/org/chromium/mojo/system/CoreTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +471 lines, -0 lines 0 comments Download
A mojo/android/system/core_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +20 lines, -0 lines 0 comments Download
A mojo/android/system/core_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +293 lines, -0 lines 0 comments Download
A mojo/android/system/src/org/chromium/mojo/system/CoreImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +584 lines, -0 lines 0 comments Download
A mojo/android/system/src/org/chromium/mojo/system/CoreSingleton.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +18 lines, -0 lines 0 comments Download
A mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +63 lines, -0 lines 0 comments Download
A mojo/android/system/src/org/chromium/mojo/system/DataPipeProducerHandleImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +55 lines, -0 lines 0 comments Download
A mojo/android/system/src/org/chromium/mojo/system/HandleImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +112 lines, -0 lines 0 comments Download
A mojo/android/system/src/org/chromium/mojo/system/MessagePipeHandleImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +47 lines, -0 lines 0 comments Download
A mojo/android/system/src/org/chromium/mojo/system/SharedBufferHandleImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +52 lines, -0 lines 0 comments Download
A mojo/android/system/src/org/chromium/mojo/system/UntypedHandleImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +54 lines, -0 lines 0 comments Download
M mojo/mojo.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +84 lines, -15 lines 0 comments Download
M mojo/mojo_public.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +14 lines, -0 lines 0 comments Download
A mojo/public/java/src/org/chromium/mojo/system/Core.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +178 lines, -0 lines 0 comments Download
A mojo/public/java/src/org/chromium/mojo/system/DataPipe.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +308 lines, -0 lines 0 comments Download
A mojo/public/java/src/org/chromium/mojo/system/Flags.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +48 lines, -0 lines 0 comments Download
A mojo/public/java/src/org/chromium/mojo/system/Handle.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +36 lines, -0 lines 0 comments Download
A mojo/public/java/src/org/chromium/mojo/system/MessagePipeHandle.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +181 lines, -0 lines 0 comments Download
A mojo/public/java/src/org/chromium/mojo/system/MojoException.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +36 lines, -0 lines 0 comments Download
A mojo/public/java/src/org/chromium/mojo/system/MojoResult.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +82 lines, -0 lines 0 comments Download
A mojo/public/java/src/org/chromium/mojo/system/Pair.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +61 lines, -0 lines 0 comments Download
A mojo/public/java/src/org/chromium/mojo/system/SharedBufferHandle.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +139 lines, -0 lines 0 comments Download
A mojo/public/java/src/org/chromium/mojo/system/UntypedHandle.java View 1 2 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
viettrungluu
Thanks for working on this! In general, it looks quite reasonable to me ... but ...
6 years, 8 months ago (2014-04-08 22:35:19 UTC) #1
qsr
Updated the API, adding start implementation and unit test. +bulach for java review Comments are ...
6 years, 8 months ago (2014-04-14 11:59:43 UTC) #2
qsr
+ bulach for real this time.
6 years, 8 months ago (2014-04-14 12:03:05 UTC) #3
bulach
uncomfortably exciting! :) mostly nits to get things cleared up, and some random generic suggestions ...
6 years, 8 months ago (2014-04-14 17:39:55 UTC) #4
viettrungluu
(Drive-by-ish comments.) https://codereview.chromium.org/228723002/diff/130001/mojo/system/android/core_impl.cc File mojo/system/android/core_impl.cc (right): https://codereview.chromium.org/228723002/diff/130001/mojo/system/android/core_impl.cc#newcode39 mojo/system/android/core_impl.cc:39: reinterpret_cast<const MojoHandle*>(buffer_start); nit (here and everywhere else): ...
6 years, 8 months ago (2014-04-14 18:02:49 UTC) #5
viettrungluu
Also, mojo/system/android/ is probably not quite the correct location for the stuff you added under ...
6 years, 8 months ago (2014-04-14 18:15:55 UTC) #6
qsr
On 2014/04/14 18:15:55, viettrungluu wrote: > Also, mojo/system/android/ is probably not quite the correct location ...
6 years, 8 months ago (2014-04-15 08:37:27 UTC) #7
qsr
https://chromiumcodereview.appspot.com/228723002/diff/130001/build/android/pylib/constants.py File build/android/pylib/constants.py (right): https://chromiumcodereview.appspot.com/228723002/diff/130001/build/android/pylib/constants.py#newcode136 build/android/pylib/constants.py:136: ANDROID_SDK_VERSION = 18 On 2014/04/14 17:39:56, bulach wrote: > ...
6 years, 8 months ago (2014-04-15 08:37:36 UTC) #8
viettrungluu
On 2014/04/15 08:37:36, qsr wrote: > https://chromiumcodereview.appspot.com/228723002/diff/130001/mojo/system/android/core_impl.cc#newcode60 > mojo/system/android/core_impl.cc:60: DCHECK_EQ(buffer_size, > sizeof(MojoCreateDataPipeOptions)); > On 2014/04/14 ...
6 years, 8 months ago (2014-04-15 16:54:30 UTC) #9
qsr
On 2014/04/15 16:54:30, viettrungluu wrote: > On 2014/04/15 08:37:36, qsr wrote: > > > https://chromiumcodereview.appspot.com/228723002/diff/130001/mojo/system/android/core_impl.cc#newcode60 ...
6 years, 8 months ago (2014-04-16 07:49:51 UTC) #10
qsr
Ok, this is now ready for review. Marcus -> Changed the enum to an int, ...
6 years, 8 months ago (2014-04-16 13:41:43 UTC) #11
koz (OOO until 15th September)
Drive by. https://codereview.chromium.org/228723002/diff/190001/mojo/public/java/src/org/chromium/mojo/system/MessagePipeHandle.java File mojo/public/java/src/org/chromium/mojo/system/MessagePipeHandle.java (right): https://codereview.chromium.org/228723002/diff/190001/mojo/public/java/src/org/chromium/mojo/system/MessagePipeHandle.java#newcode78 mojo/public/java/src/org/chromium/mojo/system/MessagePipeHandle.java:78: * count |num_handles|, and options specified by ...
6 years, 8 months ago (2014-04-16 20:57:03 UTC) #12
qsr
https://chromiumcodereview.appspot.com/228723002/diff/190001/mojo/public/java/src/org/chromium/mojo/system/MessagePipeHandle.java File mojo/public/java/src/org/chromium/mojo/system/MessagePipeHandle.java (right): https://chromiumcodereview.appspot.com/228723002/diff/190001/mojo/public/java/src/org/chromium/mojo/system/MessagePipeHandle.java#newcode78 mojo/public/java/src/org/chromium/mojo/system/MessagePipeHandle.java:78: * count |num_handles|, and options specified by |flags|. If ...
6 years, 8 months ago (2014-04-17 08:17:31 UTC) #13
bulach
I'm not an owner here, so I'll leave for mojo'ers :) this all seems fine ...
6 years, 8 months ago (2014-04-17 13:15:42 UTC) #14
qsr
https://codereview.chromium.org/228723002/diff/210001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/228723002/diff/210001/build/common.gypi#newcode1517 build/common.gypi:1517: 'android_sdk_build_tools_version%': '18.0.1', On 2014/04/17 13:15:42, bulach wrote: > nit: ...
6 years, 8 months ago (2014-04-17 13:50:23 UTC) #15
bulach
thanks ben! some clarifications inline: https://codereview.chromium.org/228723002/diff/210001/mojo/public/java/src/org/chromium/mojo/system/Core.java File mojo/public/java/src/org/chromium/mojo/system/Core.java (right): https://codereview.chromium.org/228723002/diff/210001/mojo/public/java/src/org/chromium/mojo/system/Core.java#newcode33 mojo/public/java/src/org/chromium/mojo/system/Core.java:33: private static final int ...
6 years, 8 months ago (2014-04-17 14:04:50 UTC) #16
qsr
On 2014/04/17 14:04:50, bulach wrote: > thanks ben! some clarifications inline: > > https://codereview.chromium.org/228723002/diff/210001/mojo/public/java/src/org/chromium/mojo/system/Core.java > ...
6 years, 8 months ago (2014-04-17 14:26:45 UTC) #17
viettrungluu
https://codereview.chromium.org/228723002/diff/210001/mojo/public/java/src/org/chromium/mojo/system/Core.java File mojo/public/java/src/org/chromium/mojo/system/Core.java (right): https://codereview.chromium.org/228723002/diff/210001/mojo/public/java/src/org/chromium/mojo/system/Core.java#newcode33 mojo/public/java/src/org/chromium/mojo/system/Core.java:33: private static final int FLAG_NONE = 0; On 2014/04/17 ...
6 years, 8 months ago (2014-04-17 14:50:56 UTC) #18
bulach
On 2014/04/17 14:26:45, qsr wrote: > On 2014/04/17 14:04:50, bulach wrote: > > thanks ben! ...
6 years, 8 months ago (2014-04-17 14:56:32 UTC) #19
bulach
On 2014/04/17 14:50:56, viettrungluu wrote: > https://codereview.chromium.org/228723002/diff/210001/mojo/public/java/src/org/chromium/mojo/system/Core.java > File mojo/public/java/src/org/chromium/mojo/system/Core.java (right): > > https://codereview.chromium.org/228723002/diff/210001/mojo/public/java/src/org/chromium/mojo/system/Core.java#newcode33 > ...
6 years, 8 months ago (2014-04-17 15:05:38 UTC) #20
qsr
@viettrungluu ping for placement, +ownership.
6 years, 8 months ago (2014-04-18 09:01:41 UTC) #21
bulach
lgtm for the java part (but as mentioned in #14, I'm not an owner around ...
6 years, 8 months ago (2014-04-22 08:45:22 UTC) #22
viettrungluu
LGTM with the files moved as you suggested. (I don't see any gles2 files right ...
6 years, 8 months ago (2014-04-22 16:06:26 UTC) #23
qsr
On 2014/04/22 16:06:26, viettrungluu wrote: > LGTM with the files moved as you suggested. (I ...
6 years, 8 months ago (2014-04-23 08:15:52 UTC) #24
qsr
The CQ bit was checked by [email protected]
6 years, 8 months ago (2014-04-23 08:16:01 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/228723002/250001
6 years, 8 months ago (2014-04-23 08:16:22 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 8 months ago (2014-04-23 08:29:57 UTC) #27
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=134812
6 years, 8 months ago (2014-04-23 08:29:57 UTC) #28
qsr
The CQ bit was checked by [email protected]
6 years, 8 months ago (2014-04-23 08:50:34 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/228723002/250001
6 years, 8 months ago (2014-04-23 08:50:55 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 8 months ago (2014-04-23 09:32:55 UTC) #31
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=174228
6 years, 8 months ago (2014-04-23 09:32:56 UTC) #32
qsr
The CQ bit was checked by [email protected]
6 years, 8 months ago (2014-04-23 10:47:51 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/228723002/250001
6 years, 8 months ago (2014-04-23 10:54:28 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 8 months ago (2014-04-23 12:20:12 UTC) #35
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=174263
6 years, 8 months ago (2014-04-23 12:20:12 UTC) #36
qsr
The CQ bit was checked by [email protected]
6 years, 8 months ago (2014-04-23 12:47:10 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/228723002/270001
6 years, 8 months ago (2014-04-23 12:47:23 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 8 months ago (2014-04-23 13:33:02 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-23 13:33:03 UTC) #40
qsr
The CQ bit was checked by [email protected]
6 years, 8 months ago (2014-04-23 14:26:36 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/228723002/270001
6 years, 8 months ago (2014-04-23 14:26:49 UTC) #42
commit-bot: I haz the power
6 years, 8 months ago (2014-04-23 16:02:36 UTC) #43
Message was sent while issue was closed.
Change committed as 265658

Powered by Google App Engine
This is Rietveld 408576698