OSDN Git Service

android-x86/hardware-interfaces.git
6 years agoAllow clearkey tests to run if no vendor modules
Jeff Tinker [Fri, 18 Aug 2017 04:07:04 +0000 (04:07 +0000)]
Allow clearkey tests to run if no vendor modules
am: 5db2e67293

Change-Id: I594b8b5e9857d4a6c19d0847acf7c13949e13614

6 years agoAllow clearkey tests to run if no vendor modules
Jeff Tinker [Thu, 17 Aug 2017 17:09:32 +0000 (10:09 -0700)]
Allow clearkey tests to run if no vendor modules

DRM cannot skip all tests when vendor modules are
not present. Currently even the clearkey tests are
skipping when there is no vendor lib. This can be
replicated by just pushing the DRM VTS test binary
build from master (or DR or MR) and executing the
binary without VTS. All test cases skip (including
clearkey).

This change prevents exiting when no vendor
modules are found.

Test: Push the test binary and confirm that the
clearkey tests run.

bug:64459011
Change-Id: Ic5f554d9b223d6ca4bf26f92f072254cc18f4620

6 years agoMerge "Camera: Switch 'cancelPictureFail' to 'cancelPictureNOP'" into oc-dr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 20:44:58 +0000 (20:44 +0000)]
Merge "Camera: Switch 'cancelPictureFail' to 'cancelPictureNOP'" into oc-dr1-dev

6 years agoMerge "Camera: Switch 'cancelPictureFail' to 'cancelPictureNOP'" into oc-dev
Emilian Peev [Tue, 15 Aug 2017 20:27:50 +0000 (20:27 +0000)]
Merge "Camera: Switch 'cancelPictureFail' to 'cancelPictureNOP'" into oc-dev
am: e2dae8c258

Change-Id: I396a157f3522843c3d36870719cb3e5176754dcc

6 years agoMerge "Camera: Switch 'cancelPictureFail' to 'cancelPictureNOP'" into oc-dev
TreeHugger Robot [Tue, 15 Aug 2017 20:17:11 +0000 (20:17 +0000)]
Merge "Camera: Switch 'cancelPictureFail' to 'cancelPictureNOP'" into oc-dev

6 years agoCamera: Switch 'cancelPictureFail' to 'cancelPictureNOP'
Emilian Peev [Fri, 11 Aug 2017 09:33:22 +0000 (10:33 +0100)]
Camera: Switch 'cancelPictureFail' to 'cancelPictureNOP'

Calls to 'cancelPicture' should be no-ops in case image capture
is not active.

Bug: 64569316
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --primary-abi-only --module
VtsHalCameraProviderV2_4Target -l INFO
Merged-In: I5fad0a5b7aafd208c3a1b2f62a2b9046cde858d1
Change-Id: I5fad0a5b7aafd208c3a1b2f62a2b9046cde858d1

6 years agoMerge "Update broadcastradio HAL 1.0 VTS tests." into oc-dev
Tomasz Wasilczyk [Fri, 11 Aug 2017 22:16:16 +0000 (22:16 +0000)]
Merge "Update broadcastradio HAL 1.0 VTS tests." into oc-dev
am: 52af675d14

Change-Id: Ic5080cb6b22cd3984d0eb39d87cabf7c8a30178d

6 years agoMerge "Update broadcastradio HAL 1.0 VTS tests." into oc-dev
Tomasz Wasilczyk [Fri, 11 Aug 2017 22:11:31 +0000 (22:11 +0000)]
Merge "Update broadcastradio HAL 1.0 VTS tests." into oc-dev

6 years agoUpdate broadcastradio HAL 1.0 VTS tests.
Tomasz Wasilczyk [Tue, 8 Aug 2017 01:00:28 +0000 (18:00 -0700)]
Update broadcastradio HAL 1.0 VTS tests.

This is a cherry-pick of the following VTS changes from O MR1 to O:
 - ag/2462390: Fix Broadcast radio 1.0 VTS to not fail on
   other radio types than AM/FM.
 - ag/2477726: Make tuned field description more precise and
   fix VTS tests to obey it.
 - ag/2549733: Implement out-of-band metadata images (a test for in-band).

