Commit Graph

608 Commits

Author SHA1 Message Date
Yifan Hong
fb89d1237d Merge "Update to use the correct library for logging." am: f5e1ac67ed
am: 34d006ee9c

Change-Id: Ib0d77e4267966729600f581309900de5cd8dd780
2016-11-30 20:48:20 +00:00
Yifan Hong
34d006ee9c Merge "Update to use the correct library for logging."
am: f5e1ac67ed

Change-Id: Idbd600f20212143ddced9c7723cb28b414afa349
2016-11-30 20:40:52 +00:00
Yifan Hong
f5e1ac67ed Merge "Update to use the correct library for logging." 2016-11-30 20:31:25 +00:00
Yifan Hong
0c4c7a30c2 Update to use the correct library for logging.
Generates: b/33193497
Test: mma
Change-Id: Ib8bfc4d2f1d68947099e4756f661ed06689ffd62
2016-11-29 13:10:15 -08:00
Roshan Pius
1d29aa5fe0 Merge changes I304a5d9d,Ied19d9ec,Ie6c03aee am: 9f518064de
am: 55bfe49862

Change-Id: I6473ec0409633256250fb20da2daa5e85effeb1a
2016-11-29 18:09:15 +00:00
Roshan Pius
48f6cfd2a5 wifi: Add NAN API wrappers in WifiLegacyHal am: 2301209a9a
am: ea6a5b60e9

Change-Id: Ib612629d3b637de8db06f1fe4719d0730edeb73e
2016-11-29 18:09:14 +00:00
Roshan Pius
b9612c1798 wifi: Add RTT API wrappers in WifiLegacyHal am: d8e915ab99
am: f1a16fbb52

Change-Id: If49abf2754fe73619afb0bf4de3cb0423f27345a
2016-11-29 18:09:13 +00:00
Roshan Pius
e5d75e0d3b wifi: Add logger/debug API wrappers in WifiLegacyHal am: 8714a3e103
am: eea7e24d9c

Change-Id: I0465615eb3cd22ae7d6009a4e33d646a1da66c47
2016-11-29 18:09:11 +00:00
Roshan Pius
55bfe49862 Merge changes I304a5d9d,Ied19d9ec,Ie6c03aee
am: 9f518064de

Change-Id: Id45ea1662cbc1b3b7c367cd17017b42b9ed8a856
2016-11-29 18:04:14 +00:00
Roshan Pius
ea6a5b60e9 wifi: Add NAN API wrappers in WifiLegacyHal
am: 2301209a9a

Change-Id: I906138784eab26f35a55546f614de6f378a2ec64
2016-11-29 18:04:13 +00:00
Roshan Pius
f1a16fbb52 wifi: Add RTT API wrappers in WifiLegacyHal
am: d8e915ab99

Change-Id: I1f8067fb8e2f4a86f9c555e2564cac7dd0c0196f
2016-11-29 18:04:12 +00:00
Roshan Pius
eea7e24d9c wifi: Add logger/debug API wrappers in WifiLegacyHal
am: 8714a3e103

Change-Id: I81a9b38916f0c1f92ca45fc9825bf0f025fda7b1
2016-11-29 18:04:11 +00:00
Treehugger Robot
9f518064de Merge changes I304a5d9d,Ied19d9ec,Ie6c03aee
* changes:
  wifi: Add NAN API wrappers in WifiLegacyHal
  wifi: Add RTT API wrappers in WifiLegacyHal
  wifi: Add logger/debug API wrappers in WifiLegacyHal
2016-11-29 17:55:36 +00:00
Ruchi Kandoi
c4908b5add Nfc: Change return types for Nfc hal to specified type. am: 51068e0bd3
am: bec5eeba2c

Change-Id: I8f547793b098fa85b8e1aa97278944b38cd331e5
2016-11-29 01:38:10 +00:00
Ruchi Kandoi
bec5eeba2c Nfc: Change return types for Nfc hal to specified type.
am: 51068e0bd3

Change-Id: I46ba181e80ee2c16cfda07da6e1b3975f1e09717
2016-11-29 01:34:09 +00:00
Ruchi Kandoi
51068e0bd3 Nfc: Change return types for Nfc hal to specified type.
Test: Compiles and test passes
Bug: 32998929
Change-Id: I6787b90e5e745b32c7a5a951203496cc614fdc10
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-11-29 01:14:26 +00:00
Roshan Pius
2301209a9a wifi: Add NAN API wrappers in WifiLegacyHal
NAN API's are inherently asynchronous. So, add a function for registering
the various callbacks and add wrappers for all other NAN API's.

Bug: 31991076
Test: Compiles
Change-Id: I304a5d9d41b684f0778e0ace3601380153068e12
2016-11-28 15:31:19 -08:00
Roshan Pius
d8e915ab99 wifi: Add RTT API wrappers in WifiLegacyHal
These are just wrapper methods over the legacy RTT related HAL API's.
Note: Some of the RTT related API's have been intentionally left off
because they're no longer used.

