Commit Graph

18835 Commits

Author SHA1 Message Date
Howard Chen
3fec2daf23 Merge "Move HIDL interfaces not included in mainline_system.mk to system_ext" 2020-08-04 02:26:11 +00:00
Jasmine Cha
1eb1f36877 Audio VTS: Fix empty parameter list failures for AudioV6
For AudioV6, OptionalInputBufferSizeTest isn't included in macro
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST.

Bug: 162715033
Test: atest VtsHalAudioV6_0TargetTest

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I526fe166594283540804ee61265c6000de5a89e8
2020-08-03 08:49:38 +00:00
Howard Chen
a831d6495a Move HIDL interfaces not included in mainline_system.mk to system_ext
Test: aosp_wembley-userdebug
Bug: 161688072
Change-Id: If5f9419697bbd89d35dcd0220b1a80355835a3d1
2020-08-01 16:12:29 +08:00
Treehugger Robot
643c8239ed Merge "remove stopAllRecognitions VTS test" 2020-07-31 21:51:12 +00:00
Treehugger Robot
1f613db028 Merge "light AIDL: use module_current" 2020-07-31 21:29:56 +00:00
Nicholas Ambur
09032da2d1 remove stopAllRecognitions VTS test
The stopAllRecognitions API is not used at the layers above the HAL, and
it requires the HAL to own the state of all active recognitions. This
API causes discontinuity with the upper layers also maintaining state
information.

The VTS requirement is being removed.

Bug: 151281377
Test: atest VtsHalSoundtriggerV2_0TargetTest
&& atest VtsHalSoundtriggerV2_1TargetTest

Change-Id: If14ed8177e0ff2730d2ed78ba8fbbbd058c4d57a
Merged-In: If14ed8177e0ff2730d2ed78ba8fbbbd058c4d57a
2020-07-31 14:03:31 -07:00
Lajos Molnar
a9f74717e2 Merge changes I0ced4012,I9b1f8ed9,Iba2a7259,I8174b895
* changes:
  omx vts: update language to comply with Android's inclusive language guidance
  omx: rename master to store
  OMX VTS: Use GetComponentRole from OMXUtils
  Convert Python OMX VTS test to Gtest
2020-07-31 17:04:29 +00:00
Lajos Molnar
237e3d7ffc omx vts: update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

BUG=161896447

Change-Id: I0ced401233497bbbfce90e9b84147bb08399e421
2020-07-31 04:35:05 +00:00
Lajos Molnar
3836d5584a omx: rename master to store
Update language to comply with Android's inclusive language guidance

See https://source.android.com/setup/contribute/respectful-code for reference

BUG=161896447

Change-Id: I9b1f8ed9da444024cd2fa2f3a62b6874dcd96cf7
2020-07-31 04:34:57 +00:00
Pawin Vongmasa
0f9e6d56dc OMX VTS: Use GetComponentRole from OMXUtils
Test: atest VtsHalMediaOmxV1_0TargetMasterTest

Bug: 159410244
Change-Id: Iba2a7259ddc5fc634b22d8c5954178dede6b71d5
Merged-In: Iba2a7259ddc5fc634b22d8c5954178dede6b71d5
2020-07-31 04:34:45 +00:00
Devin Moore
34a4184d91 Convert Python OMX VTS test to Gtest
Moving the extra tests from
test/vts-testcase/hal/media/omx/V1_0/host_omxstore/VtsHalMediaOmxStoreV1_0HostTest.py
to the OMX Gtest in VtsHalMediaOmxV1_0TargetMasterTest.

This is mostly validating the RoleInfo and NodeInfo data obtained from
IOmxStore interface.

Bug: 152237762
Test: atest VtsHalMediaOmxV1_0TargetMasterTest on cf and pixel devices
Change-Id: I8174b8953ee5e484777afb21b2d170cec0159edc
Merged-In: I8174b8953ee5e484777afb21b2d170cec0159edc
2020-07-31 04:34:06 +00:00
Treehugger Robot
0aa2a2f3ef Merge "Update language to comply with Android's inclusive language guidance" 2020-07-31 00:56:59 +00:00
Sarah Chin
44fde6386b Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for
reference

