OSDN Git Service

android-x86/hardware-interfaces.git
6 years agoAdd the error code "OPERATION_NOT_ALLOWED" and log the error.
yinxu [Mon, 7 Aug 2017 17:29:10 +0000 (10:29 -0700)]
Add the error code "OPERATION_NOT_ALLOWED" and log the error.

Test: Telephony sanity tests, run vts -m VtsHalRadioV1_1Target
Bug: 64426938
Change-Id: Id4f06842186b10a52640372c23bc2b368cc1e9ab

6 years agoMerge "wifi(hidl): Modify the SAR power levels interface" into oc-dr1-dev
TreeHugger Robot [Fri, 28 Jul 2017 02:47:05 +0000 (02:47 +0000)]
Merge "wifi(hidl): Modify the SAR power levels interface" into oc-dr1-dev

6 years agoMerge "Camera: fix various VTS issues" into oc-dr1-dev
Yin-Chia Yeh [Thu, 27 Jul 2017 23:08:56 +0000 (23:08 +0000)]
Merge "Camera: fix various VTS issues" into oc-dr1-dev

6 years agowifi(hidl): Modify the SAR power levels interface
Roshan Pius [Tue, 25 Jul 2017 15:48:08 +0000 (08:48 -0700)]
wifi(hidl): Modify the SAR power levels interface

Modifying the interface used to lower the tx power level for meeting SAR
requirements based on recommendation from the nexus hardware team. The
previous interface passed in a single power value in dBm for meeting SAR
requirements. However, the SAR requirements are more complex than that.
Based on the connection mode (802.11 a,b,g,n,ac) and the number of
streams that are active (MIMO), the SAR power levels are very
different. Using the previous interface would mean that we will have to
use the lowest power level among all the connection modes to meet the SAR
requirements. This would however result in us lowering the power much
more than needed (~2 dBm) for many connection modes.
Instead, we're switching to a more generic interface where the framework
informs the wifi chip that we're entering a special tx power mode scenario
(today, there is only 1 for voice call). The chip can then lookup the
extensive table of power levels for different connection modes which are
pre-populated by the OEM's in the BDF file to set the power level (depending
on the scenario framework sends and the active connection mode).

Bug: 62437848
Test: Manual tests
Change-Id: I5ee3f0d2c130958dbeb352e3b5ad9407f432624f

6 years agoCamera: fix various VTS issues
Yin-Chia Yeh [Wed, 26 Jul 2017 23:53:20 +0000 (16:53 -0700)]
Camera: fix various VTS issues

Also fix wrong return values for processCaptureRequest in default
wrapper.

Test: running camera VTS
Bug: 64041692
Change-Id: I397390af7c85a776713f6287bef1c4d11c721c9a
Merged-In: I397390af7c85a776713f6287bef1c4d11c721c9a

6 years agoMerge "Camera: reset callback after test done" into oc-dr1-dev
TreeHugger Robot [Wed, 26 Jul 2017 21:28:45 +0000 (21:28 +0000)]
Merge "Camera: reset callback after test done" into oc-dr1-dev

6 years agoMerge "Fix VTS errors of the network scan API" into oc-dr1-dev
Ying Xu [Wed, 26 Jul 2017 17:46:56 +0000 (17:46 +0000)]
Merge "Fix VTS errors of the network scan API" into oc-dr1-dev

6 years agoMerge "Move android.hardware.tests.msgq@1.0-impl to system.img" into oc-dr1-dev
Zhuoyao Zhang [Wed, 26 Jul 2017 03:15:14 +0000 (03:15 +0000)]
Merge "Move android.hardware.tests.msgq@1.0-impl to system.img" into oc-dr1-dev

6 years agoMerge "Move all hidl_test dependencies to the system.img" into oc-dr1-dev
Zhuoyao Zhang [Wed, 26 Jul 2017 03:15:14 +0000 (03:15 +0000)]
Merge "Move all hidl_test dependencies to the system.img" into oc-dr1-dev

6 years agoFix VTS errors of the network scan API
yinxu [Tue, 25 Jul 2017 22:15:52 +0000 (15:15 -0700)]
Fix VTS errors of the network scan API

Since the new network scan API is only supported by some devices, we
should add the REQUEST_NOT_SUPPORTED to the possible returned errors.

Test: Telephony sanity tests, run vts -m VtsHalRadioV1_1Target
Bug: 63914600
Change-Id: I965ee6422aaa5e02bf67466f5288b808183f1738

6 years agoMerge "Camera: Don't enforce result metadata queue support" into oc-dev
Eino-Ville Talvala [Tue, 25 Jul 2017 21:09:48 +0000 (21:09 +0000)]
Merge "Camera: Don't enforce result metadata queue support" into oc-dev
am: 1d1b503b77  -s ours

Change-Id: If9f4aa85e57aabf7dfb393813ab13eff78967a16

6 years agoMerge "Camera: Don't enforce result metadata queue support" into oc-dev
Eino-Ville Talvala [Tue, 25 Jul 2017 20:58:44 +0000 (20:58 +0000)]
Merge "Camera: Don't enforce result metadata queue support" into oc-dev

6 years agoMerge "Camera: Don't enforce result metadata queue support" into oc-dr1-dev
Eino-Ville Talvala [Tue, 25 Jul 2017 20:54:34 +0000 (20:54 +0000)]
Merge "Camera: Don't enforce result metadata queue support" into oc-dr1-dev

