OSDN Git Service

android-x86/hardware-interfaces.git
6 years agoMerge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev
TreeHugger Robot [Sat, 2 Sep 2017 03:40:15 +0000 (03:40 +0000)]
Merge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev

6 years agobug fix: disable timestamp deviation test for audio decoder
Ram Mohan M [Fri, 1 Sep 2017 08:28:40 +0000 (13:58 +0530)]
bug fix: disable timestamp deviation test for audio decoder

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

Bug: 64128634
Bug: 65166112

Change-Id: I8a08a8da7dd203cd16cbfbfd3f15e27966db711f

6 years agoMerge "Audio VTS: Look for Audio policy config in all supported folders" into oc-dev
TreeHugger Robot [Tue, 29 Aug 2017 00:19:03 +0000 (00:19 +0000)]
Merge "Audio VTS: Look for Audio policy config in all supported folders" into oc-dev

6 years agoMerge "Sensor VTS testBatchingOperation flakiness fix" into oc-dev
TreeHugger Robot [Fri, 25 Aug 2017 22:12:24 +0000 (22:12 +0000)]
Merge "Sensor VTS testBatchingOperation flakiness fix" into oc-dev

6 years agoMerge "bug fix: output colorformat configuration fixed" into oc-dev
TreeHugger Robot [Fri, 25 Aug 2017 05:09:25 +0000 (05:09 +0000)]
Merge "bug fix: output colorformat configuration fixed" into oc-dev

6 years agoAudio VTS: Look for Audio policy config in all supported folders
Kevin Rocard [Tue, 22 Aug 2017 01:32:49 +0000 (18:32 -0700)]
Audio VTS: Look for Audio policy config in all supported folders

audio_policy_configuration.xml can be loaded from the following places:
 - /system/etc/
 - /vendor/etc
 - /odm/etc
Nevertheless the config validation test was expecting it to be in
/vendor/etc exclusively.

This patch changes the test logic to:
 - look for the config files in all 3 folders
 - make sure the config is unique

Test: run the following script to check for regressions and test that
      invalid config make the test fail.
  (
  set -xe
  runVTS() { vts-tradefed run commandAndExit vts \
        --skip-all-system-status-check --primary-abi-only \
        --skip-preconditions --module VtsHalAudioV2_0Target \
        -t CheckConfig.audioPolicyConfigurationValidation; }

  echo "# Test valid config"
  runVTS

  echo "# Test multiple invalid match"
  adb shell touch /system/etc/audio_policy_configuration.xml
  ! runVTS
  adb shell rm /system/etc/audio_policy_configuration.xml

  echo "# Test multiple valid match"
  adb shell cp /{vendor,system}/etc/audio_policy_configuration.xml
  ! runVTS
  adb shell rm /system/etc/audio_policy_configuration.xml

  echo "# Test invalid config"
  adb shell sed -i /defaultOutputDevice/p /vendor/etc/audio_policy_configuration.xml
  ! runVTS
  adb shell sed -i '"/defaultOutputDevice/{p;N;d}"' /vendor/etc/audio_policy_configuration.xml

  echo "# Test that the test did not break the config"
  runVTS
  )

Bug: 64881365
Change-Id: I9db5e6f727d19fd654a3cc543a2aaab196682001
Signed-off-by: Kevin Rocard <krocard@google.com>
6 years agoSensor VTS testBatchingOperation flakiness fix
Peng Xu [Sat, 19 Aug 2017 00:50:57 +0000 (17:50 -0700)]
Sensor VTS testBatchingOperation flakiness fix

Bug: 64732324
Bug: 63529148
Test: testBatchingOperation passes consistently
Change-Id: Id4e8075e249f3658f5683d53d6dc8403ee32bc4a

6 years agoMerge "bug fix: close file pointer" into oc-dev
TreeHugger Robot [Sat, 19 Aug 2017 00:30:10 +0000 (00:30 +0000)]
Merge "bug fix: close file pointer" into oc-dev

6 years agoMerge "bug fix: configure input port buffer size" into oc-dev
TreeHugger Robot [Sat, 19 Aug 2017 00:30:05 +0000 (00:30 +0000)]
Merge "bug fix: configure input port buffer size" into oc-dev

