summaryrefslogtreecommitdiff
path: root/media/tests
AgeCommit message (Collapse)Author
2025-03-21Merge changes from topic "media-proj-builder" into main Vadim Caen
* changes: Introduce MediaProjectionAppContent Builder pattern for MediaProjectionConfig
2025-03-21Introduce MediaProjectionAppContent Vadim Caen
Test: MediaProjectionAppContentTest Flag: com.android.media.projection.flags.app_content_sharing Bug: 398757866 Change-Id: I5dc3a487c5aa9d1e5df443a2d0dec2fcf3556c5e
2025-03-21Builder pattern for MediaProjectionConfig Vadim Caen
Introduce a builder pattern for MediaProjectionConfig, allowing more flexibility for the type of configuration need by the requesting application, in preparation for the content sharing option in a follow-up CL. Also adding some documentation fix and moving readding the CTS in presubmit. Test: atest CtsMediaProjectionTestCases:MediaProjectionConfigTest Flag: com.android.media.projection.flags.app_content_sharing Bug: 398757866 Change-Id: I0e048c47605fe06bf49e032f387d4009750e5f02
2025-03-19Update team attribution for MediaProjection tests Marvin Ramin
Bug: 400932931 Test: n/a Flag: TEST_ONLY Change-Id: Id3798bd476a1bc09628c90a53f0843e5b1ae7f98
2025-03-18Merge "Revert "Add MODIFY_AUDIO_SETTINGS_PRIVILEGED permission check to ↵ Treehugger Robot
volume callback"" into main
2025-03-18Revert "Add MODIFY_AUDIO_SETTINGS_PRIVILEGED permission check to volume ↵ Oscar Azucena
callback" This reverts commit 76e3bf9a04746763e689e1b9237dffade6f246b9. Reason for revert: Causing failures for non phone builds, see b/404490474 Change-Id: I22d8fd4f39d7285a9fd423be511eba759928334c
2025-03-18Update MediaProjection TEST_MAPPING files Marvin Ramin
Run all relevant tests for changes to MediaProjection code changes Bug: 401234854 Test: presubmit Flag: TEST_ONLY Change-Id: I43684532d4b735b5f03e18471d341ca71a407710
2025-03-17Merge changes from topic "VOL_GROUP_CB_ENFORCMENT" into main Treehugger Robot
* changes: Add permission to volume callback APIs Add MODIFY_AUDIO_SETTINGS_PRIVILEGED permission check to volume callback AudioService: move volume callback on AudioService
2025-03-17Add MODIFY_AUDIO_SETTINGS_PRIVILEGED permission check to volume callback François Gaffie
Bug: 293236285 Flag: EXEMPT refactor Test: atest AudioManagerTest Change-Id: Ie59ddeb96913907d6b7ba494cf36b7d7274a4be0 Signed-off-by: François Gaffie <francois.gaffie@ampere.cars>
2025-03-17AudioService: move volume callback on AudioService Francois Gaffie
Robustness to crash of AudioServer. Take benefit of future permission enforcement. Bug: 293236285 Flag: EXEMPT refactor Test: atest com.android.server.audio Signed-off-by: Francois Gaffie <francois.gaffie@renault.com> Change-Id: If556a668f45d608b98b6e8073426f5bb8128c7a2
2025-03-17Merge "Move MediaProjectionStoppingTest to internal instrumentation tests" ↵ Treehugger Robot
into main
2025-03-12Move MediaProjectionStoppingTest to internal instrumentation tests Marvin Ramin
Bug: 400932931 Test: atest MediaProjectionStoppingTest Flag: TEST_ONLY Change-Id: I7df5bb1426c7f1f58b89d1704d03c25d14606a1f
2025-03-10frameworks/base: remove usages of Mockito.verifyZeroInteractions Adrian Roos
The method has been replaced by verifyNo(More)Interactions in later Mockito versions. Test: m checkbuild Flag: TEST_ONLY Bug: 310268946 Change-Id: I57faa43a5f158bb131f64c19d93de99e04f257ca
2025-03-05frameworks/base: remove deprecated Mockito usages Adrian Roos
Test: m checkbuild Flag: TEST_ONLY Bug: 310268946 Change-Id: Id68adb5ab554a8031f8d03f6158c0e9ffa03604c
2025-02-04Type conversion test for MULTICHANNEL_GROUP yucliu
Add Java/Aidl device type conversion test for new device type DEVICE_OUT_MULTICHANNEL_GROUP. Flag: TEST_ONLY Bug: 346839248 Test: unit test Change-Id: I1cad8a670781ff62ffd7d94f7361b1b929bcd0df
2025-01-28Merge "camera: Delete supportsCameraApi binder call" into main Jayant Chowdhary
2025-01-28camera: Delete supportsCameraApi binder call Jayant Chowdhary
Bug: 391957505 Flag: EXEMPT; bug fix Test: CameraBinderTest.java Change-Id: Ifaf9553e6f60c5702487dfe786daed53cf16bca5 Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2025-01-24Merge "Use cache for volume getter" into main Vlad Popa
2025-01-24Use cache for volume getter Vlad Popa
Using the IpcDataCache to reduce the number of binder calls between AudioManager and AudioService. From the b/383667500 we see that there are a lot of calls that can be optimized. We need to investigate whether the IpcDataCache mechanism is more efficient in this case since the volumes might get invalidated very often depending on the routing and mute state. Flag: android.media.audio.cache_get_stream_volume Test: atest AudioManagerTest Bug: 383667500 Change-Id: I8a07d0f728149e2a9bfcaeee81fff60b17ceedb5
2025-01-24Merge "Use cache for min max volume getter" into main Vlad Popa
2025-01-23Use cache for min max volume getter Vlad Popa
Using the IpcDataCache to reduce the number of binder calls between AudioManager and AudioService. Especially for the get min max stream volume this makes a lot of sense since they do not change that often. Flag: android.media.audio.cache_get_stream_min_max_volume Test: atest AudioManagerTest Bug: 383667500 Change-Id: I040fb20e100099461a6fd31d10726f6ac3b4b02d
2025-01-23Merge "Update OWNERS files" into main am: 4da2de834e am: afd0093ebf Neill Kapron
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3461950 Change-Id: I1a72201cb2dc5730b2f07b406dfbba34f0025bbc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-22Update OWNERS files Neill Kapron
This change updates OWNERS for Android USB Bug: 391666402 Test: N/A Change-Id: I4be0dcf9fd17493ba01c561e89f7d0e4c06fd887 Signed-off-by: Neill Kapron <nkapron@google.com>
2025-01-13Merge "Update trendy team for mediaroutertest" into main am: 0cfdbd3d31 am: ↵ Abu Alkali
787ca6b554 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3449611 Change-Id: I711826a6a76282cd0386407eb5bae39ea240c155 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-13Update trendy team for mediaroutertest Abu Alkali
Change-Id: I8f960ec7ef32af1f5ccf968640bb6873e7d17e17 Flag: EXEMPT DOCS_ONLY
2024-11-29Update MediaProjection logging atoms for new windowing metrics Daniel Akinola
Add fields to track target position & size, and stop reason + log stop reason and updates to bound Bug: 341319250 Test: atest MediaProjectionManagerServiceTest Test: atest ContentRecorderTests Test: atest MediaProjectionMetricsLoggerTest Flag: EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d6615c072b30ff766d17f94cdbd2d66b5e37f376) Merged-In: I456f974bf37af39882ef011bf60f724670ea8dae Change-Id: I456f974bf37af39882ef011bf60f724670ea8dae
2024-11-25camera: Add FMQ support for camera2 impl SDK Jayant Chowdhary
Bug: 362791857 Flag: EXEMPT: com.android.internal.camera.flags.fmq_metadata used in cameraserver Test: Use GCA with FMQ metadata Test: Camera CTS Change-Id: Iec434c7cdf00edb85c71d096cb0e57e3b5c9d3a7 Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2024-11-21Update MediaProjection logging atoms for new windowing metrics dakinola
Add fields to track target position & size, and stop reason + log stop reason and updates to bound Bug: 341319250 Test: atest MediaProjectionManagerServiceTest Test: atest ContentRecorderTests Test: atest MediaProjectionMetricsLoggerTest Flag: EXEMPT bugfix Change-Id: I456f974bf37af39882ef011bf60f724670ea8dae
2024-11-13Add multi-client support in camera2 Jyoti Bhayana
Add support for multiple clients to access the same camera using camera2 api. This is initial set of changes and includes all the new API changes as well as implementation of opening the camera in shared mode, new open callbacks, newly added characteristics and creating shared sesion. After the merge of these initial changes, it will be followed by another set of changes which will include implementation of startStreaming and stopStreaming APIs and the capability for multiple clients to stream the camera images. Flag: com.android.internal.camera.flags.camera_multi_client Bug:265196098 API-Coverage-Bug: 377371012 Test: Tested that a java and native client are able to open the camera at the same time and get the required callbacks and they are able to get the shared session configuration using newly added characteristics. Tested the clientaccessprioritieschanged callback occur appropriately when new client connects/disconnects. Change-Id: Iee01b79a3a4188fa32ce361f829ac8ea62111076
2024-11-13Merge 24Q4 (ab/12406339) into aosp-main-future Xin Li
Bug: 370570306 Merged-In: Ic2ffd5a1f4420121b958cadb726c3e805cda1434 Change-Id: If0f7008f8e699bf1fca8d20ee5e05877a61ea002
2024-11-07Merge "Add MULTICHANNEL_GROUP to AidlConversion" into main Treehugger Robot
2024-11-04Merge "Changes to OWNERS files for USB." into main am: b9a3d1b10d am: 21616edcad Febin Thattil
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3326240 Change-Id: I31f7142dc605eb0cc1739f71e82c2e85bbfc9d9b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-04Add MULTICHANNEL_GROUP to AidlConversion yucliu
Convert AudioSystem.DEVICE_OUT_MULTICHANNEL_GROUP to its aidl AudioDeviceDescription. "connection" uses CONNECTION_VIRTUAL. Flag: EXEMPT bugfix Bug: 344031109 Test: atest AidlConversionUnitTests Change-Id: I518bf80fc2447601b0a7b4ff381bec40a29ddf82
2024-11-04Merge "Changes to OWNERS files for USB." into main Febin Thattil
2024-11-04Changes to OWNERS files for USB. Febin Thattil
Ashish and Sarup have moved away from USB and often get pinged or assigned bugs under USB component. This also means we may miss important issues relevant to Android USB because they're assigned to them. Adding myself and moving Arun lower in priority to OWNERS so that bugs will go through Mark, myself and Arun instead. Change-Id: I9f71261fb3329aaa927e321003f4d86ae1227463
2024-10-28Dialog to record other displays Vadim Caen
Test: RecordingServiceTest, ScreenRecordPermissionDialogDelegateTest, MediaProjectionManagerServiceTest Bug: 362720120 Flag: com.android.media.projection.flags.media_projection_connected_display Change-Id: I8778664030d4a105a9120822ed3d8b160605d83c
2024-10-02Clean up group volume adjustment disablement flag Santiago Seifert
Test: m && presubmit Flag: EXEMPT Dead code removal Bug: 334877803 Change-Id: Ica5c0e8f9b5efa2c11216c0582a0c8145f7b5f1a
2024-09-12Merge "Batch creation of test_module_config entries in frameworks/base" into ↵ Ronald Braunstein
main am: 2e1a903f24 am: a62826e6f7 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3262770 Change-Id: I4bab2927281efc018de8af42e913fea71c48ded7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-12Merge "Batch creation of test_module_config entries in frameworks/base" into ↵ Ronald Braunstein
main
2024-09-11Batch creation of test_module_config entries in frameworks/base Ronald Braunstein
go/test-module-config This change only creates new names for existing tests. A follow-up CL will adjust TEST_MAPPING files to use these names. Where appropriate, minor changes to the .bp file were made to fix missing test_suites. Flag: TEST_ONLY Test: These do not affect anything yet. Change-Id: Iab1b96fd7b3d49f29e573817bd9be805741a9cad
2024-09-11Merge "Make java_sdk_library dependencies explicit" into main Treehugger Robot
2024-09-11Make java_sdk_library dependencies explicit Jihoon Kang
modules should specify the submodule of java_sdk_library that the module actually depends on Test: CI Flag: EXEMPT build dependency cleanup Bug: 358613520 Merged-In: I80af0b9efa88c668306f0ff1d51491a8180dc57f Change-Id: I80af0b9efa88c668306f0ff1d51491a8180dc57f
2024-09-11Make java_sdk_library dependencies explicit Jihoon Kang
modules should specify the submodule of java_sdk_library that the module actually depends on Test: CI Ignore-AOSP-First: resolving merge conflicts Flag: EXEMPT build dependency cleanup Bug: 358613520 Change-Id: I80af0b9efa88c668306f0ff1d51491a8180dc57f
2024-09-05Merge "Create a new test_module_config entries for TEST_MAPPING options" ↵ Ronald Braunstein
into main am: e3a5bb9d61 am: e743afebbb Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3250400 Change-Id: I9db169e27c8c5ee30887a086f672918273163eec Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-05Merge "Create a new test_module_config entries for TEST_MAPPING options" ↵ Ronald Braunstein
into main am: e3a5bb9d61 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3250400 Change-Id: If0b4a1ecaad6c51ef2892b072024ebceafef639f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-02Create a new test_module_config entries for TEST_MAPPING options Ronald Braunstein
As part of adding `test_module_config`: go/test-module-config, we are migrating options from TEST_MAPPING files to Android.bp files. Several cls have already been submitted, but this is a larger change to add the test_module_config entries in bulk to reduce churn on the Android.bp and TEST_MAPPING files. This topic covers the two of the repos with the most changes needed (frameworks/base and cts). The first cls will simply create the entries in the Android.bp file This is a noop operation until they get used via TEST_MAPPING files. The process is: 1) Generate new test_module_configs with reasonable names based on options in TEST_MAPPING files 2) After 1) gets submitted, match the options from Android.bp back to TEST_MAPPING files and update those TEST_MAPPING files with the name from the Andriod.bp. To simplify a little bit, we are also removing adding "exclude-annotation" androidx.test.filters.FlakyTest and org.junit.Ignore from the options set in Android.bp since we recently added Flaky exclusion to all CI test_mapping runs. And junit always ignore @Ignore, no reason to ask it to. Test: ci Change-Id: I3097093d1677a0a5a30c8f4aed7fc96c22c0e84d Flag: NONE # test rename only
2024-08-17audio: Add permission update barrier for tests Atneya Nair
To avoid test flakiness, we need the equivalent of purgePermissionCache for the new permission sync scheme: tests need to block until the permission state change they trigger via shell perms is visible to the audio system. Migrate the permission update tasks to use an executor service, and keep track of futures which are scheduled on it, allowing us to block until these futures are complete. This also allows for true task conflation, which enables dropping the delay duration lower. Move listener start to later in the boot sequence for performance. Test: perfetto for performance and ensuring dispatch Test: atest CtsMediaAudioTestCases Bug: 338089555 Flag: com.android.media.audio.audioserver_permissions Change-Id: I56dadf11ad397896bd5f7757e6b12eb173d6e984
2024-07-12Merge "Add filtering over action collection to test util" into main Atneya Nair
2024-07-11Add filtering over action collection to test util Atneya Nair
The getFutureForIntent utils currently filter on a single action, but often we want to listen for multiple actions. Add a version which takes a collection of actions, completing if the predicate succeeds following any of the actions being received. Flag: TEST_ONLY Test: atest CtsAudioRecordPermissionTests Bug: 349468644 Change-Id: I13d7b60f373897413316b6b96564e0c0c75236d1
2024-07-08CameraService: Pass package name / attributionTag in AttributionSource Austin Borger
In addition to the uid/pid/deviceId, pass the package name and attributionTag parameters to connect/connectDevice through the clientAttribution argument. Test: atest CtsCameraTestCases Test: Smoke test GCA Bug: 343965468 Bug: 190657833 Flag: EXEMPT Strict mechanical refactor Change-Id: I731e53ab6a452cb962431cc5d7fc8c6f2fb271a6