6 years agoMove all hidl_test dependencies to the system.img
Steven Moreland [Fri, 14 Jul 2017 20:34:03 +0000 (13:34 -0700)]
Move all hidl_test dependencies to the system.img

Test: hidl_test passes
Test: build with BOARD_VNDK_VERSION=current
Bug: 63704014
Change-Id: Ia97be8b4d61236adfd964bf8e4fa632d99010b98
Merged-In: Ia97be8b4d61236adfd964bf8e4fa632d99010b98
(cherry picked from commit 2f2aabe2123dfdc35c0499c028fd5ab0ce3c9585)

6 years agoMove android.hardware.tests.msgq@1.0-impl to system.img
Zhuoyao Zhang [Fri, 21 Jul 2017 17:53:24 +0000 (10:53 -0700)]
Move android.hardware.tests.msgq@1.0-impl to system.img

Bug:63704014
Test: make vts
      vts-tradefed run vts -m VtsFmqUnitTest.

Change-Id: I0deb28ffdbd437cc05d9c1efed63e0ba9dc3a048
Merged-In: I0deb28ffdbd437cc05d9c1efed63e0ba9dc3a048
(cherry picked from commit ea35563b799f6c9866500e8d365e0516e1971ca1)
(cherry picked from commit 1d42476fdcd631fcf97d2ccf24996c8b7edd7521)

6 years agoCamera: Don't enforce result metadata queue support
Emilian Peev [Mon, 24 Jul 2017 15:29:54 +0000 (16:29 +0100)]
Camera: Don't enforce result metadata queue support

Some provider implementations could still be using direct
transfer of the result metadata through hw binder.

Merged-In: Ib2adaff005af77385767a32c1ed069371a6e9b7a
Bug: 63970723
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --module VtsHalCameraProviderV2_4Target -l INFO
Change-Id: Ib2adaff005af77385767a32c1ed069371a6e9b7a

6 years agoCamera: Don't enforce result metadata queue support
Emilian Peev [Mon, 24 Jul 2017 15:29:54 +0000 (16:29 +0100)]
Camera: Don't enforce result metadata queue support

Some provider implementations could still be using direct
transfer of the result metadata through hw binder.

Merged-In: Ib2adaff005af77385767a32c1ed069371a6e9b7a
Bug: 63970723
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --module VtsHalCameraProviderV2_4Target -l INFO
Change-Id: Ib2adaff005af77385767a32c1ed069371a6e9b7a

6 years agoMerge "Weaver: functional VTS tests" into oc-dr1-dev
Andrew Scull [Tue, 25 Jul 2017 12:09:02 +0000 (12:09 +0000)]
Merge "Weaver: functional VTS tests" into oc-dr1-dev

6 years agoMerge "OemLock functional VTS test." into oc-dr1-dev
Andrew Scull [Tue, 25 Jul 2017 12:08:56 +0000 (12:08 +0000)]
Merge "OemLock functional VTS test." into oc-dr1-dev

6 years agosupplicant(vts): Remove start/stop framework
Roshan Pius [Tue, 25 Jul 2017 06:44:52 +0000 (06:44 +0000)]
supplicant(vts): Remove start/stop framework
am: 80599435bd

Change-Id: Ie80ce57759f12b4b2b833b457a11c2b3650560ba

6 years agosupplicant(vts): Remove start/stop framework
Roshan Pius [Mon, 24 Jul 2017 21:13:48 +0000 (14:13 -0700)]
supplicant(vts): Remove start/stop framework

This is already done by the test harness on the host side. So, no need
to invoke this from within the gtest.

Bug: 63914399
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
VtsHalWifiSupplicantV1_0Target -l INFO`

Change-Id: I43edc03492bf5e03f9a4236265c43baa5efcd61d
(cherry picked from commit 145cce98b56674404a6148835f008df44086db2e)
Merged-Id: I43edc03492bf5e03f9a4236265c43baa5efcd61d

6 years agoMerge "Add Sim absent assertion in the 1.0 setup" into oc-dev
Shuo Qian [Tue, 25 Jul 2017 00:22:25 +0000 (00:22 +0000)]
Merge "Add Sim absent assertion in the 1.0 setup" into oc-dev
am: 5b472ec138

Change-Id: Ib90407dd470f88dddf5d8037e459e22b534c8b10

6 years agoMerge "Add Sim absent assertion in the 1.0 setup" into oc-dev
Shuo Qian [Tue, 25 Jul 2017 00:14:21 +0000 (00:14 +0000)]
Merge "Add Sim absent assertion in the 1.0 setup" into oc-dev

6 years agoMerge "Add Sim absent assertion in the setup" into oc-dr1-dev
Shuo Qian [Tue, 25 Jul 2017 00:14:00 +0000 (00:14 +0000)]
Merge "Add Sim absent assertion in the setup" into oc-dr1-dev

6 years agoMerge "Update VTS tests so that more tests pass for O." into oc-dr1-dev
TreeHugger Robot [Mon, 24 Jul 2017 23:26:12 +0000 (23:26 +0000)]
Merge "Update VTS tests so that more tests pass for O." into oc-dr1-dev

6 years agoMerge "supplicant(vts): Remove start/stop framework" into oc-dr1-dev
Roshan Pius [Mon, 24 Jul 2017 23:07:54 +0000 (23:07 +0000)]
Merge "supplicant(vts): Remove start/stop framework" into oc-dr1-dev

6 years agosupplicant(vts): Remove start/stop framework
Roshan Pius [Mon, 24 Jul 2017 21:13:48 +0000 (14:13 -0700)]
supplicant(vts): Remove start/stop framework

This is already done by the test harness on the host side. So, no need
to invoke this from within the gtest.

Bug: 63914399
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
VtsHalWifiSupplicantV1_0Target -l INFO`