6 years agobug fix: output colorformat configuration fixed
Ram Mohan M [Tue, 4 Jul 2017 13:51:19 +0000 (19:21 +0530)]
bug fix: output colorformat configuration fixed

The eColorFormat field in OMX_PARAM_PORTDEFINITIONTYPE structure
has no effect on the component. This has to be configured from
OMX_VIDEO_PARAM_PORTFORMATTYPE. This is corrected. This color format
information is passed to graphic buffer during its allocation

Bug: 63796949

Merged-In: I51b1e59631647d1291ecfac373781ac5e5a0ffd5
Change-Id: I51b1e59631647d1291ecfac373781ac5e5a0ffd5

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 agobug fix: close file pointer
Ram Mohan M [Wed, 9 Aug 2017 09:22:20 +0000 (14:52 +0530)]
bug fix: close file pointer

Bug: 63796949

Merged-In: Ifd8a27d851cbc659ea8108e0879747cd9169680a
Change-Id: Ifd8a27d851cbc659ea8108e0879747cd9169680a

6 years agobug fix: configure input port buffer size
Ram Mohan M [Wed, 9 Aug 2017 06:41:23 +0000 (12:11 +0530)]
bug fix: configure input port buffer size

In video decoders, size of a single input frame (elementary-stream)
is dependent on width, height, color format, profile settings, ...
Most of this information is part of sps, pps and requires parsing.
But as the max size of the stream is known ahead, use it to configure
the input buffer size requirements

Bug: 63875287
Bug: 63796949

Merged-In: Ib760c4f55b094260a0abd120f852dcf1899df4e0
Change-Id: Ib760c4f55b094260a0abd120f852dcf1899df4e0

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 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 "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 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 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 [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
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 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:19:48 +0000 (00:19 +0000)]
Merge "Add corresponding error code to fix vts test" into oc-dev

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 "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 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 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 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 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 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 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 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:14:21 +0000 (00:14 +0000)]
Merge "Add Sim absent assertion in the 1.0 setup" into oc-dev

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 [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 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 "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 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 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: Ia7b1e8e9baae2885d9c43821fe2933df883f7892

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 "Fix consumerir test bugs" into oc-dev
Connor O'Brien [Thu, 29 Jun 2017 02:06:23 +0000 (02:06 +0000)]
Merge "Fix consumerir test bugs" into oc-dev

6 years agoMerge "Camera: Add support for testing partial results" into oc-dev
TreeHugger Robot [Thu, 29 Jun 2017 01:46:13 +0000 (01:46 +0000)]
Merge "Camera: Add support for testing partial results" into oc-dev

6 years agoFix consumerir test bugs
Connor O'Brien [Wed, 28 Jun 2017 23:46:43 +0000 (16:46 -0700)]
Fix consumerir test bugs

The tests currently fail for some correct implementations; revise them
so this no longer occurs.

Bug: 63081607
Test: built & ran revised test
Change-Id: I21b72fd864de57272bd6eb42dca238f661137b93
Signed-off-by: Connor O'Brien <connoro@google.com>
6 years agoMerge "Fix ICryptoFactory service" into oc-dev
Yahan Zhou [Wed, 28 Jun 2017 17:27:20 +0000 (17:27 +0000)]
Merge "Fix ICryptoFactory service" into oc-dev

6 years agoCamera: Add support for testing partial results
Emilian Peev [Tue, 23 May 2017 15:37:11 +0000 (16:37 +0100)]
Camera: Add support for testing partial results

Currently the result handling is very basic. Partial
results and inflight queues are not supported. More
elaborate test cases like burst or streaming will
require such functionality to be present.

Merged-In: I3769d4ccc0047dc4eda173ea3bca538b026be8d2
Bug: 62550376
Bug: 37533777
Test: adb shell
/data/nativetest/VtsHalCameraProviderV2_4TargetTest/VtsHalCameraProviderV2_4TargetTest

Change-Id: I3769d4ccc0047dc4eda173ea3bca538b026be8d2

6 years agovts: fix TryDifferentGovernors in Power hal test
bohu [Fri, 23 Jun 2017 19:31:42 +0000 (12:31 -0700)]
vts: fix TryDifferentGovernors in Power hal test

The test should return when it cannot open cpu governor files
BUG: 62138092

Test: build sdk_gphone_x86-userdebug, launch emulator,
run test: run vts -m VtsHalPowerV1_0Target
The test should all pass.

Change-Id: I3b47261e9525b6a04e995dac1ad63d9cc088b004

6 years agoMerge "Camera: fix recursive lock in CameraDevice 1.0" into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 17:51:15 +0000 (17:51 +0000)]
Merge "Camera: fix recursive lock in CameraDevice 1.0" into oc-dev

