Skip to content
Snippets Groups Projects
  1. Apr 24, 2024
    • Iván Budnik's avatar
      Fix nullability in MediaController#getPlaybackInfo() · 5a3013b4
      Iván Budnik authored
      The playback info field is NonNull, so getPlaybackInfo() is artificially
      returning a null value if the Binder transaction to system_server fails.
      As per go/android-api-guidelines#framework-rethrow-remoteexception we should always be rethrowing
      RemoteExceptions to provide a strong signal that the operation failed.
      
      In practice, the returned value is never null, unless system_server has
      died. Several CTS tests already assume this NonNull-ness.
      
      Test: atest CtsMediaBetterTogetherTestCases
      Bug: 333564788
      Change-Id: Id18cce692d8d0b25486da427ef9860eb2f176aef
      5a3013b4
  2. Apr 23, 2024
    • Arun Johnson's avatar
      Correcting Offset and size checks while queing · 09b83103
      Arun Johnson authored
      Bug: 336058761
      Bug: 333622829
      Bug: 336058293
      Test: android.mediav2.cts.CodecEncoderBlockModelMultiAccessUnitTest#testSimpleEncode
      Test: android.mediav2.cts.CodecUnitTest$TestApi#testQueueInputBuffersInUnInitState
      
      Change-Id: I4ce7fd2872ce3b4734050b68e5bf2c9b0519c898
      09b83103
    • Iván Budnik's avatar
      Fix cancelScanRequest() scanning state update logic · 21d08b50
      Iván Budnik authored
      Before this change, the method would not turn off scanning in
      system_server when a screen-on scan request was released. As a result,
      proxy routers would unknowingly keep scanning forever even after having cancelled
      their scan requests.
      
      Bug: 331202666
      Test: atest MediaRouter2HostSideTest ProxyMediaRouter2HostSideTest
      Change-Id: I63563f38b7d53e608782e651150242519a55f5ce
      Flag: com.android.media.flags.enable_screen_off_scanning
      21d08b50
    • Santiago Seifert's avatar
      Remove @FlaggedApi from non-API symbols · ff7c906d
      Santiago Seifert authored
      Bug: b/319645714
      Change-Id: I7bf8374786cf3290951fc208a9b6a581389ee6b7
      Flag: DOCS_ONLY
      Test: presubmit
      ff7c906d
  3. Apr 19, 2024
  4. Apr 18, 2024
    • Arun Johnson's avatar
      Checking BadOffset while queuing buffers · 8b390cb1
      Arun Johnson authored
      Bug: 331977352
      
      Test: atest android.mediav2.cts.CodecUnitTest$TestApi#testQueueInputBuffersWithBadOffset
      Flag: codec_fwk.com.android.media.codec.flags.large_audio_frame
      Change-Id: Ic95bd99a88b83885c409881d1e4d3229f4a9ca0d
      8b390cb1
    • Robert Wu's avatar
      MIDI: Add java imports to UMP MIDI docs · 956bbaa1
      Robert Wu authored
      Bug: 335666113
      Test: presubmit
      Change-Id: Iefbf8864dbc90425a4b8b8e54314f69b97588969
      956bbaa1
    • Bishoy Gendy's avatar
      Hide STATE_PLAYBACK_SUPPRESSED from the public api · 26b84ff4
      Bishoy Gendy authored
      API deadline was missed for advancing trunk stable flag to nextfood,
      so removing STATE_PLAYBACK_SUPPRESSED from the api for V to advance the
      flag. It should be added to the API with the next release.
      
      Bug: b/295518668
      Test: mp droid
      Change-Id: I5cec250bcb02745c05570c7be5fbd2ab230abd26
      26b84ff4
    • Robert Wu's avatar
      MIDI: Add exported="true" to docs · 9598114d
      Robert Wu authored
      Bug: 335517441
      Change-Id: I4abb20b81a39333476bb520660efaa09b2b0fe0c
      Test: presubmit
      9598114d
  5. Apr 17, 2024
    • Robert Wu's avatar
      MIDI: Remove < from docs · c34d4405
      Robert Wu authored
      "<" needs to be replaced with "&lt;" in docs.
      
      Bug: 335516003
      Test: presubmit
      Change-Id: I18bc9a0a01d54c72175b27146b624903dc289924
      c34d4405
    • Wonsik Kim's avatar
      MediaCodec: add log around Handler.removeMessages · ff8446f8
      Wonsik Kim authored
      Bug: 326010604
      Test: atest CtsMediaV2TestCases:CodecDecoderTest CtsMediaV2TestCases:CodecEncoderTest
      Change-Id: I24e9bd768349a68b1eb7717c2170b8b6cf18baa3
      ff8446f8
    • Marvin Ramin's avatar
      Make MediaDrm device-aware · 00c8254c
      Marvin Ramin authored
      Cap DRM sessions at max. SW_SECURE_CRYPTO security level for sessions opened by
      applications that are currently visible on a Virtual Device.
      
      Goal is to ensure applications do not get misled that full hw backed DRM is available
      (which it generally would be on the host device). As virtual devices
      operate with virtual displays hw backed DRM will not be available and we now report
      it as such for applications.
      
      Bug: 306374719
      Test: atest VirtualDeviceDrmTest
      Change-Id: I55acb7d15e19611a702492c71dccce2f973fd37c
      00c8254c
  6. Apr 16, 2024
  7. Apr 15, 2024
  8. Apr 12, 2024
  9. Apr 10, 2024
    • Bishoy Gendy's avatar
      Implement Paused state logic for FGS · e60a53a8
      Bishoy Gendy authored
      - This also handling the missing permssion exception in b/333370745
      which caused the initial CL to be reverted.
      
      Bug: 295518668
      Bug: 333370745
      Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsDelegateTest.java
      Test: atest PlatformScenarioTests:android.platform.test.scenario.sysui.media.QSMediaControllerPlayAndPause#testPlayAndPause
      Test: Using MediaRouter SampleApp
      Change-Id: I19b832d53550935c56e52e5e35c10d8c10c57a4c
      e60a53a8
  10. Apr 08, 2024
    • Yu Liu's avatar
      Revert "Set container to system for aconfig_declarations in AconfigFlags.bp" · 02287dc9
      Yu Liu authored
      This reverts commit f6293f71.
      
      Reason for revert: potentially causing boot time regression
      
      Change-Id: If744c038f0ef00178a8b3fc73cc5d674d15bed25
      02287dc9
    • Chaitanya Cheemala's avatar
      Revert "Implement Paused state logic for FGS" · 8b96e849
      Chaitanya Cheemala authored
      This reverts commit f11b5016.
      
      Reason for revert: Likely culprit for b/333370745  - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
      
      Change-Id: Ib2fb1ee00703587dfdb31ef3b5e568e3bf2dfc81
      8b96e849
    • Iván Budnik's avatar
      Extract and simplify RoutingController book-keeping operations · 48bbf3a1
      Iván Budnik authored
      This change deduplicates code and extracts some methods as pre-work for
      proxy routers keeping a local copy of non-system routing controllers.
      
      This is a non-functional change.
      
      Bug: 330300516
      Test: atest CtsMediaBetterTogetherTestCases
      Change-Id: Idcdf68e56913059683626575ed9e189e7b871ebe
      48bbf3a1
    • dakinola's avatar
      PSS Override · d0cc94af
      dakinola authored
      Add new override to force users of MediaProjection API to show Partial Screenshare as an option
      
      Bug: 316897322
      Flag: None
      Test: atest CompatChangesValidConfigTest
      Test: atest MediaProjectionPermissionDialogDelegateTest
      Test: atest ScreenRecordPermissionDialogDelegateTest
      Test: atest CtsMediaProjectionTestCases:MediaProjectionCompatChangeTests
      Test: atest PlatformScenarioTests:MediaProjectionPermissionTest
      Change-Id: I81c2ad3c0e253834676f561a9033ff54dafaa0ea
      d0cc94af
    • Bishoy Gendy's avatar
      Implement Paused state logic for FGS · f11b5016
      Bishoy Gendy authored
      Bug: 295518668
      Test: attest cts/tests/app/src/android/app/cts/ActivityManagerFgsDelegateTest.java
      Change-Id: I6bc80f92220569ad4c20866947e6fabe889412c9
      f11b5016
  11. Apr 05, 2024
  12. Apr 04, 2024
    • Santiago Seifert's avatar
      Remove flag to disable the screen off broadcast receiver · 2e763c28
      Santiago Seifert authored
      It was originally added to prototype the watch-to-phone output switcher,
      in ag/24993347. We now have a proper API for this, so this flag is no
      longer useful.
      
      Bug: b/304234628
      Test: N/A.
      Change-Id: I928f5ec3b8532a134f269d03a75e0b82cac1ca30
      2e763c28
    • Santiago Seifert's avatar
      Move MediaRouterService work out of main thread · 2df07852
      Santiago Seifert authored
      Bug: b/310145678
      Test: atest CtsMediaHostTestCases CtsMediaBetterTogetherTestCases AudioManagerRouteControllerTest
      Change-Id: I0a73bcfd7c0c5a7780dd587dbd45fe6ba6e286e9
      2df07852
    • Satish Yalla's avatar
      Revert "PSS opt-out override: move logic to MediaProjectionManager" · 8dc048b5
      Satish Yalla authored
      Revert submission 26596106-pss-opt-out-override
      
      Reason for revert: <Reason for revert: Potential culprit for b/332779806- verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.>
      
      Reverted changes: /q/submissionid:26596106-pss-opt-out-override
      
      Change-Id: Ide32e23e0f48370bc762d15b2add3eccc70ba69a
      8dc048b5
  13. Apr 03, 2024
    • Santiago Seifert's avatar
      Avoid binding to providers if no apps are scanning · e793c641
      Santiago Seifert authored
      Regardless of manager scans (example: scans coming from sys ui or
      settings). Concretely, this change will prevent apps that don't
      integrate with MediaRouter2 from having remote volume control in
      Settings (this is described in detail in linked bugs).
      
      Bug: b/319604673
      Test: Manually by casting using popular app that doesn't integrate MR2.
      Test: atest CtsMediaHostTestCases CtsMediaBetterTogetherTestCases
      Change-Id: I61f8a2de2fa617517527e775eccf38506a1b9a18
      e793c641
    • Chris Göllner's avatar
      PSS opt-out override: move logic to MediaProjectionManager · cd7ae441
      Chris Göllner authored
      Relanding PSS opt-out override from ag/25896593. Initial implementation defined the ChangeId on SysUI side, but SysUI tests seemed to not recognise it being disabled by default, leading to SysUI test failures. Now instead defining the ChangeId in MediaaProjectionmanager, SysUI is able to properly to read the override as disabled by default, so shouldn't break existing SysUI E2Es.
      
      Bug: 316897322
      Flag: None
      Test: atest packages/SystemUI/tests/src/com/android/systemui/mediaprojection/permission/MediaProjectionPermissionDialogDelegateTest.kt
      Test: atest packages/SystemUI/tests/src/com/android/systemui/screenrecord/ScreenRecordPermissionDialogDelegateTest.kt
      Test: atest CtsMediaProjectionTestCases:MediaProjectionCompatChangeTests
      Test: atest PlatformScenarioTests:android.platform.test.scenario.sysui.mediaprojection.MediaProjectionPermissionTest
      Change-Id: Ibb9ec963a094ab384980bcbd58c68a39d6094ef2
      cd7ae441
  14. Apr 02, 2024
  15. Mar 30, 2024
  16. Mar 28, 2024
    • Chungro Lee's avatar
      Revert "Revert "Revert "Workaround build breakage from full LTO ..." · 5b249369
      Chungro Lee authored
      Revert submission 3009938-revert-3002586-revert-2988057-default-full-lto-DWADZBGWJG-UPWNCWKHFI
      
      Reason for revert:  b/331528903
      
      Reverted changes: /q/submissionid:3009938-revert-3002586-revert-2988057-default-full-lto-DWADZBGWJG-UPWNCWKHFI
      
      Change-Id: Id71726b1e4d96b60ade2fba49d99b776ef7834ea
      5b249369
  17. Mar 27, 2024
    • Raj Goparaju's avatar
      Fix deep copy of fade manager config when using copy cosntructor · 5ca82769
      Raj Goparaju authored
      SparseArray clone is not effective when deep copying. Add a
      custom copier to iterate through the sparse array and manually
      copy each entry.
      
      Bug: 307354764
      Test: m gts && atest -c com.google.android.gts.audio.AudioHostTest
      Change-Id: Ia899be2b7a5c1ef2fe7d9f4cde5f36b5e65d3462
      5ca82769
    • Lajos Molnar's avatar
      media: protect around all codec_fwk aconfig flag access · 6a4bef0f
      Lajos Molnar authored
      This is hopefully a temporary workaround until this functionality
      is added to the generated stubs.
      
      Related-Bug: 325389296
      Bug: 331666510
      Change-Id: Ie08c9241f61e44c8e9857c2cf761fc43ac7fe35f
      6a4bef0f
    • Lajos Molnar's avatar
      media: protect around aconfig flag access in MediaCodec::configure · 03eb2ee1
      Lajos Molnar authored
      This API is known to be used from contexts where aconfig flag accessors
      fail.
      
      Bug: 325389296
      Change-Id: I5164b528c3b852bef9a757d9b2399b0af51feeb0
      03eb2ee1
    • Biswarup Pal's avatar
      VDM and camera framework changes for camera device awareness · 96141040
      Biswarup Pal authored
      - For any camera, CameraManager (API layer) now receives the
      device id (i.e., the id of the device owning the camera, for
      virtual camera this would be the id of the virtual device, and
      for real cameras this would be Context#DEVICE_ID_DEFAULT) and
      the mapped camera id (for virtual devices, the back and
      front virtual cameras of that device would have 0 and 1
      respectively as their mapped camera id, and for real cameras
      this would be their actual camera id) from ICameraServiceListener.
      It skips the callbacks if the received device id doesn't match
      the one in the current context (except for external cameras of
      the default device). As a result, real cameras are available
      only to contexts associated with the default device or any
      virtual device with default camera policy. Virtual cameras are
      available only to contexts associated with a virtual device with
      custom camera policy. Note that externally connected real cameras
      are available to all contexts. For binder calls to cameraserver,
      the API layers pass the device id of the current context and the
      device camera policy.
      
      - VDM passes the id of the virtual device to virtual camera HAL
      service so that it can be reported to cameraserver. VDM also
      exposes the camera policy of a virtual device to cameraserver.
      
      - This change adds device-awareness to both camera2 and legacy
      camera API's.
      
      Test: atest CtsVirtualDevicesTestCases
      Test: atest VirtualCameraControllerTest
      Bug: 291736219
      Change-Id: Ic696b0499cfbb9bfbc3c9156ca6ffd93dc42bcc3
      96141040
Loading