Commit Graph

10641 Commits

Author SHA1 Message Date
TreeHugger Robot
508fa90abe Merge "Re-add setMediaCas javadoc" 2021-12-23 13:02:16 +00:00
TreeHugger Robot
17facee4f3 Merge "Add new features to tuner." 2021-12-23 08:04:13 +00:00
Hongguang
38904f8b24 Add new features to tuner.
*) Support scan unlock event
*) Support get frontend hardware info.
*) Add scIndexMask to MediaEvent.
*) Support more AAC formats.
*) Move Lna to ITuner.

Bug: 203389496
Bug: 184017033
Bug: 202978951
Bug: 205265630
Bug: 203623028
Test: atest android.media.tv.tuner.cts on AIDL and HILD HALs.
Change-Id: Id1bf4f13e7afb5f4264bfc67ca7d822848c6e803
2021-12-23 04:41:39 +00:00
Henry Fang
58cc75249a Merge "Add methods to get vendor extension interfaces" am: 1d6f1c9d04 am: 8ed7a545a7 am: bd75d74c59 am: 39dbf1ac0c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1826093

Change-Id: Icfeb8b0a1cddf488979b44fe726e9e68ddf03406
2021-12-22 23:02:37 +00:00
Henry Fang
39dbf1ac0c Merge "Add methods to get vendor extension interfaces" am: 1d6f1c9d04 am: 8ed7a545a7 am: bd75d74c59
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1826093

Change-Id: Id5afa9a3006a1f10228d1842892d317e0b93dac8
2021-12-22 22:50:14 +00:00
Henry Fang
bd75d74c59 Merge "Add methods to get vendor extension interfaces" am: 1d6f1c9d04 am: 8ed7a545a7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1826093

Change-Id: I84d09f2f58ce4645479435d53b206007509069ad
2021-12-22 22:21:13 +00:00
Henry Fang
1d6f1c9d04 Merge "Add methods to get vendor extension interfaces" 2021-12-22 22:05:16 +00:00
Santiago Seifert
347c70f660 Re-add setMediaCas javadoc
Was removed as part of deprecation and is now re-added as a result of API council feedback.

Bug: 210622516
Change-Id: I9076072058c7dd5f98db4b99793f717eea4cf694
Test: N/A.
2021-12-22 17:00:34 +00:00
TreeHugger Robot
2534fb70db Merge "Support DVB-T Cell Ids." 2021-12-22 10:18:40 +00:00
Hongguang
8d1e01bbfc Support DVB-T Cell Ids.
Bug: 210358443
Test: atest android.media.tv.tuner.cts
Change-Id: I99d947903ed8b44d53e27c80a11c5a23ffaaddd4
2021-12-21 23:23:40 -08:00
Treehugger Robot
951422f828 Merge "Adding mustPlayShutterSound to break Cam2 dependency on Cam1" am: cb6c04738b am: 9b83844f48 am: 401703e3aa am: ecf6241e5c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1911999

Change-Id: If8f30c48857c037caaf3d6b264f3f3433e6a28e1
2021-12-21 18:53:09 +00:00
Treehugger Robot
ecf6241e5c Merge "Adding mustPlayShutterSound to break Cam2 dependency on Cam1" am: cb6c04738b am: 9b83844f48 am: 401703e3aa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1911999

Change-Id: Ib9ab9f740e096ce901155ed73a40504bd7ed9863
2021-12-21 18:24:10 +00:00
Treehugger Robot
401703e3aa Merge "Adding mustPlayShutterSound to break Cam2 dependency on Cam1" am: cb6c04738b am: 9b83844f48
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1911999

Change-Id: If3fc78d7c5e3a4813bb3ff5cd9e83b60af4857dc
2021-12-21 18:05:30 +00:00
Treehugger Robot
cb6c04738b Merge "Adding mustPlayShutterSound to break Cam2 dependency on Cam1" 2021-12-21 17:30:31 +00:00
William Escande
d9340d5854 Merge "Add SystemApi to AudioManager method" am: 837956204e am: 8cdb8e97fb am: 6afaa06a05 am: c9dc2fe310
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1863722

Change-Id: I116e186a347cd1e6e564f146ff6099a410f67629
2021-12-21 14:26:11 +00:00
William Escande
c9dc2fe310 Merge "Add SystemApi to AudioManager method" am: 837956204e am: 8cdb8e97fb am: 6afaa06a05
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1863722

Change-Id: I1cab8d1e87f82f4c939b5e27803c16369de2c0e6
2021-12-21 14:14:05 +00:00
William Escande
6afaa06a05 Merge "Add SystemApi to AudioManager method" am: 837956204e am: 8cdb8e97fb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1863722

