OSDN Git Service

android-x86/hardware-interfaces.git
7 years agoBluetooth: Disable low power managerment on Hal->close()
Andre Eisenbach [Wed, 8 Feb 2017 04:28:32 +0000 (20:28 -0800)]
Bluetooth: Disable low power managerment on Hal->close()

This ensures the vendor library can release any wakelocks held and
perform any additional cleanup steps as necessary.

Change-Id: Ibfeac161109162ac375eef9c20f147f0506de602
Fixes: 35097918
Test: manual; disable Bluetooth, monitor wakelocks

7 years agoMerge "Remove vts driver/profiler build rules."
Treehugger Robot [Wed, 8 Feb 2017 00:12:23 +0000 (00:12 +0000)]
Merge "Remove vts driver/profiler build rules."

7 years agoHIDL change for Android O RIL update
Jack Yu [Tue, 24 Jan 2017 19:56:52 +0000 (11:56 -0800)]
HIDL change for Android O RIL update

1. Added two new API for screen state replacement.
2. Data call API refactoring work.

bug: 201250373222413532223897322499263028209630173958,
33653220
Test: Telephony sanity tests and unit tests

Merged-In: I6b266637914a85bd57c6a055c52c8ff4ced17e1f
Change-Id: I342b99bed8663d107052e791ac97949b34f7dd99

7 years agoRemove vts driver/profiler build rules.
Tri Vo [Mon, 6 Feb 2017 17:59:51 +0000 (09:59 -0800)]
Remove vts driver/profiler build rules.

Generate filegroups for .hal files so that driver/profiler build rules
can migrate to another project.

Bug: 34893894
Test: mmma hardware/interfaces -j32
Change-Id: Iefc98a6df16706fbb798bc32405fe8ff0c3de450

7 years agoMerge "Bluetooth: Generate a random address"
Treehugger Robot [Mon, 6 Feb 2017 18:07:12 +0000 (18:07 +0000)]
Merge "Bluetooth: Generate a random address"

7 years agoBluetooth: Generate a random address
Myles Watson [Fri, 3 Feb 2017 23:17:54 +0000 (15:17 -0800)]
Bluetooth: Generate a random address

If a device does not have a factory address set, generate one.

Since this is a bug, add a warning.

Bug: 34952761
Test: Pixel C Bluetooth turns on and off
Change-Id: Icd2ef5c40f0ef6ad93effd9dd662b4b79d3eb0f6

7 years agomove VTS stub files and non-functional tests (aosp)
Keun Soo Yim [Fri, 3 Feb 2017 21:50:29 +0000 (13:50 -0800)]
move VTS stub files and non-functional tests (aosp)

Test: mma
Bug: 34976004
Merged-In: Id9c88a9778fba49f0841a474aa067d271f14e207
Change-Id: Id9c88a9778fba49f0841a474aa067d271f14e207

7 years agoMerge changes Ic4fcbb22,I1be8a18d
Treehugger Robot [Fri, 3 Feb 2017 18:24:23 +0000 (18:24 +0000)]
Merge changes Ic4fcbb22,I1be8a18d

* changes:
  Bluetooth: Use AsyncFdWatcher for power management
  Bluetooth: AsyncFdWatcher: Refactor timeout lock

7 years agoMerge "Bluetooth: Free memory from transmit_cb commands"
Treehugger Robot [Fri, 3 Feb 2017 18:24:09 +0000 (18:24 +0000)]
Merge "Bluetooth: Free memory from transmit_cb commands"

7 years agoMerge "Support driver/profiler for all hals."
Zhuoyao Zhang [Fri, 3 Feb 2017 00:43:02 +0000 (00:43 +0000)]
Merge "Support driver/profiler for all hals."

7 years agoBluetooth: Use AsyncFdWatcher for power management
Myles Watson [Thu, 26 Jan 2017 18:47:27 +0000 (10:47 -0800)]
Bluetooth: Use AsyncFdWatcher for power management

Implement low power mode using timeouts from the interface.

Test: Boots, Bluetooth turns on/off,
      Instrumented bt_vendor library shows power management
      calls.
Change-Id: Ic4fcbb222f24b66c13f3797b14475d278c49fbc6

7 years agoBluetooth: AsyncFdWatcher: Refactor timeout lock
Myles Watson [Thu, 2 Feb 2017 18:47:36 +0000 (10:47 -0800)]
Bluetooth: AsyncFdWatcher: Refactor timeout lock

Allow timeouts to change the timeout.
Add a unit test for this.

Test: Unit tests pass, Bluetooth starts and stops.
Change-Id: I1be8a18dd74a312175ec9c27de37213272650e8e

7 years agoBluetooth: Free memory from transmit_cb commands
Myles Watson [Wed, 1 Feb 2017 18:46:16 +0000 (10:46 -0800)]
Bluetooth: Free memory from transmit_cb commands

