Commit graph

14963 commits

Author SHA1 Message Date
Martijn Coenen
a614ac0b88 Merge "Default binderized implementation of android.hardware.nfc@1.0" 2016-09-29 07:41:34 +00:00
Roshan Pius
fc68d033e2 Merge "wifi: Move supplicant HIDL interfaces to subfolder" am: d8a7bb5838 am: bc667d76d7 am: 2fc64b6736
am: a28a9e59e0

Change-Id: Ic44981ee348520357f90cc8b730bf1d73654b636
2016-09-28 23:04:37 +00:00
Andreas Huber
9e7cd1f6c2 Verify that method arguments and results can share the same name. am: 88476c157b am: 2b77beb537 am: 62b3b4ca51
am: 5c441c9a52

Change-Id: Ie154639b53fbe9b5cef178597db4b78768d03027
2016-09-28 23:04:13 +00:00
Roshan Pius
a28a9e59e0 Merge "wifi: Move supplicant HIDL interfaces to subfolder" am: d8a7bb5838 am: bc667d76d7
am: 2fc64b6736

Change-Id: Ia57d52d40392f7e14d1deb3a66aac7f86b2d39b2
2016-09-28 22:49:59 +00:00
Andreas Huber
5c441c9a52 Verify that method arguments and results can share the same name. am: 88476c157b am: 2b77beb537
am: 62b3b4ca51

Change-Id: I11fc8fe0ab3c9ef6e8a0a7419f9deadb367e423f
2016-09-28 22:46:06 +00:00
Roshan Pius
2fc64b6736 Merge "wifi: Move supplicant HIDL interfaces to subfolder" am: d8a7bb5838
am: bc667d76d7

Change-Id: Ifa456d3a92d832c4e85f144170fca9865d13f603
2016-09-28 22:46:05 +00:00
Roshan Pius
bc667d76d7 Merge "wifi: Move supplicant HIDL interfaces to subfolder"
am: d8a7bb5838

Change-Id: Ica29c5571b54c0051f6b451420c70028ee61b710
2016-09-28 22:42:36 +00:00
Andreas Huber
62b3b4ca51 Verify that method arguments and results can share the same name. am: 88476c157b
am: 2b77beb537

Change-Id: Ia14db1fe150aa3b0adc0810e5df67d67bd309ede
2016-09-28 22:42:36 +00:00
Andreas Huber
2b77beb537 Verify that method arguments and results can share the same name.
am: 88476c157b

Change-Id: Iaff4fe06ebe22fbaa50e2720f60329d67e203cb2
2016-09-28 22:40:06 +00:00
Treehugger Robot
d8a7bb5838 Merge "wifi: Move supplicant HIDL interfaces to subfolder" 2016-09-28 22:38:53 +00:00
Iliyan Malchev
3db0f605e4 Default binderized implementation of android.hardware.nfc@1.0
Provide a default binderized HAL implementation.  The implementation
uses android.hardware.nfc@1.0-impl.so, which in turn loads the
conventional HAL (nfc_nci.default.so).  If a device includes package
android.hardware.nfc@1.0-service, the device will automatically use the
binderized implementation of the NFC HAL.  If a device includes package
android.hardware.nfc@1.0-impl instead, it will use the default
implementation in hardware/interfaces/nfc/1.0/default.

b/31688271
Test: pass

Change-Id: I31cd93d28705d287975b485092cffd7661599d7c
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-28 20:46:27 +00:00
Andreas Huber
88476c157b Verify that method arguments and results can share the same name.
Bug: 30778622
Test: hidl_test, hidl_test_java
Change-Id: Idb35a03337010c1fb63c2896f216392398e03e0c
2016-09-28 13:43:39 -07:00
Roshan Pius
22ab8b2451 wifi: Move supplicant HIDL interfaces to subfolder
Move all the supplicant HIDL interfaces to a separate subfolder.

Bug: 31800508
Test: Compiles
Change-Id: I09bfb17b626312e8be819238ab2edbb83ca04322
2016-09-28 13:37:45 -07:00
Roshan Pius
8760803b55 wifi(hidl): Add supplicant HIDL interface am: 9a3a84f5a3 am: 236659d535 am: e344a1aea4
am: d971903960

Change-Id: Ibfdaff9e6f97b03769b2c56cb15c2b699fbba572
2016-09-28 20:13:19 +00:00
Roshan Pius
d971903960 wifi(hidl): Add supplicant HIDL interface am: 9a3a84f5a3 am: 236659d535
am: e344a1aea4

Change-Id: I29376141c0d9662bd1156982f6f7c049330bee52
2016-09-28 20:06:52 +00:00
Roshan Pius
e344a1aea4 wifi(hidl): Add supplicant HIDL interface am: 9a3a84f5a3
am: 236659d535

Change-Id: I55c3e764bc674e58c5eddd7778c315fe0c8f73a7
2016-09-28 20:00:50 +00:00
Roshan Pius
236659d535 wifi(hidl): Add supplicant HIDL interface
am: 9a3a84f5a3