Change-Id: I43edc03492bf5e03f9a4236265c43baa5efcd61d

6 years agoUpdate VTS tests so that more tests pass for O.
Sanket Padawe [Sun, 23 Jul 2017 00:58:02 +0000 (17:58 -0700)]
Update VTS tests so that more tests pass for O.

Cherry picked from ag/2562201
Bug: b/62926561
Test: vts tests

Change-Id: Ic927f9efd437c6411fb14feac8c681334e4b5e60
Merged-in: Ic927f9efd437c6411fb14feac8c681334e4b5e60

6 years agoMerge "Fixed the HCI ACL Header definitions for PB and BC Flags" into oc-dev
Stanley Tng [Sat, 22 Jul 2017 15:57:52 +0000 (15:57 +0000)]
Merge "Fixed the HCI ACL Header definitions for PB and BC Flags" into oc-dev
am: ad6b1eb846

Change-Id: I1636ac9ff75062d170db6032b8e657a0f5b29f54

6 years agoMerge "Fixed the HCI ACL Header definitions for PB and BC Flags" into oc-dev
TreeHugger Robot [Sat, 22 Jul 2017 15:51:40 +0000 (15:51 +0000)]
Merge "Fixed the HCI ACL Header definitions for PB and BC Flags" into oc-dev

6 years agoFixed the HCI ACL Header definitions for PB and BC Flags
Stanley Tng [Wed, 19 Jul 2017 17:55:01 +0000 (10:55 -0700)]
Fixed the HCI ACL Header definitions for PB and BC Flags

The byte offsets for Packet Boundary (PB) and Broadcast (BC) flags
in the HCI ACL Header is swapped. This will fixed it so that it matches
the Bluetooth Specifications.

Bug: 63241720
Test: Run manual VTS tests for Bluetooth
Change-Id: Ifc1f4d4f054a1dab13458c563e47bfb884f39d92
(cherry picked from commit 7915b71fb9fdc8a378b2aae9b618d67bf64d4971)

6 years agoUpdate VTS tests so that Mediatek pass more VTS for O.
Legler Wu [Sat, 22 Jul 2017 07:04:55 +0000 (07:04 +0000)]
Update VTS tests so that Mediatek pass more VTS for O.
am: b36443a864  -s ours

Change-Id: I18dd1802cca630e3b9603c5decf3c2e2becffde7

6 years agoUpdate VTS tests so that Mediatek pass more VTS for O.
Legler Wu [Fri, 30 Jun 2017 03:00:07 +0000 (11:00 +0800)]
Update VTS tests so that Mediatek pass more VTS for O.

Bug: b/62926561
Test: vts tests

Change-Id: Ic927f9efd437c6411fb14feac8c681334e4b5e60
Merged-in: Ic927f9efd437c6411fb14feac8c681334e4b5e60

6 years agoAdd Sim absent assertion in the 1.0 setup
sqian [Fri, 21 Jul 2017 18:49:03 +0000 (11:49 -0700)]
Add Sim absent assertion in the 1.0 setup

Currently the VTS tests for radio are for Sim Absent only. Adding this
assertion in the set up before running VTS tests clarifies the current
tests running is for sim absent only.

Test: run vts
Bug: 63898623
Change-Id: Ie09fb8bcedfd0b35b14f0a70952f44b6f6b082aa

6 years agoAdd Sim absent assertion in the setup
sqian [Fri, 21 Jul 2017 18:18:17 +0000 (11:18 -0700)]
Add Sim absent assertion in the setup

Currently the VTS tests for radio are for Sim Absent only. Adding this
assertion in the set up before running VTS tests clarifies the current
tests running is for sim absent only.

Test: run vts
Bug: 63898623
Change-Id: I0017dd1b3939348b183ce19a5ec4cbc977946cc1

6 years agoMerge "Update IRadioResponse.hal documentation" into oc-dev
Shuo Qian [Fri, 21 Jul 2017 19:10:10 +0000 (19:10 +0000)]
Merge "Update IRadioResponse.hal documentation" into oc-dev
am: 7c60d26763  -s ours

Change-Id: I6d1a967b66a26158052909c9cf4721e3e77b72e5

6 years agoMerge "Update IRadioResponse.hal documentation" into oc-dev
Shuo Qian [Fri, 21 Jul 2017 18:58:12 +0000 (18:58 +0000)]
Merge "Update IRadioResponse.hal documentation" into oc-dev

6 years agoMerge "[HAL] Invalidate chip before shutting down legacy HAL" into oc-dr1-dev
Etan Cohen [Fri, 21 Jul 2017 03:18:16 +0000 (03:18 +0000)]
Merge "[HAL] Invalidate chip before shutting down legacy HAL" into oc-dr1-dev