Test: Bluetooth starts and stops
Change-Id: I540fcc77f9bae0178db325b7014f2b839d4ad77d

7 years agoMerge "wifi: Add scanning mac oui setter"
Treehugger Robot [Thu, 2 Feb 2017 19:28:06 +0000 (19:28 +0000)]
Merge "wifi: Add scanning mac oui setter"

7 years agoSupport driver/profiler for all hals.
Zhuoyao Zhang [Thu, 2 Feb 2017 04:53:21 +0000 (20:53 -0800)]
Support driver/profiler for all hals.

* Update the make file to generate driver/profiler for hals.

Test: mma
Change-Id: I2a91d913b05beb8e1ecf28a205852f848ef1f5ee

7 years agovts files for radio hal
Yuexi Ma [Fri, 6 Jan 2017 21:52:46 +0000 (13:52 -0800)]
vts files for radio hal

Merged-In:I8bce0b3ce4874442638e4967b4b88fcd60497729
Test: mma
Change-Id: I8bce0b3ce4874442638e4967b4b88fcd60497729
(cherry picked from commit 689c6fb1b542dad521272d8c2b8ff823c5b7c062)

7 years agowifi: Add scanning mac oui setter
Roshan Pius [Wed, 1 Feb 2017 21:09:08 +0000 (13:09 -0800)]
wifi: Add scanning mac oui setter

Bug: 34886995
Test: Compiles
Change-Id: I55d4cf55d1832f27de975f97c2e739012ddacc28

7 years agoMerge "Wi-Fi/NAN HAL/service fixups"
Etan Cohen [Wed, 1 Feb 2017 05:33:16 +0000 (05:33 +0000)]
Merge "Wi-Fi/NAN HAL/service fixups"

7 years agoWi-Fi/NAN HAL/service fixups
Etan Cohen [Mon, 30 Jan 2017 21:28:37 +0000 (13:28 -0800)]
Wi-Fi/NAN HAL/service fixups

Fixes related to debugging during integration with
framework. Changes are due to errors in original
definition.

Bug: 32315992
Test: integration (sl4a) tests
Change-Id: I5c427e4d0f8677a611eb6d9abfa641a7f8406e31

7 years agoBluetooth: Move AsyncFdWatcher tests to the device
Myles Watson [Tue, 31 Jan 2017 20:20:44 +0000 (12:20 -0800)]
Bluetooth: Move AsyncFdWatcher tests to the device

Darwin builds were breaking.

Test: compile, unit tests pass
Change-Id: Ia00f590fe56211e25dff8d3138ebd93a306cf2c6

7 years agoBluetooth: Add a timeout in async_fd_watcher
Myles Watson [Wed, 25 Jan 2017 00:51:39 +0000 (16:51 -0800)]
Bluetooth: Add a timeout in async_fd_watcher

Add a timeout to the select call and a callback.
Add unit tests for async_fd_watcher.

Test: unit tests pass
Change-Id: I0076fd52e79aac0d2a9fcceb90aae318d5f0757b

7 years agoMerge "wifi: Fixing Nits"
Treehugger Robot [Tue, 31 Jan 2017 01:05:50 +0000 (01:05 +0000)]
Merge "wifi: Fixing Nits"

7 years agoBluetooth: Make Send() send a complete packet
Myles Watson [Mon, 30 Jan 2017 17:07:37 +0000 (09:07 -0800)]
Bluetooth: Make Send() send a complete packet

Add the packet type to Send() so that it is called once per packet.

Test: Bluetooth starts/stops and scans
Change-Id: I2ef9c5f9a85d3227d4ff181b6a6931f239f75049

7 years agowifi: Fixing Nits
Roshan Pius [Thu, 26 Jan 2017 01:44:42 +0000 (17:44 -0800)]
wifi: Fixing Nits

Changes in the CL to fix bugs found while integrating
with framework:
1. Added IWifiApIface.setCountryCode()
Bug: 34682168
2. Fixed documentation nits in .hal files.
Bug: 34468218
3. Changed roaming state enum values.
Bug: 34715231
4. Added log for EBUSY in legacyErrorToString()
Bug: 34715469
5. Remove "-Wno-unused parameter" from Android.mk
Bug: 34611289
6. Remove the erroneous |onFailure| callback invocation in wifi.cpp.
7. Add null terminations to strings passed to legacy HAL API's
8. Remove unused |IWifiStaIface.stopDebugPacketFateMonitoring|.

Test: Compiles
Change-Id: If3a3e2f360a378c59dc56b8bbe3a0c6d400b3bd8

7 years agoBluetooth: Check for waiting HAL callbacks
Myles Watson [Tue, 24 Jan 2017 17:09:58 +0000 (09:09 -0800)]
Bluetooth: Check for waiting HAL callbacks

