Commit graph

36829 commits

Author SHA1 Message Date
Alix
ea13312de0 Deleted clang property in Android.bp files
Deleted deprecated clang property in Android.bp files using bpmodify.

Bug: 208980553
Test: treehugger
Change-Id: I07c0f96d07ad39dfedfc7ede275b7794c58bf2d2
2022-04-25 21:00:34 +00:00
Alix
3ce97170b1 autogenerated reformatting by bpfmt
Bug: 208980553
Test: treehugger
Change-Id: I8734474f4e75bcf808701bcbc747bc53c64907cc
2022-04-25 20:58:57 +00:00
Mikhail Naganov
5b64e55e6e VTSHalAudio: Increase test timeout for V6 to 10 minutes am: 2f7d57651a am: bb3b37ec0f am: f28b308502
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2072111

Change-Id: Ie054fa988bb48c329d08e90fafef4a31506c600a
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 08:37:45 +00:00
Mikhail Naganov
b3136785a0 VTSHalAudio: Increase test timeout for V6, V7.x to 10 minutes am: 3664aad2ac am: debaac6c18
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2072110

Change-Id: I161c681b8b4fdecf662d732206742eae4070ca87
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 08:37:34 +00:00
Mikhail Naganov
f28b308502 VTSHalAudio: Increase test timeout for V6 to 10 minutes am: 2f7d57651a am: bb3b37ec0f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2072111

Change-Id: Ie320a3cc82d4c34834fdb6527f3e5ab4c83e0edb
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 08:21:25 +00:00
Mikhail Naganov
debaac6c18 VTSHalAudio: Increase test timeout for V6, V7.x to 10 minutes am: 3664aad2ac
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2072110

Change-Id: Ib8b4292b5d6238c08df39559f07ecf8c7aea9d20
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 08:21:17 +00:00
Mikhail Naganov
bb3b37ec0f VTSHalAudio: Increase test timeout for V6 to 10 minutes am: 2f7d57651a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2072111

Change-Id: I7e87765dda2bff174a743940a486aa7b83896e67
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 08:21:13 +00:00
Michael Butler
5d4f1b70c2 Merge "Handle case where NN AIDL callback is null in IDevice::prepareModel*" 2022-04-22 18:06:47 +00:00
Mikhail Naganov
2f7d57651a VTSHalAudio: Increase test timeout for V6 to 10 minutes
TV devices can list a lot of configurations and have low
performing CPUs which causes the test to run for a significant
amount of time. From b/229824670 it seems that 10 minutes
should be enough.

Bug: 229824670
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: Id7fa8eaa98bf2437fd1f676b9e5a7290df260fbd
(cherry picked from commit 0b9b03eb71)
2022-04-22 01:06:09 +00:00
Mikhail Naganov
3664aad2ac VTSHalAudio: Increase test timeout for V6, V7.x to 10 minutes
TV devices can list a lot of configurations and have low
performing CPUs which causes the test to run for a significant
amount of time. From b/229824670 it seems that 10 minutes
should be enough.

Bug: 229824670
Test: atest VtsHalAudioV6_0TargetTest
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: Id7fa8eaa98bf2437fd1f676b9e5a7290df260fbd
(cherry picked from commit 0b9b03eb71)
2022-04-22 01:04:23 +00:00
Michael Butler
d6f6d01499 Handle case where NN AIDL callback is null in IDevice::prepareModel*
Prior to this change, if IDevice::prepareModel* was passed a null
callback, the code would still attempt to call "notify" on the callback
to return the error to the client. This CL ensures the "notify" method
will not be invoked if the callback is null.

Bug: N/A
Test: mma
Test: presubmit
Change-Id: I4a15d02c4879a0261ec26cc0e7a47d0a4da86b8b
2022-04-21 16:40:09 -07:00
Mikhail Naganov
0b9b03eb71 VTSHalAudio: Increase test timeout for V6, V7.x to 10 minutes
TV devices can list a lot of configurations and have low
performing CPUs which causes the test to run for a significant
amount of time. From b/229824670 it seems that 10 minutes
should be enough.

