361f943a1108b8facf76a9a8cf7fa0b94b3ac158 |
10-Apr-2018 |
Steven Moreland <smoreland@google.com> |
Fix 'ping' for Java. ping in java was incorrectly returning an error by default. Bug: 77818717 Test: vts_ibase_test Test: hidl_java_test Change-Id: I8fa0854ddabdfe48e8c73c385677b8178c14623d Merged-In: I8fa0854ddabdfe48e8c73c385677b8178c14623d
ommands/hidl_test_java/HidlTestJava.java
|
af084db4490c80b9715901d279ac937d7fe43e94 |
27-Dec-2017 |
Howard Chen <howardsoc@google.com> |
Make HIDL java to support a interfaces in structs Make hidl-gen to support interfaces in structs for java. Also use the test method in IBaz to test arguments passing. Test: hidl_test_java/ internal master Bug: 70529597 Change-Id: Ife7f77a145690050d0b9191235dd20e73b121994
ommands/hidl_test_java/HidlTestJava.java
|
ebb9b24fde4dd9179a3b92c4988414dc1208743a |
12-Dec-2017 |
Steven Moreland <smoreland@google.com> |
Add missing check to java test. Test failed to assert that an exception was actually thrown when a service was missing. Test: passes Bug: None Change-Id: I67536c18d0219369fce6c169c5bf0b9bfca82c86
ommands/hidl_test_java/HidlTestJava.java
|
f89e1063e162f09b6826bbc4960703649ec757bb |
01-Nov-2017 |
Yifan Hong <elsk@google.com> |
Allow equality checking and hash for HIDL interface proxies. IFoo.Proxy.equals() -> HidlSupport.equals() -> IHwInterface.asBinder().equals() -> HwRemoteBinder.equals(). IFoo.Stub.equals() -> default Object.equals() Notice that IHwInterface.asBinder() returns mRemote(of type HwRemoteBinder) for proxies and itself (of type HwBinder) for stubs. If IFoo.Stub.asBinder() had not return "this", its equals() should also be overridden. Test: hidl_test_java Bug: 68727931 Change-Id: I57936b165fbc0460d14792ce58f1f69a909547a1
ommands/hidl_test_java/HidlTestJava.java
|
a23f1ae530383d3a0d0e5178a0bf988da789e893 |
31-Oct-2017 |
Andreas Huber <andih@google.com> |
Optimize array marshaling to copy linear ranges of memory instead of doing per-element copies if the array element type corresponds to a primitive java type. Bug: 68654583 Test: hidl_test_java Change-Id: Idb0fee0331de9bd5b3e18252312d86fa5714f633
ommands/hidl_test_java/HidlTestJava.java
|
9bf5a09af6faa5ca009314cbf773ae0053a6ab7c |
25-Oct-2017 |
Steven Moreland <smoreland@google.com> |
Reland "HIDL Java getService now the same as C++." Add getService(retry) in Java for C++ feature parity. Due to ABI stability reasons, the API can't be made exactly as the C++ API. retry no retry C++ getService tryGetService Java getService(true) getService()/getService(false) getService(true) should be preferred. This will get the HIDL service and return it IFF it is declared in the VINTF manifest/is served. Test: hidl_test_java Bug: 67981006 Change-Id: Ic2e41efafc50afb50126f3e628439fc1d20f4e1c
ommands/hidl_test_java/HidlTestJava.java
|
34eae6ce5c78e9739be99728c3ca1c557f3732ce |
12-Jul-2017 |
Timur Iskhakov <iskhakovt@google.com> |
configureRpcThreadpool java test Test: compiles, passes Change-Id: I0c403a3c5dcbf627f14e8979e745604b6464c272
ommands/hidl_test_java/HidlTestJava.java
|
3ecd289d82f68451819b0d23730754dae14ec8d0 |
28-Jun-2017 |
Steven Moreland <smoreland@google.com> |
Add test for NoSuchElementException in java test. Test: hidl_test_java Bug: 63087967 Merged-In: I9ed84f3852210f3c6fc5ca312df10f34386fd30b Change-Id: I9ed84f3852210f3c6fc5ca312df10f34386fd30b
ommands/hidl_test_java/HidlTestJava.java
|
e4582d0b184f56624c850794b6f8917c05e71f02 |
07-Jun-2017 |
Steven Moreland <smoreland@google.com> |
Fix hidl_test_java failure. - set TREBLE_TESTING_OVERRIDE - print summary of results (so result isn't lost) - add additional prints to test so you can see why it fails - mark modules as tests so they don't accidentally get included in a release. Test: hidl_test_java Bug: 62353086 Change-Id: I0a41dd1762aab92bd492ad0a71f6a1758202061e
ommands/hidl_test_java/HidlTestJava.java
|
a2abe98a661c20b028bf20c3d8d1cd13d080b66a |
04-Apr-2017 |
Andreas Huber <andih@google.com> |
Fix IHwBinder.asInterface(...) to respect the interfaceChain and return null given a binder that's unrelated. Also adds public method castFrom(IHwInterface) that calls through to asInterface(IHwBinder) without exposing that implementation detail. Bug: 36749201 Test: hidl_test_java Change-Id: Ic4bc1f22f05e692dd8e9456382492056b96a809b
ommands/hidl_test_java/HidlTestJava.java
|
45b331b651c3290391518ec1820c65e0dff8515d |
27-Mar-2017 |
Yifan Hong <elsk@google.com> |
Fix .equals in Java does not handle edge cases. The old .equals code uses Objects.deepEquals, which does not handle for, e.g. ArrayList<byte[]>. Create our own recursive HidlSupport.deepEquals and deepHashCode method to handle these edge cases. Bug: 36454147 Test: hidl_test_java Change-Id: I58d86c163e81899da1db266b2589b8652df1e2c1
ommands/hidl_test_java/HidlTestJava.java
|
93a2a0847ff19cb5dc6fc7dd288fbf6957274f9b |
10-Mar-2017 |
Hridya Valsaraju <hridya@google.com> |
Cleanup to_string() usage and use toString() instead Bug: 35703683 Test: hidl_test_java passes Change-Id: Ib62828e5fb1c18825974f247c64c1e4dc686b23a
ommands/hidl_test_java/HidlTestJava.java
|
2e4d670350c58bb62ef1d86bcba271faf2e12633 |
16-Mar-2017 |
Yifan Hong <elsk@google.com> |
Add test for non-GC'd parcel. Test: hidl_test_java Bug: 36088202 Change-Id: I9ac3771b9571ea63a00005d178ca0d82ef60263d
ommands/hidl_test_java/HidlTestJava.java
|
e45b5303e072043679483a70606f6c00dde17382 |
22-Feb-2017 |
Yifan Hong <elsk@google.com> |
Add toString to Java code * toString is mainly for debugging purposes. * For structs and interfaces, add Object.toString. * For enums, add MyEnum.toString(int) and MyEnum.dumpBitfield(int). Use them as follows: * For enums, use the static method E.toString(int). * For bitfields, use the static method E.dumpBitfield(int). * For all arrays, use java.utils.Arrays.deepToString(o) * For everything else, use one of the following: * o.toString(), if o is not null * Object.toString(o) * String.valueOf(o) * Note that for array / vec of enums / bitfields, the raw integer value is dumped. Bug: 33459772 Test: hidl_test_java Change-Id: Ifb1ed519770b907e0a4e345b2c3109dc322a23b2
ommands/hidl_test_java/HidlTestJava.java
|
b6b3fcde5ff47b5c1f51bd9b80e190c8dd6782fa |
13-Jan-2017 |
Pavel Maltsev <pavelm@google.com> |
Testing struct that has vector of other struct Test: hidl_java_test Bug: b/34255213 Change-Id: I5de1225c25b91af16324019ffb871bfcf0c985c7
ommands/hidl_test_java/HidlTestJava.java
|
c75fd47b91f2edea70bb88f5508d9a161b916045 |
11-Jan-2017 |
Yifan Hong <elsk@google.com> |
Add interfaceDescriptor() method to all interfaces which returns interfaceChain[0]. Bug: 34136228 Test: hidl_test Test: hidl_test_java Change-Id: Id0d8139d51f39b1c317d966b305e883e561241b8
ommands/hidl_test_java/HidlTestJava.java
|
64af5e8e25039f5d29af1d38d5c4cfa0e1d93996 |
04-Jan-2017 |
Steven Moreland <smoreland@google.com> |
java: get/register checked exceptions. Bug: 33673120 Test: hidl_test_java Change-Id: Ie3565279566d80347e2c89830621f5a6a4864e5f
ommands/hidl_test_java/HidlTestJava.java
|
ec10227f088da9997291ee10029a4577ffd240fc |
21-Dec-2016 |
Yifan Hong <elsk@google.com> |
Emit equals and hashcode for auto-generated Java code. Test: hidl_test_java Bug: 32834072 Change-Id: I660852b7d76f79d41b93c9986e4c1188c02ba4a6
ommands/hidl_test_java/HidlTestJava.java
|
dad1b30bd4d2aa9641156909acce334b25d3e615 |
21-Dec-2016 |
Steven Moreland <smoreland@google.com> |
Java: Add checked exceptions to methods. Bug: 33673120 Test: hidl_test_java Merged-In: Ie46f2895cda02c192b1353c6b9317461061f0d26 Change-Id: Ie46f2895cda02c192b1353c6b9317461061f0d26
ommands/hidl_test_java/HidlTestJava.java
|
8d12b50cfb20eaef50e0998abe8d458866896003 |
27-Dec-2016 |
Martijn Coenen <maco@google.com> |
Support (un)linkToDeath in Java. Test: mma, hidl_test_java Bug: 31632518 Change-Id: Ic324deb5b0b17340328a08e736e07b47a7bea59b
ommands/hidl_test_java/HidlTestJava.java
|
20e4f9cc51d20add2e1d57231cbb3a9e52b02268 |
20-Dec-2016 |
Yifan Hong <elsk@google.com> |
Add test for Java GC for binder objects. Test: hidl_test_java Bug: 33042939 Change-Id: I4c7c5ffe18629798ae7625132b568fcb49551f3b
ommands/hidl_test_java/HidlTestJava.java
|
bcd790346fdc609d214791fd82c6ab1af388e2f2 |
17-Dec-2016 |
Steven Moreland <smoreland@google.com> |
Use interface for method callbacks. This way people can implement callback methods in java with lambdas. When you want to call a java method with multiple arguments, right now you have to say: foo.method(arg1, arg2, new MethodCallback() { public void onValues(type1 res1, type2 res2) { ...; } } By changing MethodCallback from an anonymous class to an interface, we can call the function with a Java 8 lambda instead. foo.method(arg1, arg2, (res1, res2) -> res1 == OK ? setCallback(res2) : die(res1))); Test: compiles Bug: 33744648 Change-Id: I9b3aad019560714e2e6ffff0081c5d590f447cbc
ommands/hidl_test_java/HidlTestJava.java
|
a47eef385eff3306cef16553ce98e916beb82a38 |
12-Dec-2016 |
Yifan Hong <elsk@google.com> |
Allow method names, result names and argument names to be the same. size(int32_t size) generates (int32_t size) is allowed. result names and argument names themselves may still collide and cause compilation error; for example, foo(int32_t bar, int32_t bar) is not detected by hidl-gen. Bug: 33277700 Test: compiles with mma (withe the new method added to IBar) Change-Id: Ibfe6db03e2dff40f0cae1429fd94cd0db6ccb3a1
ommands/hidl_test_java/HidlTestJava.java
|
8c56cbe4b107934da1bea14475b5cc41280a4f01 |
13-Dec-2016 |
Yifan Hong <elsk@google.com> |
Allow bitfield types to be elidable. Test: mma Bug: 33298401 Change-Id: I3066d8f0773c135b181cea497f971d9624a77bd6
ommands/hidl_test_java/HidlTestJava.java
|
c57c8bb9f368faca636bdb6b39773e72255e8b08 |
01-Dec-2016 |
Yifan Hong <elsk@google.com> |
Add a bitfield type. It is possible to say enum MyEnum : int8_t {...}; ... bitfield<MyEnum> in HIDL. In the above example, bitfield<MyEnum> simply translates to int8_t. Change mutating |= and &= to allow only (e.g.) int8_t s = 0; s |= MyEnum::VAL1; Bug: 31702236 Test: hidl_test Change-Id: I8d79975bb48e1ffd3af4726a52ef3678dac60115
ommands/hidl_test_java/HidlTestJava.java
|
2bb6e1ed0aba0b264d6f2f0c670afc74153902f8 |
25-Oct-2016 |
Andreas Huber <andih@google.com> |
Adds support for specifying the version of a service to register/lookup. also autogenerates "IFoo.Stub.registerAsService(String serviceName)" and "IFoo.getService(String serviceName)" convenience functions that fill in the proper version from the interface's enclosing package automatically. Bug: 32405011 Test: hidl_test_java Change-Id: I59888c8538259a1b0698e597f979c674c7739aa5
ommands/hidl_test_java/HidlTestJava.java
|
1b6822b19bf60a98ba8e27b135a5ad66287a5542 |
18-Oct-2016 |
Andreas Huber <andih@google.com> |
Vectors are now exposed as ArrayList<T> in the Java backend even for arguments and return values to/from methods, they already were inside structures. In addition vectors of arrays are now properly marshalled when used as arguments or results to/from methods. Bug: 32237331, 32180328 Test: hidl_test_java Change-Id: Ie24f11668f22fc2c31fb7d8e8da534f1c970f58f
ommands/hidl_test_java/HidlTestJava.java
|
f1abc2a16c3384d5813b69c5ebe8cb27bd256f21 |
28-Sep-2016 |
Andreas Huber <andih@google.com> |
HIDL vectors are now exposed as ArrayLists rather than Vectors in Java. Bug: 31749239 Test: hidl_test, hidl_test_java Change-Id: I4dd705ac7962195e3107a67bd62e0c9154339e5b
ommands/hidl_test_java/HidlTestJava.java
|
f03332ac955bc6cb22873e236868eacfc3bf78cc |
23-Sep-2016 |
Andreas Huber <andih@google.com> |
Arrays in .hal files are now exposed to C++ as hidl_array<T, SIZE ...> instead of as native arrays. This allows them to be copied which in turn lets them exist in vectors. In the Java backend, vectors are limited to one-dimensional arrays and scalar arrays are properly wrapped, i.e. vec<uint8_t[]> => Vector<Byte[]> Change-Id: I47524ec8423dfb41a436df36af8fa05eb8b3c0cc Bug: 31682327 Test: hidl_test and hidl_test_java
ommands/hidl_test_java/HidlTestJava.java
|
709b62dbda6184770bb34470ff550e02c1643e67 |
19-Sep-2016 |
Andreas Huber <andih@google.com> |
Arrays of arrays are now coalesced into a single multi-dimensional array type. This is natively stored as a flat array of the element type. Change-Id: I1b0eee51b496648a9c8445b835635deff1a90aab Bug: 31438033 Test: run updated "hidl_test" and "hidl_test_java"
ommands/hidl_test_java/HidlTestJava.java
|
4c865b72b320a46f326a335cfd326b66b0e10f67 |
15-Sep-2016 |
Andreas Huber <andih@google.com> |
[Java hidl-gen] Fix multi-dimensional arrays (used within structures, not as method arguments). Bug: 31438033 Change-Id: I8e29ae8eca2a9ef8a320e37ca0bb79dcfa8a9b9a
ommands/hidl_test_java/HidlTestJava.java
|
f630bc8736003dcf4aac3dfe47167beb6beb6c6a |
09-Sep-2016 |
Andreas Huber <andih@google.com> |
Java support for passing vec<STRUCT-TYPE> and STRUCT-TYPE[] to and from methods. Bug: 31380705 Change-Id: I7374538d0bc2b3562c997710bfa4ed1f95950589
ommands/hidl_test_java/HidlTestJava.java
|
401cd16db8a421aaf91338024cea9208549ef67e |
26-Aug-2016 |
Andreas Huber <andih@google.com> |
Adds a test verifying that the Java backend is compatible with the C++ backend. Change-Id: Ib9cfeeba049281f6bf96c42758864d9e6a800dfa
ommands/hidl_test_java/HidlTestJava.java
|