Commit Graph

10102 Commits

Author SHA1 Message Date
William Escande
2d39eb02ca Merge "Add BtProfileConnectionInfo.a2dpSinkInfo" 2022-01-14 17:02:46 +00:00
Henry Fang
764afbbae0 Merge "Add TvInputManager.Hardware overrideAudioSink with AudioDeviceInfo" 2022-01-14 01:53:31 +00:00
William Escande
f3a2e55ff7 Merge "Add SystemApi tag on getLastAudibleStreamVolume" 2022-01-05 14:41:52 +00:00
wescande
e178f8f635 Add SystemApi tag on getLastAudibleStreamVolume
Bug: 190422401
Tag: #refactor
Test: Build
Change-Id: I2cbb69292465b4271caeb0c563fa1db62d025dce
2022-01-04 18:52:16 +00:00
William Escande
b22dcdb6a1 Add BtProfileConnectionInfo.a2dpSinkInfo
Following aosp/1782984 comment from QC, we are adding the a2dpSinkInfo
method.

Test: build
Tag: #feature
Bug: 190422401
Change-Id: I456ced3bb87dcffcea7bd0c24b63e06d62d9b95a
2021-12-31 11:53:31 +01:00
Jon Eckenrode
01b57ef4f6 Merge "Removed reference to developer guide from class description. Added some missing parameter and return descriptions." 2021-12-28 14:58:24 +00:00
Treehugger Robot
eccbcfc72d Merge "Add shubang@ to OWNERS of media/tv" 2021-12-23 19:52:48 +00:00
Dean Wheatley
600a4301e5 Add TvInputManager.Hardware overrideAudioSink with AudioDeviceInfo
The current overrideAudioSink interface expects AudioManager.DEVICE_*
values which are @hide and not available to vendor, oem or product
partition apps. To support such applications, add new interface using
the public SDK API AudioDeviceInfo.

Test: New API has been tested using our internal mock TV input HAL for
      the HDMI TV input.
      Run CTS test "CtsTvTestCases:BundledTvInputServiceTest#testTune"
      to tune for HDMI input and invoke a createAudioPatch request in
      TvInputHardwareManager.
      Verify the API behavior from the following log:
      => adb logcat | grep APM
      => "APM_AudioPolicyManager: createAudioPatchInternal sink 0: id 9
         role 2 type 1"
      with the id 9 referring to the BUS output device.
Test: See b/183527693
Bug: 183538871
Change-Id: I54f7f26d522a8f3bb3500f3817f87a98ddf47f17
2021-12-23 19:52:40 +00:00
joneckenrode
067ab51e9e Removed reference to developer guide from class description. Added some missing parameter and return descriptions.
Test: Reviewed compiled API documentation
Signed-off-by: joneckenrode <joneckenrode@google.com>
Change-Id: I01eb68d6c9e4849c63d9833baf8a1ba0b9982460
2021-12-23 18:47:38 +00:00
shubang
8dc2c25c30 Add shubang@ to OWNERS of media/tv
Test: make
Change-Id: If8ad81f302378ffea6fb6a238ea044e820224de4
2021-12-23 09:48:15 -08:00
Henry Fang
1d6f1c9d04 Merge "Add methods to get vendor extension interfaces" 2021-12-22 22:05:16 +00:00
Treehugger Robot
cb6c04738b Merge "Adding mustPlayShutterSound to break Cam2 dependency on Cam1" 2021-12-21 17:30:31 +00:00
William Escande
a05cb45b0e Add SystemApi to AudioManager method
getHwOffloadFormatsSupportedForBluetoothMedia is convert to a SystemApi
for module only (only use in BT)

Change-Id: Iae212ff5fd2159198543c0b877c2e56e3aefdb7c
Test: Build
Bug: 190422401
Tag: #refactor
2021-12-21 00:51:38 +01:00
Henry Fang
525fc0dccb Merge "TvProvider API standardization for ARIB and DVB TvProvider" 2021-12-16 19:34:31 +00:00
Raymond Tiong
0a229569cb Adding mustPlayShutterSound to break Cam2 dependency on Cam1
This replaces the already deprecated field:
android.hardware.Camera.CameraInfo#canDisableShutterSound