Test: Bluetooth boots, turns on/off
Change-Id: Iad2f359a78c9acbf0fe44740ed0813de462ce57c

7 years agoBluetooth: Use fixed-size preambles
Myles Watson [Tue, 24 Jan 2017 21:34:59 +0000 (13:34 -0800)]
Bluetooth: Use fixed-size preambles

Test: Bluetooth turns on/off finds devices in Settings
Change-Id: Id640f3dbde3f53b31ce62eccf59bbc8d25130388

7 years agoBluetooth: Clean up some messages
Myles Watson [Fri, 20 Jan 2017 18:09:38 +0000 (10:09 -0800)]
Bluetooth: Clean up some messages

Use Info for low-frequency messages.
Print hex for characters.

Test: Bluetooth turns on/off
Change-Id: If1fe20a71287cc91c2a7225488e5d44c7ee4ecee

7 years agoMerge "Include what you use."
Treehugger Robot [Sat, 28 Jan 2017 01:25:53 +0000 (01:25 +0000)]
Merge "Include what you use."

7 years agoFixed typos and incorrect types
Jack Yu [Fri, 20 Jan 2017 23:36:56 +0000 (15:36 -0800)]
Fixed typos and incorrect types

Fixed typos, incorrect types for bitmap, and comment
alignment.

Test: Build
Merged-In: I51a99fa71877cfe168ee2cf31de702f36f57d013
Change-Id: I51a99fa71877cfe168ee2cf31de702f36f57d013

7 years agoMerge "Removed TODOs from radio hal."
Treehugger Robot [Sat, 28 Jan 2017 00:44:35 +0000 (00:44 +0000)]
Merge "Removed TODOs from radio hal."

7 years agoInclude what you use.
Dan Albert [Thu, 26 Jan 2017 23:33:15 +0000 (15:33 -0800)]
Include what you use.

Test: mm
Bug: http://b/34740564
Change-Id: I75cf88b79faf68764f1223e39595d0320d7b682a

7 years agoMerge "Increase the timeout for NfcHidlTargetProfilingTest."
Zhuoyao Zhang [Thu, 26 Jan 2017 03:52:06 +0000 (03:52 +0000)]
Merge "Increase the timeout for NfcHidlTargetProfilingTest."

7 years agoIncrease the timeout for NfcHidlTargetProfilingTest.
Zhuoyao Zhang [Wed, 25 Jan 2017 23:44:45 +0000 (15:44 -0800)]
Increase the timeout for NfcHidlTargetProfilingTest.

* Given there's still test failue due to timeout:
  https://android-vts-internal.googleplex.com/show_table?testName=NfcHidlTargetProfilingTest,
  increased the limit to 25m.

Test: run vts -m NfcHidlTargetProfilingTest
Change-Id: Ie5fee6a399281ec538e6724207916908bb8da4d0

7 years agoMerge "supplicant(interface): Add the new radio work methods"
Treehugger Robot [Wed, 25 Jan 2017 21:15:21 +0000 (21:15 +0000)]
Merge "supplicant(interface): Add the new radio work methods"

7 years agoMerge "NFC: Update VTS test"
Ruchi Kandoi [Wed, 25 Jan 2017 18:10:12 +0000 (18:10 +0000)]
Merge "NFC: Update VTS test"

7 years agouse the default binder/passthrough mode in vts tests
Keun Soo Yim [Wed, 25 Jan 2017 01:58:43 +0000 (17:58 -0800)]
use the default binder/passthrough mode in vts tests

Test: mma
Change-Id: I9146d599c623aae1196fcf7e37b7b2715796c748

7 years agoMerge "update the used precondition var name for IR"
Keun Soo Yim [Tue, 24 Jan 2017 22:48:26 +0000 (22:48 +0000)]
Merge "update the used precondition var name for IR"

7 years agosupplicant(interface): Add the new radio work methods
Roshan Pius [Fri, 20 Jan 2017 00:03:36 +0000 (16:03 -0800)]
supplicant(interface): Add the new radio work methods

These radio work methods can be used by external programs (wificond in
our case) to request wpa_supplicant to stop doing any offchannel
operations.

Also,
1. Add the setUpdateIdentifier method in ISupplicantStaNetwork.
2. Add the setProactiveKeyCaching method in ISupplicantStaNetwork.
3. Add sendNetworkEapSimGsmAuthFailure &
sendNetworkEapSimUmtsAuthResponse in ISupplicantStaNetwork.
4. Add the setWpsDeviceType() method in ISupplicantIface.

Bug: 34454675
Bug: 32581374
Test: /hardware/interfaces/update_makefiles.sh
Change-Id: I83fe577f6bd39d2daef2cb203ad9a8a93657c988