Additionally, it fixes config callback handling in OpenTunerTwice test.

Bug: b/64324703
Test: VTS
Change-Id: I590b9b4d927fb0cd41f92e919343b5b94ad0e246
Merged-In: I590b9b4d927fb0cd41f92e919343b5b94ad0e246

6 years agoCamera: Switch 'cancelPictureFail' to 'cancelPictureNOP'
Emilian Peev [Fri, 11 Aug 2017 09:33:22 +0000 (10:33 +0100)]
Camera: Switch 'cancelPictureFail' to 'cancelPictureNOP'

Calls to 'cancelPicture' should be no-ops in case image capture
is not active.

Merged-In: I5fad0a5b7aafd208c3a1b2f62a2b9046cde858d1
Bug: 64569316
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --primary-abi-only --module
VtsHalCameraProviderV2_4Target -l INFO

Change-Id: I5fad0a5b7aafd208c3a1b2f62a2b9046cde858d1

6 years agoMerge "Bluetooth: Check the number of file descriptors" into oc-dr1-dev
TreeHugger Robot [Thu, 10 Aug 2017 03:05:38 +0000 (03:05 +0000)]
Merge "Bluetooth: Check the number of file descriptors" into oc-dr1-dev

6 years agoMerge "Bluetooth: Add OWNERS file for default/" into oc-dr1-dev
TreeHugger Robot [Thu, 10 Aug 2017 00:35:17 +0000 (00:35 +0000)]
Merge "Bluetooth: Add OWNERS file for default/" into oc-dr1-dev

6 years agoNFC: Add OWNERS file for default/
Myles Watson [Wed, 9 Aug 2017 18:27:40 +0000 (11:27 -0700)]
NFC: Add OWNERS file for default/

Test: build
Change-Id: I6e854923fdd66991bcc7ed3446106d148abea982
(cherry picked from commit 31439b1d24d49fcb431dfa48bdaa0b1d57deded4)

6 years agoBluetooth: Add OWNERS file for default/
Myles Watson [Wed, 9 Aug 2017 18:27:15 +0000 (11:27 -0700)]
Bluetooth: Add OWNERS file for default/

Test: build
Change-Id: Ib4cbd5502ac0791d4bc700f28de68d0548256de6
(cherry picked from commit 7c127dc4cbf90713bcdbce89fa166228c912847d)

6 years agoBluetooth: Check the number of file descriptors
Myles Watson [Tue, 8 Aug 2017 23:00:30 +0000 (16:00 -0700)]
Bluetooth: Check the number of file descriptors

Opening the serial port(s) returns -1 when it fails, check
that the number of file descriptors is greater than 0 and
less than the size of the array.

Test: VtsHalBluetoothV1_0TargetTest, Bluetooth start/stop
Bug: 64420262
Change-Id: Icbffa5bd8c02030e389bac03aa5e1e78cc3c6057
(cherry picked from commit 89316af23eb7aa300015a3d80bc97891cfe6031e)

6 years agoMerge "Skip direct report test if sensor is not available" into oc-dev
Peng Xu [Wed, 9 Aug 2017 17:04:32 +0000 (17:04 +0000)]
Merge "Skip direct report test if sensor is not available" into oc-dev
am: 63524f9fcc

Change-Id: Iffe683356ed925142ef877ecb5289463d8d4ac1e

6 years agoMerge "Skip direct report test if sensor is not available" into oc-dev
TreeHugger Robot [Wed, 9 Aug 2017 16:48:07 +0000 (16:48 +0000)]
Merge "Skip direct report test if sensor is not available" into oc-dev

6 years agowifi(vts): Remove a tight loop of toggling wifi state
Roshan Pius [Tue, 8 Aug 2017 15:43:50 +0000 (08:43 -0700)]
wifi(vts): Remove a tight loop of toggling wifi state

The tight loop of HAL start/stop exposes a race condition within the HAL.
Adding a fix for preventing this race would need a fix which would be
pretty risky at this point of the release. The issue itself is unlikely
to happen in real use cases because wifi toggles (user initiated or test
scripts initiated) via framework goes through a series of processing
before it invokes the HAL start/stop.