Bug: 203461517

Test: tested in Camera CTS

Change-Id: I0a0c6a3d5346413074344a079500f1c30c4431d9
2021-12-16 04:25:55 +00:00
Patty
b8fe694317 Parse audio config codec capability for LE devices am: ae425ca614
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1881112

Change-Id: I7cab6bd9cc4bc2fbf6201c88b1f890a88a7c3bd2
2021-12-08 03:54:09 +00:00
Treehugger Robot
f0dd744ba6 Merge changes from topic "parse_audio_config_for_le_device"
* changes:
  Remove unnecessary test case
  Parse audio config codec capability for LE devices
2021-12-08 03:28:10 +00:00
Patty
ae425ca614 Parse audio config codec capability for LE devices
1. Rename function getHwOffloadEncodingFormatsSupportedForA2DP
    to getHwOffloadFormatsSupportedForBluetoothMedia
 2. Add audio format for LC3
 3. Add public class BluetoothLeAudioCodecConfig to store the
    codec for LE audio
 4. Add test case for BluetoothLeAudioCodecConfig

Tag: #feature
Bug: 203535499
Bug: 150670922
Test: atest BluetoothLeAudioCodecConfigTest BluetoothInstrumentationTests
Change-Id: I5f64d9078ca2c07e13cffd83b879dd95468ed313
Merged-In: I5f64d9078ca2c07e13cffd83b879dd95468ed313
2021-12-02 21:59:26 +08:00
Treehugger Robot
e86e0d5be2 Merge "MediaCodec:Add code for YCbCrP010 format support" am: f33f4b6f50
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1894875

Change-Id: I3fa5f2731b0d91aef0f197761bd96d1a4c94e7ee
2021-11-29 15:25:42 +00:00
Treehugger Robot
f33f4b6f50 Merge "MediaCodec:Add code for YCbCrP010 format support" 2021-11-29 15:10:11 +00:00
Gopalakrishnan Nallasamy
655ca9f343 MediaCodec:Add code for YCbCrP010 format support
Set MediaFormat based on bitDepth and bitDepthAllocated.
Validate semiplanarness of chroma planes.

Bug: 206456921

Test: atest android.media.cts.ImageReaderDecoderTest
Change-Id: I88145d7eb9d372deb02ca2d633eebe087f7c4733
2021-11-24 16:46:00 -08:00
Xin Li
10d9972786 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0
Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
2021-11-18 17:00:37 +00:00
Gopalakrishnan Nallasamy
f71f4089d8 MediaCodecInfo: Add constant for YUVP010 color format
Bug: 206456921

Test: atest android.media.cts.ImageReaderDecoderTest
Change-Id: Ia93bd25ede40b39d6b799990c01e35b90a8ad8d4
2021-11-18 08:19:32 +00:00
wescande
3fe5af4890 A2DP switch device refactor
Bluetooth mainline effort to reduce AudioManager API

Test: Manual
Tag: #refactor
Bug: 190422401
Fix: 197715842
Fix: 197932292
Merged-In: I65c6561969d443e80f0a49256770279cd0959352
Change-Id: I65c6561969d443e80f0a49256770279cd0959352
2021-11-11 15:22:20 +01:00
Treehugger Robot
db5da1ce28 Merge "Replace object tag with img tag in javadoc" 2021-11-09 09:55:36 +00:00
Bill Yi
982bb0f145 Merge "Merge SP1A.211105.004 to aosp-master - DO NOT MERGE" 2021-11-03 17:50:39 +00:00
Treehugger Robot
ec9a8515d7 Merge "remove AudioManager.setParameters from bluetooth" 2021-11-03 17:00:22 +00:00
Bill Yi
ba584f1fa1 Merge SP1A.211105.004 to aosp-master - DO NOT MERGE
Merged-In: I7e267e3c046d726750180efa81806cbbefb17b68
Merged-In: I5ff5973c95868bee2b7444ecded7443d6e6429c9
Change-Id: Ic3cd62083de4219dbf52f568ca4f34bdc7a08516
2021-11-02 21:07:53 -07:00
William Escande
ef429b62b1 remove AudioManager.setParameters from bluetooth
All uses of AudioManager.setParameters are a hack that we have to remove.