Change-Id: I2f8f5df8612919c43389e2bf7a9532a85390795b
2016-09-28 19:55:54 +00:00
Roshan Pius
9a3a84f5a3 wifi(hidl): Add supplicant HIDL interface
Convert the existing AIDL binder interface of wpa_supplicant to HIDL.

Summary of changes:
1. Every HIDL method returns an instance of |SupplicantStatus|
along with any others params (for getters). This is needed to return the
equivalent of |Binder::Status| to indicate errors in the args passed,
stale proxy, etc.
2. All constants are changed to enums. There were some constants which
should have been enums in the first place, but wasn't because AIDL did
not support enums. But, there are others which should be standalone
constants, but are enums now because constants are not supported in HIDL.
3. Conform to HIDL style guide.

Bug: 31365276
Test: `mmm -j32 hardware/interfaces/wifi/1.0/`
Change-Id: Iba753e279fd260788d8628ea2f5c2281b5844095
2016-09-28 11:03:17 -07:00
Andreas Huber
2bd934b6a5 Merge "Verify that vectors of arrays within structures are properly marshaled" am: e168ebab22 am: cb38b3cd29 am: 17613613b9
am: ca9109c605

Change-Id: I8a049752ff5072a0a646c47534cfb4f64570d5e8
2016-09-28 17:47:49 +00:00
Andreas Huber
ca9109c605 Merge "Verify that vectors of arrays within structures are properly marshaled" am: e168ebab22 am: cb38b3cd29
am: 17613613b9

Change-Id: I6c355d10d67e2a9c4e7678ebabb9914b3dd5af0c
2016-09-28 17:42:04 +00:00
Andreas Huber
17613613b9 Merge "Verify that vectors of arrays within structures are properly marshaled" am: e168ebab22
am: cb38b3cd29

Change-Id: I48e139fec5b1fae93a8e3976a0070e143dd117e4
2016-09-28 17:36:33 +00:00
Andreas Huber
cb38b3cd29 Merge "Verify that vectors of arrays within structures are properly marshaled"
am: e168ebab22

Change-Id: I961df79e75d8738f6968efb1a72da5f3bcb35f3d
2016-09-28 17:30:24 +00:00
Treehugger Robot
e168ebab22 Merge "Verify that vectors of arrays within structures are properly marshaled" 2016-09-28 17:16:52 +00:00
Hridya Valsaraju
9d9672cce2 Use MQDescriptorSync instead of MQdescriptor in interface
Add comments and cleanup code as per HIDL style guidelines.

Bug: 31550963
Test: Built and ran existing FMQ unit tests and benchmarks.

Change-Id: I0a09ba1fcb520b46e5e6299b473c962c93d815eb
2016-09-27 22:22:19 +00:00
Yifan Hong
d68af97be7 Updated indentation to 4 spaces for Android.mk. am: b0b5322e7d am: 929a4a641c am: c4b5a58382
am: 3a707d70dd

Change-Id: I137c4ead2c3ec331b0970cb5a8218ddc28747e52
2016-09-27 21:35:57 +00:00
Yifan Hong
3a707d70dd Updated indentation to 4 spaces for Android.mk. am: b0b5322e7d am: 929a4a641c
am: c4b5a58382

Change-Id: Ifa9dc871240ffaad84dfc6927beb9af8eec552cc
2016-09-27 21:33:27 +00:00
Yifan Hong
c4b5a58382 Updated indentation to 4 spaces for Android.mk. am: b0b5322e7d
am: 929a4a641c

Change-Id: I772cf8e65d6cdbe02c190342312e12af809d84a7
2016-09-27 21:30:26 +00:00
Yifan Hong
929a4a641c Updated indentation to 4 spaces for Android.mk.
am: b0b5322e7d

Change-Id: I1f87ecd7767a373c3a3960de5dc94db89fe0e7fd
2016-09-27 21:28:07 +00:00
Yifan Hong
e9b64e7b3f Updated tests for constant expressions. am: 467bb282d2 am: dff5d5f00c am: 65895cfcda
am: 16d98064bc

Change-Id: I443ffc3665e59bc08550f9f52982485ee662f0b4
2016-09-27 00:16:21 +00:00
Yifan Hong
16d98064bc Updated tests for constant expressions. am: 467bb282d2 am: dff5d5f00c
am: 65895cfcda

Change-Id: I3b799791731f8fecb2b55cb9b44d35378bed6c9b
2016-09-27 00:10:31 +00:00
Andreas Huber
fd77f50d55 Verify that vectors of arrays within structures are properly marshaled
in the Java backend.

Change-Id: I70baa4ac55d8b0e06b31b2e50662be14b8528ff3
Bug: 31682327
Test: hidl_test_java
2016-09-26 16:34:29 -07:00
Yifan Hong
b0b5322e7d Updated indentation to 4 spaces for Android.mk.
Test: `cd system/tools/hidl && mma`
Change-Id: I088893c3c8b080239f0f32e3434faf3da3fefc7a
2016-09-26 16:02:39 -07:00
Yifan Hong
65895cfcda Updated tests for constant expressions. am: 467bb282d2
am: dff5d5f00c

