Commit graph

106 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
Iliyan Malchev
678fa1f456 android.hardware.nfc@1.0: provide a default implementation
b/31524912
Test: pass

Change-Id: Id9d34f62f4a2b92bdc3beb3e62c89c82743c0ca0
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-22 23:31:52 +00:00
Iliyan Malchev
998892cce7 update auto-generated makefiles
b/31524912
Test: pass

Change-Id: Iafea8f87e93181041f42820df39ec43b3c785410
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-22 23:31:33 +00:00
Andreas Huber
50ff1f58e9 [Java] Add a test to verify that typedefs in types.hal does not mistakenly am: f1d448b6a9
am: a0968031d6

Change-Id: If873918c0fff96a5e19db275bfc29716b842b035
2016-09-22 22:59:12 +00:00
Andreas Huber
a0968031d6 [Java] Add a test to verify that typedefs in types.hal does not mistakenly
am: f1d448b6a9

Change-Id: Ie5f02da566697f0275294f0d5bf930e7405c742b
2016-09-22 22:41:58 +00:00
Andreas Huber
33271e9d2f Merge "Verify that structs with multiple array fields now successfully compile for Java" am: 05f80eec9d
am: a37cd4c0d1

Change-Id: I9399dc700d42edd72263f2a02668e7211d396ed4
2016-09-22 21:57:48 +00:00
Mitchell Wills
5967714741 Initial pieces of WiFi HAL interface definition am: 5443a9fc9b
am: 3d1b2c3c80

Change-Id: I8c22d41673fbc0e273a111d2ce9c87013758c4df
2016-09-22 21:57:19 +00:00
Andreas Huber
f1d448b6a9 [Java] Add a test to verify that typedefs in types.hal does not mistakenly
generate a makefile rule.

Bug: 31678014
Test: regenerate makefiles using hidl-gen.
Change-Id: I72ceaedd33288269b74e2aa233043c741994cd1a
2016-09-22 13:22:47 -07:00
Andreas Huber
a37cd4c0d1 Merge "Verify that structs with multiple array fields now successfully compile for Java"
am: 05f80eec9d

Change-Id: I2a12bb4d611d482a66eff412021f086f0ba43476
2016-09-22 20:08:08 +00:00
Treehugger Robot
05f80eec9d Merge "Verify that structs with multiple array fields now successfully compile for Java" 2016-09-22 19:53:14 +00:00
Mitchell Wills
3d1b2c3c80 Initial pieces of WiFi HAL interface definition
am: 5443a9fc9b

Change-Id: I23f086448b3e61f0b3fbc380d46ecdb28d6e5789
2016-09-22 19:36:29 +00:00
Andreas Huber
fc0b6c484a Verify that structs with multiple array fields now successfully compile for Java
Previously "_hidl_array_offset_*" was redeclared multiple times in the same
scope.

Bug: 31675085
Test: run hidl_test, hidl_test_java
Change-Id: I370956ae3008c05bda66dc5cdc44d33c9883376f
2016-09-22 11:25:23 -07:00
Mitchell Wills
5443a9fc9b Initial pieces of WiFi HAL interface definition
Test: make -j48 android.hardware.wifi@1.0 android.hardware.wifi@1.0-java
Bug: 31350762
Change-Id: I1b598be397e08165fc9fd607888e064b139e8007
2016-09-22 10:50:27 -07:00
Andreas Huber
2d026f473f Merge "Additional test cases to verify multi-dimensional arrays work properly." am: ed76563377
am: 551f714f93

Change-Id: I0cfa94791445d91b9502f4fdf5aa2d295460f874
2016-09-20 20:59:34 +00:00
Andreas Huber
551f714f93 Merge "Additional test cases to verify multi-dimensional arrays work properly."
am: ed76563377

Change-Id: Id7e09605925b718147d580114cf644a329e9e5fe
2016-09-20 20:48:56 +00:00
Treehugger Robot
ed76563377 Merge "Additional test cases to verify multi-dimensional arrays work properly." 2016-09-20 20:28:12 +00:00
Zhuoyao Zhang
e7d11d6140 Add dependency on libcutils. am: adc313d43d
am: f2ef735e00

Change-Id: I18ef2fe9e3e052a6200e8d5724537866bd04114c
2016-09-19 23:33:09 +00:00
Zhuoyao Zhang
f2ef735e00 Add dependency on libcutils.
am: adc313d43d

Change-Id: I400de4756d28d50d1080bdd768c49a079eb097b3
2016-09-19 23:19:44 +00:00
Andreas Huber
8e237941ef Additional test cases to verify multi-dimensional arrays work properly.
Bug: 31438033
Change-Id: I1fc58cbbe6f161f7f71a43fa43d743843ba22f76
Test: run updated "hidl_test" and "hidl_test_java"
2016-09-19 14:07:54 -07:00
Zhuoyao Zhang
adc313d43d Add dependency on libcutils.
* Used for get system properies.

Test: pass test hidl_test.
Change-Id: I3b6d2deb442cd627a6f30312f0c204177d410ecb
2016-09-19 12:52:09 -07:00
Yifan Hong
9364de0177 Merge "Remove @hal_type from .hal files." am: 96f539739e
am: 7b835a891f

Change-Id: I60adf102cc2349bf67818dc1307d45758eaf400d
2016-09-19 19:37:54 +00:00
Yifan Hong
7b835a891f Merge "Remove @hal_type from .hal files."
am: 96f539739e

Change-Id: Icc5162a4b4ca7914cb687ba9d2c8b32d0ae7841d
2016-09-19 19:34:54 +00:00
Yifan Hong
96f539739e Merge "Remove @hal_type from .hal files." 2016-09-19 19:25:19 +00:00
Yifan Hong
252c1c58a4 Remove @hal_type from .hal files.
Test: ran make android.hardware.nfc@1.0 successfully
      compiles.

Bug: 31527823

Change-Id: Ib2c2f40ef6a8939a8344ade6138a7b0f32f14ba9
2016-09-19 10:19:24 -07:00
Iliyan Malchev
a848f8616d fix update-makefiles.sh to not need Android.mk am: 15e1558a04
am: c6260f3952

Change-Id: I2710a7f4b024b873935994f98562b2bb5b327678
2016-09-18 03:45:42 +00:00
Iliyan Malchev
c6260f3952 fix update-makefiles.sh to not need Android.mk
am: 15e1558a04

Change-Id: Iec4f362abc0e0b1f1798e93baf457d9ce0cf3386
2016-09-18 03:43:11 +00:00
Iliyan Malchev
15e1558a04 fix update-makefiles.sh to not need Android.mk
When auto-generating Android.mk for HIDL packages, update-makefiles.sh
now just looks for all directories hosting .hal files, converts them to
HIDL package names, and invokes hidl-gen on these package names to
generate the appropriate Android.mk files.

Change-Id: I8a824672f33be58508ae7c07de463f4f589a9a73
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-18 01:50:01 +00:00
Andreas Huber
a0d07c9f72 Add tests to verify that multi-dimensional arrays in Java work (inside structs) am: 9c43f016b6
am: 975f5d66b2

Change-Id: I27d7995678337f4f38a2d342e1b67862f0e46afd
2016-09-16 06:37:49 +00:00