6 years agoMerge "Fix some VTS for 2017 devices" into oc-dev
Shuo Qian [Fri, 21 Jul 2017 00:03:57 +0000 (00:03 +0000)]
Merge "Fix some VTS for 2017 devices" into oc-dev
am: 41b188be76  -s ours

Change-Id: Ic1f9a9b296fdd34837e2927a367b265a82c909a4

6 years agoMerge "Fix some VTS for 2017 devices" into oc-dev
Shuo Qian [Thu, 20 Jul 2017 23:57:25 +0000 (23:57 +0000)]
Merge "Fix some VTS for 2017 devices" into oc-dev

6 years agoCamera: reset callback after test done
Yin-Chia Yeh [Tue, 11 Jul 2017 20:44:35 +0000 (13:44 -0700)]
Camera: reset callback after test done

Test: VTS test pass
Bug: 63570734
Change-Id: Ia7b1e8e9baae2885d9c43821fe2933df883f7892
Merged-In: Ic0eecaf843b5c2e78f60325090ea652d43a74a0b

6 years agoMerge " Add VTS code for the network scan API" into oc-dr1-dev
Ying Xu [Thu, 20 Jul 2017 16:37:11 +0000 (16:37 +0000)]
Merge " Add VTS code for the network scan API" into oc-dr1-dev

6 years agoWeaver: functional VTS tests
Andrew Scull [Mon, 12 Jun 2017 15:38:46 +0000 (16:38 +0100)]
Weaver: functional VTS tests

Bug: 37530412
Test: VtsHalWeaverV1_0TargetTest
Change-Id: I6309acac45321b221c885cb10ca30bf653aa23ab
(cherry picked from commit 491fe84c2d51f5d08f93a7e2bbbe58f403d07359)

6 years agoOemLock functional VTS test.
Andrew Scull [Tue, 13 Jun 2017 09:44:55 +0000 (10:44 +0100)]
OemLock functional VTS test.

Bug: 37530310
Test: VtsHalOemLockV1_0TargetTest
Change-Id: I07adb187f9bde236e2c92f423936089f4cb37b24
(cherry picked from commit 3aee4e9e3f3dbd7d4a6e6bd6ba816773a4e4c817)

6 years agoAudio VTS: Change test utility from dyn to static lib
Kevin Rocard [Tue, 18 Jul 2017 19:29:39 +0000 (12:29 -0700)]
Audio VTS: Change test utility from dyn to static lib

Bug: 63801053

In order to avoid having to instruct vts-tradefed to push the test
utility library on the target before runing the audio VTS,
duplicating the makefile declaration,
make the library static.

Test: make vts
Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target
Change-Id: I7a98b2aaf0e0f6f91a92b7f01df1c630540ad697
Merged-In: I7a98b2aaf0e0f6f91a92b7f01df1c630540ad697
Signed-off-by: Kevin Rocard <krocard@google.com>
6 years agoMerge "graphics: sideband streams are not buffers" into oc-dr1-dev
Chia-I Wu [Wed, 19 Jul 2017 21:29:58 +0000 (21:29 +0000)]
Merge "graphics: sideband streams are not buffers" into oc-dr1-dev

6 years agoFix some VTS for 2017 devices
sqian [Wed, 19 Jul 2017 18:54:03 +0000 (11:54 -0700)]
Fix some VTS for 2017 devices

- sendDeviceState
- setIndicationFilter

Mentioned in b/63148938
- getNeighboringCids

Add Request_not_support for Apis mentioned in Bugs:
 - 62989786
 - 62986286
 - 62987946

Test: run vts
Bug: 63130111
Bug: 63148938
Bug: 62989786
Bug: 62986286
Bug: 62987946
Change-Id: Ib51f67d403bb27f409018a98c07d6aa6aa6d19f8
Merged-In: Ib51f67d403bb27f409018a98c07d6aa6aa6d19f8
(cherry picked from commit fe0699535e8d17b7716a10e64c2528abc9ffaecb)

6 years ago[HAL] Invalidate chip before shutting down legacy HAL
Etan Cohen [Mon, 17 Jul 2017 23:43:29 +0000 (16:43 -0700)]
[HAL] Invalidate chip before shutting down legacy HAL

Change the order of shutdown to invalidate chips before
shutting down the legacy HAL. Allows pre-shutdown commands
to be sent down.

Bug: 63704506
Test: NAN tests passing
Test: full regression suite
Change-Id: I03d237d732b4e3482b1e1639848342dfdde9fcb7

6 years agoMerge changes from topic 'b/62584347' into oc-dr1-dev
Shuo Qian [Wed, 19 Jul 2017 18:48:54 +0000 (18:48 +0000)]
Merge changes from topic 'b/62584347' into oc-dr1-dev

* changes:
  Modified error code for OPERATION_NOT_ALLOWED
  Change mapping of QMI error

6 years agoMerge "wifi: Add the missing RTT capabilities" into oc-dr1-dev
TreeHugger Robot [Tue, 18 Jul 2017 23:04:26 +0000 (23:04 +0000)]
Merge "wifi: Add the missing RTT capabilities" into oc-dr1-dev

6 years agoModified error code for OPERATION_NOT_ALLOWED
sqian [Mon, 17 Jul 2017 22:43:08 +0000 (15:43 -0700)]
Modified error code for OPERATION_NOT_ALLOWED