Bug: 31991232
Test: Compiles
Change-Id: Ied19d9ec1d4347ead0c40ab3683a1a0bae704f90
2016-11-28 15:31:19 -08:00
Roshan Pius
8714a3e103 wifi: Add logger/debug API wrappers in WifiLegacyHal
Legacy HAL wrappers for the following debug functions:
1. Wake reason stats
2. Packet fate
3. Supported feature set
4. Ring buffer.

Bug: 32221997
Test: Compiles
Change-Id: Ie6c03aeefb0b6e711419cfa5451cddbeb3069cd0
2016-11-28 15:31:08 -08:00
Steven Moreland
90bd630187 Use get instead of implicit cast on Return<*>. am: dc5f84f993
am: 3c87575472

Change-Id: I127bb33b016a57ec6abe7ca785a33104a7ff29fc
2016-11-28 21:42:26 +00:00
Steven Moreland
3c87575472 Use get instead of implicit cast on Return<*>.
am: dc5f84f993

Change-Id: I5bb0b8a4ca3a565768c7f03d640134d3a3a16dd4
2016-11-28 21:37:55 +00:00
Steven Moreland
dc5f84f993 Use get instead of implicit cast on Return<*>.
Bug: 31348667
Test: hidl_test
Change-Id: Icc22f440077feeff1119ca7b2b44fab684b453db
2016-11-28 12:06:22 -08:00
Steven Moreland
2a523150df Merge "Update makefiles for logging." am: 2fe5762cae
am: 007e4f5516

Change-Id: I9b6d00eafd4223a8ce82f0d2da89aec720f354a0
2016-11-25 18:20:50 +00:00
Steven Moreland
007e4f5516 Merge "Update makefiles for logging."
am: 2fe5762cae

Change-Id: I2f85a37a4cb7178aecd48eb63ca6fa7e7d715917
2016-11-25 18:18:50 +00:00
Treehugger Robot
2fe5762cae Merge "Update makefiles for logging." 2016-11-24 16:41:20 +00:00
Steven Moreland
35460073b3 Remove HIDL_GENERATED from things written by hand. am: 33e87b8a76
am: 8b6a886d60

Change-Id: Ic6b2701ff122159144eefd6e90d497a997978e7e
2016-11-23 01:41:44 +00:00
Steven Moreland
8b6a886d60 Remove HIDL_GENERATED from things written by hand.
am: 33e87b8a76

Change-Id: Ib5c70daafd8d5bfa8454a4a0e05c858a3e9a393a
2016-11-23 01:39:14 +00:00
Steven Moreland
33e87b8a76 Remove HIDL_GENERATED from things written by hand.
find . -name "*.h" -exec sed -i 's/HIDL_GENERATED_\(.*\)_H_/\U\1_H/g' {}
+

They now match what would be generated by -Lc++-impl. This prevents
confusion over whether or not the files are autogenerated.

Test: pass
Change-Id: I2c9d7887f6d6bdaa19a5c4bfcf02ee3d1dbc81d1
2016-11-22 15:34:39 -08:00
Martijn Coenen
a01c7cd6d7 Use newly introduced hidl_handle. am: 403161ab73
am: 14c4d0da66

Change-Id: Ia6cca0328196d8b893fa99a4505efc6dfd3ef0ed
2016-11-22 15:01:04 +00:00
Martijn Coenen
14c4d0da66 Use newly introduced hidl_handle.
am: 403161ab73

Change-Id: Ic5344ae123ef0c9b233eb31e6b9cd33be2d809fc
2016-11-22 14:58:35 +00:00
Martijn Coenen
403161ab73 Use newly introduced hidl_handle.
Bug: 32089785
Test: builds
Change-Id: I27c7d3945e1fe390661bf322987011a00fe9b3fe
2016-11-22 12:17:58 +01:00
Roshan Pius
569b010860 Merge changes I7c418811,I0870eae0 am: 88fb149b8e
am: df6cb83d97

Change-Id: Idd3080ebe3a6ce42cc0d2eb095b043ecac24fdb9
2016-11-22 01:48:12 +00:00
Roshan Pius
3fab519317 wifi: Add link layer stats API wrappers in WifiLegacyHal am: 7cece41299
am: db91ca1794

Change-Id: I3727bc3a2a5b4baa0400453035321a439c5150f4
2016-11-22 01:48:10 +00:00
Roshan Pius
a9af2aea6d wifi: Add gscan API wrappers in WifiLegacyHal am: 76ff302d57
am: 197524b157

Change-Id: Id7e4ec4307ea273a5b81a3539a2e8d1ff2b7849a
2016-11-22 01:48:08 +00:00
Roshan Pius
df6cb83d97 Merge changes I7c418811,I0870eae0
am: 88fb149b8e

Change-Id: Ic1b7ccb20296344bb551fc600d3d6e25fe1fe6a6
2016-11-22 01:39:03 +00:00
Roshan Pius
db91ca1794 wifi: Add link layer stats API wrappers in WifiLegacyHal
am: 7cece41299

