Commit graph

8437 commits

Author SHA1 Message Date
Roshan Pius
db965ee334 wifi: Add Iface related method implementations in WifiChip am: 35d958c43f am: 11cbff5cee am: 757938287e
am: c7e7cf6683

Change-Id: Id1123a2f03551dd155d98dfe4eeb57defe87ea6d
2016-10-11 21:07:48 +00:00
Roshan Pius
3563ae0b7c wifi: Add the various iface object implementation am: 3e2d671a4c am: 6179a92b9a am: 53046195bf
am: 284a74db6d

Change-Id: I0cb4df2192f62ada493442614bb01f0f6d629306
2016-10-11 21:07:47 +00:00
Roshan Pius
f14d4d9f0b wifi: Remove "Wlan" prefix from wifi_legacy_hal public methods am: ab5c471b0b am: 638c7d6fa4 am: 06c0ff2343
am: 357eb45362

Change-Id: I9a8f679d6ec07360c9916db9b06010d6164f9716
2016-10-11 21:07:46 +00:00
Roshan Pius
112d067bf1 wifi: Add support for multiple chips in IWifi am: cd566bddd7 am: f7702fcfba am: e8ff1680f0
am: 778b9cede7

Change-Id: If1f272063dfbb422819552726da1c95bed59fe16
2016-10-11 21:07:44 +00:00
Roshan Pius
ec32270ea8 wifi(interface): Add RTT Controller object am: fcbf923d3a am: 83090ab624 am: c3b023d51a
am: 52ecf27088

Change-Id: I97f2df8c62e75689842dcad6612bc478dd0e559e
2016-10-11 21:07:43 +00:00
Roshan Pius
cfa4b71843 wifi(interface): Add Iface objects am: adcfba4b09 am: 68e09f0c35 am: bd0cd30d0d
am: e86e9f157a

Change-Id: I36bb6817263818bb0d360206dac09b08a1c308b2
2016-10-11 21:07:41 +00:00
Prashant Malani
5e4eb5ed98 vibrator: Add service for default impl
Test: m
Bug: 32021191
Change-Id: I5438a8c396103de8fb1e800e9d06165edfc1f68b
2016-10-11 14:06:08 -07:00
Roshan Pius
182f980f9c wifi: Invoke failure callbacks am: f243631af8 am: de95c70497
am: 77b9999d20

Change-Id: Ib16c793e965993b184ee8825533164a889beb354
2016-10-11 21:02:33 +00:00
Roshan Pius
fc3862dc93 wifi: Add WifiRttController object am: 5926828728 am: 6de20076a3
am: 495ffe9bcb

Change-Id: I1707ca5f7f07236b94115e28e645ba7acce3e5f6
2016-10-11 21:02:32 +00:00
Roshan Pius
c7e7cf6683 wifi: Add Iface related method implementations in WifiChip am: 35d958c43f am: 11cbff5cee
am: 757938287e

Change-Id: I120d1ed4bdb6913b7230b0e2f62629e0c9f5ffb3
2016-10-11 21:02:30 +00:00
Roshan Pius
284a74db6d wifi: Add the various iface object implementation am: 3e2d671a4c am: 6179a92b9a
am: 53046195bf

Change-Id: I14d64f7dd2e74a4519500285612aa444d3139665
2016-10-11 21:02:29 +00:00
Roshan Pius
357eb45362 wifi: Remove "Wlan" prefix from wifi_legacy_hal public methods am: ab5c471b0b am: 638c7d6fa4
am: 06c0ff2343

Change-Id: I20fa6972e27ebf89e5ef6432bb256bd82ddc4f8b
2016-10-11 21:02:27 +00:00
Roshan Pius
778b9cede7 wifi: Add support for multiple chips in IWifi am: cd566bddd7 am: f7702fcfba
am: e8ff1680f0

Change-Id: I0eb3749ab1f13348c289fba7b4e7f43e8a49574a
2016-10-11 21:02:26 +00:00
Roshan Pius
52ecf27088 wifi(interface): Add RTT Controller object am: fcbf923d3a am: 83090ab624
am: c3b023d51a

Change-Id: Ifcf25a429a4af5c180d2d02c10bc6c1cb41630c5
2016-10-11 21:02:24 +00:00
Roshan Pius
e86e9f157a wifi(interface): Add Iface objects am: adcfba4b09 am: 68e09f0c35
am: bd0cd30d0d