Test: run vts
Bug: 62584347
Change-Id: I3abacdbcc5391c790f61c7f5710c1292447a29b6

6 years ago[VTS][NAN] Restore NAN test: configure for device support
Etan Cohen [Wed, 12 Jul 2017 20:18:41 +0000 (13:18 -0700)]
[VTS][NAN] Restore NAN test: configure for device support

Restore NAN test and use configuration which determines test
result based on whether or not the platform supports NAN.

Bug: 63131342
Test: NAN-supporting devices: pass (the NAN tests)
Test: Non-NAN-supporting device: pass
Change-Id: I6600abc531d4eb1dea6c501f6a39ef37051cb923

6 years agoAccept a command line arg (nan_on) in wifi vts
Keun Soo Yim [Tue, 11 Jul 2017 16:40:33 +0000 (09:40 -0700)]
Accept a command line arg (nan_on) in wifi vts

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 VtsHalWifiV1_0Host -l
INFO

Test: VtsHalWifiV1_0TargetTest
Test: VtsHalWifiV1_0TargetTest -N
Test: VtsHalWifiV1_0TargetTest --nan_on
Test: VtsHalWifiV1_0TargetTest -f (fails)
Test: VtsHalWifiV1_0TargetTest --gtest_filter=foo
Test: VtsHalWifiV1_0TargetTest --gtest_filter=foo -N
Test: VtsHalWifiV1_0TargetTest -N --gtest_filter=foo

Bug: 63131342

Change-Id: I359ac7238496e64c7ace1e14e797d4fcfc8cc0e4

6 years ago Add VTS code for the network scan API
yinxu [Tue, 11 Jul 2017 21:17:41 +0000 (14:17 -0700)]
 Add VTS code for the network scan API

Test: Telephony sanity tests, run vts -m VtsHalRadioV1_1Target
Bug: 63531235

Change-Id: I25c85b2abb738959d1445e0054049db4bb2f2dfd

6 years agoChange mapping of QMI error
Naina Nalluri [Mon, 17 Jul 2017 18:56:42 +0000 (11:56 -0700)]
Change mapping of QMI error

Change mapping of QMI_ERR_OP_NETWORK_UNSUPPORTED
from MODE_NOT_SUPPORTED to OPERATION_NOT_ALLOWED.

Test: run vts
Bug: 62584347

Change-Id: I16a17579581f891701750b4be52cc2ef57594d0c

6 years agoMerge "Fix some VTS for 2017 devices" into oc-dr1-dev
Shuo Qian [Mon, 17 Jul 2017 22:09:30 +0000 (22:09 +0000)]
Merge "Fix some VTS for 2017 devices" into oc-dr1-dev

6 years agowifi: Add the missing RTT capabilities
Roshan Pius [Mon, 17 Jul 2017 20:10:01 +0000 (13:10 -0700)]
wifi: Add the missing RTT capabilities

These feature flags are defined in the legacy HAL, but were not exposed in the HIDL
interface.

Updated the hash in current.txt using 'hidl-gen -L hash -r
android.hardware.wifi@1.1:hardware/interfaces -r
android.hardware:hardware/interfaces -r
android.hidl:system/libhidl/transport
android.hardware.wifi@1.1::IWifiChip'

Bug: 63545934
Test: Manual testing
Change-Id: Ia196e0fc1c5e305210ec95eb8a54b1a1204ebf20

6 years agographics: sideband streams are not buffers
Chia-I Wu [Mon, 17 Jul 2017 17:32:15 +0000 (10:32 -0700)]
graphics: sideband streams are not buffers

We should call native_handle_clone instead of IMapper::importBuffer
on sideband stream handles.

Bug: 63707399
Test: manual
Change-Id: Ie07e50f6bb771f3c7a69d29e36f60b149dc6af95

6 years agoMerge "Add RadioIndication for Radio VTS test" into oc-dr1-dev
Shuo Qian [Mon, 17 Jul 2017 17:23:24 +0000 (17:23 +0000)]
Merge "Add RadioIndication for Radio VTS test" into oc-dr1-dev

6 years agoAdd RadioIndication for Radio VTS test
sqian [Wed, 12 Jul 2017 19:37:07 +0000 (12:37 -0700)]
Add RadioIndication for Radio VTS test

Fix 1.1 radio folder bug

Bug: 38499208
Test: run vts
Change-Id: I6d39ce258d5318ce06fc7c99dad4caf0a3e35415

6 years agoMerge "supplicant(vts): Remove dependency on libwifi_hal" into oc-dr1-dev
TreeHugger Robot [Fri, 14 Jul 2017 20:38:43 +0000 (20:38 +0000)]
Merge "supplicant(vts): Remove dependency on libwifi_hal" into oc-dr1-dev

6 years agosupplicant(vts): Remove dependency on libwifi_hal
Roshan Pius [Fri, 14 Jul 2017 18:32:25 +0000 (11:32 -0700)]
supplicant(vts): Remove dependency on libwifi_hal

libwifi_hal is a vendor component, so these are not allowed to be used
in the VTS tests. Use the vendor HAL for the required initializations
instead since that is the flow used by framework anyway (setup the wifi
chip using vendor hal and then use wpa_supplicant for connections).

Bug: 63704014
Bug: 33241851
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
VtsHalWifiSupplicantV1_0Target -l INFO

Change-Id: I396d8311253e2b2493f9bb901731937019d30164

