OSDN Git Service

android-x86/hardware-interfaces.git
7 years agowpa_supplicant(interface): Add iface/network type
Roshan Pius [Mon, 31 Oct 2016 21:51:27 +0000 (14:51 -0700)]
wpa_supplicant(interface): Add iface/network type

Add separate types of Iface/Network object for STA (station mode) and
P2P mode ifaces and associated networks. These expose very different
functionality and exposing 2 different types of objects makes the
interface cleaner.
Although, they're still represented via the same struct for both types
in the wpa_supplicant core.

Bug: 32553421
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: I41601a650709429c65014cb7adaf6cb9ab03787e

7 years agoMerge "Running update-makefiles for fixed spacing."
Treehugger Robot [Wed, 2 Nov 2016 00:44:15 +0000 (00:44 +0000)]
Merge "Running update-makefiles for fixed spacing."

7 years agoAdd test for null native_handle_t*.
Yifan Hong [Thu, 27 Oct 2016 20:18:43 +0000 (13:18 -0700)]
Add test for null native_handle_t*.

Test: hidl_test

Bug: 30814137
Change-Id: Ic52a4c588e2fde3859a0ae8c098e5cb60a87efe8

7 years agoRunning update-makefiles for fixed spacing.
Steven Moreland [Tue, 1 Nov 2016 20:04:54 +0000 (13:04 -0700)]
Running update-makefiles for fixed spacing.

Test: pass
Change-Id: I4dcaf70b1c014f3ecf685d4884601be6f17ee51d

7 years agoAdd method to IFoo for testing NULL interfaces.
Martijn Coenen [Thu, 27 Oct 2016 09:51:46 +0000 (11:51 +0200)]
Add method to IFoo for testing NULL interfaces.

Bug: 32410513
Test: mma, hidl_test
Change-Id: I791c3a95e670a859e5e494ead987d2a93f5047a5

7 years agoMerge "Initial version of BT SAP hal."
Amit Mahajan [Tue, 1 Nov 2016 02:17:56 +0000 (02:17 +0000)]
Merge "Initial version of BT SAP hal."

7 years agoAdd interface methods for testing vec<handle>.
Yifan Hong [Fri, 14 Oct 2016 17:41:41 +0000 (10:41 -0700)]
Add interface methods for testing vec<handle>.

Test: hidl_test
Bug: 32160974
Change-Id: I7eda1650fcf8d58778b2aad97a5bd62afc95bc36

7 years agoMerge "add test for binder inheritance."
Treehugger Robot [Sat, 29 Oct 2016 06:01:58 +0000 (06:01 +0000)]
Merge "add test for binder inheritance."

7 years agoMerge "NFC HAL doesn't need readproc."
Martijn Coenen [Fri, 28 Oct 2016 19:42:49 +0000 (19:42 +0000)]
Merge "NFC HAL doesn't need readproc."

7 years agoInitial version of BT SAP hal.
Amit Mahajan [Sun, 23 Oct 2016 23:24:54 +0000 (16:24 -0700)]
Initial version of BT SAP hal.

Test: No build issues. Interface only; nothing to test yet.

Bug: 32020264
Change-Id: I8ed46b5e39c37a9efe1593206f782a591f47c9b7

7 years agoNFC HAL doesn't need readproc.
Martijn Coenen [Fri, 28 Oct 2016 15:09:22 +0000 (17:09 +0200)]
NFC HAL doesn't need readproc.

Bug: 31928447
Test: NFC still works
Change-Id: I9f43192c33f3fdf91e4aa97d4c5e5fa49a01a85e

7 years agoDevelop HIDL interface for radio (RIL).
Sanket Padawe [Thu, 27 Oct 2016 20:20:49 +0000 (13:20 -0700)]
Develop HIDL interface for radio (RIL).

Test: Only built the hidl interface as there isn't anything else to test.

Bug: 32020264
Change-Id: Ibf62feb9c562992cffb9ba6d1ec85a7e9c22f359

7 years agoadd test for binder inheritance.
Yifan Hong [Wed, 19 Oct 2016 01:44:17 +0000 (18:44 -0700)]
add test for binder inheritance.

Test: hidl_test
Test: `make hidl_test_java` compiles
Change-Id: Ie9217b79e369f2a1e7a7c9ed02524b17e3fc8b7f

7 years agoMerge "Add methods to test flavor of FMQ supporting unsynchronized writes."
Treehugger Robot [Wed, 26 Oct 2016 16:37:18 +0000 (16:37 +0000)]
Merge "Add methods to test flavor of FMQ supporting unsynchronized writes."

7 years agoStop all these merge conflicts.
Steven Moreland [Tue, 25 Oct 2016 22:45:19 +0000 (15:45 -0700)]
Stop all these merge conflicts.