6 years agoMerge "Test import of a EC P-521 key." into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 15:32:14 +0000 (15:32 +0000)]
Merge "Test import of a EC P-521 key." into oc-dev

6 years agoMerge "[WIFI] Remove dependency on vendor-specific library" into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 04:57:02 +0000 (04:57 +0000)]
Merge "[WIFI] Remove dependency on vendor-specific library" into oc-dev

6 years agoCamera: fix recursive lock in CameraDevice 1.0
Yahan Zhou [Fri, 23 Jun 2017 00:04:41 +0000 (17:04 -0700)]
Camera: fix recursive lock in CameraDevice 1.0

Several functions call close() while they are holding a lock, which
results in recursive locking. This CL implements close_locked() to avoid
such behavior.

Bug: 62919192
Test: run vts -m VtsHalCameraProviderV2_4Target, and camera should still
work after it

Change-Id: Ib38e1de19ed3c927bfb645c0c777c04f157f2b88

6 years agoTest import of a EC P-521 key.
Shawn Willden [Fri, 16 Jun 2017 14:18:06 +0000 (08:18 -0600)]
Test import of a EC P-521 key.

This failure is also diagnosed by CTS, but it should be validated in VTS
as well.

Merged-In: Ia7654ff8813942fbca9dfa838337e9de5839a9e2
Bug: 33945114
Test: adb shell data/nativetests64/VtsHalKeymasterV3_0TargetTest/VtsHalKeymasterV3_0TargetTest
Change-Id: Ia7654ff8813942fbca9dfa838337e9de5839a9e2

6 years agoFix ICryptoFactory service
Yahan Zhou [Wed, 21 Jun 2017 21:24:09 +0000 (14:24 -0700)]
Fix ICryptoFactory service

BUG: 62642564
BUG: 62138343

Test: vts -m VtsHalDrmV1_0Target

Change-Id: Ic697a32b111804fc3dc78f1b6e6b77538d7eeea9
(cherry picked from commit 85a5d8855b07aec3727532983de38c324960d6d1)

6 years agoSkip Validate
Fabien Sanglard [Tue, 20 Jun 2017 02:25:31 +0000 (19:25 -0700)]
Skip Validate

b/37474580
b/62806392

Test: marlin, ryu

Change-Id: I9d4ece40a8a093d768bcb4edd332cf0188735e66

6 years agoUpdate IRadioResponse.hal documentation
sqian [Wed, 21 Jun 2017 21:51:25 +0000 (14:51 -0700)]
Update IRadioResponse.hal documentation

Update the error codes

A copy of https://partner-android-review.googlesource.com/#/c/836552/
+ some missed updated error codes
+ request_not_supported

Test: Manual
Bug: 35671595
Change-Id: I2880b442b5fd56149abc83949c12e2eba5ee67df
Merged-In: I2880b442b5fd56149abc83949c12e2eba5ee67df

6 years agoMerge "Check return from DeleteKey correctly." into oc-dev
TreeHugger Robot [Wed, 21 Jun 2017 00:45:16 +0000 (00:45 +0000)]
Merge "Check return from DeleteKey correctly." into oc-dev

6 years agoMerge "Clear notification count to handle different flows" into oc-dev
TreeHugger Robot [Tue, 20 Jun 2017 10:59:01 +0000 (10:59 +0000)]
Merge "Clear notification count to handle different flows" into oc-dev

6 years agoClear notification count to handle different flows
Wyatt Riley [Mon, 19 Jun 2017 21:42:34 +0000 (14:42 -0700)]
Clear notification count to handle different flows

Notifiation count now cleared in Setup (and
discarded messages warned about in Teardown.)