6 years agoMerge "Add powerHintAsync functionality" into oc-dr1-dev
Philip Cuadra [Fri, 14 Jul 2017 17:02:21 +0000 (17:02 +0000)]
Merge "Add powerHintAsync functionality" into oc-dr1-dev

6 years agoMerge "Print test information to the target device's logcat" into oc-dr1-dev
TreeHugger Robot [Fri, 14 Jul 2017 04:37:32 +0000 (04:37 +0000)]
Merge "Print test information to the target device's logcat" into oc-dr1-dev

6 years agoFix some VTS for 2017 devices
sqian [Mon, 10 Jul 2017 18:12:38 +0000 (11:12 -0700)]
Fix some VTS for 2017 devices

- sendDeviceState
- setIndicationFilter

Mentioned in b/63148938
- getNeighboringCids

Add Request_not_support for Apis mentioned in Bugs:
 - 62989786
 - 62986286
 - 62987946

Test: run vts
Bug: 63130111
Bug: 63148938
Bug: 62989786
Bug: 62986286
Bug: 62987946
Change-Id: Ib51f67d403bb27f409018a98c07d6aa6aa6d19f8
Merged-In: Ib51f67d403bb27f409018a98c07d6aa6aa6d19f8

6 years agoAdd powerHintAsync functionality
Philip Cuadra [Tue, 11 Jul 2017 22:26:53 +0000 (15:26 -0700)]
Add powerHintAsync functionality

Add an async version of powerHint called powerHintAsync.

Bug: 62377008
Test: Take systrace, confirm powerHint is now an async HIDL transaction

Change-Id: I7c4d850ef17c909977675771d6c2b8a3fa1609d2

6 years agoMerge "Add an empty 1.1 ISap interface." into oc-dr1-dev
Amit Mahajan [Thu, 13 Jul 2017 17:47:48 +0000 (17:47 +0000)]
Merge "Add an empty 1.1 ISap interface." into oc-dr1-dev

6 years agoMerge "wifi(implementation): Set/Reset TX power limit" into oc-dr1-dev
TreeHugger Robot [Thu, 13 Jul 2017 16:23:28 +0000 (16:23 +0000)]
Merge "wifi(implementation): Set/Reset TX power limit" into oc-dr1-dev

6 years agoAdd an empty 1.1 ISap interface.
Amit Mahajan [Wed, 12 Jul 2017 17:17:36 +0000 (10:17 -0700)]
Add an empty 1.1 ISap interface.

This is needed since manifest doesn't support different versions
for different interfaces in a package. Since there's a 1.1 for
IRadio, there needs to be a 1.1 for ISap as well.

Test: build
Bug: 63598469
Change-Id: I9a0bd898e5d236f05d6574b3e3093521d0f57d52

6 years agoRemove configstore from the list of O-MR1 HALs.
Steven Moreland [Wed, 12 Jul 2017 02:26:06 +0000 (19:26 -0700)]
Remove configstore from the list of O-MR1 HALs.

This interface was removed.

Test: none
Bug: 63440035
Change-Id: I984b4553f5e31d9b3926f4b3d2abc891909fcb51

6 years agoMerge "Configstore HAL is down-revisioned to 1.0" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 02:18:16 +0000 (02:18 +0000)]
Merge "Configstore HAL is down-revisioned to 1.0" into oc-dr1-dev

6 years agowifi(implementation): Set/Reset TX power limit
Roshan Pius [Tue, 11 Jul 2017 15:59:29 +0000 (08:59 -0700)]
wifi(implementation): Set/Reset TX power limit

Hookup the HIDL method calls to the respective newly added legacy
HAL functions for setting/resetting TX power limits for SAR
requirements.

Bug: 62437848
Test: VTS test fails because of a bug in Qcom implementation. Working
with Qcom to fix their implementation.
Change-Id: Ia619f5558e44d44fd77d037e72dfc1f6863b51e0

6 years agoConfigstore HAL is down-revisioned to 1.0
Sundong Ahn [Mon, 10 Jul 2017 04:56:10 +0000 (13:56 +0900)]
Configstore HAL is down-revisioned to 1.0

Configstore was up-revisioned from 1.0 to 1.1. However no new
APIs were added to 1.1. Therefore configstore in dr1 will be down
revisioned to 1.0.

Bug: 63440035
Test: build & run
Change-Id: Ia2614439cd620fbe5fbd427571ab55a15089cc47
Merged-In: I75e7fd1da8e90ae48d779a3ba28957c5a93a5529

6 years agoBluetooth: Change CHECK() to LOG_ALWAYS_FATAL()
Myles Watson [Mon, 26 Jun 2017 20:09:11 +0000 (13:09 -0700)]
Bluetooth: Change CHECK() to LOG_ALWAYS_FATAL()

Bug: 62641184
Test: Compilation
Change-Id: I21192c7a5c15def379d040b586a66ee1534c7c15
(cherry picked from commit 3e272a70763ff6191ac96d8560724e0a02f827ac)

6 years agoMerge "Revert of "Audio: Add XML schema for audio effects configuration"" into oc...
TreeHugger Robot [Fri, 7 Jul 2017 22:58:55 +0000 (22:58 +0000)]
Merge "Revert of "Audio: Add XML schema for audio effects configuration"" into oc-dr1-dev

