Commit graph

15956 commits

Author SHA1 Message Date
Steven Moreland
022cda0236 Lights: parameterized VTS tests.
Bug: 139437880
Test: run VtsHalLightV2_0TargetTest as gtest
Change-Id: I43e8f43583e0ad5fc560c3ee2129305396751e29
2019-08-21 15:46:02 -07:00
Peter Kalauskas
caed24ba9b Convert LazyServiceRegistrar usage to singleton
Test: lshal
Bug: 139376253
Change-Id: I32cb803fb73aa15b52676847b6e7eb09b86657dc
2019-08-19 21:15:30 +00:00
Peter Kalauskas
0c7812c7f5 Merge "Convert LazyServiceRegistrar usage to singleton"
am: f71728f04b

Change-Id: Ia9c99cc1b986f266f0239aefcd74600d0c3485da
2019-08-16 11:54:24 -07:00
Peter Kalauskas
f71728f04b Merge "Convert LazyServiceRegistrar usage to singleton" 2019-08-16 18:09:13 +00:00
TreeHugger Robot
fa93b63879 Merge "DO NOT MERGE - Merge qt-dev-plus-aosp-without-vendor (5713463) into stage-aosp-master" into stage-aosp-master 2019-08-15 23:02:11 +00:00
Max Bires
b1b45ff81c Adding testing functionality for TAG_ROLLBACK_RESISTANCE
Due to changes in implementation between keymaster 3.0 and 4.0, rollback
resistance is now specified by the caller. This patch addresses that
inconsistency to make sure rollback resistance is properly tested. If
rollback resistance is supported by the hardware, then it will now be
tested.

Test: atest VtsHalKeymasterV4_0TargetTest
Change-Id: I21e8d1e66932ddfad2d42ce8a43591431f3ff284
2019-08-15 12:46:56 -07:00
Slava Shklyaev
adf64d6cbe Merge "Refactor generated NNAPI tests (follow-up)"
am: 651869e0c6

Change-Id: Ia3bdfbfc6abbdc970efcd0cf31df2b58676eebe8
2019-08-15 10:15:52 -07:00
Treehugger Robot
651869e0c6 Merge "Refactor generated NNAPI tests (follow-up)" 2019-08-15 16:44:36 +00:00
Slava Shklyaev
e2f9d55a26 Merge "Refactor generated NNAPI tests"
am: caedc76b18

Change-Id: I5087c042a51954a7276d7d20167f526884c987c0
2019-08-15 09:14:24 -07:00
Slava Shklyaev
caedc76b18 Merge "Refactor generated NNAPI tests" 2019-08-15 15:42:27 +00:00
Peter Kalauskas
701e7f6616 Convert LazyServiceRegistrar usage to singleton
Test: lshal
Bug: 139376253
Change-Id: Ib1cbfabec23a488868e807a4a9c2b29cd960cc1e
2019-08-14 13:53:14 -07:00
Xin Li
d6651f2888 DO NOT MERGE - Merge qt-dev-plus-aosp-without-vendor (5713463) into stage-aosp-master
Bug: 134405016
Change-Id: I3479c4c0906f4868bc6395b7129f09c695a67d9d
2019-08-14 12:04:07 -07:00
Les Lee
2ad166a35b Merge "WifiHal: Correct typo for code comment"
am: 12ca95ccc4

Change-Id: I97adbb5087c950df99af8962ff400978d5ad64af
2019-08-13 01:28:57 -07:00
Les Lee
12ca95ccc4 Merge "WifiHal: Correct typo for code comment" 2019-08-13 08:10:38 +00:00
Steven Moreland
d2e2e9ae5b Add restricted OWNERS for .hal/.aidl files.
am: 2c3eacc779

Change-Id: I7954b4e318ff98820f7f5232981f9432bf6cc16e
2019-08-12 16:32:51 -07:00
Steven Moreland
2c3eacc779 Add restricted OWNERS for .hal/.aidl files.
Since new hardware interfaces may start containing .aidl interfaces.