Bug: 196440888
Tag: #refactor
Test: Build
Change-Id: I6deeffef8fbd8ba1c501f41c74b4763503106cc0
2021-11-02 16:38:15 +01:00
Lajos Molnar
daa879ac68 media: allow excluding arbitrary codecs from REGULAR_CODECS list.
This can be done by adding the 'special-codec' feature as a required
feature to media_codecs.xml, e.g.

<MediaCodec name="..." type="...">
  ...
  <Feature name"special-codec" required="true" />
</MediaCodec>

This feature is not exposed to applications, and is only used to
exclude a codec from the REGULAR_CODECS list.

Bug: 197577115
Bug: 196518411
Bug: 191944087
Test: CtsVideoTestCases and manual testing with a modified media_codecs.xml
Change-Id: Ica5510bbe7e781f25ca329535d2ba771afbdb263
2021-10-21 10:57:43 -07:00
Shawn Busolits
7a3aab4ef1 Replace object tag with img tag in javadoc
The old object-img fallback pattern is not longer required because modern browsers support svgs in img tags, and the old object src pattern violates CSP.

Bug: 183636712
Change-Id: I50e44290a458fab5b503bfae868f202717fe404c
2021-10-20 16:25:32 +00:00
wescande
e312b160f4 AbsoluteVolume change custom call to official API
BT mainline effort to remove hidden api:
`avrcpSupportsAbsoluteVolume` only inform for a new volume behavior and
AudioManager already provide such method.

Bug: 190422401
Tag: #refactor
Test: Manual: Start bluetooth, play music and change volume from speaker/phone
Change-Id: I935df5e0f5632cd4144343bdb1bc2b9d7bc61c01
2021-10-19 14:32:50 +02:00
Grzegorz Kołodziejczyk
ad46dc5b5e server/audio: Add LeAudio support
This patch adds handling active device and set volume

Bug: 150670922
Tag: #feature
Sponsor: jpawlowski@
Test: Manual
Change-Id: I50a966ed2f199464381ff561fd83342b0a9b08a9
2021-10-18 14:32:45 +00:00
Kyeongkab.Nam
45a54d87fe Add methods to get vendor extension interfaces
Add the following methods to TvInputManager.

 - Method to get the list of vender extension interfaces
 - Method to get the interface from the list

Bug: 193052431
Test: run cts -m CtsTvTestCases -t
android.media.tv.cts.TvInputManagerTest

Change-Id: Ia2c88f6cc57f2af3cf00d27e1c7e0224a563b595
2021-10-14 03:55:26 +09:00
wyau
b46475496f Merge "Add start_time and end_time for PreviewPrograms" 2021-10-12 16:37:17 +00:00
Treehugger Robot
3bdacfd4b3 Merge "media: use MediaProperties.resolution_limit_32bit()" am: b721e9b48d am: 31d3ee2188 am: d2ec1478af
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1840914

Change-Id: I8b6b3259f76ad604da92fc515337588099d6fe8e
2021-10-05 23:21:20 +00:00
Treehugger Robot
d2ec1478af Merge "media: use MediaProperties.resolution_limit_32bit()" am: b721e9b48d am: 31d3ee2188
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1840914

Change-Id: I52ec747db4783d3a0441c37e66ea5ead92b7298e
2021-10-05 17:37:12 +00:00
Treehugger Robot
31d3ee2188 Merge "media: use MediaProperties.resolution_limit_32bit()" am: b721e9b48d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1840914

Change-Id: Ib8b212601771c279a90eb8c29fb30bd1e5ecd0a3
2021-10-05 17:33:32 +00:00
Junichiro.Homma
4b93b8d3c9 TvProvider API standardization for ARIB and DVB TvProvider
API standardization and customization for Digital Tuner TV Input support.
(Programs.COLUMN_SCRAMBLED, Programs.COLUMN_MULTI_SERIES_ID,
Programs.COLUMN_INTERNAL_PROVIDER_ID,
RecordedPrograms.COLUMN_MULTI_SERIES_ID,
RecordedPrograms.COLUMN_INTERNAL_PROVIDER_ID )