Bug: 229824670
Test: atest VtsHalAudioV6_0TargetTest
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: Id7fa8eaa98bf2437fd1f676b9e5a7290df260fbd
2022-04-21 18:52:32 +00:00
Treehugger Robot
c5fc884ed6 Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" 2022-04-21 16:15:59 +00:00
Max Bires
dcaa803893 Merge "Increase challenge size in tests." 2022-04-21 07:37:05 +00:00
Bob Badour
0d8b0d734a [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  automotive/sv/1.0/default/tests/fuzzer/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Ib5e5d3e52aa5ce4c3b0141619e0023c963ec7e0d
2022-04-20 18:25:58 -07:00
Max Bires
89c7488370 Increase challenge size in tests.
VTS tests were currently passing a challenge size of 32 in all cases.
However, the server currently sends a challenge of length 40, which may
or may not change in the future. A 64 byte upper limit provides a
standard size along with flexibility in case the challenge format
changes in the future.

Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I678bb915f139e4c23354180870a66ce33a9cfd8c
2022-04-20 12:23:19 +00:00
Joseph Jang
7f923b326b identity: Add require_root to allow tradefed system auto run
Bug: 228806698
Change-Id: I50fa7d70b4fb327a4b77f43e1c88810e104a4a26
2022-04-20 06:02:10 +00:00
Treehugger Robot
91722e3875 Merge "Added automotiveSvV1.0_fuzzer" 2022-04-18 07:24:20 +00:00
Yifan Hong
c99d0553c6 health: Add stayfan and smoreland as owners.
Test: none
Change-Id: I4c79b1aba1172b990cae55009b4cc095d35acab7
2022-04-14 12:55:51 -07:00
Treehugger Robot
9e8d756311 Merge "Build with upstream lld: Fix incorrect static dependencies" 2022-04-13 21:31:16 +00:00
Treehugger Robot
9f18cbd7f6 Merge "Build with upstream lld: Fix incorrect static dependencies" 2022-04-13 21:30:38 +00:00
Treehugger Robot
8c2a2ee651 Merge "check all active ports" 2022-04-13 01:58:56 +00:00
Tim Lin
118816d298 check all active ports
Bug: 226018537
Test: run vts -m VtsHalRadioTargetTest

Change-Id: Ie3d8f7387ebb2846ea772d4f879039a127282c9a
Merged-In: Ie3d8f7387ebb2846ea772d4f879039a127282c9a
2022-04-13 00:28:45 +00:00
Mikhail Naganov
7c92256c1a audio: Require exact implementation version match
Align the behavior of minor version mismatch with the behavior
of major version mismatch. For example, trying to run VTS test
intended for V7.0 on a device with V7.1 yields no results,
similar to what happens when running a V6.0 test on V7.0 device.
This is done to avoid test failures when the device uses
features added by V7.1 in the APM XML config.

Bug: 227150535
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: I8ad6595a221f0bc9aedea057f27a75c172954da5
2022-04-12 00:06:09 +00:00
Pirama Arumuga Nainar
cef135a3d2 Build with upstream lld: Fix incorrect static dependencies
Bug: http://b/197965342

Remove unnecessary `static_libs` dependencies or move them to
`shared_libs` to build with upstream LLD.  See b/197965342#comment1
(internal) for rationale.  Some info is available externally at
https://github.com/llvm/llvm-project/issues/42899.

Per go/android-lld-static-lib-fix, OWNERS are added for visibility.  No
action is needed if the change looks good.  This change will be merged
after two business days with Global Approvers.

Test: Build modules with aosp/2036867 in addition to presubmit
Change-Id: I12ffa45755b3055117fa87aae2110b125b60fd54
2022-04-11 20:08:40 +00:00
Pirama Arumuga Nainar
3be0ec611f Build with upstream lld: Fix incorrect static dependencies
Bug: http://b/197965342

Remove unnecessary `static_libs` dependencies or move them to
`shared_libs` to build with upstream LLD.  See b/197965342#comment1
(internal) for rationale.  Some info is available externally at
https://github.com/llvm/llvm-project/issues/42899.

Per go/android-lld-static-lib-fix, OWNERS are added for visibility.  No
action is needed if the change looks good.  This change will be merged
after two business days with Global Approvers.

Test: Build modules with aosp/2036867 in addition to presubmit
Change-Id: Id3ec5d188d7d0ae364e52b98fb9cf7221274665a
2022-04-11 20:04:20 +00:00
Treehugger Robot
210c44dbe1 Merge changes I45e60f32,I2c8d3a16
* changes:
  wait for response before running next TC
  set SIM slots mapping based on current mapping
2022-04-11 17:52:07 +00:00
Treehugger Robot
18704f22a0 Merge "fix infinite loop in enableModem TC" 2022-04-11 17:51:58 +00:00
David Drysdale
b474607b7c Merge "Fix AES corrupt padding test" 2022-04-11 12:29:26 +00:00
David Drysdale
b809329dc7 Fix AES corrupt padding test
The AesEcbPkcs7PaddingCorrupted test has been incorrect since it was
originally introduced -- it was feeding the original message as input to
the decryption operation, rather than the corrupted ciphertext.  As a
result, the expected error code was also wrong -- INVALID_INPUT_LENGTH
is appropriate for a too-short cipher text (length 1 in this case),
whereas a corrupt-but-correct-length cipher text should give
INVALID_ARGUMENT.

Fix the test, and add a separate test to cover what was inadvertently
being tested before. Add a sentence to the HAL spec to describe what
expected and tested by CTS/VTS.

Bug: 194126736
Test: VtsAidlKeyMintTargetTest, VtsHalKeymasterV4_0TargetTest
Change-Id: Iaa5e42768814197f373797831093cf344d342b77
2022-04-11 08:35:11 +01:00
Tim Lin
148303775a wait for response before running next TC
All TCs store RadioResponseInfo in a shared variable and
read it to verify the result. So there is race condition
problem if we don't wait for responses.

Bug: 228593077
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I45e60f324926588c55abd0a719fd55352767a3eb
Merged-In: I45e60f324926588c55abd0a719fd55352767a3eb
2022-04-11 10:03:50 +08:00
Tim Lin
1a55fff64b set SIM slots mapping based on current mapping
If we set the SIM slots mapping arbitrarily on single SIM enabled
device, the SIM state could become absent and cause other TCs fail.

Bug: 227693614
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I2c8d3a162e1dca5a0bd6cfe93a1cc269f4c25188
Merged-In: I2c8d3a162e1dca5a0bd6cfe93a1cc269f4c25188
2022-04-11 10:03:31 +08:00
Tim Lin
9597360e20 fix infinite loop in enableModem TC
Bug: 227585563
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I879faa5ecef026865d17ad1a23e52cb9f8f70454
Merged-In: I879faa5ecef026865d17ad1a23e52cb9f8f70454
2022-04-11 10:03:01 +08:00
Suren Baghdasaryan
b5e9cdaf7e Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Icbf3e66e61e7ebb570ac3aba5f1cf9e10ef6720d
Merged-In: Icbf3e66e61e7ebb570ac3aba5f1cf9e10ef6720d
2022-04-08 00:41:35 +00:00
Treehugger Robot
dc1a419baf Merge "BtAudio: Prevent unlink dead binder" 2022-04-07 18:56:44 +00:00
Pirama Arumuga Nainar
2c76c6867e Merge "Build with upstream lld: Fix incorrect static dependencies" 2022-04-07 16:26:05 +00:00
Josh Wu
08255b45d9 BtAudio: Prevent unlink dead binder
Tag: #stability
Bug: 227029886
Test: manually kill bt process
Change-Id: Ic976a33feb5a3636ab828637faf0ba109f5948ce
2022-04-07 09:02:20 -07:00
Treehugger Robot
842e6219c2 Merge "VTS: Remove enforce codec2 on ATV for S devices" 2022-04-07 02:48:46 +00:00
Pirama Arumuga Nainar
da5fa76f9f Build with upstream lld: Fix incorrect static dependencies
Bug: http://b/197965342

Remove unnecessary `static_libs` dependencies or move them to
`shared_libs` to build with upstream LLD.  See b/197965342#comment1
(internal) for rationale.  Some info is available externally at
https://github.com/llvm/llvm-project/issues/42899.

Per go/android-lld-static-lib-fix, OWNERS are added for visibility.  No
action is needed if the change looks good.  This change will be merged
after two business days with Global Approvers.

Test: Build modules with aosp/2036867 in addition to presubmit
Change-Id: I6b607969ab89605d392344d307f5deeb883d4191
2022-04-06 23:05:20 +00:00
Derek Smith
0877d4aa17 VTS: Remove enforce codec2 on ATV for S devices
Allow ATV devices to pass codec2 check if launched
with Android S or earlier. Codec2 support is only
mandatory for Android T on Android TV.

Bug: 226932158
Test: atest StoreHidlTest

Signed-off-by: Derek Smith <dpsmith@google.com>
Change-Id: I67a855108191da96810ea23c821d8a80752862e7
2022-04-06 21:18:35 +00:00
Sarah Chin
354140fd8c DeactivateDataCall remove network on all errors
Remove network on all errors instead of only RADIO_NOT_AVAIALBLE.

Test: atest DataNetworkTest
Bug: 219998284
Change-Id: I9e36829c627c7fa1286174e536ef5ff561e8b142
Merged-In: I9e36829c627c7fa1286174e536ef5ff561e8b142
2022-04-05 16:11:55 -07:00
Sarah Chin
992f730a90 Update documentation for data call list APIs
Test: build
Bug: 221174412
Change-Id: Ibab472f979815cdbec3ce64d7855c7a21fdbec01
Merged-In: Ibab472f979815cdbec3ce64d7855c7a21fdbec01
2022-04-05 15:53:21 -07:00
Treehugger Robot
d9c19eda92 Merge "Enable host support for IRadio AIDL" 2022-04-05 21:34:47 +00:00
Sarah Chin
57556fbde4 Enable host support for IRadio AIDL
Test: build
Bug: 227504826
Change-Id: Id444cd20944de3679b27667f2419d25f5c040f65
2022-04-05 12:01:35 -07:00
Ayushi Khopkar
19f4098f9e Added automotiveSvV1.0_fuzzer
Test: adb shell /data/fuzz/${TARGET_ARCH}/automotiveSvV1.0_fuzzer/automotiveSvV1.0_fuzzer
Bug: 187131529

Change-Id: I873c2e00e21a8b7fc81efeb807643ccee9fe242c
2022-04-05 12:21:51 +05:30
Xin Li
341369e970 [automerger skipped] Mark ab/8389834 as merged am: a74294fe1f -s ours
am skip reason: Merged-In I890f54f80ff3aca3dcb2c51f20db087d453c2927 with SHA-1 cefd18a941 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2052770

Change-Id: I229f1ae99979e44ea28f82e281f37d39210a0a43
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-03 06:42:51 +00:00
Tim Lin
fd854fe699 fix SIM related VTS failures
1. Add 6s delay after setSimSlotsMapping because modem needs time to
   process SIM configuration change. The next TC could fail at
   checking SIM status if there is no delay. The default SIM
   configuration on my test device is that physical#0 maps to
   logical#1 and physical#1 maps to logical#0. When running
   setSimSlotsMapping, it then becomes physical#0 maps to logical#0
   and physical#1 maps to logical#1.
2. Support DSDS case and TSTS case for setSimSlotsMapping. The
   original code only set for 1 slot and it caused 2nd slot SIM
   absent when testing with DSDS enabled.
3. Set slotStatus from corresponding physical slot for
   setSimCardPower.

Bug: 227579281
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I8c12cb1dbc439655f9de88b1e217b3f34e44ebeb
Merged-In: I8c12cb1dbc439655f9de88b1e217b3f34e44ebeb
2022-04-02 00:58:38 +08:00
Sandeep Jawalkar
89d877e914 Merge "VTS testcases for HAL API setSimSlotMapping" 2022-04-01 16:56:30 +00:00
sandeepjs
3bb500068d VTS testcases for HAL API setSimSlotMapping
To accomodate MEP, we have updated the setSimSlotMapping API in the HAL,
Writing the tescases to check functionality of the same.

Test: atest VtsHalRadioTargetTest
Bug: 217665559
Change-Id: Idbff19db2e536d3c2f7b80afbbf244575d8247d0
Merged-In: Idbff19db2e536d3c2f7b80afbbf244575d8247d0
2022-04-01 15:53:21 +00:00
Xin Li
a74294fe1f Mark ab/8389834 as merged
Bug: 188847863
Merged-In: I890f54f80ff3aca3dcb2c51f20db087d453c2927
Change-Id: Ibd61ea9f788323943ab852a5f8d3f01cb662e7f9
2022-04-01 00:16:12 -07:00