OSDN Git Service

android-x86/hardware-interfaces.git
7 years agoMerge "Cleanup nfc service code." am: a91254d196
Steven Moreland [Fri, 14 Oct 2016 07:49:48 +0000 (07:49 +0000)]
Merge "Cleanup nfc service code." am: a91254d196
am: 8c2e2ce86d

Change-Id: Iec0e3d87ce30625fb5d574817a43e67f51d0a60a

7 years agoMerge "Cleanup nfc service code."
Steven Moreland [Fri, 14 Oct 2016 07:46:18 +0000 (07:46 +0000)]
Merge "Cleanup nfc service code."
am: a91254d196

Change-Id: I5bb71ea5f876bc44519200fc6e640f5cd5b61ebb

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 am: acfbd25247
Myles Watson [Thu, 13 Oct 2016 22:48:41 +0000 (22:48 +0000)]
Add Bluetooth HAL definition am: acfbd25247
am: 97e5e07f44

Change-Id: I1e6f52a16b0018a7f5a53a8d6af9154e37c623ee

7 years agoAdd Bluetooth HAL definition
Myles Watson [Thu, 13 Oct 2016 22:46:41 +0000 (22:46 +0000)]
Add Bluetooth HAL definition
am: acfbd25247

Change-Id: I6af87217e138df95815178c0fd9c78102cac0a77

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." am: a3ba3c359c
Steven Moreland [Wed, 12 Oct 2016 00:25:41 +0000 (00:25 +0000)]
Merge "Added test for overloading." am: a3ba3c359c
am: 51eac9ecae

Change-Id: I4e57905a1d5d22759021db4412f44b635da6e494

7 years agoMerge "Added test for overloading."
Steven Moreland [Wed, 12 Oct 2016 00:19:07 +0000 (00:19 +0000)]
Merge "Added test for overloading."
am: a3ba3c359c

Change-Id: I4deea63a5191b3ca8191a59b4c48aef2c2318a54

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 am: f243631af8
Roshan Pius [Tue, 11 Oct 2016 20:56:47 +0000 (20:56 +0000)]
wifi: Invoke failure callbacks am: f243631af8
am: de95c70497

Change-Id: Id208c0abe50766311e7597f47a943873b78fdbb6

7 years agowifi: Add WifiRttController object am: 5926828728
Roshan Pius [Tue, 11 Oct 2016 20:56:46 +0000 (20:56 +0000)]
wifi: Add WifiRttController object am: 5926828728
am: 6de20076a3

Change-Id: I42573cf460d4a73e07ef57afdd32f59393eb0890

7 years agowifi: Add Iface related method implementations in WifiChip am: 35d958c43f
Roshan Pius [Tue, 11 Oct 2016 20:56:44 +0000 (20:56 +0000)]
wifi: Add Iface related method implementations in WifiChip am: 35d958c43f
am: 11cbff5cee

Change-Id: I0d48778f5eb4be3ece745082b79cffa8f69a4ae8

7 years agowifi: Add the various iface object implementation am: 3e2d671a4c
Roshan Pius [Tue, 11 Oct 2016 20:56:43 +0000 (20:56 +0000)]
wifi: Add the various iface object implementation am: 3e2d671a4c
am: 6179a92b9a

Change-Id: I1bfed5ab6fe2e765abfdcde1b81e1127e1c964f6

7 years agowifi: Remove "Wlan" prefix from wifi_legacy_hal public methods am: ab5c471b0b
Roshan Pius [Tue, 11 Oct 2016 20:56:41 +0000 (20:56 +0000)]
wifi: Remove "Wlan" prefix from wifi_legacy_hal public methods am: ab5c471b0b
am: 638c7d6fa4

Change-Id: I8f2d397c50478cb65af8fae8d99fe8c76f2c8b21

7 years agowifi: Add support for multiple chips in IWifi am: cd566bddd7
Roshan Pius [Tue, 11 Oct 2016 20:56:40 +0000 (20:56 +0000)]
wifi: Add support for multiple chips in IWifi am: cd566bddd7
am: f7702fcfba

Change-Id: If6ca4867325da53ffe88f95d7046539cb903cd1c