Fixes: 62645164
Test: passes on device
Change-Id: I7e88da7251464f281d7c98140d7a9b5a73d79542
(cherry picked from commit 6ec696b7fed0c597707762a6d5f5ecd709408aae)

6 years agoZero uninitialized field in conversion and fix vts bug
Peng Xu [Mon, 19 Jun 2017 18:43:24 +0000 (11:43 -0700)]
Zero uninitialized field in conversion and fix vts bug

Zero uninitialized sensor event field to zero to avoid undefined
value being passed to framework.

Correct sensor report type check bug in vts.

Bug: 37793558
Bug: 37710268
Test: sensor vts passes
Change-Id: I5042975fea8fe28ae130367ba083a4e4f4e5657e

6 years agoMerge "Nfc: Vts: modify WriteInvalidAndThenValidCommand" into oc-dev
Ruchi Kandoi [Mon, 19 Jun 2017 16:33:33 +0000 (16:33 +0000)]
Merge "Nfc: Vts: modify WriteInvalidAndThenValidCommand" into oc-dev

6 years agoNfc: Vts: modify WriteInvalidAndThenValidCommand
Ruchi Kandoi [Thu, 15 Jun 2017 20:22:51 +0000 (13:22 -0700)]
Nfc: Vts: modify WriteInvalidAndThenValidCommand

Invalid Data packets are ignored by the NFC controller in case there
isn't an active RF Interface. The test expects response for the invalid
data packet without any active RF Interface. This patch modifies the
test to send an invalid command instead which will guarantee a response.

Test: run vts test
Bug: 62400568
Change-Id: I7db1d5209b6ef2240ac248f3aba0e27e0a285018
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit c86df4dcb74224ea7befc2cb610e43d0df6814ae)

6 years agoMerge "Camera: fix camera_metadata address expectation" into oc-dev
TreeHugger Robot [Fri, 16 Jun 2017 19:22:04 +0000 (19:22 +0000)]
Merge "Camera: fix camera_metadata address expectation" into oc-dev

6 years agoMerge "Support NCI 2.0 for NFC VTS" into oc-dev
Ruchi Kandoi [Thu, 15 Jun 2017 22:59:23 +0000 (22:59 +0000)]
Merge "Support NCI 2.0 for NFC VTS" into oc-dev

6 years agoCamera: fix camera_metadata address expectation
Yin-Chia Yeh [Thu, 15 Jun 2017 00:29:47 +0000 (17:29 -0700)]
Camera: fix camera_metadata address expectation

On 32bits architecture, binder driver might allocate
non-8 bytes aligned buffers.

Test: compile (problem not reproducible on 64bit SOCs)
Bug: 62637461
Change-Id: I8ef2b3ecba783a8d189ebe18733082d32cff4899

6 years agoMerge "Purge unsupported RSA key sizes from VTS tests" into oc-dev
TreeHugger Robot [Wed, 14 Jun 2017 02:22:13 +0000 (02:22 +0000)]
Merge "Purge unsupported RSA key sizes from VTS tests" into oc-dev

6 years agoMerge "Fixed flaky RenderScript VTS Test" into oc-dev
TreeHugger Robot [Wed, 14 Jun 2017 01:26:29 +0000 (01:26 +0000)]
Merge "Fixed flaky RenderScript VTS Test" into oc-dev

6 years agoPurge unsupported RSA key sizes from VTS tests
Janis Danisevskis [Tue, 6 Jun 2017 17:11:07 +0000 (10:11 -0700)]
Purge unsupported RSA key sizes from VTS tests

Support for 256 bit RSA keys are not mandated by keymaster specs and
must not be used in the VTS tests.

Bug: 62581389
Change-Id: If315088db2752ac2efe31fdb95db7ca13c3ce225

6 years agoFixed flaky RenderScript VTS Test
Michael Butler [Tue, 23 May 2017 00:01:24 +0000 (17:01 -0700)]
Fixed flaky RenderScript VTS Test

Added missing synchronization before context destroy

Bug: 62535730
Bug: 38385848
Test: make vts, does not fail with multiple tests
Change-Id: Ib0d038969e9a1d6f5ea555ccb60fed55b69e05dc
(cherry picked from commit 076f69aa2bc2301e3c93150503d469c02ed2458c)