Bug: 136027762
Test: N/A
Change-Id: Ie560aadb8882faa532778a5653a07868df2801b6
2019-08-09 15:07:49 -07:00
Neel Mehta
00cdb1d1d2 Remove annotations with constexpr params
am: 3dfccafba4

Change-Id: Ice6677138250a3c67ed07022d36649ea529ab0f4
2019-08-07 14:27:12 -07:00
Slava Shklyaev
0da5c34a3a Refactor generated NNAPI tests (follow-up)
Bug: 136097638
Test: m
Change-Id: I0688a843ab04caca9d62f95d38179804eb1b0f80
2019-08-07 12:29:38 +01:00
Slava Shklyaev
e8b2446b35 Refactor generated NNAPI tests
See change I2c0366fb87c96851fa6e0f8fe9ceac012d8e3513

Bug: 136097638
Test: m VtsHalNeuralnetworksV1_0TargetTest
Test: m VtsHalNeuralnetworksV1_1TargetTest
Test: m VtsHalNeuralnetworksV1_2TargetTest
Test: m VtsHalNeuralnetworksV1_2CompatV1_0TargetTest
Change-Id: I6fdede028422145d313d46532b5d2154ef0d40bc
Merged-In: I6fdede028422145d313d46532b5d2154ef0d40bc
(cherry picked from commit 2bcfdc82a0)
2019-08-07 12:17:59 +01:00
Neel Mehta
3dfccafba4 Remove annotations with constexpr params
These are not used anywhere in the tree and are hence not supported.
These are being removed from hidl-gen so this code is being removed.

Bug: N/A
Test: hidl-gen -Lcheck android.hardware.tests.expression@1.0
Change-Id: Ia19746da8ba361c7f29cc8732058a27cdc7a1bfe
2019-08-06 17:32:40 -07:00
lesl
83530c7fe9 WifiHal: Correct typo for code comment
Test: full build
Change-Id: Ia457f39d1d68527c2bdfaa700d45ead3d2064a52
2019-08-06 12:03:28 +08:00
Janis Danisevskis
e84234afc8 Merge "Keymaster should be developed in AOSP"
am: a5e28d6abf

Change-Id: I290f732459635300fa84ca69523d2935bec9fd89
2019-08-02 10:01:58 -07:00
Treehugger Robot
a5e28d6abf Merge "Keymaster should be developed in AOSP" 2019-08-02 16:32:24 +00:00
Janis Danisevskis
11d910b6a4 Keymaster should be developed in AOSP
This patch adds notifications for internal contributors of
confirmationui, gatekeeper, and keymaster, indicating that these HALS
are developed in AOSP.

Test: N/A
Bug: 118491737
Change-Id: I7f6d5da663026c3cd2124cc3a025a08835585a1c
2019-08-01 15:52:53 -07:00
android-build-team Robot
4dd458dab6 Merge cherrypicks of [9111407, 9111408, 9111409, 9111410, 9111411, 9111332, 9110454] into qt-release
Change-Id: Ic9723493034182084113fcdb716988d4329c7037
2019-08-01 00:59:19 +00:00
Youming Ye
f5d07b84c1 Add non-dds check for startNetworkScan
Providing non-dds exemption for HAL 1.2 network scan due to some devices
only perform network scan on preferred data sim. Since logical modem
id(0/1) and physical sim slot id(0/1) are intuitively aligned. Set
first sim as dds sim, and skip the network scan on the second one
(non-dds).

Test: Vts
Bug: 135243177
Change-Id: I58b89473714dc6d3ce6567ba1809baad6cd6d799
(cherry picked from commit fc85e8fa50)
2019-08-01 00:58:48 +00:00
Daniel Norman
3a6c4696bd Merge "Replaces 'oneshot' and 'interface' with 'onrestart restart audioserver'."
am: 5bb99e24ad

Change-Id: I38708e1b102546d6024a1f80d2c7d7a7e1c18ee9
2019-07-31 15:21:08 -07:00
Daniel Norman
5bb99e24ad Merge "Replaces 'oneshot' and 'interface' with 'onrestart restart audioserver'." 2019-07-31 21:12:12 +00:00
Daniel Norman
fb4aadf622 Replaces 'oneshot' and 'interface' with 'onrestart restart audioserver'.
This default service should still restart on audioserver restart because
audioserver uses 'onrestart restart vendor.audio-hal-2-0' for restarts.