Bug: 64195190
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_0Target -l
INFO`

Change-Id: I4e4d65f8b6e2e423a3a5f26e5a97a78b7e99c3e8

6 years agoMerge "Fix typo in in offload control VTS test" into oc-dr1-dev
TreeHugger Robot [Wed, 9 Aug 2017 01:59:19 +0000 (01:59 +0000)]
Merge "Fix typo in in offload control VTS test" into oc-dr1-dev

6 years agoFix typo in in offload control VTS test
Erik Kline [Tue, 8 Aug 2017 23:54:14 +0000 (16:54 -0700)]
Fix typo in in offload control VTS test

Test: built, flashed, run
Bug: 38220415
Bug: 64479437
Change-Id: I3aa4afa3b52297dd92e37b4f39a5bd25b129ba04

6 years agoMerge "Add the error code "OPERATION_NOT_ALLOWED" and log the error." into oc-dr1-dev
TreeHugger Robot [Tue, 8 Aug 2017 20:41:27 +0000 (20:41 +0000)]
Merge "Add the error code "OPERATION_NOT_ALLOWED" and log the error." into oc-dr1-dev

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 agowifi(vts): Ignore IWifi.stop() returning ERROR_NOT_AVAILABLE
Roshan Pius [Thu, 3 Aug 2017 22:05:05 +0000 (15:05 -0700)]
wifi(vts): Ignore IWifi.stop() returning ERROR_NOT_AVAILABLE

When IWifi.stop() is invoked back to back (happens in the ConfigureChip
vts test), the HAL would return ERROR_NOT_AVAILABLE if the previous stop
is still being processed. This is not an error that needs to fail the test,
but a legitimate status for stop. We have a retry mechanism to handle
this in both the VTS test and framework for the case where IWifi.start()
is invoked while the previous stop is being processed.

While there, corrected a few log messages emitted by the HAL to debug
such startup/stop issues better.

Bug: 63971806
Test: `vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module VtsHalWifiV1_0Target -l
INFO`

Change-Id: I5e3470ac97541a6ea10aceec9b737e5d03ed5206

6 years agoMerge "Refactor and expand tetheroffload Control and Config VTS" into oc-dr1-dev
TreeHugger Robot [Tue, 8 Aug 2017 03:57:48 +0000 (03:57 +0000)]
Merge "Refactor and expand tetheroffload Control and Config VTS" into oc-dr1-dev

6 years agoMerge "Tetheroffload Control and Config VTS" into oc-dr1-dev
TreeHugger Robot [Tue, 8 Aug 2017 03:57:43 +0000 (03:57 +0000)]
Merge "Tetheroffload Control and Config VTS" into oc-dr1-dev

6 years agobug fix: handle OMX_EventBufferFlag events
Ram Mohan M [Tue, 8 Aug 2017 00:47:23 +0000 (00:47 +0000)]
bug fix: handle OMX_EventBufferFlag events
am: c8df8940e1

Change-Id: Ifa9493d869e42a76100011d5af20c5062bc44891

6 years agobug fix: handle OMX_EventBufferFlag events
Ram Mohan M [Thu, 22 Jun 2017 08:23:12 +0000 (13:53 +0530)]
bug fix: handle OMX_EventBufferFlag events

OMX_EventBufferFlag event is sent when the component has processed a buffer
with its EOS flag set. This event is not sent by soft omx components.
Vendor components can send this. From IOMX point of view, this event is
not sent for processing

bug:64102197
Merged-In: I3a978a885b1e4446f82f2356ae677f70ea6f8150
Change-Id: I3a978a885b1e4446f82f2356ae677f70ea6f8150

6 years agoRefactor and expand tetheroffload Control and Config VTS
Erik Kline [Mon, 7 Aug 2017 18:32:45 +0000 (03:32 +0900)]
Refactor and expand tetheroffload Control and Config VTS

Test: as follows
    - built
    - flashed
    - booted
    - adb sync && adb shell ...$test
Bug: 38220415
Change-Id: Iab715c45ad0457f3eea43ee408fa947ffc01c4aa

6 years agoTetheroffload Control and Config VTS
Tyler Wear [Wed, 19 Jul 2017 20:48:57 +0000 (13:48 -0700)]
Tetheroffload Control and Config VTS

Basic VTS for Tetheroffload Config and Control  HALs.

Bug: 38220415
Change-Id: I6d0867e019aca58d8a6bd1404b8b85ed98274f11
CRs-fixed: 2083182

6 years agoSkip direct report test if sensor is not available
Peng Xu [Thu, 3 Aug 2017 21:53:35 +0000 (14:53 -0700)]
Skip direct report test if sensor is not available

Skip SensorsHidlTest.*AshmemDirectReportOperation* tests if sensor
is not available on device.

Bug: 64230704
Test: compiles and test pass for a pixel device with mag sensor
      masked in hal.

Change-Id: I9bfbea6301891eaa2b272bd3d15b0e237799b5d6

6 years agonfc: NCI 2.0: Add CORE_INIT_CMD for NCI 2.0
Ruchi Kandoi [Thu, 3 Aug 2017 19:04:38 +0000 (19:04 +0000)]
nfc: NCI 2.0: Add CORE_INIT_CMD for NCI 2.0
am: 029633dcd0

Change-Id: I7377ba90f9fe42f3d2880c5c9e6f494203050213

6 years agoMerge "graphics: ignore/reduce spurious vsync in VTS" into oc-dr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 17:35:26 +0000 (17:35 +0000)]
Merge "graphics: ignore/reduce spurious vsync in VTS" into oc-dr1-dev

6 years agonfc: NCI 2.0: Add CORE_INIT_CMD for NCI 2.0
Ruchi Kandoi [Wed, 2 Aug 2017 00:30:17 +0000 (17:30 -0700)]
nfc: NCI 2.0: Add CORE_INIT_CMD for NCI 2.0

Bug: 64245250
Test: run vts test
Change-Id: I4ca434fb1fb44a6278942f020ddd02b162d7f605
(cherry picked from commit c901276e6063e739b742435a161e51978c5f4ec5)

6 years agoMerge "Camera: reset callback after test done" into oc-dev
Yin-Chia Yeh [Wed, 2 Aug 2017 01:19:33 +0000 (01:19 +0000)]
Merge "Camera: reset callback after test done" into oc-dev
am: 72ff9a1e38  -s ours

Change-Id: I4cf59eaf2e9583af574d50f9ddb830eb34e3356d

6 years agoMerge "Camera: reset callback after test done" into oc-dev
TreeHugger Robot [Tue, 1 Aug 2017 21:40:35 +0000 (21:40 +0000)]
Merge "Camera: reset callback after test done" into oc-dev

6 years agoresolve merge conflicts of 345a396c to oc-dr1-dev
sqian [Tue, 1 Aug 2017 19:21:55 +0000 (12:21 -0700)]
resolve merge conflicts of 345a396c to oc-dr1-dev

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I5d816e17b2c8b113d07bf5e827d8c9378af761d9
Merged-In: I5d816e17b2c8b113d07bf5e827d8c9378af761d9

6 years agoMerge "Add EMPTY_RECORD for getDeviceIdentity" into oc-dev
Shuo Qian [Tue, 1 Aug 2017 17:55:32 +0000 (17:55 +0000)]
Merge "Add EMPTY_RECORD for getDeviceIdentity" into oc-dev

6 years agoAdd EMPTY_RECORD for getDeviceIdentity
sqian [Fri, 28 Jul 2017 18:28:27 +0000 (11:28 -0700)]
Add EMPTY_RECORD for getDeviceIdentity

Remove same unit test case with arguments "","0" for:
- sendEnvelope
- sendTerminalResponseToSim
- sendEnvelopeWithStatus

Test: verified by vendor, treehuger
Bug: 62926561
Change-Id: I5f535bdfc5821275a7ea2571d411374e0d7a8822
Merged-In: I5f535bdfc5821275a7ea2571d411374e0d7a8822

6 years agoMerge "Add corresponding error code to fix vts test" into oc-dev
Shuo Qian [Tue, 1 Aug 2017 00:25:20 +0000 (00:25 +0000)]
Merge "Add corresponding error code to fix vts test" into oc-dev
am: 417af3a797  -s ours

Change-Id: I98205a431af725626f8f692d9b69d4c4c1f6fe5b

6 years agoMerge "Add corresponding error code to fix vts test" into oc-dev
Shuo Qian [Tue, 1 Aug 2017 00:19:48 +0000 (00:19 +0000)]
Merge "Add corresponding error code to fix vts test" into oc-dev

6 years agoMerge "Add corresponding error code to fix vts test" into oc-dr1-dev
Shuo Qian [Tue, 1 Aug 2017 00:19:33 +0000 (00:19 +0000)]
Merge "Add corresponding error code to fix vts test" into oc-dr1-dev

6 years agoMerge "Audio policy config xsd: add missing gains and address in ports" into oc-dev
Kevin Rocard [Tue, 1 Aug 2017 00:05:16 +0000 (00:05 +0000)]
Merge "Audio policy config xsd: add missing gains and address in ports" into oc-dev
am: 90e68d31cf

Change-Id: I0aa31b2996c8aae97d0b7ba16d9943f47d70a1fe

6 years agoMerge "Audio policy config xsd: add missing gains and address in ports" into oc-dev
TreeHugger Robot [Mon, 31 Jul 2017 23:56:02 +0000 (23:56 +0000)]
Merge "Audio policy config xsd: add missing gains and address in ports" into oc-dev

6 years agoMerge "Wifi Offload HAL: Improve VTS tests for scanConfig" into oc-dr1-dev
TreeHugger Robot [Mon, 31 Jul 2017 19:52:44 +0000 (19:52 +0000)]
Merge "Wifi Offload HAL: Improve VTS tests for scanConfig" into oc-dr1-dev

6 years agoMerge "NO PARTIAL RERUN Camera: Update stream consumer usage flag" into oc-dev
Emilian Peev [Mon, 31 Jul 2017 16:28:15 +0000 (16:28 +0000)]
Merge "NO PARTIAL RERUN Camera: Update stream consumer usage flag" into oc-dev
am: 456dc6cc86  -s ours

Change-Id: I10d00cc7a42127f5235a97dc72f76e608dfb5fea

6 years agoMerge "NO PARTIAL RERUN Camera: Update stream consumer usage flag" into oc-dev
TreeHugger Robot [Mon, 31 Jul 2017 16:22:23 +0000 (16:22 +0000)]
Merge "NO PARTIAL RERUN Camera: Update stream consumer usage flag" into oc-dev

6 years agoMerge "Camera: Update stream consumer usage flag" into oc-dr1-dev
TreeHugger Robot [Mon, 31 Jul 2017 16:21:44 +0000 (16:21 +0000)]
Merge "Camera: Update stream consumer usage flag" into oc-dr1-dev

6 years agoCamera: fix various VTS issues
Yin-Chia Yeh [Mon, 31 Jul 2017 08:55:46 +0000 (08:55 +0000)]
Camera: fix various VTS issues
am: a0dd95d45d  -s ours

Change-Id: Ib438269494c5c25f1759f7ec016cbca97bec9072

6 years agoNO PARTIAL RERUN Camera: Update stream consumer usage flag
Emilian Peev [Wed, 26 Jul 2017 08:46:38 +0000 (09:46 +0100)]
NO PARTIAL RERUN Camera: Update stream consumer usage flag

It is possible that the current default consumer usage
flag may not be supported by some provider implementations.
Use either HW composer or some other flag that is appropriate
for the specific use case.

Merged-In: I04f89bf67166805191d6d40e5bd93c15ebc97ea6
Bug: 63913159
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --primary-abi-only --module
VtsHalCameraProviderV2_4Target -l INFO

Change-Id: I04f89bf67166805191d6d40e5bd93c15ebc97ea6

6 years agoRadioV1_1 VTS Tests: startKeepalive, stopKeepalive
Nathan Harold [Wed, 19 Jul 2017 23:48:44 +0000 (16:48 -0700)]
RadioV1_1 VTS Tests: startKeepalive, stopKeepalive

VTS tests for the initial implementaion of NATT
Keepalive support in the V1_1 HAL.

Bug:63530561
Test: this
Change-Id: Iafabd4b0f8a8f4da78f65bf4061d47f4bfd69a7a

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 agoAdd corresponding error code to fix vts test
sqian [Mon, 24 Jul 2017 20:51:24 +0000 (13:51 -0700)]
Add corresponding error code to fix vts test

Test: run vts
Bug: 63152815
Bug: 62989786
Bug: 64041522
Change-Id: Ifbd17f85b39221de31ec7884b30dc176e1cbd3ab
Merged-In: Ifbd17f85b39221de31ec7884b30dc176e1cbd3ab

6 years agoMerge "Add vts test for setCarrierInfoForImsiEncryption" into oc-dr1-dev
Shuo Qian [Fri, 28 Jul 2017 19:15:45 +0000 (19:15 +0000)]
Merge "Add vts test for setCarrierInfoForImsiEncryption" into oc-dr1-dev

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 agoAudio policy config xsd: add missing gains and address in ports
Kevin Rocard [Thu, 27 Jul 2017 18:41:53 +0000 (11:41 -0700)]
Audio policy config xsd: add missing gains and address in ports

No nexus/pixel device uses port gains and their configuration were taken
as reference for the xsd creation.

Gains in mixPort and devicePort are supported by the code and use by
oem. As a result the xsd should allow them.

For validation of this path, the xsd was run against the example xml in
the audiopolicy source. Several other misalignment were found. They will
be fix in an other patch.

The address is also an optional field that was forgotten for the same
reason.

Bug: b/63827061
Test: -noout xmllint --schema hardware/interfaces/audio/2.0/config/audio_policy_configuration.xsd frameworks/av/services/audiopolicy/config/audio_policy_configuration.xml
Test: the above command fails for some other xml node unrelated to this bug
Test: this is tracked by b/38184704
Change-Id: I8dae15eb85a6a6d43c87aa747daf92a88d3fdcc0
Signed-off-by: Kevin Rocard <krocard@google.com>
6 years agoAdd vts test for setCarrierInfoForImsiEncryption
sqian [Thu, 27 Jul 2017 21:59:38 +0000 (14:59 -0700)]
Add vts test for setCarrierInfoForImsiEncryption

Currently there is no implementation for this api by vendor code.
So we should check only for REQUEST_NOT_SUPPPORTED or NONE
as error returned at present.

Test: run vts
Bug: 64073713
Change-Id: I27f544cf6521d2f913f97e1b8f662a05166ddc11

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 agoAdd corresponding error code to fix vts test
sqian [Mon, 24 Jul 2017 21:05:29 +0000 (14:05 -0700)]
Add corresponding error code to fix vts test

Test: run vts
Bug: 63152815
Bug: 62989786
Bug: 64041522
Change-Id: Ifbd17f85b39221de31ec7884b30dc176e1cbd3ab
Merged-In: Ifbd17f85b39221de31ec7884b30dc176e1cbd3ab

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 agoWifi Offload HAL: Improve VTS tests for scanConfig
Sohani Rao [Wed, 26 Jul 2017 18:27:49 +0000 (11:27 -0700)]
Wifi Offload HAL: Improve VTS tests for scanConfig

Configure scans with test parameters from the Offload HAL service.

Bug: 36865676
Test: VTS tests
Change-Id: Iec5a3e837f9a2e2cf285b079a4630ff273727679

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 agoCamera: Update stream consumer usage flag
Emilian Peev [Wed, 26 Jul 2017 08:46:38 +0000 (09:46 +0100)]
Camera: Update stream consumer usage flag

It is possible that the current default consumer usage
flag may not be supported by some provider implementations.
Use either HW composer or some other flag that is appropriate
for the specific use case.

Merged-In: I04f89bf67166805191d6d40e5bd93c15ebc97ea6
Bug: 63913159
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --primary-abi-only --module
VtsHalCameraProviderV2_4Target -l INFO

Change-Id: I04f89bf67166805191d6d40e5bd93c15ebc97ea6

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 agographics: ignore/reduce spurious vsync in VTS
Chia-I Wu [Mon, 24 Jul 2017 18:11:01 +0000 (11:11 -0700)]
graphics: ignore/reduce spurious vsync in VTS

Bug: 62802718
Test: VTS
Change-Id: I1ed73e0b2f14414f540865a96e6bd5ac1599fbf3

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