7 years agowifi(interface): Add RTT Controller object am: fcbf923d3a
Roshan Pius [Tue, 11 Oct 2016 20:56:39 +0000 (20:56 +0000)]
wifi(interface): Add RTT Controller object am: fcbf923d3a
am: 83090ab624

Change-Id: I229a08b8283a26b64244b4876e773f995c2d9062

7 years agowifi(interface): Add Iface objects am: adcfba4b09
Roshan Pius [Tue, 11 Oct 2016 20:56:37 +0000 (20:56 +0000)]
wifi(interface): Add Iface objects am: adcfba4b09
am: 68e09f0c35

Change-Id: I49a49e23c72ecd54c0283d9291a1c983bb86e745

7 years agowifi: Invoke failure callbacks
Roshan Pius [Tue, 11 Oct 2016 20:49:10 +0000 (20:49 +0000)]
wifi: Invoke failure callbacks
am: f243631af8

Change-Id: Ida5787f25b0ab8cfb7a42b7d02f39871771c27d2

7 years agowifi: Add WifiRttController object
Roshan Pius [Tue, 11 Oct 2016 20:49:09 +0000 (20:49 +0000)]
wifi: Add WifiRttController object
am: 5926828728

Change-Id: I9d4b29916e3873b7ddba4dbf32fa51c1ceab8c91

7 years agowifi: Add Iface related method implementations in WifiChip
Roshan Pius [Tue, 11 Oct 2016 20:49:08 +0000 (20:49 +0000)]
wifi: Add Iface related method implementations in WifiChip
am: 35d958c43f

Change-Id: Id9009dd7b246940de52fbefeb251944d9106b8e5

7 years agowifi: Add the various iface object implementation
Roshan Pius [Tue, 11 Oct 2016 20:49:07 +0000 (20:49 +0000)]
wifi: Add the various iface object implementation
am: 3e2d671a4c

Change-Id: Ibd2223e329f8fd6c00a8782581abe3d428012a60

7 years agowifi: Remove "Wlan" prefix from wifi_legacy_hal public methods
Roshan Pius [Tue, 11 Oct 2016 20:49:06 +0000 (20:49 +0000)]
wifi: Remove "Wlan" prefix from wifi_legacy_hal public methods
am: ab5c471b0b

Change-Id: I6cad5d5a233c26aee4a8a9667354a8dfad958e82

7 years agowifi: Add support for multiple chips in IWifi
Roshan Pius [Tue, 11 Oct 2016 20:49:04 +0000 (20:49 +0000)]
wifi: Add support for multiple chips in IWifi
am: cd566bddd7

Change-Id: I474546e49179f63a1e65dd6f5281c21441f5228d

7 years agowifi(interface): Add RTT Controller object
Roshan Pius [Tue, 11 Oct 2016 20:49:03 +0000 (20:49 +0000)]
wifi(interface): Add RTT Controller object
am: fcbf923d3a

Change-Id: I511b158bf8bafb7dd54fec18941e35b14cec380f

7 years agowifi(interface): Add Iface objects
Roshan Pius [Tue, 11 Oct 2016 20:49:02 +0000 (20:49 +0000)]
wifi(interface): Add Iface objects
am: adcfba4b09

Change-Id: I429ea70427a09948ded4089856bda67303b6b075

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" am: 2078f22513
Amit Mahajan [Tue, 11 Oct 2016 00:08:58 +0000 (00:08 +0000)]
Merge "Initial version of radio hal" am: 2078f22513
am: 969b65155d

Change-Id: Ie663469d6cc4103893d675b4bb52668dc701c18a

7 years agoMerge "Initial version of radio hal"
Amit Mahajan [Tue, 11 Oct 2016 00:02:18 +0000 (00:02 +0000)]
Merge "Initial version of radio hal"
am: 2078f22513

Change-Id: I6ad9850af03e79c6be37fbc3d717c2f882812c4d

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." am: a543fe6ab0
Yifan Hong [Mon, 10 Oct 2016 20:04:30 +0000 (20:04 +0000)]
Merge "Add test for importing a single type." am: a543fe6ab0
am: ccdc46999a

Change-Id: I249ed97a6c000d655d1273b59a69b5cf4f1d4567

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