Bug: 138114550
Bug: 80227481
Test: for i in {0..100}; do \
      adb shell 'ps|grep audio;killall audioserver;ps|grep audio' \
      && sleep 2; \
      done
Test: Ran steps mentioned in http://b/80227481#comment1, device did not
get stuck in boot animation. Killing either audioserver or audio-hal
caused both to restart (just once) and the device booted correctly after
the sleep finished.
Change-Id: Ice128b51f79d3a9de22a719e6d897c8dca915e28
2019-07-31 21:08:02 +00:00
Amy
6490b2fc5f Using named pipe as input/output of the CEC hal mock impl
Test: see go/cec_1.0_cuttlefish "How to test HDMI framework on Cuttlefish"
Bug: 135684678
Change-Id: Ice53fe48780d10491a01ec2da764335753150521
2019-07-31 13:26:14 -07:00
sqian
0acb1b7219 Verify there are no more current calls
am: c8a08c1816

Change-Id: I3209c206b8299b2ecb7f6ec5df69dee2f643c743
2019-07-31 11:51:30 -07:00
sqian
c8a08c1816 Verify there are no more current calls
After disconnect calls, we want to verify there are no more current calls
by calling IRadio.getCurrenctCalls

Test: run vts
Bug: 138413412
Change-Id: Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d
Merged-In: Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d
(cherry picked from commit 5f68117e87)
2019-07-30 16:29:33 -07:00
Michael Butler
8f77ce7442 NNAPI VTS fix from NNAPI CL: Cleanup HalInterfaces.h
am: 3835f61986

Change-Id: If5d04badade5bc72470aafd186468701d21ee2ee
2019-07-26 14:18:35 -07:00
Xusong Wang
6e8f9859c2 Move strided_slice_invalid_output_dims to spec directory.
am: ee7fe25e99

Change-Id: If3ac5efaf33acfe3f8aa3808e631f877216d3ead
2019-07-26 14:18:19 -07:00
Michael Butler
3835f61986 NNAPI VTS fix from NNAPI CL: Cleanup HalInterfaces.h
Prior to this CL, HalInterfaces.h polluted the global namespace through
the "using" declarations. To fix b/72880287, those names were put in a
new ::android::nn::hal namespace. This CL fixes the compilation errors
that occur due to this cleanup.

Bug: 72880287
Test: mma
Change-Id: Idb228e37615af7c0343a09f9a51de378e63bdb5a
Merged-In: Idb228e37615af7c0343a09f9a51de378e63bdb5a
(cherry picked from commit 4745a3d96e)
2019-07-26 13:55:25 +01:00
Xusong Wang
ee7fe25e99 Move strided_slice_invalid_output_dims to spec directory.
Bug: 132155416
Test: 1.2 VTS
Change-Id: I0479b8172c55e5e290f3fc8530a428ac5f54998f
Merged-In: I0479b8172c55e5e290f3fc8530a428ac5f54998f
(cherry picked from commit c99ced161c)
2019-07-26 13:55:24 +01:00
Amy
cad5ed3fa2 Merge "Adding default HDMI CEC impl"
am: 42d10ce6ee

Change-Id: I40e20349695672ad34b72aff75a8611a938ac7bf
2019-07-22 13:54:53 -07:00
Treehugger Robot
42d10ce6ee Merge "Adding default HDMI CEC impl" 2019-07-22 20:45:43 +00:00
Janis Danisevskis
c573c0ad45 Merge "Add localization string for confirmationui."
am: 5faecb3e7d