6 years agoSupport NCI 2.0 for NFC VTS
Ruchi Kandoi [Thu, 8 Jun 2017 17:27:08 +0000 (10:27 -0700)]
Support NCI 2.0 for NFC VTS

Bug: 62322170
Test: Run vts test
Change-Id: I7ed331dac9d5918675c091620f099b6250e20700
(cherry picked from commit ff8068d160b642c757f29ee56540dff0af468fe7)

6 years agoMerge "Bluetooth: Call vendor cleanup() in Close()" into oc-dev
TreeHugger Robot [Mon, 12 Jun 2017 22:50:33 +0000 (22:50 +0000)]
Merge "Bluetooth: Call vendor cleanup() in Close()" into oc-dev

6 years agoMerge "Fix vts tests:" into oc-dev
Shuo Qian [Mon, 12 Jun 2017 04:44:15 +0000 (04:44 +0000)]
Merge "Fix vts tests:" into oc-dev

6 years agoIncrease Timeout for dequeue message
Ram Mohan M [Sat, 10 Jun 2017 02:55:39 +0000 (08:25 +0530)]
Increase Timeout for dequeue message

In vp9 encoder component, the callback responses are being recevied
after timeout. This is seen only in vp9. Even when no buffer processing
is done, Flush test, state transitions test fail due to slow responses.
This behavior is not seen in other components. This requires deeper
understanding of what is main culprit. But for now increase the timeout

Test: VtsHalMediaOmxV1_0Host
Bug: 37501531
Change-Id: I08abfefcf0cb38d312a4a2dc10908e24f88c54fd

6 years agoMerge "bug fix: fix encoder input port configuration issues" into oc-dev
TreeHugger Robot [Sat, 10 Jun 2017 01:23:28 +0000 (01:23 +0000)]
Merge "bug fix: fix encoder input port configuration issues" into oc-dev

6 years agoMerge "bug fix: configure input port format before setInputSurface" into oc-dev
TreeHugger Robot [Sat, 10 Jun 2017 01:23:28 +0000 (01:23 +0000)]
Merge "bug fix: configure input port format before setInputSurface" into oc-dev

6 years agoBluetooth: Call vendor cleanup() in Close()
Myles Watson [Thu, 8 Jun 2017 15:38:58 +0000 (08:38 -0700)]
Bluetooth: Call vendor cleanup() in Close()

Bug: 62453652
Test: sailfish and angler start/stop Bluetooth, pair
Change-Id: I8ba80ae1802d1f524acb1d8e26b5bb41fc1612d0
(cherry picked from commit 9eee83093faf0edd023920b16f5251a17ae97f00)

6 years agoFix vts tests:
sqian [Fri, 9 Jun 2017 16:24:26 +0000 (09:24 -0700)]
Fix vts tests:

- setCdmaSubscriptionSource
- nvReadItem
- nvWriteItem
- nvWriteCdmaPrl
- getHardwareConfig
- sendEnvelope
- sendTerminalResponseToSim

Apply ag/2373104/ to prevent merge conflicts

Will update .hal file seperately.

Test: adb shell <vts_binary>
Bug: 35671595
Bug: 35800570
Change-Id: I651af50f122f37721778b1088df40fa6e12ac6e4
Merged-In: I651af50f122f37721778b1088df40fa6e12ac6e4

6 years agochoose input color format between 420p, 420sp
Ram Mohan M [Thu, 8 Jun 2017 15:31:03 +0000 (21:01 +0530)]
choose input color format between 420p, 420sp

Test: VtsHalMediaOmxV1_0Host
Bug: 37501531
Change-Id: I5fc2f5c69ca545f2ca0b444ce89a8c970f2ff98e

6 years agoMerge "AudioDec Test: Ignore output port configuration" into oc-dev
TreeHugger Robot [Fri, 9 Jun 2017 03:12:07 +0000 (03:12 +0000)]
Merge "AudioDec Test: Ignore output port configuration" into oc-dev