Change-Id: Iada329b14b66825933f6b42b9eb259584276b9cd

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 fixing 0XFF (upper X) am: e312006887
Yifan Hong [Sat, 8 Oct 2016 10:47:01 +0000 (10:47 +0000)]
Add test for fixing 0XFF (upper X) am: e312006887
am: 55c8f5979f

Change-Id: I0d97d1541096f645bdefe4e27107e1f8aa42611e

7 years agoAdd test for fixing 0XFF (upper X)
Yifan Hong [Sat, 8 Oct 2016 10:42:31 +0000 (10:42 +0000)]
Add test for fixing 0XFF (upper X)
am: e312006887

Change-Id: I8aa7620f3acb68008ddd56c45d8cc2af596b310e

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."""" am: 13e19421b3
Steven Moreland [Thu, 6 Oct 2016 03:00:55 +0000 (03:00 +0000)]
Merge "Revert "Revert "Revert "nfc: reflect style guide."""" am: 13e19421b3
am: 56fb3ee908

Change-Id: I1abaa6ab634c08a32d833dd4188754c52fe77b13

7 years agoRevert "Revert "Revert "nfc: update default implementation to match style.""" am...
Steven Moreland [Thu, 6 Oct 2016 03:00:17 +0000 (03:00 +0000)]
Revert "Revert "Revert "nfc: update default implementation to match style.""" am: 6d4d412617
am: b947073aad

Change-Id: I062cab50c506f42c1686275dc21c7052613e800f

7 years agoRevert "Revert "Revert "nfc: reflect style guide.""" am: 20ea4ea288
Steven Moreland [Thu, 6 Oct 2016 03:00:15 +0000 (03:00 +0000)]
Revert "Revert "Revert "nfc: reflect style guide.""" am: 20ea4ea288
am: 77f08aaff0

Change-Id: I79257dc8ae23aca3a3bcb0c6ae45124f99a5ec8a

7 years agoMerge "Revert "Revert "Revert "nfc: reflect style guide.""""
Steven Moreland [Thu, 6 Oct 2016 02:57:30 +0000 (02:57 +0000)]
Merge "Revert "Revert "Revert "nfc: reflect style guide.""""
am: 13e19421b3

Change-Id: I32627c1cadf883d5db0649bca3f8974388cd64ad

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

Change-Id: I0fdeaa060de1232ae43809ad3ae266e9b4cd67fd

7 years agoRevert "Revert "Revert "nfc: reflect style guide."""
Steven Moreland [Thu, 6 Oct 2016 02:56:44 +0000 (02:56 +0000)]
Revert "Revert "Revert "nfc: reflect style guide."""
am: 20ea4ea288

Change-Id: I1113a2fb4d8647f11d5269ea59a487fa5466945f

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." am: e57188f95e
Yifan Hong [Thu, 6 Oct 2016 00:27:12 +0000 (00:27 +0000)]
Merge "Add test for missing package name for FQName lookup." am: e57188f95e
am: 2c11d494b2

Change-Id: I021cd017c46e233c92d60004d01b323376d85e95

7 years agoMerge "Add test for missing package name for FQName lookup."
Yifan Hong [Thu, 6 Oct 2016 00:24:11 +0000 (00:24 +0000)]
Merge "Add test for missing package name for FQName lookup."
am: e57188f95e

Change-Id: I28977cab5f679f420d8d4f9fa175d6c46a434373

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' am: 73e6598317
Roshan Pius [Wed, 5 Oct 2016 23:43:38 +0000 (23:43 +0000)]
Merge changes from topic 'rename_wifi_hal' am: 73e6598317
am: 5a225ae795

Change-Id: Ie4550fa038c6455b007c694a7626c842ec0991bc

7 years agowifi(interface): Rename interface to iface am: 271f2c2d9c
Roshan Pius [Wed, 5 Oct 2016 23:43:37 +0000 (23:43 +0000)]
wifi(interface): Rename interface to iface am: 271f2c2d9c
am: e12a119446

Change-Id: I84582766bb6a223caf09ea3caa9174bf801edcdb

7 years agowifi(interface): Add/Correct docstring params am: 6f31d92e59
Roshan Pius [Wed, 5 Oct 2016 23:43:36 +0000 (23:43 +0000)]
wifi(interface): Add/Correct docstring params am: 6f31d92e59
am: f5e1b72fac