7 years agoRemoved TODOs from radio hal.
Sanket Padawe [Tue, 24 Jan 2017 22:41:33 +0000 (14:41 -0800)]
Removed TODOs from radio hal.

+ Opened new bug b/34683858 for addressing one of the TODO in P.

Bug: 34109705
Test: Removed only comments.
Change-Id: Ie78eacbc80def2df3ec448f14a89fbac185bf2af

7 years agoupdate the used precondition var name for IR
Keun Soo Yim [Tue, 24 Jan 2017 22:18:57 +0000 (14:18 -0800)]
update the used precondition var name for IR

Test: mma
Change-Id: Ibec34c82e41d1f93568c29e390a1fc031fa3d3bc

7 years agoNFC: Update VTS test
Ruchi Kandoi [Wed, 18 Jan 2017 19:12:58 +0000 (11:12 -0800)]
NFC: Update VTS test

- Order of data and CORE_CONN_CREDITS_NTF is not defined, check for the
order in which they were received before checking for contents
- Configuration status is added to WriteCoreReset test
- Add WriteCoreResetConfigReset test

Test: VTS test passes
Change-Id: Ifb730bbb51c366807028fe7e6757c0f8eae943c3
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
7 years agoMerge "Add host-side code for wifi HAL test"
Treehugger Robot [Mon, 23 Jan 2017 22:09:45 +0000 (22:09 +0000)]
Merge "Add host-side code for wifi HAL test"

7 years agoMerge "bootctrl HAL uses "default" service name"
Chris Phoenix [Mon, 23 Jan 2017 20:48:31 +0000 (20:48 +0000)]
Merge "bootctrl HAL uses "default" service name"

7 years agoAdd host-side code for wifi HAL test
Keun Soo Yim [Mon, 23 Jan 2017 18:00:08 +0000 (10:00 -0800)]
Add host-side code for wifi HAL test

Test: make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module HalWifiHidlTargetTest
-l INFO

Bug: 34179464
Change-Id: I70c9495a5f2cb0c726373969ada5e33a00cc4c18

7 years agoMerge "bluetooth: Configure VTS to run the HAL gtest"
Treehugger Robot [Sat, 21 Jan 2017 04:37:33 +0000 (04:37 +0000)]
Merge "bluetooth: Configure VTS to run the HAL gtest"

7 years agoMerge "wifi HAL uses "default" service name"
Chris Phoenix [Fri, 20 Jan 2017 23:10:12 +0000 (23:10 +0000)]
Merge "wifi HAL uses "default" service name"

7 years agoMerge "wpa_supplicant HAL uses "default" service name"
Chris Phoenix [Fri, 20 Jan 2017 23:10:05 +0000 (23:10 +0000)]
Merge "wpa_supplicant HAL uses "default" service name"

7 years agobootctrl HAL uses "default" service name
Chris Phoenix [Fri, 20 Jan 2017 21:46:36 +0000 (13:46 -0800)]
bootctrl HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds; verify HAL still works

In support of b/33844934

Change-Id: I2c0aa199b5649f720710bfd564c077b6ce3acc9c
Merged-In: I43f282ffedf18e4b0817b49fc4860ac39b127d04

7 years agoMerge "Don't memset &ptr"
Treehugger Robot [Fri, 20 Jan 2017 20:14:59 +0000 (20:14 +0000)]
Merge "Don't memset &ptr"

7 years agoIR HAL Target-side test
Connor O'Brien [Tue, 20 Dec 2016 23:19:08 +0000 (15:19 -0800)]
IR HAL Target-side test

Test: make vts; vts-tradefed run -m HalIrHidlTargetTest
Change-Id: I6b750f66a0bc207056abcb493693baebc8af81a5
Signed-off-by: Connor O'Brien <connoro@google.com>
7 years agobluetooth: Configure VTS to run the HAL gtest
Myles Watson [Thu, 24 Nov 2016 00:51:17 +0000 (16:51 -0800)]
bluetooth: Configure VTS to run the HAL gtest

Configure VTS to run target-side functional test

Test: run the test

Change-Id: I1d41113d422ca21ba539b43d22ae5e47facf5fcd

7 years agoMerge "use the default binder/passthrough mode in NFC VTS test."
Keun Soo Yim [Fri, 20 Jan 2017 00:30:07 +0000 (00:30 +0000)]
Merge "use the default binder/passthrough mode in NFC VTS test."

7 years agoMerge changes from topics 'id_str_supplicant_hidl', 'p2p_wps_supplicant_hidl'
Roshan Pius [Thu, 19 Jan 2017 22:51:21 +0000 (22:51 +0000)]
Merge changes from topics 'id_str_supplicant_hidl', 'p2p_wps_supplicant_hidl'