Change-Id: I6229a4b293ff5ad41b34120f5adac32751d9ab59
2016-09-26 22:57:12 +00:00
Yifan Hong
dff5d5f00c Updated tests for constant expressions.
am: 467bb282d2

Change-Id: Ife9919731add41f62b9555325a1d343ab9f2bd2b
2016-09-26 22:53:43 +00:00
Yifan Hong
467bb282d2 Updated tests for constant expressions.
Test: `make android.hardware.tests.expression@1.0` compiles
      and generates enum class Color with autofilled values.
Test: `make hidl_test_java` succeeded.
Test: `make hidl_test` succeeded.

Bug: 31628863 Add test for autofilling enum values.
Bug: 31592132 allow constant expressions be array sizes.

Change-Id: I79f35365f1d37843922725ad5a405848f3e8ec08
2016-09-26 13:39:22 -07:00
Andreas Huber
675172c465 Updated makefiles that also add static java library targets. am: 495391aad8 am: a88908fc9f am: 8a54169407
am: b35730b0d0

Change-Id: I670ea37d0ad7a61bd7a39d70344a3734a498c41b
2016-09-23 18:49:30 +00:00
Andreas Huber
b35730b0d0 Updated makefiles that also add static java library targets. am: 495391aad8 am: a88908fc9f
am: 8a54169407

Change-Id: Idb72304d11a7d2c42b81da30e9bb65eff38da4c8
2016-09-23 18:24:28 +00:00
Andreas Huber
8a54169407 Updated makefiles that also add static java library targets. am: 495391aad8
am: a88908fc9f

Change-Id: I33fed4af5f23f1e793360d8e68e7ed789b224f43
2016-09-23 18:22:28 +00:00
Andreas Huber
a88908fc9f Updated makefiles that also add static java library targets.
am: 495391aad8

Change-Id: Iab21a83fcd7a07ace057b7bd327b5356096654a4
2016-09-23 18:20:27 +00:00
Andreas Huber
495391aad8 Updated makefiles that also add static java library targets.
Bug: 31684178
Test: hidl_test and hidl_test_java
Change-Id: Ib53d1be2b1535837ca97cb61796e335141fc7611
2016-09-23 09:21:15 -07:00
Iliyan Malchev
38a7fa0b8b android.hardware.nfc@1.0: provide a default implementation am: 678fa1f456 am: 61f39aaba5 am: 78b83a87a7
am: ad5a74ae97

Change-Id: I20b054f683217c5ab7a2fb6587caea2d3dd306a0
2016-09-23 03:17:06 +00:00
Iliyan Malchev
b37deaefe5 update auto-generated makefiles am: 998892cce7 am: 8ff5b735a2 am: ef023ad28b
am: 57557e49e9

Change-Id: I319fea9e05fab6b9ea51a69688aa0c5a19cd0ff2
2016-09-23 03:16:56 +00:00
Iliyan Malchev
ad5a74ae97 android.hardware.nfc@1.0: provide a default implementation am: 678fa1f456 am: 61f39aaba5
am: 78b83a87a7

Change-Id: Ifd665522101ced4d046f46ab1f73bd63d1557597
2016-09-23 03:09:28 +00:00
Iliyan Malchev
57557e49e9 update auto-generated makefiles am: 998892cce7 am: 8ff5b735a2
am: ef023ad28b

Change-Id: I48c360b0e6e42e633f1704d757a0bd61079835f3
2016-09-23 03:09:19 +00:00
Iliyan Malchev
78b83a87a7 android.hardware.nfc@1.0: provide a default implementation am: 678fa1f456
am: 61f39aaba5

Change-Id: Iafcb24937d03e30f33813621b736e1f32ad3f1ff
2016-09-23 03:07:58 +00:00
Iliyan Malchev
ef023ad28b update auto-generated makefiles am: 998892cce7
am: 8ff5b735a2

Change-Id: I4815276ca6c386491f562a4705066a98da66f723
2016-09-23 03:07:49 +00:00
Iliyan Malchev
61f39aaba5 android.hardware.nfc@1.0: provide a default implementation
am: 678fa1f456

Change-Id: I2a10a2a82dcfa705ece239e2a6291db11807d074
2016-09-23 03:05:57 +00:00
Iliyan Malchev
8ff5b735a2 update auto-generated makefiles
am: 998892cce7

Change-Id: I55af5e32ddeb15bd8da3f15ae1f80fe112f9e6a7
2016-09-23 03:05:48 +00:00
Andreas Huber
e1215a29d7 [Java] Add a test to verify that typedefs in types.hal does not mistakenly am: f1d448b6a9 am: a0968031d6 am: 50ff1f58e9
am: 0cfe6e1da5

Change-Id: I1b668c6cc4c4a926bcb56a1716a150125ae91365
2016-09-23 01:50:44 +00:00
Andreas Huber
e35a295578 Merge "Verify that structs with multiple array fields now successfully compile for Java" am: 05f80eec9d am: a37cd4c0d1 am: 33271e9d2f
am: 0c397242c0

Change-Id: Ic2a8c49984eb0e3c248863620d81ba0d287f337c
2016-09-23 01:49:50 +00:00