6 years agoMerge "Freeze wifi 1.1 interface." into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 02:35:13 +0000 (02:35 +0000)]
Merge "Freeze wifi 1.1 interface." into oc-dr1-dev

6 years agoPrint test information to the target device's logcat
Pawin Vongmasa [Thu, 22 Jun 2017 00:55:41 +0000 (17:55 -0700)]
Print test information to the target device's logcat

Test: make vts -j99 && \
vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Test -l INFO

Bug: 62885431
Change-Id: I71bfa9c5ff4825259c7452ad7ac40fef87103b5f

6 years agoMerge "Relax accelerometer events norm check" into oc-dr1-dev
Peng Xu [Thu, 6 Jul 2017 23:24:52 +0000 (23:24 +0000)]
Merge "Relax accelerometer events norm check" into oc-dr1-dev

6 years agoFreeze wifi 1.1 interface.
Steven Moreland [Thu, 6 Jul 2017 22:03:05 +0000 (15:03 -0700)]
Freeze wifi 1.1 interface.

Test: pass
Bug: 62437848
Bug: 62421345
Change-Id: Ib3bd3bbc28e6f0d34716781d4247ac0411128933

6 years agoMerge changes from topic 'wifi_1_1' into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 21:50:20 +0000 (21:50 +0000)]
Merge changes from topic 'wifi_1_1' into oc-dr1-dev

* changes:
  wifi(implementation): Create 1.1 interface package
  wifi(interface): Create 1.1 interface package

6 years agowifi(implementation): Create 1.1 interface package
Roshan Pius [Tue, 20 Jun 2017 19:05:40 +0000 (12:05 -0700)]
wifi(implementation): Create 1.1 interface package

1. Move the implementation in 1.0/default to 1.1/default.
2. Move all of the implementation to
android::hardware::V1_1::implementation namespace.
3. All of the header files include the android::hardware::V1_0 namespace
so that it can access the types from 1.0 package. ("using namespace" is
against Google style guide though :().
The other option to prefix each 1.0 type with the namespace name.
For example: V1_0::WifiStatus.
4. Added the implementation of the new 1.1 method
IWifiChip.setTxPowerLimit().
4. The executable name and the .rc still has 1.0 name in it to avoid
changing all the device.mk files.

TODO: Hookup to the new legacy HAL API.

Bug: 62437848
Test: mmm -j128 hardware/interfaces/wifi/1.1/default/
Test: Device boots up and able to connect to wifi networks.
Test: New VTS tests passes
Change-Id: Ib36282939e70b064f246041a03d8870f5cb6410e

6 years agoBT HAL H4 write flow
Peng Qi [Mon, 19 Jun 2017 10:01:07 +0000 (18:01 +0800)]
BT HAL H4 write flow

If to send type and data separately for one HCI packet,
it will cause two system call context switch to kernel space,
which will introduce software overhead on data path.
Plus, if vendor does not use pure UART interface, it causes different
data behavior on BUS and may not adapt to all vendors as legacy HAL did.
Considering backward-compatibility, to use writev to send
type and data together once as legacy BT HAL did.

Bug: 63391357
Test: H4 UTTest, BT VTS test, Bluetooth on/off
Change-Id: I2d93085fe0c01b48d0e3729a3fa85b5b27335b2c
(cherry picked from commit 92afd74a15d15b0ad6eb619a8ad3a864a4f6e71c)

6 years agowifi(interface): Create 1.1 interface package
Roshan Pius [Tue, 20 Jun 2017 18:36:29 +0000 (11:36 -0700)]
wifi(interface): Create 1.1 interface package

Extend the wifi HAL to add a new method in IWifiChip. This new method is
used for setting the TX power limit for meeting SAR requirements.

Bug: 62437848
Test: ./hardware/interfaces/update-makefiles.sh
Test: mmm -j32 hardware/interfaces/wifi/1.1
Change-Id: I8320a64812339f15cd88636505de0dfda18f0ebf

6 years agoMerge "Add structural test VtsHalConfigstoreV1_1Target" into oc-dr1-dev
Jae Shin [Thu, 6 Jul 2017 01:31:06 +0000 (01:31 +0000)]
Merge "Add structural test VtsHalConfigstoreV1_1Target" into oc-dr1-dev

6 years agoMerge "[AWARE] Pass through full structure for end NDP command" into oc-dr1-dev
TreeHugger Robot [Wed, 5 Jul 2017 22:11:25 +0000 (22:11 +0000)]
Merge "[AWARE] Pass through full structure for end NDP command" into oc-dr1-dev

6 years agoRevert of "Audio: Add XML schema for audio effects configuration"
Mikhail Naganov [Wed, 5 Jul 2017 18:18:54 +0000 (11:18 -0700)]
Revert of "Audio: Add XML schema for audio effects configuration"

The schema file isn't used anywhere, safe to revert.

Bug: 37492580
Bug: 63169864
Test: not needed
Change-Id: I97e6e2d5be5324efe87475e04a916afeeec53631

6 years agoRelax accelerometer events norm check
Peng Xu [Wed, 5 Jul 2017 18:24:19 +0000 (11:24 -0700)]
Relax accelerometer events norm check

Current accelerometer norm check threshold is tight and cause
unnecessary test flakiness in test environment with small
inevitable vibration (e.g. from people walking by testing
lab).

This CL relax the threshold from 0.5m/s^2 to 1m/s^2.

Test: vts pass
Bug: 62811045
Change-Id: I5d7e736623c892b6e6c9b8ddc5d0f53fa8aaba77

6 years agoAdd structural test VtsHalConfigstoreV1_1Target
Jae Shin [Mon, 3 Jul 2017 04:34:04 +0000 (13:34 +0900)]
Add structural test VtsHalConfigstoreV1_1Target

Add vts test module for configstore@1.1

Test: make vts -j40 && run commandAndExit vts -m
VtsHalConfigstoreV1_1Target
Bug: 63071317

Change-Id: I405f4409bc2ac4acdf07728b950ba9b653eb3328

6 years ago[AWARE] Pass through full structure for end NDP command
Etan Cohen [Fri, 30 Jun 2017 20:55:21 +0000 (13:55 -0700)]
[AWARE] Pass through full structure for end NDP command

The end NDP command is the only NAN HAL command which uses
a dynamically sized command structure. The original code
stripped out the non-static portions of the command - losing
the information. Modify the dynamically allocate at a lower
level of the shim.

Bug: 62569797
Test: integration tests now proceeding past failure point
Change-Id: I1732923aed64d7ec11649f0bad1731ab5bca13a0

6 years agoMerge "Assert getService does not return nullptr" into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 20:00:00 +0000 (20:00 +0000)]
Merge "Assert getService does not return nullptr" into oc-dr1-dev