* changes:
  wifi(vts): Generate the .vts files
  wifi(interface): Use the "bitfield" type for masks
  supplicant(interface): Add sta network idstr & ft key mgmt
  supplicant(interface): Add missing STA callbacks
  supplicant(interface): Add various WPS device params
  supplicant(interface): Add P2P iface methods/cbs

7 years agowpa_supplicant HAL uses "default" service name
Chris Phoenix [Thu, 19 Jan 2017 21:38:21 +0000 (13:38 -0800)]
wpa_supplicant HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds; verify HAL still works

In support of b/33844934

Change-Id: Ib80edecf53adf442e935a2535b8cc6e2e5aefd1e

7 years agoDon't memset &ptr
George Burgess IV [Thu, 19 Jan 2017 21:16:36 +0000 (13:16 -0800)]
Don't memset &ptr

Bug caught by running clang-FORTIFY on Android.

Bug: None
Test: Builds
Change-Id: I23ed01cf23bdba74fb141d0b0d61c0da4c750a42

7 years agouse the default binder/passthrough mode in NFC VTS test.
Keun Soo Yim [Wed, 18 Jan 2017 18:25:22 +0000 (10:25 -0800)]
use the default binder/passthrough mode in NFC VTS test.

Test: mma
Bug: 34179753
Change-Id: Id9ac440a53b6256e33d1bfdedcf14caa38670467

7 years agoMerge "consumerir HAL uses "default" service name"
Chris Phoenix [Thu, 19 Jan 2017 17:10:36 +0000 (17:10 +0000)]
Merge "consumerir HAL uses "default" service name"

7 years agowifi HAL uses "default" service name
Chris Phoenix [Thu, 19 Jan 2017 01:47:07 +0000 (17:47 -0800)]
wifi HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds; verify HAL still works

In support of b/33844934

Change-Id: Ia086509b3433976524bc4a0ac4b24385840ce565

7 years agoconsumerir HAL uses "default" service name
Chris Phoenix [Thu, 19 Jan 2017 01:13:17 +0000 (17:13 -0800)]
consumerir HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds; verify HAL still works

In support of b/33844934

Change-Id: Ie7394569d20afba0228f01830385eb598795c831
Merged-In: I1b3b021aaa98ce99560126ddd277caa427ddf151

7 years agoNfc HAL uses "default" service name
Chris Phoenix [Wed, 18 Jan 2017 23:51:05 +0000 (15:51 -0800)]
Nfc HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds; verify HAL still works

In support of b/33844934

Change-Id: Id7b76e1df98e1ecacb530a1b5fec76bf14ba6eb7

7 years agoMerge "Bluetooth HAL uses "default" service name"
Andre Eisenbach [Wed, 18 Jan 2017 21:48:00 +0000 (21:48 +0000)]
Merge "Bluetooth  HAL uses "default" service name"

7 years agoMerge "supplicant(vts): Add gtest framework"
Treehugger Robot [Wed, 18 Jan 2017 21:44:50 +0000 (21:44 +0000)]
Merge "supplicant(vts): Add gtest framework"

7 years agoBluetooth HAL uses "default" service name
Chris Phoenix [Wed, 18 Jan 2017 06:47:52 +0000 (22:47 -0800)]
Bluetooth  HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds; verify HAL still works

In support of b/33844934

Change-Id: Icc006a71b41bcd03fe4a04ee92503e76ff07cd77

7 years agoMerge "Adding all nfc vts related things back."
Steven Moreland [Wed, 18 Jan 2017 21:29:11 +0000 (21:29 +0000)]
Merge "Adding all nfc vts related things back."

7 years agosupplicant(vts): Add gtest framework
Roshan Pius [Fri, 16 Dec 2016 16:39:23 +0000 (08:39 -0800)]
supplicant(vts): Add gtest framework

Bug: 33457575
Test: adb push
out/target/product/angler/data/nativetest/supplicant_hidl_test/supplicant_hidl_test
/data/ &&  adb shell /data/supplicant_hidl_test
Change-Id: I8b560483166822a33b8d81433178fdbc6077ec11

7 years agobluetooth: Add initialization completed callback
Andre Eisenbach [Wed, 18 Jan 2017 02:23:12 +0000 (18:23 -0800)]
bluetooth: Add initialization completed callback

Test: bluetooth_hidl_hal_test
Bug: 31972505
Change-Id: I64c19a7fe7299079c5daf74e7b238b0d71d65db2

7 years agoAdding all nfc vts related things back.
Steven Moreland [Wed, 18 Jan 2017 19:01:01 +0000 (11:01 -0800)]
Adding all nfc vts related things back.

Test: none
Merged-In: I84a42ae27d36a5479f2ca859849bb1b4536bdbad
Change-Id: I84a42ae27d36a5479f2ca859849bb1b4536bdbad