Test: mma -j64
Change-Id: I319198af32adf1fef180c5c2c22ba4b360fa7609

7 years agoUse hidl_string conversion constructor as test.
Steven Moreland [Mon, 24 Oct 2016 17:46:43 +0000 (10:46 -0700)]
Use hidl_string conversion constructor as test.

Test: hidl_test
Change-Id: I626c40e1a3121e4f41ba9f612efc7321f7c03f85

7 years agoMerge "boot: use defaultPassthroughServiceImplementation"
Treehugger Robot [Mon, 24 Oct 2016 18:00:16 +0000 (18:00 +0000)]
Merge "boot: use defaultPassthroughServiceImplementation"

7 years agohidl_test: move duplicated code to shared lib
Yifan Hong [Mon, 17 Oct 2016 18:38:15 +0000 (11:38 -0700)]
hidl_test: move duplicated code to shared lib

Test: hidl_test

Change-Id: Ia68b78d44d68a6b254c686afe64faf7cc89510d7

7 years agoMerge "Add implementation for hwbinder benchmark service."
Zhuoyao Zhang [Mon, 24 Oct 2016 16:52:48 +0000 (16:52 +0000)]
Merge "Add implementation for hwbinder benchmark service."

7 years agoUpdate headers (for export shared lib headers)
Steven Moreland [Fri, 21 Oct 2016 20:40:54 +0000 (13:40 -0700)]
Update headers (for export shared lib headers)

Test: mma -j64
Bug: 32337293
Change-Id: I93e7cab90efac407525a1a5f2ad30f816a530e17

7 years agoMerge "wifi: Removing reference to IServiceManager.h."
Treehugger Robot [Sat, 22 Oct 2016 00:26:42 +0000 (00:26 +0000)]
Merge "wifi: Removing reference to IServiceManager.h."

7 years agoRemoved overloaded functions from IFoo.hal.
Steven Moreland [Wed, 19 Oct 2016 17:52:54 +0000 (10:52 -0700)]
Removed overloaded functions from IFoo.hal.

Bug: 31758541
Test: hidl_test
Change-Id: Ic92cf9996357a8aa9b3785540784c686887032e0

7 years agoAdd implementation for hwbinder benchmark service.
Zhuoyao Zhang [Fri, 21 Oct 2016 17:19:59 +0000 (10:19 -0700)]
Add implementation for hwbinder benchmark service.

Bug:32279499
Test: make android.hardware.tests.libhwbinder@1.0-impl
Change-Id: I75056afa32b8189020608779ec495659ea35ed48

7 years agoboot: use defaultPassthroughServiceImplementation
Steven Moreland [Fri, 21 Oct 2016 19:40:38 +0000 (12:40 -0700)]
boot: use defaultPassthroughServiceImplementation

Bug: 32282345
Test: make
Change-Id: Ifb479c665aa4e37881c86152d43f4f1f88983133

7 years agowifi: Removing reference to IServiceManager.h.
Steven Moreland [Fri, 21 Oct 2016 19:35:26 +0000 (12:35 -0700)]
wifi: Removing reference to IServiceManager.h.

Bug: 32313592
Test: make

Change-Id: If1b842c563b5934b58fb328c2f2315c42ae6fc06

7 years agoMerge "Adds tests to verify proper marshaling of vectors of interface types."
Treehugger Robot [Fri, 21 Oct 2016 18:36:48 +0000 (18:36 +0000)]
Merge "Adds tests to verify proper marshaling of vectors of interface types."

7 years agoMerge "Use defaultPassthroughServiceImplementation for nfc."
Treehugger Robot [Thu, 20 Oct 2016 21:30:49 +0000 (21:30 +0000)]
Merge "Use defaultPassthroughServiceImplementation for nfc."

7 years agoMerge changes from topic 'boot-control-hal'
Connor O'Brien [Thu, 20 Oct 2016 17:47:36 +0000 (17:47 +0000)]
Merge changes from topic 'boot-control-hal'

* changes:
  Add android.hardware.boot_control@1.0 service.
  Add boot_control HIDL default implementation
  boot_control: Define the boot_control HIDL interface.

7 years agoAdds tests to verify proper marshaling of vectors of interface types.
Andreas Huber [Wed, 19 Oct 2016 21:10:55 +0000 (14:10 -0700)]
Adds tests to verify proper marshaling of vectors of interface types.

Bug: 30570663
Test: hidl_test
Change-Id: I1e4d1f826773abbde6b9019eb6af90ac64007e38