6 years agoMerge "VideoEnc Test: extend lockYCbCr() to hal yuv formats" into oc-dev
TreeHugger Robot [Fri, 9 Jun 2017 03:12:07 +0000 (03:12 +0000)]
Merge "VideoEnc Test: extend lockYCbCr() to hal yuv formats" into oc-dev

6 years agoMerge "Vts AudioDec Test: Disable EOSTest_M" into oc-dev
TreeHugger Robot [Fri, 9 Jun 2017 03:12:07 +0000 (03:12 +0000)]
Merge "Vts AudioDec Test: Disable EOSTest_M" into oc-dev

6 years agoMerge "Fix vts tests:" into oc-dev
Shuo Qian [Fri, 9 Jun 2017 02:07:34 +0000 (02:07 +0000)]
Merge "Fix vts tests:" into oc-dev

6 years agobug fix: configure input port format before setInputSurface
Ram Mohan M [Thu, 8 Jun 2017 16:11:05 +0000 (21:41 +0530)]
bug fix: configure input port format before setInputSurface

Test: VtsHalMediaOmxV1_0Host
Bug: 37501531
Change-Id: I7b48bf240a243b0b25c1c5e0f36c858b04271194

6 years agobug fix: fix encoder input port configuration issues
Ram Mohan M [Thu, 8 Jun 2017 16:05:18 +0000 (21:35 +0530)]
bug fix: fix encoder input port configuration issues

1. Number of P frames being INT_MAX - 1 is misleading few components.
avoid this value
2. enumerate level: The level information is obtained from
enumerateProfileandLevel. Now the component supports up to this level
or 1 step below this level is unclear. This is causing few problems in
the configuration of input port.
3. Disable few error checks for index types that are not universally
supported

Test: VtsHalMediaOmxV1_0Host
Bug: 37501531
Change-Id: I0c3220ec8d17d3527fa5fdae1a2f9c5add11a5de

6 years agoMerge "audiohal: Prevent logspam when calling get_presentation_position" into oc-dev
TreeHugger Robot [Thu, 8 Jun 2017 22:47:01 +0000 (22:47 +0000)]
Merge "audiohal: Prevent logspam when calling get_presentation_position" into oc-dev

6 years agoFix vts tests:
sqian [Thu, 1 Jun 2017 19:39:22 +0000 (12:39 -0700)]
Fix vts tests:

Fixed with QC updated documentation:
- setGsmBroadcastConfig
- getGsmBroadcastConfig
- setGsmBroadcastActivation
- getImsRegistrationState
- pullLceData
- deleteSmsOnSim
- deleteSmsOnRuim
- sendDtmf
- startDtmf
- stopDtmf
- sendBurstDtmf