7 years agowifi(vts): Generate the .vts files
Roshan Pius [Wed, 18 Jan 2017 17:45:46 +0000 (09:45 -0800)]
wifi(vts): Generate the .vts files

Generates the .vts files for all wifi HIDL interfaces.

hidl-gen -o hardware/interfaces/wifi/1.0/vts/ -L vts -r
android.hardware:hardware/interfaces -r
android.hidl:system/libhidl/transport android.hardware.wifi@1.0
hidl-gen -o hardware/interfaces/wifi/supplicant/1.0/vts/ -L vts -r
android.hardware:hardware/interfaces -r
android.hidl:system/libhidl/transport
android.hardware.wifi.supplicant@1.0

Bug: 32022435
Test: Compiles
Change-Id: Idb037dafb72e645e5f6618bc909ba02ae7232e77

7 years agowifi(interface): Use the "bitfield" type for masks
Roshan Pius [Wed, 18 Jan 2017 17:23:18 +0000 (09:23 -0800)]
wifi(interface): Use the "bitfield" type for masks

Change all the variables representing masks to the new bitfield type
in all the Wifi HIDL interfaces.
The generated code will still produce the underlying type of enum as
param. So, no changes are needed in the implementation.

Bug: 33358724
Test: Compiles
Change-Id: Id2e5dee2ce1f1ec8e744aa1c81d3cb9c66e7fc39

7 years agosupplicant(interface): Add sta network idstr & ft key mgmt
Roshan Pius [Fri, 13 Jan 2017 23:53:07 +0000 (15:53 -0800)]
supplicant(interface): Add sta network idstr & ft key mgmt

Bug: 34284015
Bug: 32571829
Test: Compiles
Change-Id: Id4d08657a4ed5a76f727e89c19991a65ce7f91e5

7 years agosupplicant(interface): Add missing STA callbacks
Roshan Pius [Fri, 13 Jan 2017 19:05:36 +0000 (11:05 -0800)]
supplicant(interface): Add missing STA callbacks

Add a few missing callbacks in ISupplicantStaIfaceCallbacks &
ISupplicantCallbacks.

Bug: 34274091
Test: Compiles
Change-Id: I5d7819f9708f6caa4da80ed481408e376a5636f8

7 years agosupplicant(interface): Add various WPS device params
Roshan Pius [Fri, 13 Jan 2017 16:58:23 +0000 (08:58 -0800)]
supplicant(interface): Add various WPS device params

Add setters for the various params used for WPS operations.

While there,
Add missing error code in IWifiStaIface method docstrings.

Bug: 34198758
Test: Compiles
Change-Id: I3b4709083975320210c9ed2dff59852372778483

7 years agosupplicant(interface): Add P2P iface methods/cbs
Roshan Pius [Wed, 11 Jan 2017 22:05:17 +0000 (14:05 -0800)]
supplicant(interface): Add P2P iface methods/cbs

Add the missing P2P iface methods and callbacks.

Bug: 34221586
Test: Compiles
Change-Id: I9bace8ac5304dd65d81bb255dac023657c9460cc

7 years agoMerge "wifi: Add capabilitiy flag for ND offload"
Roshan Pius [Wed, 18 Jan 2017 15:33:47 +0000 (15:33 +0000)]
Merge "wifi: Add capabilitiy flag for ND offload"

7 years agoMerge "supplicant(interface): Add interface for WPS"
Treehugger Robot [Wed, 18 Jan 2017 05:58:36 +0000 (05:58 +0000)]
Merge "supplicant(interface): Add interface for WPS"

7 years agoMerge "Add test for type resolution."
Yifan Hong [Tue, 17 Jan 2017 21:03:04 +0000 (21:03 +0000)]
Merge "Add test for type resolution."

7 years agowifi: Add capabilitiy flag for ND offload
Roshan Pius [Tue, 17 Jan 2017 20:58:05 +0000 (12:58 -0800)]
wifi: Add capabilitiy flag for ND offload

Bug: 34224734
Test: Compiles
Change-Id: If4e6303fdff792a9dd576551fd84a741d8183798

7 years agosupplicant(interface): Add interface for WPS
Roshan Pius [Tue, 10 Jan 2017 22:10:19 +0000 (14:10 -0800)]
supplicant(interface): Add interface for WPS

Add the methods/callbacks required for WPS functionality through
wpa_supplicant.

Bug: 34198758
Test: Compiles
Change-Id: Iff1450621a4b039307ad6098f98326c35e53d4c6

7 years agoMerge "Testing struct that has vector of other struct"
Martijn Coenen [Mon, 16 Jan 2017 14:48:09 +0000 (14:48 +0000)]
Merge "Testing struct that has vector of other struct"

7 years agoMerge "Add a new method to trigger a blocking read."
Treehugger Robot [Sat, 14 Jan 2017 08:07:24 +0000 (08:07 +0000)]
Merge "Add a new method to trigger a blocking read."