Change-Id: I6640b3664adc9cf0480c6aeadbc3983fad7f8950
2021-12-21 13:56:16 +00:00
TreeHugger Robot
8a42ad2013 Merge "Address tuner API review comments" 2021-12-21 01:39:30 +00:00
Yixiao Luo
b4e1b3d80a Merge "Define const values used in BroadcastInfo classes" 2021-12-21 01:06:57 +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
Yixiao Luo
3abc8c8c15 Define const values used in BroadcastInfo classes
Bug: 206484728
Change-Id: I32a1ca11fee7bbd05c70d4ca896088b4e4d4b784
2021-12-20 11:57:57 -08:00
Hongguang
8ef3c23f13 Fix build break
Bug: 211057229
Fix: 211057229
Test: make docs
Change-Id: Ia4e0fbf05b834c671cf1efdb483bb4325c01ab58
2021-12-16 20:05:27 -08:00
TreeHugger Robot
36f4314d8b Merge "Section filter isRepeat clarification." 2021-12-17 01:12:34 +00:00
Hongguang
7287489568 Section filter isRepeat clarification.
Bug: 210999986
Fix: 210999986
Test: make
Change-Id: If3cfba3b8e170f9265547284569317f1426c0483
2021-12-16 23:34:20 +00:00
Henry Fang
8bbec8b0d0 Merge "TvProvider API standardization for ARIB and DVB TvProvider" am: 525fc0dccb am: 4851cbef3e am: 1475f07281 am: 573fd786c9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842094

Change-Id: Ie554f98c35a4962d462a446a09b469300bd06cdf
2021-12-16 21:26:41 +00:00
Henry Fang
573fd786c9 Merge "TvProvider API standardization for ARIB and DVB TvProvider" am: 525fc0dccb am: 4851cbef3e am: 1475f07281
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842094

Change-Id: Icb52ad9d3f7a63fd08a0ab3353b57669c2144721
2021-12-16 21:08:38 +00:00
Henry Fang
1475f07281 Merge "TvProvider API standardization for ARIB and DVB TvProvider" am: 525fc0dccb am: 4851cbef3e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842094

Change-Id: I3a9f2f5fcf7cf59152f5283cdaee9b3412d7752c
2021-12-16 20:44:44 +00: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
Yixiao Luo
0d8bbfcb43 Merge "TIAF: Interactive App to DTV Channel flow" 2021-12-16 00:26:55 +00:00
TreeHugger Robot
a29eab63a8 Merge "Update some comments for tuner." 2021-12-16 00:23:15 +00:00
Hongguang
26d10d4c48 Update some comments for tuner.
*) Clarify the meaning and unit of FrontendStatus.
*) Add comment for STC ready support.
*) Support for control signal (e.g. TMCC) change monitoring
*) Update MmtpRecordEvent and TsRecordEvent getDataLength() comments

Bug: 183634950
Bug: 202247846
Bug: 183630794
Bug: 210845647
Test: Make
Change-Id: I6bc35ba723544692c15c0a293eef60215fa74f22
2021-12-15 22:34:28 +00:00
Yixiao Luo
9340ade393 TIAF: Interactive App to DTV Channel flow
Bug: 209702724
Change-Id: Ic49232517fd42eab3b8e2c32953d072d72aa4ccb
2021-12-15 12:20:29 -08:00
Bernardo Rufino
3d10fb4b83 Merge "Migrate unsafe parcel APIs in framework-minus-apex" 2021-12-15 19:15:58 +00:00
Bernardo Rufino
90bb3709dc Migrate unsafe parcel APIs in framework-minus-apex
Migrate the following unsafe parcel APIs in framework-minus-apex:
* Parcel.readSerializable()
* Parcel.readArrayList()
* Parcel.readList()
* Parcel.readParcelable()
* Parcel.readParcelableList()
* Parcel.readSparseArray()

This CL was generated by applying lint fixes that infer the expected
type from the caller code and provide that as the type parameter
(ag/16365240).