7 years agoAdd methods to test flavor of FMQ supporting unsynchronized writes.
Hridya Valsaraju [Fri, 14 Oct 2016 23:48:01 +0000 (16:48 -0700)]
Add methods to test flavor of FMQ supporting unsynchronized writes.

Test: Built and ran the unit tests.
Bug: 31223183

Change-Id: Ib0c52c4d17d31a24f4c5f5cd96547bcfae673725

7 years agoUse defaultPassthroughServiceImplementation for nfc.
Steven Moreland [Wed, 19 Oct 2016 19:45:53 +0000 (12:45 -0700)]
Use defaultPassthroughServiceImplementation for nfc.

Bug: 32282345
Test: nfc
Change-Id: I4f45a3d4b91ccee2fcd0ca8fe599e090129a02e3

7 years agoAdd android.hardware.boot_control@1.0 service.
Connor O'Brien [Mon, 10 Oct 2016 21:41:35 +0000 (14:41 -0700)]
Add android.hardware.boot_control@1.0 service.

Bug: 31864052
Change-Id: I982077d71a81c0bc8d081f0cc7e83180b97f2b87
Signed-off-by: Connor O'Brien <connoro@google.com>
7 years agoAdd boot_control HIDL default implementation
Connor O'Brien [Mon, 10 Oct 2016 19:31:37 +0000 (12:31 -0700)]
Add boot_control HIDL default implementation

Create basic implementation that passes commands
through to the old HAL implementation.

Bug: 31864052
Test: Ran and compared output to old implementation
Change-Id: I01f4450dc3a1893e13b8fb325ea40cf9c98297be
Signed-off-by: Connor O'Brien <connoro@google.com>
7 years agoboot_control: Define the boot_control HIDL interface.
Alex Deymo [Sat, 1 Oct 2016 02:00:40 +0000 (19:00 -0700)]
boot_control: Define the boot_control HIDL interface.

Bug: 31864052
Merged-In: I9222b140ff51c4d3846b86b03719e2c8e9b7fe47
Change-Id: I9222b140ff51c4d3846b86b03719e2c8e9b7fe47

7 years agoMerge "Adds a test to verify proper marshaling of vectors of arrays in Java"
Andreas Huber [Wed, 19 Oct 2016 19:30:28 +0000 (19:30 +0000)]
Merge "Adds a test to verify proper marshaling of vectors of arrays in Java"

7 years agoAdds a test to verify proper marshaling of vectors of arrays in Java
Andreas Huber [Tue, 18 Oct 2016 20:52:38 +0000 (13:52 -0700)]
Adds a test to verify proper marshaling of vectors of arrays in Java

Bug: 32180328
Test: hidl_test_java
Change-Id: I756ce1d2ce35b7a3a63c6dbafba90e9765d61f64

7 years agohidl_test: Fix failing tests.
Yifan Hong [Thu, 13 Oct 2016 18:21:56 +0000 (11:21 -0700)]
hidl_test: Fix failing tests.

Test: The following succeeds.
croot && cd hardware/interfaces
mma
croot && cd system/tools/hidl
mma
adb shell /data/nativetest64/hidl_test/hidl_test

Bug: 31819198

Change-Id: I40c2338d09d5e80b9bad2d918b7b8c3f2709f434

7 years agoadd default implementation to android.hardware.tests.foo/bar/pointer@1.0
Yifan Hong [Thu, 6 Oct 2016 20:50:49 +0000 (13:50 -0700)]
add default implementation to android.hardware.tests.foo/bar/pointer@1.0

Test: hidl_test
Test: mma

Merged-In: I808423c040099354513db0ad108210fcec17c8a7
Change-Id: I808423c040099354513db0ad108210fcec17c8a7

7 years agoMerge "Revert "Remove test for overloaded function.""
Steven Moreland [Tue, 18 Oct 2016 18:34:03 +0000 (18:34 +0000)]
Merge "Revert "Remove test for overloaded function.""

7 years agoRevert "Remove test for overloaded function."
Steven Moreland [Tue, 18 Oct 2016 18:32:49 +0000 (18:32 +0000)]
Revert "Remove test for overloaded function."

This reverts commit 93800287fb5cf07657d9056bbcdd3f96ce432433.

Change-Id: I95b0aeb64eaf9938c6558e5817bd79c3f2e5496e

7 years agoMerge "Remove test for overloaded function."
Treehugger Robot [Tue, 18 Oct 2016 17:45:27 +0000 (17:45 +0000)]
Merge "Remove test for overloaded function."

7 years agoRemove test for overloaded function.
Steven Moreland [Tue, 18 Oct 2016 00:53:09 +0000 (17:53 -0700)]
Remove test for overloaded function.

Bug: 31758541
Test: hidl_test
Change-Id: Ib02d9e8531ea2b7ec36bf8785e6827cfa45b53ba