Change-Id: Id8edce8333faa2860a7deef272858b93c6c8bef6
2016-11-22 01:39:00 +00:00
Roshan Pius
197524b157 wifi: Add gscan API wrappers in WifiLegacyHal
am: 76ff302d57

Change-Id: Ieda0e0ab4b058f342788cf39182c7a2eafafeeba
2016-11-22 01:38:57 +00:00
Treehugger Robot
88fb149b8e Merge changes I7c418811,I0870eae0
* changes:
  wifi: Add link layer stats API wrappers in WifiLegacyHal
  wifi: Add gscan API wrappers in WifiLegacyHal
2016-11-22 01:06:51 +00:00
Steven Moreland
3e3a0998e0 Update makefiles for logging.
Bug: 32943424
Test: hidl_test
Change-Id: I86dc81935912861073497c07696378895a25f9ee
2016-11-21 16:19:57 -08:00
Ruchi Kandoi
2c54eef738 Merge "NFC: Add Annotations to the HAL file" am: 3bca1eef75
am: 3007940bda

Change-Id: I34838be329867495cce6108472fa94ef09285c02
2016-11-21 23:06:57 +00:00
Ruchi Kandoi
3007940bda Merge "NFC: Add Annotations to the HAL file"
am: 3bca1eef75

Change-Id: I528f0494291c89116a976a8da0c28dd3dc87e6cb
2016-11-21 23:03:59 +00:00
Ruchi Kandoi
3bca1eef75 Merge "NFC: Add Annotations to the HAL file" 2016-11-21 22:53:01 +00:00
Roshan Pius
7cece41299 wifi: Add link layer stats API wrappers in WifiLegacyHal
Adds wrappers over the legacy HAL API for the following:
1. enable/disable link layer stats collection.
2. fetch link layer stats.

Note: Link layer stats structure is quite ugly. The wrapper stucture
declared here (LinkLayerStats) tries to separate out the pointer
elements and ignore the unnecessary variable size elements from them.

Bug: 31991459
Test: Compiles
Change-Id: I7c4188115786542866c7be56cf9f116b3f78e6a3
2016-11-21 10:57:45 -08:00
Roshan Pius
76ff302d57 wifi: Add gscan API wrappers in WifiLegacyHal
The legacy gscan API's were designed to be used in the following
sequence:
a) Start the scan using |wifi_start_gscan|.
b) Scan Events are indicated to the caller via the provided
|on_scan_event| callback.
c) When one of the result events are received, the caller is expected
to retrieve the cached results via |wifi_get_cached_gscan_results|.
There are some extra knobs here to determine if the results need to be
flushed after fetch or not.
d) Any scan failures are also notified via the provided
|on_scan_event| callback.
e) Full scan results are delivered one by one via the provided
|on_full_scan_result| callback.

In our use case step (b) above is always followed by step (c), so these
2 steps have been merged together in the HIDL interface:
a) Start the scan using |IWifiStaIface.startBackgroundScan|.
b) Scan results are now directly delivered via
|IWifiStaIfaceEventCallback.onBackgroundScanResults| callback.
c) Any scan failures will be delivered via
|IWifiStaIfaceEventCallback.onBackgroundScanFailure| callback.
d) Full scan results are delivered one by one via
|IWifiStaIfaceEventCallback.onBackgroundFullScanResult| callback.

Bug: 31991459
Test: Compiles
Change-Id: I0870eae095a667eec1d8de75fe1cc04a1b5a0bd3
2016-11-21 10:57:45 -08:00
Yifan Hong
694ff2ff02 Split libhidl into base and transport. am: 63544eacb6
am: 5ec7f082b2

Change-Id: Id2874af88e4bed99f7ea50d1c2b27e1d473d5d9e
2016-11-18 23:20:42 +00:00
Yifan Hong
5ec7f082b2 Split libhidl into base and transport.
am: 63544eacb6

Change-Id: I97974e9bbe99c93591c0a4e85ff75a43c7e63983
2016-11-18 23:14:31 +00:00
Yifan Hong
63544eacb6 Split libhidl into base and transport.
Bug: 32756130

Test: mma
Change-Id: Id21cf23abe2910f26bb7895511862443b93dc112
2016-11-18 09:52:57 -08:00
Martijn Coenen
b5a4e86c5f Merge "Cast hidl_pointer<T> to void*." am: 6033952ff1
am: fbedd83ffe

Change-Id: Ic4da0faf730d6516ae83499996ee32c22db21003
2016-11-18 08:11:20 +00:00
Martijn Coenen
fbedd83ffe Merge "Cast hidl_pointer<T> to void*."
am: 6033952ff1

Change-Id: Ic0bdb5eab4f0a38c3b93042aad4ec14856f05de5
2016-11-18 08:08:20 +00:00
Martijn Coenen
6033952ff1 Merge "Cast hidl_pointer<T> to void*." 2016-11-18 08:03:39 +00:00