Commit Graph

54367 Commits

Author SHA1 Message Date
Yifan Hong
fa24ef60cb Merge changes from topic "fcm_exclude_aidl_version" into main am: 76d87305d5 am: 74e0c01e15
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2688568

Change-Id: Icc68b709220dff71e7ecfcf37c5ccb0bf6622ffc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09 21:35:38 +00:00
Arthur Ishiguro
6311a3cebd Add CPU_WRITE_RARELY flag am: 802c53da89 am: cefade7fa9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2700498

Change-Id: I8ed2bd16e6180d368c3fa87bec1dd0a604933924
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09 21:35:22 +00:00
Yifan Hong
74e0c01e15 Merge changes from topic "fcm_exclude_aidl_version" into main am: 76d87305d5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2688568

Change-Id: I06b1823b8f496f633c30e791ee103cf7f5e8dd50
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09 20:51:25 +00:00
Arthur Ishiguro
cefade7fa9 Add CPU_WRITE_RARELY flag am: 802c53da89
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2700498

Change-Id: Ibd137553e14fa37b7fb25b7ecdbb3103effe713f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09 20:50:08 +00:00
Yifan Hong
76d87305d5 Merge changes from topic "fcm_exclude_aidl_version" into main
* changes:
  fcm_exclude: mark bluetooth.audio@1 as deprecated.
  matrices: Add gnss.* to fcm_exclude.
  fcm_exclude: Aidl HALs contains versions.
2023-08-09 20:35:12 +00:00
Arthur Ishiguro
802c53da89 Add CPU_WRITE_RARELY flag
Without this flag, the test may fail with SEGV_ACCERR.

Bug: 293475360
Test: Run test
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8c5976f06a9c9b0cb92735c3eeba7f7485f4e7ca)
Merged-In: I2d7cfba94145239afde196567400c966a2769419
Change-Id: I2d7cfba94145239afde196567400c966a2769419
2023-08-09 18:17:23 +00:00
Treehugger Robot
bd532381bb Merge "Update the TimeoutAuthenticationMultiSid test" into main am: d99d7730b8 am: 96a5d15232
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2676695

Change-Id: I054264f3f5920397d66326b5f2dbedce48378a7f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09 15:36:12 +00:00
Treehugger Robot
96a5d15232 Merge "Update the TimeoutAuthenticationMultiSid test" into main am: d99d7730b8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2676695

Change-Id: I6d58b87e43397544a6bc6f39412217176a1dfe94
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09 14:56:18 +00:00
Treehugger Robot
d99d7730b8 Merge "Update the TimeoutAuthenticationMultiSid test" into main 2023-08-09 14:25:05 +00:00
Eric Biggers
2dc46dc7d6 Merge "Test that the password isn't truncated (again)" into main am: 15d95e8d65 am: d699154bd1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2696111

Change-Id: I458acf01f95551b8986f3ca109af8586ca692091
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09 00:13:27 +00:00
Henry Fang
8ccc9e7114 Merge "CAS: Add SYS_NICE Capability" into main am: 15ec04889d am: e77a471fd4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2696777

Change-Id: I5caef5ee68a23f77a664de3f1f38834477434d83
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09 00:13:14 +00:00
Shreshta Manu
a37c2d0a9f [uwb-interfaces] Add support for prioritized channel list am: 595041e6fb am: c00217cc26
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2698595

Change-Id: Iaaba68f5d716d9a94afcea28d8a905146560e093
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09 00:12:57 +00:00
Eric Biggers
d699154bd1 Merge "Test that the password isn't truncated (again)" into main am: 15d95e8d65
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2696111

Change-Id: I42b20e5fa539bc78093c02675896a5355dbe593d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 23:29:28 +00:00
Henry Fang
e77a471fd4 Merge "CAS: Add SYS_NICE Capability" into main am: 15ec04889d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2696777

Change-Id: Ic69e02162cefeb6dffa15002ec79076d964efab5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 23:29:16 +00:00
Shreshta Manu
c00217cc26 [uwb-interfaces] Add support for prioritized channel list am: 595041e6fb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2698595

