Skip to content
Snippets Groups Projects
  1. Apr 16, 2024
  2. Apr 15, 2024
  3. Apr 09, 2024
  4. Mar 08, 2024
  5. Feb 09, 2024
  6. Feb 01, 2024
    • Jason Chang's avatar
      Fix typo · 60c40fe2
      Jason Chang authored
      Change-Id: Id7cb5da38d767a280091fdc8ed212e23f6a98d86
      60c40fe2
  7. Dec 05, 2023
    • Vlad Popa's avatar
      CTA2075: Fix failing client side tests · bc93e1a4
      Vlad Popa authored
      The new API throws an exception instead of returning false when a codec
      is added twice or removed without being registered first.
      
      Adjusted the tests
      
      Test: adb shell device_config put media_audio android.media.audio.loudness_configurator_api true
      Test: atest LoudnessCodecConfiguratorTest
      Bug: 314864585
      Change-Id: Idb2bb4feebc84bd18be96074a441e808628aba78
      bc93e1a4
  8. Nov 29, 2023
    • Yeabkal Wubshit's avatar
      Change <vibration> to <vibration-effect> · 8969182e
      Yeabkal Wubshit authored
      <vibration> could later be used as a generic tag for different
      representations of vibrations, other than VibrationEffects. Thus, this
      change changes the tag used to serialize VibrationEffects from
      <vibration> to <vibration-effect>.
      
      Contents of change is under the `enable_vibration_serialization_apis`
      flag, so no new flag is created as this CL is only a simple rename.
      
      Bug: 297296718
      Test: unit tests, presubmit
      
      Change-Id: I8c7fb12ad3602ccc213b59b36db1e733c4e2b396
      8969182e
  9. Nov 28, 2023
    • Vlad Popa's avatar
      CTA2075: Optimize data sent to client · 65ff422a
      Vlad Popa authored
      Aggregate bundles that are similar to multiple MediaCodecs and use the
      LoudnessCodecInfo as aggregation key.
      
      Removed mediaCodecHash attribute from LoudnessCodecInfo to allow
      aggregation of multiple audio codecs which can use the same loudness
      parameters
      
      Test: adb shell device_config put media_audio android.media.audio.loudness_configurator_api true
      Test: atest LoudnessCodecConfiguratorTest
      Bug: 298463873
      Change-Id: I1cb1439a8d9b5bf483e20d10abcd03a01e5b23f2
      65ff422a
  10. Nov 27, 2023
    • Raj Goparaju's avatar
      Support configurable fade properties · 7771e3b9
      Raj Goparaju authored
      Automotive audio systems support powerfull amplifiers
      that have specific requirement of fade properties.
      Automotive partners also require dynamic fade
      properties in order to meet geography based legal
      requirements.
      
      This feature supports configuring the following
      fade properties:
      - Fadeable usages
      - Unfadeable content types
      - Unfadeable UIDs
      - Unfadeable audio attributes
      - Volume shaper config per usage or audio attributes
      - fade duration per usage or audio attributes
      
      Bug: 186905459
      Bug: 307354764
      API-Coverage-Bug: 308666800
      Test: atest -c FadeManagerConfigurationUnitTest
      
      Change-Id: I0e3d76a85c53e597a0937886b5b4d615f725bd3b
      7771e3b9
  11. Nov 22, 2023
    • Vlad Popa's avatar
      CTA2075: add client/server logic for codec loudness management · 0815d19a
      Vlad Popa authored
      Changed the LoudnessCodecFormat name into LoudnessCodecInfo and removed
      the setAudioTrack method. The new API will provide the corresponding
      AudioTrack in the startLoudness updates methods.
      
      Test: adb shell device_config put media_audio android.media.audio.loudness_configurator_api true
      Test: atest LoundessCodecHelperTest
      Test: atest LoudnessCodecConfiguratorTest
      Bug: 298463873
      Change-Id: Ia9d1b0c5ed523389d949154bf465a87f71f2f463
      0815d19a
  12. Nov 02, 2023
    • Venkatarama Avadhani's avatar
      MetadataRetriever: Use RGBA_8888 as default color format based on a flag · c35577ee
      Venkatarama Avadhani authored
      When the flag mediametadataretriever_default_rgba8888 is set, use
      RGBA_8888 as the color format in getFrameAtTime call.
      
      Add the unit test to check the intended behaviour.
      
      Test: adb shell setprop persist.device_config.aconfig_flags.\
      media_solutions.com.android.media.playback.flags.\
      mediametadataretriever_default_rgba8888 true
      Test: adb shell device_config put media_solutions \
      com.android.media.playback.flags.mediametadataretriever_default_rgba8888 \
      true
      Test: atest com.android.mediaframeworktest.unit.MediaMetadataRetrieverTest
      Bug: 298965955
      
      Change-Id: I8452e75e07bcfcd2483ad2da971806147f5a9067
      c35577ee
  13. Nov 01, 2023
  14. Oct 31, 2023
  15. Oct 30, 2023
    • Thiébaud Weksteen's avatar
      Add permission annotation to FakeIMediaProjection · e62b29a4
      Thiébaud Weksteen authored
      All the service implementations require the annotations, even for tests.
      Add the annotations and use a fake to grant the permission by default.
      
      Bug: 285807496
      Test: atest MediaProjectionTests
      Change-Id: Icb90d506b1e424a85df14c0474ad6d139a8da45d
      e62b29a4
  16. Oct 18, 2023
    • Ian Baker's avatar
      Cherry-pick MediaFrameworkTest dep changes from internal main · 70b59724
      Ian Baker authored
      This resolves automerge conflicts in aosp/2745223
      
      Test: atest com.android.mediaframeworktest.unit.MediaMetadataRetrieverTest
      Bug: 298965955
      
      Merged-In: I7e29732e1e77e37cfb491521d14d2f3eb07deb36
      Merged-In: I81d512e9b21b64a2cca0450cb85c52d8a2125865
      Change-Id: I8cb92fd35b3633cf458f8692173124fd1666d6b5
      70b59724
  17. Oct 17, 2023
  18. Oct 14, 2023
    • Harish Mahendrakar's avatar
      Migrate MediaMetadataRetrieverTest to JUnit4 · 20dabc8c
      Harish Mahendrakar authored
      Removed MediaMetadataRetrieverTest from MediaFrameworkUnitTestRunner
      
      Bug: 305324235
      Test: atest com.android.mediaframeworktest.unit.MediaMetadataRetrieverTest
      
      Change-Id: I9bbd0a278c7c1b9e6cb14b3a79bde113837bd4c1
      20dabc8c
  19. Oct 13, 2023
    • Harish Mahendrakar's avatar
      MediaFrameworkTest: Fix file access issues from /sdcard/ · c64d6a3e
      Harish Mahendrakar authored
      Bug: 304812355
      Test: atest com.android.mediaframeworktest.unit.MediaMetadataRetrieverTest
      Change-Id: I043fb987d02a45735bf799055f50cfa9d8bac328
      c64d6a3e
    • Lais Andrade's avatar
      Move RingtoneTest to media/tests/ringtone · addff744
      Lais Andrade authored
      Move ringtone tests to media/tests/ringtone module that maps to run on
      presubmit on any code changes on *Ringtone*.java files.
      
      Split the tests into Ringtone general ones, relying on
      RingtoneManager.getRingtone for instantiation, and new API tests in
      RingtoneBuilderTest, covering the new sound+vibration features.
      
      Fix: 304497672
      Test: atest com.android.media.RingtoneTest
            atest com.android.media.RingtoneBuilderTest
      Change-Id: Idcaf8851252d1dba1bc89fa8639b7d9cde27d281
      addff744
  20. Oct 06, 2023
  21. Sep 08, 2023
    • Jan Sebechlebsky's avatar
      Fix MediaPlayer device-aware session id configuration. · e7c78df2
      Jan Sebechlebsky authored
      Factory .create methods shouldn't implicitly generate
      new audio session id, but pass AUDIO_SESSION_ALLOCATE
      instead.
      
      This will case the MediaPlayer constructor to generate
      audio session id when needed, but won't prevent it
      from using a device-specific audio session id if
      there's one asociated with the context.
      
      Bug: 298002296
      Test: atest MediaPlayerUnitTest
      
      Change-Id: I4947c09c9ab3ba905c6016466b45fc107ee7e2e0
      e7c78df2
  22. Aug 31, 2023
  23. Aug 30, 2023
  24. Aug 23, 2023
    • Atneya Nair's avatar
      Minor getFutureForIntent fixes · 8b8683af
      Atneya Nair authored
      - Add exported receiver for inter-app communication
      - Add overload not taking predicate
      
      Bug: 268724205
      Test: atest getFutureForIntentTest
      Change-Id: I48ab98a68702f52af22df5f0c0ce9dddba91dbc0
      8b8683af
  25. Aug 22, 2023
    • Ahmad Khalil's avatar
      Create haptic vibration library · d073d325
      Ahmad Khalil authored
      Add an api to set RingtoneManager media type, and then use this type to determine whether the cursor will return Sound or Vibration items.
      
      Bug: 273903859
      Test: atest RingtoneManagerTest
      Change-Id: I5a1cc0355fc52d738b6ae266846410556f1f2f1e
      d073d325
    • Chan Kim's avatar
      Update language to comply with Android's inclusive language guidance · 8e657ba1
      Chan Kim authored
      See https://source.android.com/setup/contribute/respectful-code for reference
      
      For this round, the fixes are only applied to the following to minimize breaking dependencies:
        * comments (excluding javaDoc annotations)
      	* private constants
      	* private functions
      	* parameters within functions
      
      BYPASS_INCLUSIVE_LANGUAGE_REASON=Just updating a few select inclusive language violations.
      No-Typo-Check: Changes focused on inclusive language violations.
      BUG: 295342157
      Change-Id: If7774f1617bf62c0ae8841b30934281a4b87e0e3
      8e657ba1
  26. Aug 08, 2023
    • Atneya Nair's avatar
      Add getFutureForListener to TestUtils · 6ab74492
      Atneya Nair authored
      Abstract out listener registration logic from getFutureForIntent to
      apply to other listener registration callbacks.
      
      Add tests which ensure that the listener is unregistered when the future
      completes or is cancelled.
      
      Bug: 288333346
      Bug: 294636572
      Test: atest mediatestutilstests
      Change-Id: I91f34ee2e215cafe0d0cd0b33f831b244850ab06
      6ab74492
    • Atneya Nair's avatar
      Add getFutureForIntent · 13e208cf
      Atneya Nair authored
      Add helper function which gets a future associated with an intent
      broadcast matching a certain action and predicate.
      
      Automatically unregister the listener when the future is completed or
      cancelled.
      
      Add unit tests.
      
      Bug: 288333346
      Bug: 294636572
      Test: atest GetFutureForIntentTest
      Change-Id: Ie26487d3f727691d001b3d0392dc0fcdf5b5a2db
      13e208cf
  27. Aug 05, 2023
    • Atneya Nair's avatar
      Add mediatestutils and CancelAllFuturesRule · b9dbeea2
      Atneya Nair authored
      Add new utils library for media tests.
      
      Add a CancelAllFuturesRule which cancels all registered futures on test
      completion (regardless of success).
      
      Add unit tests.
      
      Bug: 294636572
      Bug: 288333346
      Test: atest CancelAllFuturesRuleTest
      Change-Id: If270a6b7683515157ef356c41ea53ed872bd85d8
      b9dbeea2
  28. Jul 31, 2023
  29. Jun 29, 2023
    • Jan Sebechlebsky's avatar
      Rewrite AudioMix validation & add more test coverage · 1ec38fbd
      Jan Sebechlebsky authored
      LOOPBACK mode flag implies:
      * only remote submix devices can be specified
      * if no device is specified the device type will be inferred
        from mix
      
      RENDER mode flag implies
      * device must be explicitly specified
      * only output device can be specified
      * only MIX_ROLE_PLAYERS mix can be configured in render mode
      
      For LOOPBACK & RENDER mixes, both sets of requirements must
      be fullfilled.
      
      Bug: 287908341
      Test: atest AudioHostTest AudioServiceHostTest AudioMixUnitTests
      Change-Id: I43184f3ac2ecd748da5ea8f0e5dc1be70270e254
      1ec38fbd
  30. Jun 16, 2023
  31. May 09, 2023
  32. May 05, 2023
  33. Apr 23, 2023
Loading