Try to increase timeout to 75 to fix (suggest by QC in b/35671595 #62):
- dial

Test: adb shell data/local/tmp/VtsHalRadioV1_0TargetTest
Bug: 3567159535800570
Change-Id: Idd50bf71ae4c4490722d88d7cba0485b9d49073b

6 years agoMerge "Vts Omx Tests: Disable test that are not IOMX compatible" into oc-dev
Zhuoyao Zhang [Thu, 8 Jun 2017 16:22:38 +0000 (16:22 +0000)]
Merge "Vts Omx Tests: Disable test that are not IOMX compatible" into oc-dev

6 years agoMerge "Omx vts tests" into oc-dev
Zhuoyao Zhang [Thu, 8 Jun 2017 16:22:27 +0000 (16:22 +0000)]
Merge "Omx vts tests" into oc-dev

6 years agoAudioDec Test: Ignore output port configuration
Ram Mohan M [Thu, 8 Jun 2017 06:13:59 +0000 (11:43 +0530)]
AudioDec Test: Ignore output port configuration

audio dec components vorbis, opus and raw undergo auto output port
configuration and donot allow client to configure. By pass output port
configuration for these components

Test: VtsHalMediaOmxV1_0Host
Bug: 37501531
Change-Id: Ib1539b36589db5bdf1b6d82fcd0c50ba420a0299

6 years agoVideoEnc Test: extend lockYCbCr() to hal yuv formats
Ram Mohan M [Wed, 7 Jun 2017 12:07:42 +0000 (17:37 +0530)]
VideoEnc Test: extend lockYCbCr() to hal yuv formats

Test: VtsHalMediaOmxV1_0Host
Bug: 37501531
Change-Id: I4661f41a92aac44e8a8d2721dfebbd25045fbe1c

6 years agoVts AudioDec Test: Disable EOSTest_M
Ram Mohan M [Thu, 8 Jun 2017 11:26:55 +0000 (16:56 +0530)]
Vts AudioDec Test: Disable EOSTest_M

Sending first buffer as EOS, is not supported across all components.
We will revisit this fixture at a later stage

Test: VtsHalMediaOmxV1_0Host
Bug: 37501531
Change-Id: Ic9f59f7b0a5291710bc50710ef054b0c0c49ca98

6 years agoVts Omx Tests: Disable test that are not IOMX compatible
Ram Mohan M [Wed, 7 Jun 2017 15:49:47 +0000 (21:19 +0530)]
Vts Omx Tests: Disable test that are not IOMX compatible

Android IOMX differs slightly from OMX. Disable tests that are not
needed (for now). We will revisit them at a later stage

Bug:32023356
Bug:37501531

Test: make vts.

Change-Id: Iad71d72a4a66d621f415731d2c0e1a3794ed3524

6 years agoOmx vts tests
Ram Mohan M [Fri, 2 Jun 2017 06:28:53 +0000 (11:58 +0530)]
Omx vts tests

Bug:32023356
Test: make vts.

cleanup: move duplicate code to common

moved code shared across application to common and
removed duplicate code

Change-Id: I2dacb9d72bdf545addd2cc377dd4342c92f50f11

restrict secure component testing to VTS*ComponentTest

Change-Id: I1d2878408df2e4cbe31b3b47a3d6500a90692a7a

Master Test: test component node alloc/dealloc

Change-Id: I89ef853cf5a9f6b0a0af9e25ef484968aec614f6

Component Test: fix dispatchMsg test fixture

Change-Id: Ie1068a5d73a3a573e552cf023c9c7dc78a43ea59

AudioDec Test : missing csd in opus resource files

opus decoder test resource files have a missing csd. This is causing
timestamp list empty test to fail. This is fixed

Change-Id: I6ae3b241fbf3e384943a0e6e80838a45c1fc6687

Change-Id: Ie7775456542f12d5f5d87dded4b0a57fd0723037

6 years agoFix expected attestation version.
Janis Danisevskis [Wed, 7 Jun 2017 18:31:23 +0000 (11:31 -0700)]
Fix expected attestation version.

The attestation version cannot be infered from the keymaster version
because we provide software attestation for legacy keymaster 1 keys.
This patch changes the attestation test to expect either attestation
version 1 or 2.

Bug: 37351644
Test: VtsHalKeymasterV3_0TargetTest
Change-Id: I4db83a543db20191d288b2ca8308aa6597cd8e22

6 years agoMerge "Omx vts tests." into oc-dev
Zhuoyao Zhang [Tue, 6 Jun 2017 18:29:14 +0000 (18:29 +0000)]
Merge "Omx vts tests." into oc-dev

6 years agoMerge "contexthub: Handle service death" into oc-dev
Brian Duddie [Tue, 6 Jun 2017 16:28:37 +0000 (16:28 +0000)]
Merge "contexthub: Handle service death" into oc-dev

6 years agoMerge changes from topic 'vts-validate-policy-conf' into oc-dev
Kevin Rocard [Tue, 6 Jun 2017 02:55:22 +0000 (02:55 +0000)]
Merge changes from topic 'vts-validate-policy-conf' into oc-dev

* changes:
  Audio VTS: Enforce policy configuration format
  Audio VTS: Test now use Android.mk

6 years agocontexthub: Handle service death
Brian Duddie [Fri, 2 Jun 2017 01:51:22 +0000 (18:51 -0700)]
contexthub: Handle service death

Register for notification of service death for callbacks registered with
the context hub HAL. Upon this notification, unregister the callback to
avoid crashing if an event occurs prior to the service coming back up.

Bug: 36202367
Test: adb shell stop, confirm death notification received via log;
  vts-tradefed run commandAndExit vts --module VtsHalContexthubV1_0Target
Change-Id: I3c25229806cb9f2a116007939c752841edbf0985