Change-Id: I7e374c48b473348d532f3de0c2937e0de9f93f52
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 23:29:00 +00:00
Eric Biggers
15d95e8d65 Merge "Test that the password isn't truncated (again)" into main 2023-08-08 23:21:36 +00:00
Henry Fang
15ec04889d Merge "CAS: Add SYS_NICE Capability" into main 2023-08-08 22:44:19 +00:00
Subrahmanya Manikanta Venkateswarlu Bhamidipati Kameswara Sri
07c7d28a84 Update the TimeoutAuthenticationMultiSid test
Update TimeoutAuthenticationMultiSid test to support
generateKey for Strongbox implementations without
factory attestation.

Bug: 293211157
Test: run vts -m VtsAidlKeyMintTarget
Change-Id: I27bf08d2fd2d9e0217a90ee8ccb789adfd9d5f7f
2023-08-08 22:33:37 +00:00
Sarah Chin
83238b5415 VTS setGetAllowedNetworkTypesBitmap allow reset am: ba1c37e79b am: 80e0490502
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24304951

Change-Id: If31ae86f57ad4a8e51def149a1e5541a27de9c59
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 20:49:57 +00:00
Yifan Hong
19d015a45e fcm_exclude: mark bluetooth.audio@1 as deprecated.
It never shows up in any matrices. Only bluetooth.audio@2
and beyond are accepted.

Test: TH
Bug: 255383566
Change-Id: I110b73b2ed610d86aa351216fe46d9f803f8c3cf
2023-08-08 13:32:19 -07:00
Yifan Hong
a3975a563f matrices: Add gnss.* to fcm_exclude.
They aren't top level interfaces.

Test: TH
Bug: 255383566
Change-Id: I8265f531880d1dcff1bf7edfd035a25f9e2a4d70
2023-08-08 13:32:12 -07:00
Yifan Hong
68ed69dd7c fcm_exclude: Aidl HALs contains versions.
ShouldCheckMissingAidlHalsInFcm now accepts arguments of
the format android.hardware.foo@1.

Test: TH
Bug: 255383566
Change-Id: I891f749190a8db8725ec1e05b190e73ab4468254
2023-08-08 13:32:11 -07:00
Sarah Chin
80e0490502 VTS setGetAllowedNetworkTypesBitmap allow reset am: ba1c37e79b
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24304951

Change-Id: I7f7276195589beb9bf9223269823f73672ba6224
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 20:09:37 +00:00
Shreshta Manu
595041e6fb [uwb-interfaces] Add support for prioritized channel list
Test: compiles
Bug: 293959095
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:cef396ca26136d812405e78009e7a1374ca89e5c)
Merged-In: I18da378128b96b73ae457045354d22a4add988d0
Change-Id: I18da378128b96b73ae457045354d22a4add988d0
2023-08-08 20:08:45 +00:00
David Drysdale
b8749b670e Merge "KeyMint: use a smaller invalid IMEI value" into main am: 955fb9e5fc am: da606360cc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2694950

Change-Id: Ic4f38db75b5c07bb2652b18995559f9ecc6cb099
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 11:36:32 +00:00
David Drysdale
da606360cc Merge "KeyMint: use a smaller invalid IMEI value" into main am: 955fb9e5fc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2694950

Change-Id: I9b15adef6651cf9c35062c4b0bdaeecfef5c1ad9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 10:53:48 +00:00
David Drysdale
955fb9e5fc Merge "KeyMint: use a smaller invalid IMEI value" into main 2023-08-08 10:16:23 +00:00
Venkatarama Avadhani
90e664dfa6 CAS: Add SYS_NICE Capability
Add SYS_NICE capability to the CAS services. This will enable the
service to set its priority.

Bug: 286011513
Test: Build
Change-Id: I5cd58a3a9db53fcc004557a8e9f509ebd6291c2d
2023-08-08 15:35:08 +05:30
Treehugger Robot
e0612ac03e Merge "audio: Implement the major functionality of the primary CF HAL" into main am: ff1f1f3494 am: a9d915c5a7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2695367

Change-Id: I83eab84203e2133b83608e8079a65a56087d5815
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 09:21:41 +00:00
Treehugger Robot
a9d915c5a7 Merge "audio: Implement the major functionality of the primary CF HAL" into main am: ff1f1f3494
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2695367