7 years agoAdd test for single letter IDs.
Yifan Hong [Mon, 17 Oct 2016 23:57:51 +0000 (16:57 -0700)]
Add test for single letter IDs.

Test: mma

Bug: 32068694
Change-Id: I56659715beaadd8ebb3b9f36558e7ebcdb3e4d27

7 years agoMerge changes from topic 'nfc-style'
Treehugger Robot [Mon, 17 Oct 2016 15:57:16 +0000 (15:57 +0000)]
Merge changes from topic 'nfc-style'

* changes:
  nfc: update default implementation to match style.
  nfc: reflect style guide.

7 years agoModify return values of read/write/config methods to bool
Hridya Valsaraju [Tue, 27 Sep 2016 20:43:57 +0000 (13:43 -0700)]
Modify return values of read/write/config methods to bool

Modify return values of read/write/config methods to bool
for the FMQ unit tests and benchmarks.

Bug: 31780470
Test: Built and ran existing FMQ unit tests and benchmarks

Change-Id: I2b7c9cf073f0c1a2908d48552e258ce21240ae64

7 years agonfc: update default implementation to match style.
Steven Moreland [Mon, 26 Sep 2016 19:41:23 +0000 (12:41 -0700)]
nfc: update default implementation to match style.

Test: make android.hardware.nfc@1.0-impl
Change-Id: I00357d40df1a6b2289f86b33d7a5833e358884d6

7 years agonfc: reflect style guide.
Steven Moreland [Mon, 26 Sep 2016 19:40:29 +0000 (12:40 -0700)]
nfc: reflect style guide.

Test: make android.hardware.nfc@1.0
Change-Id: I19b5c5a8b7e6345152441be149349933774b3de0

7 years agoMerge "Cleanup nfc service code."
Treehugger Robot [Fri, 14 Oct 2016 07:42:18 +0000 (07:42 +0000)]
Merge "Cleanup nfc service code."

7 years agoAdd Bluetooth HAL definition
Myles Watson [Mon, 12 Sep 2016 17:58:42 +0000 (10:58 -0700)]
Add Bluetooth HAL definition

Test: compiles
Bug: 31972505
Change-Id: I7608b0814c9ca697b21c9e115cfcd81ab1364892

7 years agoCleanup nfc service code.
Steven Moreland [Thu, 13 Oct 2016 16:33:18 +0000 (09:33 -0700)]
Cleanup nfc service code.

Test: mma
Change-Id: Ie65c5bfde292107bec567a297e86eebf5cd7fa41

7 years agoMerge "Added test for overloading."
Treehugger Robot [Tue, 11 Oct 2016 23:24:46 +0000 (23:24 +0000)]
Merge "Added test for overloading."

7 years agoAdded test for overloading.
Steven Moreland [Thu, 6 Oct 2016 22:05:35 +0000 (15:05 -0700)]
Added test for overloading.

Test: make, hidl_test
Bug: 31758541
Change-Id: Ia0fdad2f0b0155065a7dec5526ab5d14a9ec1f52

7 years agowifi: Invoke failure callbacks
Roshan Pius [Fri, 7 Oct 2016 16:21:42 +0000 (09:21 -0700)]
wifi: Invoke failure callbacks

Invoke the failure callbacks for |requestChipDebugInfo|,
|requestDriverDebugDump| and |requestFirmwareDebugDump| methods.

Bug: 32014425
Test: Compiles
Change-Id: I49b8ae93fe846df6d9663b10d2a70eb89bd00931

7 years agowifi: Add WifiRttController object
Roshan Pius [Fri, 7 Oct 2016 03:23:47 +0000 (20:23 -0700)]
wifi: Add WifiRttController object

Create the WifiRttController object and add the createRttController
method in WifiChip.

Bug: 31991232
Test: Compiles
Change-Id: I34649097c96488c660bef5acceac1a6478f80dca

7 years agowifi: Add Iface related method implementations in WifiChip
Roshan Pius [Thu, 6 Oct 2016 23:47:38 +0000 (16:47 -0700)]
wifi: Add Iface related method implementations in WifiChip

Add the iface creation/retrieval/list method implementations in WifiChip.
WifiChip does not yet support the chip mode configuration. So, all
|createIface| method calls succeed today. Once the mode configuration
changes are in place, we will deny iface creation requests depending on
the iface combination supported in the current mode.

The iface objects are all invalidated and deleted on mode switches and
when HAL is stopped.

While there,
Change the |callbacks_| member to std::vector instead of std::set. We
don't really need a set to store the list of callbacks.

Bug: 31943042
Test: Compiles
Change-Id: Ic94864c8b11aabbe569b5157d68d6056364a3c4c