A few observations:
* In some classes we couldn't migrate because the class also belonged to
another build module whose min SDK wasn't current (as is the case for
framework-minus-apex), hence I suppressed the lint check
(since I'll eventually submit the lint check to the tree).
* In some cases, I needed to do the cast in
https://stackoverflow.com/a/1080525/5765705 to make the compiler happy
since there isn't another way of providing a class of type
Class<MyClassWithGenerics<T>>.
* In the readSerializable() case, the new API also requires the class
loader, that was inferred to by InferredClass.class.getClassLoader().
* Note that automatic formatting and import rely on running hooked up
to the IDE, which wasn't the case here.

Bug: 195622897
Test: TH passes
Change-Id: I11a27b9bdab7959ee86e90aa1e1cbebd7aaf883c
2021-12-15 18:21:38 +00:00
Shubang Lu
a37aaf1a67 Merge "TIAF: app link command" 2021-12-15 08:31:51 +00:00
shubang
84e9cdd4de TIAF: app link command
Bug: 210766167
Test: mmm
Change-Id: I23d0fded9bca09f80d2791c0933a83965acf584a
2021-12-15 03:55:43 +00:00
Hongguang
f1df3cdfbf Address tuner API review comments
Bug: 210738665
Fix: 210738665
Test: atest android.media.tv.tuner.cts
Change-Id: Id7152fdbe3dffb27ed5cdc7b87fde5a09e6cd0b2
2021-12-14 18:23:24 -08:00
TreeHugger Robot
0f6fc56825 Merge "Add some new features to tuner." 2021-12-14 09:24:55 +00:00
Shubang Lu
9661bb87b2 Merge "TIAF: app link info" 2021-12-14 08:10:44 +00:00
Hongguang
90dd674951 Add some new features to tuner.
*) Add DTS info to DemuxFilterMediaEvent.
*) Allow to ignore download Id in DemuxFilterDownloadSettings and put
download id into DemuxFilterDownloadEvent.
*) Change section data size 64 bits.
*) Support DvrPlayback seek.
*) Support FrontendStatus streamIdList.

Bug: 183583908
Bug: 183024067
Bug: 203181023
Bug: 198195793
Bug: 171540818
Test: atest android.media.tv.tuner.cts on AIDL and HILD HALs
Change-Id: I5872e5f042f5803c367cf7624dbefc31292fd7e9
2021-12-13 22:39:21 -08:00
TreeHugger Robot
b337200ef4 Merge "AudioPolicy: focus stack query, send focus loss APIs" 2021-12-13 21:41:49 +00:00
TreeHugger Robot
90413535d6 Merge "Enable Frontend callback for sharee." 2021-12-13 17:59:55 +00:00
Jean-Michel Trivi
823994abd6 AudioPolicy: focus stack query, send focus loss APIs
Add APIs in android.media.audiopolicy.AudioPolicy to:
- query the full focus stack
- send a full audio focus loss to a stack entry so it loses
  focus and exits the stack.

Bug: 186582089
Test: atest AudioHostTest#testFocusStack
Change-Id: I28cba1daf3bcabd50d6192573ecd8b9ddae03c8e
2021-12-13 08:12:04 -08:00
Kensuke Miyagi
c08a08e327 Enable Frontend callback for sharee.
Bug: 209873032
Test: cts.TunerTest#testShareFrontendFromTuner

Change-Id: Iffd4cb5070e65fb298006d9813ce1a5b5c069a5b
2021-12-10 13:41:34 -08:00
shubang
86b6020cc9 TIAF: app link info
Bug: 209701966
Test: mmm
Change-Id: Ibd3100f66358fe441bad2a8bba2fb88980d6716f
2021-12-10 02:13:21 -08:00
Eric Laurent
41377a82a6 Merge "AudioDeviceInfo: fix back microphone type conversion" 2021-12-10 08:56:40 +00:00
Jean-Michel Trivi
bec223b337 Audio focus: fix delayed focus request during locked focus behavior
Fix issue where if audio focus was requested with GAIN, and
accepted delayed focus, while focus was locked, then previous
focus owners didn't receive LOSS, and thus would be removed
from the stack.
 The fix consists in propagating the focus loss through the
stack under the focus locker, and remove any focus loser
if the loss was definitive.
 In order to simulate the bug conditions, the test API for
simulating focus requests and abandons, was modified to support
locking the focus like in a phone call.

Bug: 206856107
Test: atest AudioFocusTest#testAudioFocusDelayedByCall
Test: atest AudioFocusTest#testAudioFocusTransientDelayedByCall
Change-Id: I211cd46b66c882499bfa43718bc0cb37b2f79817
2021-12-09 17:47:53 +00:00
Yixiao Luo
11819bc695 Merge "Extend other BroadcastInfo related classes" 2021-12-08 18:31:44 +00:00
TreeHugger Robot
715d08a2e2 Merge changes from topic "muteAwaitConnection"
* changes:
  AudioManager: test API for device connection
  AudioManager: add API for muting playback until device connects
2021-12-08 15:51:23 +00:00