Change-Id: Iee943e26ddde7f586e021a722579ed14ef81e5a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 08:40:30 +00:00
Treehugger Robot
ff1f1f3494 Merge "audio: Implement the major functionality of the primary CF HAL" into main 2023-08-08 07:56:05 +00:00
Treehugger Robot
745d16098f Merge "audio: Ensure proper priority and scheduler for service threads" into main am: 41243dc213 am: 67869eb176
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2696137

Change-Id: I959a56824684cef008fee0bb265f5755f0cb430b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 03:49:58 +00:00
Treehugger Robot
67869eb176 Merge "audio: Ensure proper priority and scheduler for service threads" into main am: 41243dc213
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2696137

Change-Id: Iaad0376514ff74a8daa1b6bb20956ba7aa9b0acd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 03:04:14 +00:00
Treehugger Robot
41243dc213 Merge "audio: Ensure proper priority and scheduler for service threads" into main 2023-08-08 02:19:23 +00:00
Mikhail Naganov
4bf6899cc7 audio: Ensure proper priority and scheduler for service threads
Change audio worker threads priority to ..._URGENT_AUDIO to match
the coupled thread in the audio flinger.

Set SCHED_FIFO scheduler for FAST threads (also to match AF fast
mixer/capture threads). In order to enable that, grand SYS_NICE
capability to the HAL service process and provide "getTid"
function in the StreamWorker class. For testing, add a "FAST"
output to the "stub" module in the HAL configuration.

Bug: 286914845
Test: atest libaudioaidlcommon_test
Test: atest VtsHalAudioCoreTargetTest
Test: adb shell ps -A -T -o PID,TID,NI,PCY,PRI,RTPRIO,SCHED,CMD
      for the HAL service process during VTS test. For regular
      "reader"/"writer" threads should see 'NI 19, PRI 38',
      for FAST "writer" should see 'NI -19, PRI 43, RTPRIO 3, SCH 1'
Change-Id: Iab7e21ebc139ff11cf9b7f4a1645960db8dadd43
2023-08-07 18:15:19 -07:00
Treehugger Robot
499e15094d [automerger skipped] Merge "Update version for audiocontrol" into main am: 203ca985ce am: 1f232a1cc4 -s ours
am skip reason: Merged-In I17000be75963e511d2a56583be0f619a3dee66f1 with SHA-1 ede24f77e6 is already in history

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

Change-Id: Ifba08fef001375a39d7be8f4ca3e59d065f8aaf4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 00:27:25 +00:00
Treehugger Robot
1f232a1cc4 Merge "Update version for audiocontrol" into main am: 203ca985ce
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2695272

Change-Id: If528b5b568a4d2573e00149ec755a748259d3735
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-07 23:42:11 +00:00
Treehugger Robot
203ca985ce Merge "Update version for audiocontrol" into main 2023-08-07 22:59:39 +00:00
Mikhail Naganov
cf824f65c8 audio: Implement the major functionality of the primary CF HAL
Core HAL changes:

1. Add StreamPrimary implemented via StreamAlsa.

2. Align the configuration with the HIDL HAL.

3. Fix position retrieval vs. standby call.

4. Fix sleeps in StreamAlsa.

VTS changes:

1. Use several bursts for stream I/O test scenarios that check
   observable position increase. This is because the position may
   not be available until a couple of transfers have been made.

2. Do not require position increase for the scenarios that do
   not make several bursts. As specified above, the position may
   not have been increased for the ALSA case. Whereas, using
   multiple bursts in all scenarios will increase test time, and
   make the state machine transitions graph more complicated.

3. Hook up the test config file to shut down audioserver during
   VTS tests, fix the test config file.

Bug: 286914845
Test: atest VtsHalAudioCoreTargetTest
Test: compare APM dumps for AIDL vs. HIDL
Change-Id: I85271564c664fa40008d60e82b32eaa66a99c68f
2023-08-07 13:38:50 -07:00
David Drysdale
0215cb3d3e KeyMint: use a smaller invalid IMEI value
The invalid value used for the second IMEI attestation test is
potentially wrong in two ways:
- It doesn't match the provisioned value.
- It's not a valid IMEI, not least because it is longer than 16 bytes.