7 years agowifi: Add the various iface object implementation
Roshan Pius [Thu, 6 Oct 2016 20:16:23 +0000 (13:16 -0700)]
wifi: Add the various iface object implementation

This CL adds the implementation classes for the various iface HIDL
interfaces defined. These classes implement the
|getName| & |getType| methods in the Iface HIDL interface.

Integration of these objects with WifiChip class is implemented in the
next CL.

Bug: 31943042
Test: Compiles
Change-Id: I219afd6441e15c76cf7c61f7bcd2b3568dba2b98

7 years agowifi: Remove "Wlan" prefix from wifi_legacy_hal public methods
Roshan Pius [Thu, 6 Oct 2016 21:37:15 +0000 (14:37 -0700)]
wifi: Remove "Wlan" prefix from wifi_legacy_hal public methods

All the legacy HAL API's in the function table uses the "wlan0"
interface handle for the various operations. But, this is an internal
detail that should be abstracted inside WifiLegacyHal class. So, rename
the public methods to remove the "Wlan" prefix from them.

Also, add methods to fetch the iface names to use for the various types
of HAL.

Bug: 31943042
Test: Compiles
Change-Id: I35a6cdea0ad7cff295d33c0245953258129fba43

7 years agowifi: Add support for multiple chips in IWifi
Roshan Pius [Mon, 10 Oct 2016 15:03:42 +0000 (08:03 -0700)]
wifi: Add support for multiple chips in IWifi

The modified HIDL interface supports multiple chip instances on the
device. Modify the |IWifi| interface implementation to support the new
methods.

NOTE: The legacy HAL implementation will continue to only expose 1 chip.

While there,
Change the |callbacks_| member to std::vector instead of std::set. We
don't really need a set to store the list of callbacks.

Bug: 32003988
Test: Compiles
Change-Id: I31e704100f716e223095890279bdf93d2a04377e

7 years agowifi(interface): Add RTT Controller object
Roshan Pius [Thu, 6 Oct 2016 18:08:17 +0000 (11:08 -0700)]
wifi(interface): Add RTT Controller object

Create a RTT controller object to use for initiating all the RTT related
HAL opertations.
Since we don't want to fix the iface on which to initiate RTT operations,
these methods will be rooted in a new standalone object |RttController|.
Framework can decide to intiate an instance of |RttController| on a
specified iface or let the implementation pick one.

Bug: 31991232
Test: Interface compiles.
Change-Id: I65f7a7babd72db26ce6549f572abd9ef73700c82

7 years agowifi(interface): Add Iface objects
Roshan Pius [Wed, 5 Oct 2016 17:19:06 +0000 (10:19 -0700)]
wifi(interface): Add Iface objects

Create a child object under IWifiChip to represent each interface
within the chip. Each iface object has a |type| & |ifname| which should
help us uniquely identify them. This should help us expose methods that
are applicable only to a specific interface type.

While there,
Assign a unique id to every chip on the device.
Add IWifi.listChipIds() to retrieve the list of chip Id's avaiable on the
device. IWifi.getChip() will now use the provided Id to retrieve the
corresponding IWifiChip object(because HIDL language doesn't support
vec<HIDL objects>).

Bug: 31943042
Bug: 32003988
Test: Interface compiles (not implementation)
Change-Id: I723007566ca4220362c02d0f452753fee4e31fce

7 years agoMerge "Initial version of radio hal"
Treehugger Robot [Mon, 10 Oct 2016 23:53:10 +0000 (23:53 +0000)]
Merge "Initial version of radio hal"

7 years agoInitial version of radio hal
Amit Mahajan [Fri, 12 Aug 2016 22:25:10 +0000 (15:25 -0700)]
Initial version of radio hal

Test: No build issues. Unused interface; nothing to test yet.

Bug: 32020264
Change-Id: Ie57eb43b777dadbc0b0350f2e33227be3f1d65f1

7 years agoMerge "Add test for importing a single type."
Yifan Hong [Mon, 10 Oct 2016 19:49:45 +0000 (19:49 +0000)]
Merge "Add test for importing a single type."

7 years agoAdd test for importing a single type.
Yifan Hong [Wed, 5 Oct 2016 19:15:51 +0000 (12:15 -0700)]
Add test for importing a single type.

Test: `cd system/tools/hidl && mma`

Bug: 31821285

Change-Id: I0be97b16b84f76b64c09f9dc52709416601cbbdf

7 years agoAdd test for fixing 0XFF (upper X)
Yifan Hong [Fri, 7 Oct 2016 23:32:57 +0000 (16:32 -0700)]
Add test for fixing 0XFF (upper X)