7 years agoAdd a new method to trigger a blocking read.
Hridya Valsaraju [Sat, 14 Jan 2017 04:58:17 +0000 (20:58 -0800)]
Add a new method to trigger a blocking read.

The new method will request the service to trigger a blocking
read with the default Event Flag notification bitmask defined
by the MessageQueue class.

Test: FMQ unit tests
Change-Id: I5a61e2b4527ba31cd5ea6521c553a87904af8056

7 years agoRevert "move VTS HIDL HAL tests to the corresponding interface directories"
Steven Moreland [Fri, 13 Jan 2017 21:42:09 +0000 (21:42 +0000)]
Revert "move VTS HIDL HAL tests to the corresponding interface directories"

This reverts commit ec7746fa808e4814b07a1b8018c7ee44f16cc9a6.

Test: no test
Merged-In: I9ec4493403d71419df99fe9761211eab057cdb0a
Change-Id: I39f2acaa5ee376b90bcddd0891ac6f309cb40a2b

7 years agoMerge "supplicant(interface): Fix a typo in documentation"
Treehugger Robot [Fri, 13 Jan 2017 19:05:00 +0000 (19:05 +0000)]
Merge "supplicant(interface): Fix a typo in documentation"

7 years agoAdd test for type resolution.
Yifan Hong [Mon, 9 Jan 2017 20:07:37 +0000 (12:07 -0800)]
Add test for type resolution.

Test: make hidl_test

Bug: 31971432

Change-Id: I5c058079d54e1b480f21550a76ccfd53f54bd0c4

7 years agoMerge changes Ia9b1d24c,I86980cd2
Roshan Pius [Fri, 13 Jan 2017 16:46:14 +0000 (16:46 +0000)]
Merge changes Ia9b1d24c,I86980cd2

* changes:
  wifi: Add keep alive packet sending functionality
  wifi: Add nd offload functionality

7 years agoTesting struct that has vector of other struct
Pavel Maltsev [Fri, 13 Jan 2017 00:48:51 +0000 (16:48 -0800)]
Testing struct that has vector of other struct

Test: hidl_java_test

Bug: b/34255213
Change-Id: I6a861f0fec32d5f7d541860bfe7bc3a45d37f1be

7 years agoMerge "Load legacy NFC libhardware HAL by correct name."
Martijn Coenen [Fri, 13 Jan 2017 08:35:39 +0000 (08:35 +0000)]
Merge "Load legacy NFC libhardware HAL by correct name."

7 years agoMerge changes from topic 'port-nfc-vts-AOSP'
Ruchi Kandoi [Thu, 12 Jan 2017 23:13:43 +0000 (23:13 +0000)]
Merge changes from topic 'port-nfc-vts-AOSP'

* changes:
  Fix VTS paths on 32-bit target
  Remove obsolete references to IPCThreadState/ProcessState.
  Update Android.bp of Nfc with make rule for profiler.
  Use lowercase booleans in VTS test configs.
  Update to use the correct logging library.
  Update coverage configs with new format.
  Update NFC VTS configs to reflect new source paths
  increase the timeouts to 10mins for nfc target-side tests
  enable profiling directly from AndroidTest.xml
  NFC: vts: Update VTS driver files as per HAL changes
  NFC: Add target-side VTS tests for NFC
  use svc nfc enable/disable which is always the same.
  move VTS HIDL HAL tests to the corresponding interface directories
  Build target-side NFC test with coverage.
  Remove -DENABLE_TREBLE from vts test LOCAL_CFLAGS.
  Nfc: Split libhidl into base and transport.
  NFC: Update vts files to include the Annotations.
  NFC HAL target-side test (template)
  Update vts files for nfc hidl file style change.
  VTS driver build target for NFC 1.0
  add nfc vts files and vts profiler build rule

7 years agosupplicant(interface): Fix a typo in documentation
Roshan Pius [Wed, 11 Jan 2017 16:17:59 +0000 (08:17 -0800)]
supplicant(interface): Fix a typo in documentation

Bug: 33470645
Test: Compiles
Change-Id: I79789f64610ab7196b32794f4a7c264a2d9d7a8b

7 years agoFix VTS paths on 32-bit target
Hsin-Yi Chen [Thu, 29 Dec 2016 10:57:52 +0000 (18:57 +0800)]
Fix VTS paths on 32-bit target

Decide target_basepaths by device's bitness.
On 32-bit target, do not include */lib64.

Bug: 33930594
Test: vts-tradefed run commandAndExit vts -m VibratorHidlTest -l INFO
Change-Id: I340ded1d763dc194da461ecf183c6a2ff5f5ee6f
(cherry picked from commit 23bd70d552fc33fbd3e0be3cd28889ba884eb7e0)