Test: build
Bug: 161896447
Change-Id: I3c0d02e1ee94c575c3a18291d438b464d7396463
Merged-In: I3c0d02e1ee94c575c3a18291d438b464d7396463
2020-07-30 21:24:53 +00:00
Amy Zhang
205d0f8bd3 Update language to comply with Android’s inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference


BUG=161896447

Change-Id: I93461b526cd69f9ebfa876edc6445df29746968e
2020-07-30 17:53:54 +00:00
Steven Moreland
ad724e1e30 light AIDL: use module_current
Now that this works for VINTF modules, make sure we have at least one
example of it on AOSP.

Fixes: 161501127
Test: build only

Change-Id: Ib02d36d172ad6654b4b7fc424ca14bb90ee503d5
2020-07-29 21:23:02 +00:00
Treehugger Robot
2f13308369 Merge "Update language in VtsHalPowerV1_0TargetTest to comply with Android’s inclusive language guidance" 2020-07-29 18:11:32 +00:00
Amy Zhang
8da33d07a5 Merge "Update language in VtsHalPowerV1_1TargetTest to comply with Android’s inclusive language guidance" 2020-07-29 16:40:24 +00:00
Amy Zhang
79983c6d89 Merge "Update language in VtsHalPowerV1_2TargetTest to comply with Android’s inclusive language guidance" 2020-07-29 16:40:14 +00:00
Amy Zhang
596307912b Update language in VtsHalPowerV1_2TargetTest to comply with Android’s inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference


BUG=161896447

Change-Id: I8de9ed6ead75243537f77bf358c5b3e443330a68
2020-07-29 01:33:39 +00:00
Amy Zhang
818ecfc860 Update language in VtsHalPowerV1_1TargetTest to comply with Android’s inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference


BUG=161896447

Change-Id: I36a253fab9bb278517e66d30440e40a22b1605e6
2020-07-29 01:31:56 +00:00
Amy Zhang
85864fd70a Update language in VtsHalPowerV1_0TargetTest to comply with Android’s inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference


BUG=161896447

Change-Id: I90de581df24872a30d93d9416a73e702f413c332
2020-07-29 01:10:32 +00:00
Dan Shi
ba4d532fee Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I8c1a48e6fbd7c8161137902b5332911fa0d7b8b3
2020-07-28 15:12:32 -07:00
Treehugger Robot
3d5e0bb649 Merge "Allow HAL test to pass without instance found." 2020-07-24 18:49:40 +00:00
Treehugger Robot
5ae008679d Merge "BTAudio: report session ended after cleaning up" 2020-07-24 18:28:10 +00:00
Dan Shi
c159474b14 Allow HAL test to pass without instance found.
Bug: 162052785
Test: atest
Change-Id: I03c434cdf357dc8340b107fed991389a47febfbe
2020-07-24 10:40:00 -07:00
Bill Peckham
9b04c73565 Merge "Convert Android.mk to Android.bp for vendor snapshot." 2020-07-24 15:34:49 +00:00
Treehugger Robot
8ba4ba6faa Merge "Update VtsHalSecureElementV1_2TargetTest" 2020-07-24 14:30:27 +00:00
Cheney Ni
9dfdb686aa BTAudio: report session ended after cleaning up
While Bluetooth stack ending a session, this CL does clean up first, and
then reports the change. All observers are able to get the correct
session state by invoking IsSessionReady() within the change callback.

Bug: 162065063
Test: manually
Change-Id: I920ea578d626d2e5844eb7c8a701636e20d7a219
2020-07-24 22:07:28 +08:00
Jack Yu
53a741a8f2 Update VtsHalSecureElementV1_2TargetTest
When calling se reset, connected state should be reported with false and then true.