Bug: 31983995

Test: make android.hardware.tests.expression@1.0
Change-Id: I05bed0164c5cc988843a60d1efc8f5aeb4986b9b

7 years agoMerge "Revert "Revert "Revert "nfc: reflect style guide.""""
Steven Moreland [Thu, 6 Oct 2016 02:51:18 +0000 (02:51 +0000)]
Merge "Revert "Revert "Revert "nfc: reflect style guide.""""

7 years agoRevert "Revert "Revert "nfc: update default implementation to match style."""
Steven Moreland [Thu, 6 Oct 2016 02:49:36 +0000 (02:49 +0000)]
Revert "Revert "Revert "nfc: update default implementation to match style."""

This reverts commit 22be21e8647a587ee8f2effb57f38c793d90c2c5.

Change-Id: I0534b0eb87623091685fa0e2d94d744d2aeaa4ca

7 years agoRevert "Revert "Revert "nfc: reflect style guide."""
Steven Moreland [Thu, 6 Oct 2016 02:49:38 +0000 (02:49 +0000)]
Revert "Revert "Revert "nfc: reflect style guide."""

This reverts commit 106bc9d27a271b316ce3b4237d59a908c23a4ec0.

Change-Id: Ie2e0ad4aeaa58c45bab05234615bd7fa02b84c1a

7 years agoMerge "Add test for missing package name for FQName lookup."
Treehugger Robot [Thu, 6 Oct 2016 00:19:36 +0000 (00:19 +0000)]
Merge "Add test for missing package name for FQName lookup."

7 years agoMerge changes from topic 'rename_wifi_hal'
Treehugger Robot [Wed, 5 Oct 2016 23:35:12 +0000 (23:35 +0000)]
Merge changes from topic 'rename_wifi_hal'

* changes:
  wifi(interface): Rename interface to iface
  wifi(interface): Add/Correct docstring params
  wifi: Add implementation of driver/firmware memory dumps
  wifi: Add Implementation of IWifiChip.requestChipDebugInfo
  wifi: Use hal_tool & if_tool
  wifi: Restructure wifi legacy HAL implementation
  wifi: Change namespace
  wifi: Move legacy HAL implementation

7 years agoAdd test for missing package name for FQName lookup.
Yifan Hong [Wed, 5 Oct 2016 22:19:46 +0000 (15:19 -0700)]
Add test for missing package name for FQName lookup.

Bug: 31705664

Test: `cd system/tools/hidl && mma`
Change-Id: If3568f1d1e77ad97ccfce5eac5938048f3852560

7 years agoAdd test for vec<vec<T>> as a return value.
Yifan Hong [Wed, 5 Oct 2016 20:43:53 +0000 (13:43 -0700)]
Add test for vec<vec<T>> as a return value.

Bug: 31955917

Test: hidl_test
Change-Id: I9ae7f9b04126261210cb4621266676727877d92f

7 years agowifi(interface): Rename interface to iface
Roshan Pius [Wed, 5 Oct 2016 00:01:01 +0000 (17:01 -0700)]
wifi(interface): Rename interface to iface

The HIDL objects are called "interface", so rename the wifi interface to
iface to distinguish between them better.

This is especially needed in the follow up CL.

Bug: 31943042
Test: mmm -j32 hardware/interfaces/wifi/1.0/
Change-Id: I3bc34930f75159d26321c0e071af9084d0585508

7 years agowifi(interface): Add/Correct docstring params
Roshan Pius [Tue, 4 Oct 2016 22:08:05 +0000 (15:08 -0700)]
wifi(interface): Add/Correct docstring params

Changes in the CL:
1. Add missing docstring params in the HIDL interface.
2. Reword some method docs. Occurences of "will" is replaced
by "must" (based on comments received on supplicant HIDL interface:
go/aog/275115).
3. Add onFailure callbacks for all the methods and added docstrings for
them.

Bug: 31352200
Test: mmma -j32 hardware/interfaces/wifi/1.0
Change-Id: Ib7152625851023d6244f742bb77a8fdc0829e00d

7 years agoMerge "Revert "Revert "nfc: update default implementation to match style."""
Treehugger Robot [Wed, 5 Oct 2016 17:22:28 +0000 (17:22 +0000)]
Merge "Revert "Revert "nfc: update default implementation to match style."""

7 years agowifi: Add implementation of driver/firmware memory dumps
Roshan Pius [Mon, 3 Oct 2016 21:09:57 +0000 (14:09 -0700)]
wifi: Add implementation of driver/firmware memory dumps

Bug: 31352200
Test: mmma -j32 hardware/interfaces/wifi/1.0/default
Change-Id: I25d42cfd4c2b1ea7e63bdc036f37f81aed93c565

