Commit Graph

10115 Commits

Author SHA1 Message Date
Rahul Sabnis
d93ed0045d Merge "Moving over core/api/*txt files" 2022-01-27 05:42:18 +00:00
Roopa Sattiraju
86058b62d8 Moving over core/api/*txt files
Bug: 196026708
Test: Compile
Merged-In: I636f00132a13467e63b08f21d9cc9dcaab250b8a
Change-Id: I636f00132a13467e63b08f21d9cc9dcaab250b8a
2022-01-26 14:21:29 -08:00
Lajos Molnar
5cb80afc4e Merge "media: MediaCodec: add RGBA_1010102 and RGBA_F16 format support" 2022-01-26 18:19:36 +00:00
Lajos Molnar
79ad8fe8a7 media: MediaCodec: add RGBA_1010102 and RGBA_F16 format support
Due to existing naming conventions these become
COLOR_Format32bitABGR2101010 and COLOR_Format64bitABGRFloat.

Bug: 197651595
Test: build
Change-Id: I9ce6177ec9d2a73ab9faa67c1d7c7d42fc9a35f7
2022-01-25 16:41:06 -08:00
Gopalakrishnan Nallasamy
721eaa785c media: MediaCodecInfo: Unhide COLOR_FormatYUVP010
Bug: 206456921
Test: atest android.media.cts.ImageReaderDecoderTest
Change-Id: I73ce2b459b59a8b8713889cf00739c9e9d28cd03
2022-01-25 16:40:27 -08:00
Yushin Cho
93f84575c3 Merge "enc stat: Add feauture and its keys to MediaCodec" 2022-01-21 18:36:05 +00:00
Yushin Cho
90ae857738 enc stat: Add feauture and its keys to MediaCodec
Add feature name 'EncodingStatistics' to MediaCodecInfo and its two
keys of average_qp and picture_type to MediaFormat.

App client chooses the 'Level' of an Encoding Statistics information,
where the Level decides the scope of encoding statistics that video
encoder provide the App client with.

With Android T, there will be one level only and the expected kinds
of encoding statistics are average block QP and the picture type of
a frame.

Bug: 205793764
Bug: 203696003
Test: cts
Change-Id: Id8c61de9646ac03926f00a9d223b022bbb9a6925
2022-01-20 20:16:08 -08:00
Treehugger Robot
a57618d34d Merge "Add AUDIO_FORMAT_LC3 in BtCodec" 2022-01-20 06:19:05 +00:00
Kevin Rocard
2f56b3ab02 Merge "Refactor Ringtone.playFallbackRingtone" 2022-01-19 19:42:26 +00:00
Ted Wang
d9c9831f71 Add AUDIO_FORMAT_LC3 in BtCodec
Bug: 203621600
Test: make
Change-Id: I447b361c5efe578ba1b142791aee7043faf08f52
2022-01-19 15:35:00 +08:00
Treehugger Robot
ea05aa56e7 Merge "Update tuner module owners" 2022-01-14 19:46:10 +00:00
William Escande
2d39eb02ca Merge "Add BtProfileConnectionInfo.a2dpSinkInfo" 2022-01-14 17:02:46 +00:00
Kevin Rocard
0950c0197a Refactor Ringtone.playFallbackRingtone
Use early returns to avoid deep nesting conditions.

Change-Id: I8f0e736277c0ea2e666b4d5e2c35e1d3e6e3479d
2022-01-14 15:39:07 +00:00
Henry Fang
764afbbae0 Merge "Add TvInputManager.Hardware overrideAudioSink with AudioDeviceInfo" 2022-01-14 01:53:31 +00:00
Hongguang
c24c9f735c Update tuner module owners
Bug: 214432253
Fix: 214432253
Test: Presubmit
Change-Id: Ieecdcd92e7a993d12861ace45098e72346c93148
2022-01-14 00:47:04 +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