Change-Id: I214eb40e37891ad60be3087e93cb1f9ba2810e84

7 years agowifi: Add implementation of driver/firmware memory dumps am: cdb77f3cf2
Roshan Pius [Wed, 5 Oct 2016 23:43:35 +0000 (23:43 +0000)]
wifi: Add implementation of driver/firmware memory dumps am: cdb77f3cf2
am: 7397e8b933

Change-Id: Iae551ba503f1222cca8c871ddf0d9a659ae539e2

7 years agowifi: Add Implementation of IWifiChip.requestChipDebugInfo am: 4b26c832ed
Roshan Pius [Wed, 5 Oct 2016 23:43:34 +0000 (23:43 +0000)]
wifi: Add Implementation of IWifiChip.requestChipDebugInfo am: 4b26c832ed
am: 28c1a422f2

Change-Id: I066124216ed6c2795dbb71897cee542abecd4d68

7 years agowifi: Use hal_tool & if_tool am: 908a69a53a
Roshan Pius [Wed, 5 Oct 2016 23:43:33 +0000 (23:43 +0000)]
wifi: Use hal_tool & if_tool am: 908a69a53a
am: 01f430f31f

Change-Id: Ie879313418dd97a3a09c234f322d8e980ddc4200

7 years agowifi: Restructure wifi legacy HAL implementation am: aabe575536
Roshan Pius [Wed, 5 Oct 2016 23:43:31 +0000 (23:43 +0000)]
wifi: Restructure wifi legacy HAL implementation am: aabe575536
am: e9301b4c57

Change-Id: I274dba8a79186f58284688ad7c5b9762d93aec0d

7 years agowifi: Change namespace am: 79a9975d07
Roshan Pius [Wed, 5 Oct 2016 23:43:30 +0000 (23:43 +0000)]
wifi: Change namespace am: 79a9975d07
am: 162f178af9

Change-Id: I7b6357236b1c2f06e9b4bdbc3459b0dde176d441

7 years agowifi: Move legacy HAL implementation am: 3c4e8a358c
Roshan Pius [Wed, 5 Oct 2016 23:43:29 +0000 (23:43 +0000)]
wifi: Move legacy HAL implementation am: 3c4e8a358c
am: 2e5f1858e4

Change-Id: I0d1192a37b1ec7a9328cff5e73b2abd031f1f3e3

7 years agoMerge changes from topic 'rename_wifi_hal'
Roshan Pius [Wed, 5 Oct 2016 23:39:04 +0000 (23:39 +0000)]
Merge changes from topic 'rename_wifi_hal'
am: 73e6598317

Change-Id: I57f299c01135271fa6fbb16d30d3ccf62c415b33

7 years agowifi(interface): Rename interface to iface
Roshan Pius [Wed, 5 Oct 2016 23:39:02 +0000 (23:39 +0000)]
wifi(interface): Rename interface to iface
am: 271f2c2d9c

Change-Id: I623c387824deba3e883cf68c032a897ebcac907a

7 years agowifi(interface): Add/Correct docstring params
Roshan Pius [Wed, 5 Oct 2016 23:39:01 +0000 (23:39 +0000)]
wifi(interface): Add/Correct docstring params
am: 6f31d92e59

Change-Id: Icf70fe64c660ec05d48054fe7ac01caccef65240

7 years agowifi: Add implementation of driver/firmware memory dumps
Roshan Pius [Wed, 5 Oct 2016 23:39:00 +0000 (23:39 +0000)]
wifi: Add implementation of driver/firmware memory dumps
am: cdb77f3cf2

Change-Id: I11fb9cc47f84a49b4a836da28266089f9971768c

7 years agowifi: Add Implementation of IWifiChip.requestChipDebugInfo
Roshan Pius [Wed, 5 Oct 2016 23:38:59 +0000 (23:38 +0000)]
wifi: Add Implementation of IWifiChip.requestChipDebugInfo
am: 4b26c832ed

Change-Id: I9c5f107d0978ee71a415e12fbb11efa8f616ead4