Make the test value shorter so the second failure doesn't apply and
the test can reliably expect CANNOT_ATTEST_IDS.

Bug: 292959871
Test: VtsAidlKeyMintTargetTest
Change-Id: If8c6b9e08b48e6caf5c767578e1ac43964214619
2023-08-07 11:53:46 +01:00
kuanyuhuang
5c265525ff BT: add LOW_LATENCY mode if low latency allowed am: 25b4819e08 am: 2194196c50
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2696655

Change-Id: I383fa2c6999bd9a030b29062660db3ef4bc57807
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-07 07:40:18 +00:00
kuanyuhuang
2194196c50 BT: add LOW_LATENCY mode if low latency allowed am: 25b4819e08
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2696655

Change-Id: If285a6296927f8d886a8398779cd4216f9d083ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-07 06:59:12 +00:00
kuanyuhuang
25b4819e08 BT: add LOW_LATENCY mode if low latency allowed
LatencyMode is not updatable after audio session started.
Currently, if low latency is allowed, audio session should have
LOW_LATENCY latency mode.
Create a workaround to add LOW_LATENCY when low_latency_allowed_ set to
ture at ReportLowLatencyModeAllowedChanged.

Bug: 291760415
Bug: 294498919
Test: play low latency audio with supported headset and check
LOW_LATENCY mode can be selected

Change-Id: Ia324f0a368e47ae8b8056c190d8d1f4a2e09ecec
2023-08-07 05:05:52 +00:00
Eric Biggers
8bf0780fd9 Test that the password isn't truncated (again)
Test that Gatekeeper doesn't truncate passwords, either due to them
containing NUL bytes or being long.

This is https://r.android.com/2151558 ported to the AIDL test.  Even
though the AIDL test wasn't added until after my change, it was forked
from an earlier version of the HIDL test that didn't have my change.

Bug: 238919794
Test: atest VtsHalGatekeeperTargetTest # on Cuttlefish
Change-Id: I6fec951e67a35d5275a67244fbef07d1435c9f4f
2023-08-05 02:47:59 +00:00
Yifan Hong
5902a1fa71 matrices: automotive.audiocontrol in 7.xml has max version am: 966a4f13a5 am: 980a0781a7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2688072

Change-Id: Ie9032fec537abe6040c502c4329db8c45607710b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-05 02:43:37 +00:00
Yifan Hong
980a0781a7 matrices: automotive.audiocontrol in 7.xml has max version am: 966a4f13a5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2688072

Change-Id: Idd95c933262c3defbcc921457be47291f67cd1c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-05 01:58:17 +00:00
Yifan Hong
01a3afed45 Merge "fcm_exclude: split HIDL and AIDL predicate." into main am: 23847d4411 am: a2f7b02a8c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2688566

Change-Id: If04f6ddb0dd26467344c569918996e3fe13e6444
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-05 00:53:47 +00:00
Yifan Hong
a2f7b02a8c Merge "fcm_exclude: split HIDL and AIDL predicate." into main am: 23847d4411
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2688566

Change-Id: I1aeadeb5e6f6f2d90d7e539178ee75adeafab31e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-05 00:07:41 +00:00
Terry Guan
b324444c8a Update version for audiocontrol
Bug: 255369346
Bug: 255383566
Test: atest vts_treble_vintf_vendor_test
Change-Id: I17000be75963e511d2a56583be0f619a3dee66f1
Merged-In: I17000be75963e511d2a56583be0f619a3dee66f1
Merged-In: Ic42e51b616782a2763eb80e1cad5ca776cc079d4
2023-08-04 16:50:58 -07:00
Yifan Hong
966a4f13a5 matrices: automotive.audiocontrol in 7.xml has max version
Updates version from 1 to 1-2 to reflect the fact
that version 2 is released in Android 13.

Test: TH
Bug: 255383566
Change-Id: I290aefb51fcc54d5e5a02f8c7da5876e86f61cd9
2023-08-04 16:47:29 -07:00