7 years agowifi: Add Implementation of IWifiChip.requestChipDebugInfo
Roshan Pius [Mon, 3 Oct 2016 19:49:58 +0000 (12:49 -0700)]
wifi: Add Implementation of IWifiChip.requestChipDebugInfo

Bug: 31352200
Test: mmma -j32 hardware/interfaces/wifi/1.0/default
Change-Id: Id0c02e37dac66de6f830785881cb67f113c0fb19

7 years agoRevert "Revert "nfc: update default implementation to match style.""
Steven Moreland [Tue, 4 Oct 2016 17:10:18 +0000 (17:10 +0000)]
Revert "Revert "nfc: update default implementation to match style.""

This reverts commit 3768be324bc81b04f4a3a9dfbbe3324dc13cc5f0.

Change-Id: Ifecd3ac227af14b49eba83c1126d51996ce3b8f5

7 years agoRevert "Revert "nfc: reflect style guide.""
Steven Moreland [Tue, 4 Oct 2016 17:10:17 +0000 (17:10 +0000)]
Revert "Revert "nfc: reflect style guide.""

This reverts commit 69bb15e06eea6a0e437d388273c4810682393162.

Change-Id: Icd6ac819606c83e1518c4b6252f6416f55e618fd

7 years agowifi: Use hal_tool & if_tool
Roshan Pius [Mon, 3 Oct 2016 20:33:23 +0000 (13:33 -0700)]
wifi: Use hal_tool & if_tool

Changes in the CL:
1. Currently |WifiNative.cpp|, uses |hal_tool| to initialize the
function table and |if_tool| to set the interface up when |startHAL|
method is invoked. Use the same sequence in the HIDL'ized HAL.
2. Remove the assertion if the function table initialization fails. This
will result in a failure indication on starting the HAL now.

Bug: 31352200
Test: mmma -j32 hardware/interfaces/wifi/1.0/default
Change-Id: I268845ed62158b6a2ff36659f0bb15c4100a7222

7 years agowifi: Restructure wifi legacy HAL implementation
Roshan Pius [Thu, 29 Sep 2016 16:03:59 +0000 (09:03 -0700)]
wifi: Restructure wifi legacy HAL implementation

Restructured the existing code to create a new class called
|WifiLegacyHal|. This class will be used as a wrapper to invoke
all the legacy HAL functions and handle the "C" style callbacks.

Bug: 31936700
Test: mmma -j32 hardware/interfaces/wifi/1.0/default
Change-Id: I63e8543f49886f8446101320a97d1e96e30d1035

7 years agowifi: Change namespace
Roshan Pius [Tue, 4 Oct 2016 20:03:58 +0000 (13:03 -0700)]
wifi: Change namespace

Move the implementation to "android::hardware::wifi:V1_0::implementation"
namespace.
This is following the style guidelines in NFC HIDL
implementation(go/aog/279421).

While there,
Run checkstyle to correct formatting issues.

Bug:31936700
Test: mmma -j32 hardware/interfaces/wifi/1.0/default
Change-Id: I5600a60a0041b3318ed9289823ec335a8ed8a83d

7 years agowifi: Move legacy HAL implementation
Roshan Pius [Mon, 3 Oct 2016 21:53:58 +0000 (14:53 -0700)]
wifi: Move legacy HAL implementation

Changes in the CL:
1. Move the legacy HAL implementation from
"frameworks/opt/net/wifi/wifi_hal_legacy" to
"hardware/interfaces/wifi/1.0/default".
2. Renamed the .rc file and the module name in makefile to
conform to the HIDL style guide.

Files renamed from:
wifi_hal_service.cpp/h -> wifi.cpp/h
wifi_chip_service.cpp/h -> wifi_chip.cpp/h
main.cpp -> service

Bug: 31821133
Test: mmma -j32 hardware/interfaces/wifi/1.0/default
Change-Id: I5e65e2fdb5596346bde6963588031dcea42d633a

7 years agoAdd test for referring to nested types.
Yifan Hong [Mon, 3 Oct 2016 17:30:55 +0000 (10:30 -0700)]
Add test for referring to nested types.

Bug: 31821285

Test: `make hidl_test && adb sync && adb shell hidl_test`
Change-Id: Iae030baa5bbe6e890512b494a0b657163c6a99a6

7 years agoMerge "Revert "nfc: reflect style guide.""
Martijn Coenen [Tue, 4 Oct 2016 16:44:14 +0000 (16:44 +0000)]
Merge "Revert "nfc: reflect style guide.""

7 years agoRevert "nfc: update default implementation to match style."
Steven Moreland [Tue, 4 Oct 2016 16:25:35 +0000 (16:25 +0000)]
Revert "nfc: update default implementation to match style."