Change-Id: I842340fb3b4a56c6fdd0d6a0cfbf99a4219386d8
2016-10-11 21:02:23 +00:00
Roshan Pius
77b9999d20 wifi: Invoke failure callbacks am: f243631af8
am: de95c70497

Change-Id: Id208c0abe50766311e7597f47a943873b78fdbb6
2016-10-11 20:56:47 +00:00
Roshan Pius
495ffe9bcb wifi: Add WifiRttController object am: 5926828728
am: 6de20076a3

Change-Id: I42573cf460d4a73e07ef57afdd32f59393eb0890
2016-10-11 20:56:46 +00:00
Roshan Pius
757938287e wifi: Add Iface related method implementations in WifiChip am: 35d958c43f
am: 11cbff5cee

Change-Id: I0d48778f5eb4be3ece745082b79cffa8f69a4ae8
2016-10-11 20:56:44 +00:00
Roshan Pius
53046195bf wifi: Add the various iface object implementation am: 3e2d671a4c
am: 6179a92b9a

Change-Id: I1bfed5ab6fe2e765abfdcde1b81e1127e1c964f6
2016-10-11 20:56:43 +00:00
Roshan Pius
06c0ff2343 wifi: Remove "Wlan" prefix from wifi_legacy_hal public methods am: ab5c471b0b
am: 638c7d6fa4

Change-Id: I8f2d397c50478cb65af8fae8d99fe8c76f2c8b21
2016-10-11 20:56:41 +00:00
Roshan Pius
e8ff1680f0 wifi: Add support for multiple chips in IWifi am: cd566bddd7
am: f7702fcfba

Change-Id: If6ca4867325da53ffe88f95d7046539cb903cd1c
2016-10-11 20:56:40 +00:00
Roshan Pius
c3b023d51a wifi(interface): Add RTT Controller object am: fcbf923d3a
am: 83090ab624

Change-Id: I229a08b8283a26b64244b4876e773f995c2d9062
2016-10-11 20:56:39 +00:00
Roshan Pius
bd0cd30d0d wifi(interface): Add Iface objects am: adcfba4b09
am: 68e09f0c35

Change-Id: I49a49e23c72ecd54c0283d9291a1c983bb86e745
2016-10-11 20:56:37 +00:00
Roshan Pius
de95c70497 wifi: Invoke failure callbacks
am: f243631af8

Change-Id: Ida5787f25b0ab8cfb7a42b7d02f39871771c27d2
2016-10-11 20:49:10 +00:00
Roshan Pius
6de20076a3 wifi: Add WifiRttController object
am: 5926828728

Change-Id: I9d4b29916e3873b7ddba4dbf32fa51c1ceab8c91
2016-10-11 20:49:09 +00:00
Roshan Pius
11cbff5cee wifi: Add Iface related method implementations in WifiChip
am: 35d958c43f

Change-Id: Id9009dd7b246940de52fbefeb251944d9106b8e5
2016-10-11 20:49:08 +00:00
Roshan Pius
6179a92b9a wifi: Add the various iface object implementation
am: 3e2d671a4c

Change-Id: Ibd2223e329f8fd6c00a8782581abe3d428012a60
2016-10-11 20:49:07 +00:00
Roshan Pius
638c7d6fa4 wifi: Remove "Wlan" prefix from wifi_legacy_hal public methods
am: ab5c471b0b

Change-Id: I6cad5d5a233c26aee4a8a9667354a8dfad958e82
2016-10-11 20:49:06 +00:00
Roshan Pius
f7702fcfba wifi: Add support for multiple chips in IWifi
am: cd566bddd7

Change-Id: I474546e49179f63a1e65dd6f5281c21441f5228d
2016-10-11 20:49:04 +00:00
Roshan Pius
83090ab624 wifi(interface): Add RTT Controller object
am: fcbf923d3a

Change-Id: I511b158bf8bafb7dd54fec18941e35b14cec380f
2016-10-11 20:49:03 +00:00
Roshan Pius
68e09f0c35 wifi(interface): Add Iface objects
am: adcfba4b09

Change-Id: I429ea70427a09948ded4089856bda67303b6b075
2016-10-11 20:49:02 +00:00
TreeHugger Robot
4d43b9a21f Merge changes from topic '31180823'
* changes:
  memtrack: Add androis.hardware.memtrack@1.0-service
  memtrack: Add android.hardware.memtrack@1.0-impl
  memtrack: Add memtrack interface 1.0