6 years agoMerge "Camera: Try adding a passthrough legacy service" into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 18:00:53 +0000 (18:00 +0000)]
Merge "Camera: Try adding a passthrough legacy service" into oc-dr1-dev

6 years agoCamera: Try adding a passthrough legacy service
Emilian Peev [Fri, 30 Jun 2017 15:19:19 +0000 (08:19 -0700)]
Camera: Try adding a passthrough legacy service

Listing by interface on passthrough only devices doesn't
return the legacy implementation that might be present.
For this case try to connect to the legacy provider and
check whether such implementation does in fact exist.

Bug: 62835396
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --module VtsHalCameraProviderV2_4Target -l INFO

Change-Id: Ifdc1b15392f5418fd0d949953bb6bdb1f3612ee8

6 years agoAssert getService does not return nullptr
Jae Shin [Thu, 29 Jun 2017 02:42:25 +0000 (11:42 +0900)]
Assert getService does not return nullptr

Make sure getService return value is not null before running
testcase

Test: make vts -j40 && vts-tradefed run commandAndExit vts -m
VtsHalConfigstoreV1_0Target
Bug:62931371

Merged-In: I432e07c0c61a308b814d88cab9027a95ff24d8b5
(cherry picked from commit 60ff24c62e3215d24cdad0b7b29926734eb24c10)

Change-Id: Id9bb2a3fb2c4caf02c7e03c1529cefe2570c5453

6 years agoCamera: Try to test additional types of camera providers NO PARTIAL RERUN
Emilian Peev [Fri, 30 Jun 2017 01:26:47 +0000 (01:26 +0000)]
Camera: Try to test additional types of camera providers NO PARTIAL RERUN
am: e6522390bb  -s ours

Change-Id: Ic25232cfb160737efd637966aa319c55d0582065

6 years agoCamera: Try to test additional types of camera providers NO PARTIAL RERUN
Emilian Peev [Wed, 21 Jun 2017 13:52:54 +0000 (14:52 +0100)]
Camera: Try to test additional types of camera providers NO PARTIAL RERUN

Check whether different types of camera providers got
registered and try to test them if present.

Merged-In: I5c0c678e74d56cd8307d2f4e63b7c6dfa95d210d
Bug: 62835396
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --module VtsHalCameraProviderV2_4Target -l INFO
Change-Id: I5c0c678e74d56cd8307d2f4e63b7c6dfa95d210d

6 years agoMerge "Freeze first batch of HALs for O-MR1" into oc-dr1-dev
TreeHugger Robot [Thu, 29 Jun 2017 03:46:35 +0000 (03:46 +0000)]
Merge "Freeze first batch of HALs for O-MR1" into oc-dr1-dev

6 years agoMerge "Update .hal file for radio 1.0 hal" into oc-dr1-dev
Shuo Qian [Thu, 29 Jun 2017 03:28:46 +0000 (03:28 +0000)]
Merge "Update .hal file for radio 1.0 hal" into oc-dr1-dev

6 years agoMerge "Fix failure vts tests:" into oc-dr1-dev
Shuo Qian [Thu, 29 Jun 2017 03:28:46 +0000 (03:28 +0000)]
Merge "Fix failure vts tests:" into oc-dr1-dev

6 years agoMerge "Add a new vts directory under 1.1 for radio 1.1 APIs vts tests." into oc-dr1-dev
Shuo Qian [Thu, 29 Jun 2017 02:41:57 +0000 (02:41 +0000)]
Merge "Add a new vts directory under 1.1 for radio 1.1 APIs vts tests." into oc-dr1-dev

6 years agoMerge "Fix consumerir test bugs" into oc-dev
Connor O'Brien [Thu, 29 Jun 2017 02:21:17 +0000 (02:21 +0000)]
Merge "Fix consumerir test bugs" into oc-dev
am: 9f0b8369e9

Change-Id: Ib8949fe95c3f02cc951f357e0f6cbae154e31d95