Bug: 154572079
Test: run vts -m VtsHalSecureElementV1_2TargetTest
Merged-In: I907d32a2c44230b581680d1872c9b01e517a5d81
Change-Id: I907d32a2c44230b581680d1872c9b01e517a5d81
2020-07-24 13:27:11 +00:00
Jack Yu
9995280b1b Add owner to secure element vts test
Bug: 154772240
Test: N/A
Exempt-From-Owner-Approval: test owner is not added
Merged-In: I87df98366b07ac26b971d80b27f8f600783d74d0
Change-Id: I87df98366b07ac26b971d80b27f8f600783d74d0
2020-07-24 13:26:38 +00:00
Eran Messeri
3e4d8d0856 Merge "Fix Keymaster VTS unique attestation failure" 2020-07-24 13:00:21 +00:00
Treehugger Robot
603e9a875a Merge "Tag vts module VtsHalSecureElementV1_*TargetTest with secure element sim" 2020-07-24 02:03:03 +00:00
Jayachandran Chinnakkannu
ea1a77442f Merge "Create IRadio 1.6 folder, empty files and VTS framework" 2020-07-24 01:31:34 +00:00
Bill Peckham
294ad24d74 Convert Android.mk to Android.bp for vendor snapshot.
This change enables the converted modules to be included
in the vendor snapshot, which considers only
soong-defined modules.

Conversion of the modules in this directory to
Android.bp was blocked by a build-time conditional check
of TARGET_ENABLE_MEDIADRM_64. Using a Soong config
variable, we can perform the conversion.

Bug: 161571531
Bug: 123557988
Test: Build with TARGET_ENABLE_MEDIADRM_64 :=
Test: Build with TARGET_ENABLE_MEDIADRM_64 := true
Test: Insepction of out/soong/soong.variables for each
Test: Inspection of target files package for each
Test: Verify inclusion of modules in vendor snapshot
Change-Id: I47c3b739dfafdf619f8a9a85de560652966af290
2020-07-23 14:33:20 -07:00
Jayachandran C
262b606c1b Create IRadio 1.6 folder, empty files and VTS framework
Bug: 158315614
Test: build
Change-Id: I5d7f7205933ea1b0e4bd70fa6ae006dacb67954f
2020-07-23 11:10:16 -07:00
allen.zhang
569a61290e Fix Keymaster VTS unique attestation failure
Adding TAG_DEVICE_UNIQUE_ATTESTATION & CheckedDeleteKey()
in TEST_P(DeviceUniqueAttestationTest, NonStrongBoxOnly)
Test procedure:
1.Build APP "VtsHalKeymasterV4_1TargetTest" in android project,
then replace it to VTS testcase(version in 0610).
2. ./vts-tradefed
3.run vts -m VtsHalKeymasterV4_1TargetTest
Result:all testcase pass

Bug: 158724430
Test: m VtsHalKeymasterV4_1TargetTest && echo run vts -m VtsHalKeymasterV4_1TargetTest | ./vts-tradefed

Change-Id: I693c23596a045bf9af9fe6cc483924fd7cfc6ce6
2020-07-23 12:39:13 +01:00
Jack Yu
e897da6940 Tag vts module VtsHalSecureElementV1_*TargetTest with secure element sim
Bug: 161745750
Test: build pass
Change-Id: I498b0f6eb4e6b9e6c679068cdfd9a044c41b1cc3
2020-07-23 10:18:51 +08:00
Sarah Chin
96f358efda Update VTS tests to use GeranBands P900 and 850 instead
Also call stopNetworkScan to prevent DEVICE_IN_USE error

Test: run vts VtsHalRadioV1_4Target, VtsHalRadioV1_5Target
Bug: 159582104
Change-Id: If27cb00fe9eb5cf3ce2e73107ed6463c1ebb7cfd
Merged-In: If27cb00fe9eb5cf3ce2e73107ed6463c1ebb7cfd
2020-07-22 16:00:42 -07:00
Treehugger Robot
3f5116a1f6 Merge "Provide defaults for android.hardware.audio@6.0-impl" 2020-07-22 16:37:39 +00:00
Mikhail Naganov
b9743d4728 Audio VTS: Suppress empty parameter list failures
GTest has introduced a check verifying that the parameter list
for TEST_P tests isn't empty. Having an empty parameter list
isn't actually a problem when the VTS test runs on a device
that lacks the corresponding HAL version.