7 years agoRemove obsolete references to IPCThreadState/ProcessState.
Martijn Coenen [Thu, 29 Dec 2016 13:03:41 +0000 (14:03 +0100)]
Remove obsolete references to IPCThreadState/ProcessState.

Threadpool can now be configured/joined if needed with
configureRpcThreadpool() / joinRpcThreadpool().

Bug: 31226656
Test: mma
Change-Id: I0d7d9924cc8c8851cc2b61ebdae906204909890e
(cherry picked from commit 028223775be7539c5b569a454524584a7ad8e152)

7 years agoUpdate Android.bp of Nfc with make rule for profiler.
Zhuoyao Zhang [Wed, 21 Dec 2016 18:27:35 +0000 (10:27 -0800)]
Update Android.bp of Nfc with make rule for profiler.

Bug:31930023
Test: mma
Change-Id: I4e159d4f0b37fdd4738cdee354c4fe05406baa02
(cherry picked from commit 42a6dddd4a3962af77ac46feea0ffcffb0142f3d)

7 years agoUse lowercase booleans in VTS test configs.
Ryan Campbell [Fri, 2 Dec 2016 19:12:36 +0000 (11:12 -0800)]
Use lowercase booleans in VTS test configs.

Use lowercase booleans so that they can be parsed in Java
and Python.

Test: run vts -m HalNfcHidlTargetBasicTest
Change-Id: I16e2f417047219a88d49ed5b0651639a0cc2bf61
(cherry picked from commit 9fc3c47bc7d2c09bb5d808d0d3a87fd480ad0f11)

7 years agoUpdate to use the correct logging library.
Ruchi Kandoi [Wed, 11 Jan 2017 20:38:40 +0000 (12:38 -0800)]
Update to use the correct logging library.

Test: Compiles
Merged-Id: Idb33dea5faaf1a5e54719c2a5a683d2d47e9b8e8
Change-Id: Ib770cbc75bc10a04d93d9370ec341054e3d8dd57
Cherry-picked from f9d303435d80161fabb16cdff3b8f2f75f362480

7 years agoUpdate coverage configs with new format.
Ryan Campbell [Fri, 2 Dec 2016 00:32:51 +0000 (16:32 -0800)]
Update coverage configs with new format.

Update config files to specify coverage modules and git projects
in the new format.

Test: pass
Change-Id: If58fce01d6e0fbc458653709e373e59ad976f4ae
(cherry picked from commit 54604102b56041301b293bfc335836e74c374614)

7 years agoUpdate NFC VTS configs to reflect new source paths
Ryan Campbell [Thu, 1 Dec 2016 01:29:21 +0000 (17:29 -0800)]
Update NFC VTS configs to reflect new source paths

Specify the new locations of NFC source code for use when
displaying coverage results.

Test: pass
Change-Id: I32d9b2e58ded1be3739e3cc24cf17c519a6a1d94
(cherry picked from commit ea4f71faba48e44361f557a61cf31d8415412aea)

7 years agoincrease the timeouts to 10mins for nfc target-side tests
Keun Soo Yim [Wed, 30 Nov 2016 21:46:00 +0000 (13:46 -0800)]
increase the timeouts to 10mins for nfc target-side tests

Test: local direct binary runs (1.5mins on average)
Change-Id: Id85633a6a4a55a9d6876142447521146cd6e57f3
(cherry picked from commit c0299961175114568c044485155662fbffc98fd0)

7 years agoenable profiling directly from AndroidTest.xml
Yuexi Ma [Tue, 22 Nov 2016 17:55:39 +0000 (09:55 -0800)]
enable profiling directly from AndroidTest.xml

Test: local
Change-Id: If13be820766f54ff154f350cbbacbab9dffe07d2
(cherry picked from commit aa61067c141b0601ef6a445a4a6ff56c861718b6)

7 years agoNFC: vts: Update VTS driver files as per HAL changes
Ruchi Kandoi [Mon, 21 Nov 2016 18:59:58 +0000 (10:59 -0800)]
NFC: vts: Update VTS driver files as per HAL changes

The return types for the NFC HAL have changed, this patches updates the
VTS driver files.

Test: Test Passes
Bug: 32748647
Change-Id: Ic31d25c3d6b4a1db05e2e481a948a7547b30f2d7
Singed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit d9b830ff9b4148cc4497b9d2b401a8285b7ffd58)

7 years agoNFC: Add target-side VTS tests for NFC
Ruchi Kandoi [Sat, 12 Nov 2016 00:37:34 +0000 (16:37 -0800)]
NFC: Add target-side VTS tests for NFC

Test: Test Passes
Change-Id: I393ca24e86447571a92e3742716fdc6f1ddc0519
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
(cherry picked from commit 1488dd7ff093c2db94e28b0ceb3567cd976e4bdc)