This reverts commit 6b6381cb58aba593951f0718f9beecef0b49e284.

Change-Id: I2891a4ea774ad0047d9f99074fe773808dae0f7c

7 years agoRevert "nfc: reflect style guide."
Steven Moreland [Tue, 4 Oct 2016 16:25:40 +0000 (16:25 +0000)]
Revert "nfc: reflect style guide."

This reverts commit e0c416a6f247992089663095f29a9e50cef2ef99.

Change-Id: I3fec772343d88a29225aef61bb549fef8ac9b797

7 years agoMerge changes from topic 'nfc-style'
Steven Moreland [Tue, 4 Oct 2016 14:33:40 +0000 (14:33 +0000)]
Merge changes from topic 'nfc-style'

* changes:
  nfc: update default implementation to match style.
  nfc: reflect style guide.

7 years agoAuto hardware/interfaces/Android.bp
Steven Moreland [Mon, 3 Oct 2016 20:53:07 +0000 (13:53 -0700)]
Auto hardware/interfaces/Android.bp

Bug: 31909444
Test: make various interfaces, mma -j
Change-Id: Ie2de39572e482415b5279110586a0cb7e5220c8e

7 years agonfc: update default implementation to match style.
Steven Moreland [Mon, 26 Sep 2016 19:41:23 +0000 (12:41 -0700)]
nfc: update default implementation to match style.

Test: make android.hardware.nfc@1.0-impl
Change-Id: Ib76d663fcf28816bd2ba57f5fbd5ae0033b620f5

7 years agonfc: reflect style guide.
Steven Moreland [Mon, 26 Sep 2016 19:40:29 +0000 (12:40 -0700)]
nfc: reflect style guide.

Test: make android.hardware.nfc@1.0
Change-Id: I60c1589492752753c362dc9766ebc7776b5e6e6e

7 years agoConvert to Android.bp
Dan Willemsen [Wed, 28 Sep 2016 23:12:24 +0000 (16:12 -0700)]
Convert to Android.bp

See build/soong/README.md for more information.

Bug: 31742855
Test: mma -j
Change-Id: Icb93f3b1b2caeb5e9c00f88ca35841b927ad075d

7 years agoTests for Reference Support.
Yifan Hong [Tue, 23 Aug 2016 23:50:55 +0000 (16:50 -0700)]
Tests for Reference Support.

Bug: 31300815 pointer support
Bug: 31349114 nested types
Bug: 31757611 Parcel ref# cap

Test: `make hidl_test && adb sync && adb shell hidl_test`
      Only works with a kernel patch.

Change-Id: I48351b1bf861a4d2d77f823f7242524156cde1e7

7 years agoMerge "Use MQDescriptorSync instead of MQdescriptor in interface"
Treehugger Robot [Thu, 29 Sep 2016 16:48:53 +0000 (16:48 +0000)]
Merge "Use MQDescriptorSync instead of MQdescriptor in interface"

7 years agoMerge "Default binderized implementation of android.hardware.nfc@1.0"
Martijn Coenen [Thu, 29 Sep 2016 07:41:33 +0000 (07:41 +0000)]
Merge "Default binderized implementation of android.hardware.nfc@1.0"

7 years agoMerge "wifi: Move supplicant HIDL interfaces to subfolder"
Treehugger Robot [Wed, 28 Sep 2016 22:38:53 +0000 (22:38 +0000)]
Merge "wifi: Move supplicant HIDL interfaces to subfolder"

7 years agoDefault binderized implementation of android.hardware.nfc@1.0
Iliyan Malchev [Mon, 26 Sep 2016 16:57:20 +0000 (09:57 -0700)]
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>
7 years agoVerify that method arguments and results can share the same name.
Andreas Huber [Tue, 27 Sep 2016 21:54:20 +0000 (14:54 -0700)]
Verify that method arguments and results can share the same name.

Bug: 30778622
Test: hidl_test, hidl_test_java
Change-Id: Idb35a03337010c1fb63c2896f216392398e03e0c

7 years agowifi: Move supplicant HIDL interfaces to subfolder
Roshan Pius [Wed, 28 Sep 2016 20:35:42 +0000 (13:35 -0700)]
wifi: Move supplicant HIDL interfaces to subfolder

Move all the supplicant HIDL interfaces to a separate subfolder.

Bug: 31800508
Test: Compiles
Change-Id: I09bfb17b626312e8be819238ab2edbb83ca04322

7 years agowifi(hidl): Add supplicant HIDL interface
Roshan Pius [Thu, 15 Sep 2016 20:02:25 +0000 (13:02 -0700)]
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