Bug: 183967992
Test: CTS
Change-Id: Ia98899bfbad4fb11bb3ee0390c82b2d6fc327fd6
2021-10-04 10:28:02 +09:00
Wonsik Kim
8af4d26826 media: use MediaProperties.resolution_limit_32bit()
For 32-bit resolution limit, read from
MediaProperties.resolution_limit_32bit().

Bug: 194771349
Test: cts/media/device-small
Change-Id: I30269383eed2929ff88da21913cebb4111d72e10
2021-09-30 23:11:12 -07:00
Wally Yau
fce3133596 Add start_time and end_time for PreviewPrograms
TV Content recommendation requires the start and end time for
certain type of video program such as movie and TV episode.

Bug: 148432318
Test: cts-tradefed run cts -m CtsTvTestCases
Change-Id: Ic6749fc656c66378dba50d16f3a676832a025085
2021-09-30 20:39:10 -07:00
Sungsoo Lim
9e23f90047 DO NOT MERGE: Revert "Reset app routes when global a2dp state changed" am: d0c29f1bf1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15884591

Change-Id: Iacf081607001839ea00d33c79c986c195ac9b494
2021-09-24 04:21:22 +00:00
Sungsoo Lim
a13318f303 DO NOT MERGE: Revert "Call route selected/unselected callbacks" am: ef07a1a45a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15884590

Change-Id: Ied840ecfafa414e2792cdc00317e28f4264a4636
2021-09-24 04:20:51 +00:00
Sungsoo Lim
d0c29f1bf1 DO NOT MERGE: Revert "Reset app routes when global a2dp state changed"
This reverts commit 07e40316f8.

Bug: 193831720, Bug: 168093983, Bug: 156549746
Test: manual
Change-Id: I86df6f9f1d672c455cd0aedc58012b3335659479
(cherry picked from commit 6d4a00b17a)
2021-09-23 15:31:31 +09:00
Sungsoo Lim
ef07a1a45a DO NOT MERGE: Revert "Call route selected/unselected callbacks"
This reverts commit 6adeb2c9f1.

Bug: 193831720, Bug: 168093983
Test: manual
Change-Id: I0c0c3ac9ed63bafe419c8a127772d4042abbab89
(cherry picked from commit 89d28318a0)
2021-09-23 15:31:20 +09:00
Jean-Michel Trivi
58334b0b04 Notification playback: pause on release
When releasing a MediaPlayer outside of a playback
completion (back to back notifications), pause and
wait 100ms before releasing the player.

Bug: 193832902
Test: create back-to-back notifications, check for glitch
Change-Id: Ib8baba4bf2b41e75b526e8490b6c2f31c85c193c
(cherry picked from commit c69743ea16)
2021-09-15 00:10:08 +00:00
Treehugger Robot
f4271d9a27 Merge "MediaCodecInfo: do not alter performance points for 32-bit processes (2)" am: a78fa61ba8 am: 41bf6fa76f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1787047

Change-Id: Ia2fb9292e584c29c1894a2ed9774c9c4e40350d4
2021-09-14 23:50:04 +00:00
Treehugger Robot
41bf6fa76f Merge "MediaCodecInfo: do not alter performance points for 32-bit processes (2)" am: a78fa61ba8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1787047

Change-Id: Ifb7b56c1e3088183cc2881a1b75b6b09ab549255
2021-09-14 23:35:17 +00:00
Treehugger Robot
a78fa61ba8 Merge "MediaCodecInfo: do not alter performance points for 32-bit processes (2)" 2021-09-14 23:21:32 +00:00
Treehugger Robot
48c136d6d5 Merge "Fix typo contail->contain" am: 49dcfea031 am: 17da84da54
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1824553

Change-Id: I05915a6e39c8ed3abf733527bbaa0395b19aad2e
2021-09-11 05:37:10 +00:00