Bug: 161758075
Test: atest VtsHalAudioV4_0TargetTest
Test: atest VtsHalAudioV5_0TargetTest
Test: atest VtsHalAudioV6_0TargetTest
Test: atest VtsHalAudioEffectV4_0TargetTest
Test: atest VtsHalAudioEffectV5_0TargetTest
Test: atest VtsHalAudioEffectV6_0TargetTest
Change-Id: Ib2a017b74f69b1608d8985f403e9b2a8e54b8311
2020-07-21 10:57:03 -07:00
Treehugger Robot
e6849d568a Merge changes I6c1af92f,Icf594d40
* changes:
  Fix typo in NNAPI documentation
  Fix stale NNAPI documentation
2020-07-21 12:24:31 +00:00
Treehugger Robot
cd6d4fc277 Merge "Use shared variant of VNDK libmedia_helper" 2020-07-20 23:45:42 +00:00
Devin Moore
d0fd93097c Merge changes from topic "nativehandle"
* changes:
  *common: create current API dump
  *common: use package as name
  graphics common: fix AIDL BufferUsage calculation
  Add AIDL type for HardwareBuffer
2020-07-20 23:25:26 +00:00
Roman Kiryanov
411edccbb3 Provide defaults for android.hardware.audio@6.0-impl
This will allow vendors to create instances of
this library with other names. A different name
is required if a vendor wants to provide a custom
version (e.g. in HIDL) of
android.hardware.audio@6.0-impl and still
be able to use the library itself (e.g. to load
audio.r_submix.default) -
android.hardware.audio.service does not load both
libraries and prefers the default one.

Bug: 161485545
Test: boot emulator, check if audio works
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I55c4f9b1386be3464ad0f5f2568423843e7eae88
2020-07-20 16:08:17 -07:00
Inseob Kim
e396a3d004 Use shared variant of VNDK libmedia_helper
Vendor modules should use shared VNDK.

Bug: 137178339
Test: m && boot blueline
Change-Id: I56ad69125811ff768d8064af34acf5603b575b4b
Merged-In: I56ad69125811ff768d8064af34acf5603b575b4b
2020-07-20 16:08:00 -07:00
Treehugger Robot
b278ae0c1e Merge "Fix segfault." 2020-07-17 21:20:11 +00:00
Yifan Hong
339c986606 Fix segfault.
Fix code that incorrectly transforms a hidl_string to String8
by using size of another field.

Test: none
Fixes: 161210887
Change-Id: I54a11e9beab4c825905dda37b121e1fc85658215
2020-07-17 12:57:58 -07:00
Devin Moore
815e9dc82d *common: create current API dump
Generated files with:
m android.hardware.common-update-api
m android.hardware.graphics.common-update-api

Test: Builds
We don't want this commit merged into branches that have added
these types already, as they may have changed.
Merged-In: Ie1d92a50dddf7e3e1bd473e2a957279c6dadb865
Change-Id: I2d83dfdb1d0ba75c76774ded26c4ce93b1807097
2020-07-17 16:48:59 +00:00
Slava Shklyaev
a2fbeefaa8 Fix typo in NNAPI documentation
Fix: 160960007
Test: m
Change-Id: I6c1af92f640fde833d2d93f7db4576c92a6f9719
Merged-In: I6c1af92f640fde833d2d93f7db4576c92a6f9719
(cherry picked from commit 3bbc2aedd0)
2020-07-16 11:50:23 +01:00
Slava Shklyaev
d23380f0a3 Fix stale NNAPI documentation
The scale and zeroPoint fields are applicable to other types since 1.2.

Also makes some whitespaces changes due to the generated documentation
getting out of sync with the template in frameworks/ml/nn.

Fix: 160406237
Test: generate_api.sh
Test: m
Change-Id: Icf594d40c73ff8c05044c320ac9eb6a9c5a89754
Merged-In: Icf594d40c73ff8c05044c320ac9eb6a9c5a89754
(cherry picked from commit 0d6cefe90b)
2020-07-16 11:49:56 +01:00