7 years agowifi: Use hal_tool & if_tool
Roshan Pius [Wed, 5 Oct 2016 23:38:58 +0000 (23:38 +0000)]
wifi: Use hal_tool & if_tool
am: 908a69a53a

Change-Id: I8b5260f1f02124ba71fb52b306f29f43d1d11d96

7 years agowifi: Restructure wifi legacy HAL implementation
Roshan Pius [Wed, 5 Oct 2016 23:38:56 +0000 (23:38 +0000)]
wifi: Restructure wifi legacy HAL implementation
am: aabe575536

Change-Id: I1414455e7a64efbfe1556a3e0e74370d54db340f

7 years agowifi: Change namespace
Roshan Pius [Wed, 5 Oct 2016 23:38:55 +0000 (23:38 +0000)]
wifi: Change namespace
am: 79a9975d07

Change-Id: I00ad528928fdb6fad22dacb7658ce9dbf5817a2b

7 years agowifi: Move legacy HAL implementation
Roshan Pius [Wed, 5 Oct 2016 23:38:54 +0000 (23:38 +0000)]
wifi: Move legacy HAL implementation
am: 3c4e8a358c

Change-Id: I9b91ce2502601d2b3181b17a31273309ddfcf27c

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 vec<vec<T>> as a return value. am: 223b82a07d
Yifan Hong [Wed, 5 Oct 2016 22:58:57 +0000 (22:58 +0000)]
Add test for vec<vec<T>> as a return value. am: 223b82a07d
am: b364daa90e

Change-Id: Id2e518a2d3cc84957060465d634f3c95263879e8

7 years agoAdd test for vec<vec<T>> as a return value.
Yifan Hong [Wed, 5 Oct 2016 22:51:19 +0000 (22:51 +0000)]
Add test for vec<vec<T>> as a return value.
am: 223b82a07d

Change-Id: I95ad44aed3a42ad1d82e2f3e1b03da18012f0c6c

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 agoMerge "Revert "Revert "nfc: update default implementation to match style.""" am:...
Steven Moreland [Wed, 5 Oct 2016 17:30:41 +0000 (17:30 +0000)]
Merge "Revert "Revert "nfc: update default implementation to match style.""" am: 67f700350a
am: 4484643519

Change-Id: Id4f363bfd90ce712df23a8028007d02cdd68ebbf

7 years agoRevert "Revert "nfc: reflect style guide."" am: 106bc9d27a
Steven Moreland [Wed, 5 Oct 2016 17:30:40 +0000 (17:30 +0000)]
Revert "Revert "nfc: reflect style guide."" am: 106bc9d27a
am: 22fa3244c7

Change-Id: I5bd5967521395f9979ebe7944960bea69840b444

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."""
Steven Moreland [Wed, 5 Oct 2016 17:28:09 +0000 (17:28 +0000)]
Merge "Revert "Revert "nfc: update default implementation to match style."""
am: 67f700350a

Change-Id: I383cbfde9f5812fa0af02cc6419d25aea08ca4d5

7 years agoRevert "Revert "nfc: reflect style guide.""
Steven Moreland [Wed, 5 Oct 2016 17:28:08 +0000 (17:28 +0000)]
Revert "Revert "nfc: reflect style guide.""
am: 106bc9d27a

Change-Id: I0d29f4064a8b4fc84fe5d3a4d09d94ad9854cccb

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 agoAdd test for referring to nested types. am: 61db854465
Yifan Hong [Tue, 4 Oct 2016 21:12:13 +0000 (21:12 +0000)]
Add test for referring to nested types. am: 61db854465
am: a30e27f697

Change-Id: I47800ef8ff8d6aa53580f09cfa9417c41b6f3098

7 years agoAdd test for referring to nested types.
Yifan Hong [Tue, 4 Oct 2016 21:10:15 +0000 (21:10 +0000)]
Add test for referring to nested types.
am: 61db854465

Change-Id: Ie4a21561afd882184fe0d9aa1c2772b5849222f7

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."" am: ea4b569fee
Martijn Coenen [Tue, 4 Oct 2016 16:49:56 +0000 (16:49 +0000)]
Merge "Revert "nfc: reflect style guide."" am: ea4b569fee
am: a2bdc9d012

Change-Id: Idbf1e89939936e3d62df7f565388a9a92922ccc2