2016-10-11 18:55:52 +00:00
Zhuoyao Zhang
8dc4ba1427 Update vts files for nfc hidl file style change.
Test: make vts.
Change-Id: I2a86e9555f5e3ca0893d1e7b34f75ea68859af7e
2016-10-11 10:04:27 -07:00
Ruchi Kandoi
49ceebe51a power: Add android.hardware.power@1.0-service
Bug: 31177288
Change-Id: I9bca18bd66b2a39fe8b4db7d91c2248655658887
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
2016-10-11 09:39:14 -07:00
Ruchi Kandoi
8214a64afb power: Add android.hardware.power@1.0-impl
Bug: 31177288
Change-Id: I410768ef422ec11c2c9d955e7d3aec9a50cb361e
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
2016-10-11 09:39:14 -07:00
Ruchi Kandoi
3becdbb84d power: Add Power interface 1.0
Bug: 31177288
Change-Id: I9c243166515b565ac73e5f47ff86cfacf59d46d3
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-10-11 09:39:09 -07:00
Mikhail Naganov
c115895154 Remove redundant prefixes from enums in audio common types and effects HAL
Since in generated C++ code class enums are used, the names of enum
values are scoped anyway, thus carrying the prefix only clutters
code.

For C enums, newly introduced "value_prefix" annotation is used
to add the required prefix.

Added annotations for effects HAL types are just informational,
but can be used would C headers generation ever be required.

Also:

  - renamed AudioInputFlags -> AudioInputFlag for consistency;

  - moved AUDIO_INTERLEAVE_... constants into their own enum.

Bug: 31800672
Change-Id: I5b325f3440e0057ca98c4617040c7e5a89d2283d
Test: make
2016-10-11 08:54:01 -07:00
Roshan Pius
f243631af8 wifi: Invoke failure callbacks
Invoke the failure callbacks for |requestChipDebugInfo|,
|requestDriverDebugDump| and |requestFirmwareDebugDump| methods.

Bug: 32014425
Test: Compiles
Change-Id: I49b8ae93fe846df6d9663b10d2a70eb89bd00931
2016-10-11 07:46:24 -07:00
Roshan Pius
5926828728 wifi: Add WifiRttController object
Create the WifiRttController object and add the createRttController
method in WifiChip.

Bug: 31991232
Test: Compiles
Change-Id: I34649097c96488c660bef5acceac1a6478f80dca
2016-10-11 07:46:24 -07:00
Roshan Pius
35d958c43f 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
2016-10-11 07:46:24 -07:00
Roshan Pius
3e2d671a4c 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
2016-10-11 07:46:24 -07:00
Roshan Pius
ab5c471b0b 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
2016-10-11 07:46:24 -07:00
Roshan Pius
cd566bddd7 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
2016-10-11 07:46:24 -07:00
Roshan Pius
fcbf923d3a 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
2016-10-11 07:46:24 -07:00
Roshan Pius
adcfba4b09 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
2016-10-11 07:46:24 -07:00
Ruchi Kandoi
9d8551ab6d memtrack: Add androis.hardware.memtrack@1.0-service
Bug: 31180823
Change-Id: I712d5b041fd13e85f57dc400cc0c48c9d9ee2f36
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
2016-10-10 19:16:54 -07:00
Ruchi Kandoi
97b2f25088 memtrack: Add android.hardware.memtrack@1.0-impl
Bug: 31180823
Change-Id: I5afa790a94eebf8f1755eb51ff8cfeb28b836543
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
2016-10-10 19:16:54 -07:00
Ruchi Kandoi
02cfc4e420 memtrack: Add memtrack interface 1.0
Bug: 31180823
Change-Id: I703a3ac8746179421e70e301ba7549f05c81f9e3
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-10-10 19:16:40 -07:00
TreeHugger Robot
806c3a3345 Merge "add nfc vts files and vts profiler build rule" 2016-10-11 01:56:08 +00:00
Amit Mahajan
0911839621 Merge "Initial version of radio hal" am: 2078f22513 am: 969b65155d am: 19b61a0520
am: 579ceaf543

Change-Id: I569388fc1f6e1eab8d5f318be1375987b649bbfe
2016-10-11 00:19:45 +00:00