Change-Id: Ic7dbdf347d9fa1bb137ffa1a2087179808acf209
2019-07-22 13:33:26 -07:00
Treehugger Robot
5faecb3e7d Merge "Add localization string for confirmationui." 2019-07-22 20:06:11 +00:00
android-build-team Robot
02a6e82974 Merge cherrypicks of [8701731, 8702515, 8702516, 8702438, 8702439, 8702517, 8702440] into qt-release
Change-Id: I5a887f3f5f7041eaddf2c3a1812f20215c0d648e
2019-07-22 02:05:12 +00:00
Valerie Hau
37d4f127c9 DO NOT MERGE: Fixing SRGB for devices that do not support SRGB color mode
Bug: 135375302
Test: build, boot, VtsHalGraphicsComposerV2_2TargetTest
Change-Id: Ie8f53effe3e6e29a4523ebfa450c79fdf96ed585
Merged-In: Ie8f53effe3e6e29a4523ebfa450c79fdf96ed585
(cherry picked from commit 2f3553e1ed)
2019-07-22 02:04:20 +00:00
jie.yuan
e9be824d3b VTS : fix vts fail [1/1]
Problem:
VtsHalGraphicsComposerV2_1Target#GraphicsComposerHidlCommandTest.PRESENT_DISPLAY_NO_LAYER_STATE_CHANGES fail
the testcase setcolormode SRGB without check if current device support SRGB

Solution:
change setColorMode from SRGB to NATIVE

Verify:
verify in on franklin

Bug: 135375302
Test: build, boot, VtsHalGraphicsComposerV2_1TargetTest
Change-Id: I646c263d96b03f9d30e6563a45cff37835001609
Merged-In: I5eebe5f530e3b62037d669992cf2eca0849f10be
(cherry picked from commit 70e5b556ef)
2019-07-22 02:04:13 +00:00
Janis Danisevskis
54243610c7 Add localization string for confirmationui.
Bug: 118818420
Test: ConfirmationUITranslations-test.c
Change-Id: I45d96dcce1d459dd889fd48c0724092e642278c2
2019-07-19 15:55:23 -07:00
Michael Butler
6fd5eaec52 Update NN VTS callback objects
am: 051cf39f99

Change-Id: Ibab8657b851d56af18965766303e0f26bc51bded
2019-07-19 13:25:15 -07:00
Xusong Wang
237bfc9854 Remove compiler flag for dynamic output shape tests.
am: e108bc15e6

Change-Id: Icf4f851b0ed919f7041620d1e7a4b40ccfcbae34
2019-07-19 13:25:00 -07:00
Slava Shklyaev
868ef4ac7a Update paths to NNAPI VTS models
am: cac83eefa5

Change-Id: I72034e2205fb7a6052894271974d3bedcae71f6b
2019-07-19 13:24:44 -07:00
Slava Shklyaev
bc50034109 Refactor NNAPI VTS to remove unreasonable dependence between versions
am: 73ee79dafa

Change-Id: Ie79a5693ceb255d0e44579cc6627254840166d8f
2019-07-19 13:10:50 -07:00
Michael Butler
051cf39f99 Update NN VTS callback objects
The VTS Callback files are a subset of the Callback files in
frameworks/ml/nn/runtime/Callbacks.*. This CL syncs the implementations,
removing the functionality that is not needed in VTS.

Fixes: 132322149
Test: mma
Test: VtsHalNeuralnetworksV1_0TargetTest
Test: VtsHalNeuralnetworksV1_1TargetTest
Test: VtsHalNeuralnetworksV1_2TargetTest
Change-Id: I114ce7f3b6c3d58de0196e9508209614d0a73e11
Merged-In: I114ce7f3b6c3d58de0196e9508209614d0a73e11
(cherry picked from commit 23d0e562e0)
2019-07-19 14:00:40 +01:00
Xusong Wang
e108bc15e6 Remove compiler flag for dynamic output shape tests.
Having separate VTS models and tests for difference HAL version. This
compiler flag is no longer needed.

Bug: 122740334
Test: All VTS 1.x and 1.xCompat1.y
Change-Id: Idbd96a954da9bd5a0e0e66afd9120d84a1efc784
Merged-In: Idbd96a954da9bd5a0e0e66afd9120d84a1efc784
(cherry picked from commit 7763d53545)
2019-07-19 14:00:38 +01:00