Commit Graph

9381 Commits

Author SHA1 Message Date
Aurimas Liutikas
796760c56e Suppress all hidden abstract methods in constructable classes.
Having a hidden abstract method for a class that can be extended
means that public implementors cannot implement these hidden methods
posing a risk that custom implementations will not have required
abstract methods resulting in an exception.

Bug: 151134792
Test: make update-api
Change-Id: I758d12465fabc671be19bedeeceb16885de23c87
Exempt-From-Owner-Approval: large scale suppression of existing issues,
    no-op in terms of behavior
2020-11-11 23:16:32 +00:00
Amy Zhang
220e0256c9 Merge "Get the offset of recorded keyframe from MMTP Packet Table in MmtpRecordEvent" 2020-11-10 18:17:04 +00:00
Amy Zhang
5e9578fa73 Merge "Add new Frontend Status Types into Tuner Framework" 2020-11-10 18:15:58 +00:00
Amy Zhang
bc7a75b738 Merge "Deprecate int getFecCapability() and add long getCodeRateCapability() instead" 2020-11-10 18:15:31 +00:00
Amy Zhang
c1bae49aff Merge "Add some invalid constants for Tuner" 2020-11-10 18:14:22 +00:00
Evan Severson
be00e1b8d4 Merge "Let AppOpsService evaluate access for soundtrigger" 2020-11-10 17:01:43 +00:00
Kyunglyul Hyun
560717b98a Merge "Add maxTargetSDK to MediaController#controlsSameSession" 2020-11-10 12:54:07 +00:00
Jin Seok Park
6debdfcc0c Merge "[Media ML] Update MediaSessionManager#getActiveSessionsForUser" 2020-11-10 05:18:07 +00:00
Kyunglyul Hyun
0c7db846a7 Add maxTargetSDK to MediaController#controlsSameSession
Bug: 172313468
Test: cts media
Change-Id: I857061b27fcee24146c755c592534ec3bfbf9ffa
2020-11-10 04:37:18 +00:00
Amy Zhang
df135cdd22 Add some invalid constants for Tuner
Test: make -j44 dist
Bug: 171866656
Change-Id: I057c70354b51efb8bb7a4473b0e76e3f0bbc3cf8
2020-11-09 18:19:29 -08:00
Evan Severson
1e85ca8002 Let AppOpsService evaluate access for soundtrigger
Since the introduction of a background mode for record audio permission
the app ops check the soundtrigger service does was broken. This is
because the existence of the background permission now allows for the
audio app op to be in the MODE_FOREGROUND state.

Before the background mode, the soundtrigger service checked the AppOp's
raw state because it knew that the client apps needed access to the app
even if it was in the background. Now that the background mode exists
the AppOpsService can use the app's permissions + proc state +
capabilities to correctly evaluate whether the app should have access.

Apps with the foreground-only permission are still going to work because
the service binds to them with the include_capabilities flag. Later on
we can remove this binding flag and mandate that soundtrigger clients
add the background permission to their manifest.

Bug: 172632101
Test: 1P app is able to work
Change-Id: Ic5134ea0bcabdb289315d87bbc5405a0f0128c61
2020-11-09 14:10:15 -08:00
Jin Seok Park
ebf6e6af57 [Media ML] Update MediaSessionManager#getActiveSessionsForUser
In order to make getActiveSessionsForUser, we need to remove
@UnsupportedAppUsage first.
Following UnsupportedAppUsage removal policy by adding
publicAlternatives to be gathered by internal tool and published
on the Android Developers site.

Bug: 160666400
Test: build
Change-Id: I13d639489091087a5c00e81071f36740002ffd9a
2020-11-09 21:44:20 +09:00
Jin Seok Park
ef9c8272cb Merge "Call listener when media button session is destroyed" 2020-11-06 01:45:32 +00:00
Jin Seok Park
ed942b0cd9 Merge "Expose remote volume controller-related APIs" 2020-11-05 16:22:12 +00:00
Santiago Seifert
c45ddb6938 Merge "Address API feedback on setOnRtpRxNoticeListener" 2020-11-05 11:11:58 +00:00
Jin Seok Park
68d4c57572 Call listener when media button session is destroyed
Currently, onMediaKeyEventSessionChanged is not being called when
both the media button session and the media button receiver values
become null.

Bug: 171967523
Test: N/A
Change-Id: Id6154ff0dbae9b305eabb1fcd60f4e3316d98dda
2020-11-05 14:46:07 +09:00
Amy Zhang
b132831936 Get the offset of recorded keyframe from MMTP Packet Table in
MmtpRecordEvent

Test: atest android.media.tv.tuner.cts
Bug: 158816517
Change-Id: Ic8bafaad2cfe868bfb6a6ede1fd77de49c3d04cb
2020-11-04 16:41:21 -08:00
Santiago Seifert
c09fcd7224 Address API feedback on setOnRtpRxNoticeListener
1. Naming 'Ims' in all the related variables & functions has changed to 'Rtp'.
    ex) setOnImsRxNoticeListener  ---->  setOnRtpRxNoticeListener

2. Change viewing of the parcel's data structure.
    Before the parcel is parsed based on it is byte[] type.
    From now it is analyzed as (int type, int[] data)

3. Add IMS permission checking when register the callback

Change-Id: I38ff84bc3c723ca07e36ece1d94344fc7b11125b
Merged-In: I38ff84bc3c723ca07e36ece1d94344fc7b11125b
Test: Manually built the tree.
Bug: 158546060
Signed-off-by: Kim Sungyeon <sy85.kim@samsung.com>
2020-11-04 22:38:06 +00:00
Ytai Ben-tsvi
df2e907e08 Merge changes from topic "aidlize-audioflinger"
* changes:
  Remove manual parceling from Interpolator and VolumeShaper
  Add av-types-aidl to libandroid_runtime, libmedia_jni
  Add dependencies to libandroid_runtime, libmedia_jni
  Add dependency to libandroid_runtime
2020-11-04 21:03:37 +00:00
Amy Zhang
fd206ff687 Merge "Rename setDiseqcRxMessage to setShouldReceiveDiseqcMessage to explain the usage in a better way" 2020-11-04 19:18:42 +00:00
Amy Zhang
c7d356eee6 Merge "Add first macblock address in slice filed in Record Filter" 2020-11-04 18:28:54 +00:00
Amy Zhang
0857a642a9 Merge "Add extended RecordSetting ScIndexMask in Android 12" 2020-11-04 18:26:15 +00:00
Amy Zhang
17d4981a0b Merge "Add IntRange for getEndFrequency in FrontendSettings" 2020-11-04 18:25:07 +00:00
Amy Zhang
e33b28101a Merge "Add onDvbcAnnexReported ScanCallback" 2020-11-04 17:51:17 +00:00
Jin Seok Park
18b8febd6b Expose remote volume controller-related APIs
MediaSessionManager#registerRemoteVolumeController allows apps to
attach a binder to media service in order to be notified when
the session or volume of the remote volume controller is changed.

Since binders cannot be exposed, this CL instead adds and exposes
as system API a Callback interface that apps can implement.

Bug: 161332642
Test: Manual test by changing volume when remote casting
Change-Id: Ibb009559e818711ca40f7bc1b3694a49484960b3
2020-11-04 22:28:27 +09:00
Henry Fang
e5a7cb37ec Merge "Set eventlistener during MediaCas initialization" 2020-11-04 02:42:42 +00:00
Raff Tsai
c63fe36c44 Merge "Revert "Address API feedback on setOnRtpRxNoticeListener"" 2020-11-04 02:07:06 +00:00
Raff Tsai
0ca7f047e1 Revert "Address API feedback on setOnRtpRxNoticeListener"
This reverts commit 874cc38519.

Reason for revert: causes build break b/172387048

Change-Id: I652161584c78be8e03e0668ce15325c41109e213
2020-11-04 01:41:50 +00:00
Ytai Ben-Tsvi
c3cd3cda9b Remove manual parceling from Interpolator and VolumeShaper
Change-Id: Ic5c3bfeb67c6e1b9b2b3c6275ea4badbef8536d3
2020-11-03 16:21:15 -08:00
TreeHugger Robot
b8165b658a Merge "Address API feedback on setOnRtpRxNoticeListener" 2020-11-03 23:27:12 +00:00
TreeHugger Robot
41619a504d Merge "Docs: Fixes broken hyperlink." 2020-11-03 03:14:47 +00:00
TreeHugger Robot
592909da11 Merge "Improve documentation of Tuner FrontendStatus" 2020-11-03 01:41:26 +00:00
Amy Zhang
bb2bf53c0a Merge "Add Dvbc Frontend Bandwidth Settings" 2020-11-03 01:28:32 +00:00
Amy Zhang
1fc82e6109 Merge "Make DtmbFrontendCapabilities and DtmbFrontendSettings final class" 2020-11-03 01:28:12 +00:00
Amy Zhang
196b8c3e9c Add new Frontend Status Types into Tuner Framework
Test: atest android.media.tv.tuner.cts
Bug: 169868608
Change-Id: I34c1ba30e66ea29aedd57631dbdf1573026f8e90
2020-11-02 14:54:59 -08:00
Henry Fang
c15ff84f36 Set eventlistener during MediaCas initialization
bug: 171024166
Test: Manual
Change-Id: I4e876e9a0064e79399dbd42ce8465b13cec2a573
2020-11-02 14:36:23 -08:00
Amy Zhang
b17f849808 Add onDvbcAnnexReported ScanCallback
Test: atest android.media.tv.tuner.cts
Bug: 169868608
Change-Id: I7204d1f9aa9282ce05b3fe1ccda72b883e528fca
2020-11-02 14:25:28 -08:00
Amy Zhang
45000c44e0 Add Dvbc Frontend Bandwidth Settings
Test: atest android.media.tv.tuner.cts
Bug: 169868608
Change-Id: I690018c8590eaddb3c261c948a3da849b0823d3a
2020-11-02 14:19:07 -08:00
Amy Zhang
1266071de6 Make DtmbFrontendCapabilities and DtmbFrontendSettings final class
Test: make -j44 dist
Bug: 171281889
Change-Id: I0f658c27eef808dd2129ead5cd3c97fb3c60d494
2020-11-02 14:11:51 -08:00
Amy Zhang
2cedcaeee4 Improve documentation of Tuner FrontendStatus
Test: make -j44 dist
Bug: 171315056
Change-Id: I78adb8ed279db45fb0d30acc03b93bb20f083a23
2020-11-02 14:08:59 -08:00
Amy Zhang
7a3428a442 Add IntRange for getEndFrequency in FrontendSettings
Test: make -j44 dist
Bug: 171281832
Change-Id: Ia90c60f6a20b3eeb62680f7e2e7c462cba6bb9ee
2020-11-02 14:05:23 -08:00
Amy Zhang
aa1dddd601 Add extended RecordSetting ScIndexMask in Android 12
Test: atest FilterTest
Bug: 158816517
Change-Id: I64f7835e3dba12a2b9bdcb9d2d54b906bc7beeee
2020-11-02 10:41:25 -08:00
Amy Zhang
49ac644d5e Rename setDiseqcRxMessage to setShouldReceiveDiseqcMessage to explain
the usage in a better way

Test: make -j44 dist
Bug: 171314799
Change-Id: I6bead9d628bb47227f4168943ee412fe7d8e7752
2020-11-02 10:08:58 -08:00
Dave Friedman
08fa78809d Docs: Fixes broken hyperlink.
Test: Local build using ds-docs
Bug: 146498728
Change-Id: I17d514e03075f5789578b20843b2c8737920846d
Exempt-From-Owner-Approval: Docs-only change
2020-11-02 15:36:03 +00:00
Amy Zhang
fa7d53ccff Deprecate int getFecCapability() and add long getCodeRateCapability()
instead

Test: make
Bug: 155436396
Change-Id: I9726d865c4f1e47af63c4b106eace548a9a94ed0
2020-10-30 16:25:21 -07:00
Emilian Peev
ab1a86bf3c Merge "Expose Image and Plane for testing" am: 56804f0560 am: ce1dd0aafd am: b8a7381930 am: dbbcb14f06
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1463664

Change-Id: I707c029ac2ed1b540625a0089ee33c7258145373
2020-10-30 22:30:03 +00:00
Emilian Peev
dbbcb14f06 Merge "Expose Image and Plane for testing" am: 56804f0560 am: ce1dd0aafd am: b8a7381930
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1463664

Change-Id: Iba02e5a7e7936e93923fcd891a91be9e874888a0
2020-10-30 22:24:17 +00:00
Amy Zhang
12a72f4537 Add first macblock address in slice filed in Record Filter
Test: atest android.media.tv.tuner.cts
Bug: 158816517
Change-Id: I4b0cdea9c90c60f64633f738918af70320cd6e2d
2020-10-30 15:07:12 -07:00
Santiago Seifert
874cc38519 Address API feedback on setOnRtpRxNoticeListener
1. Naming 'Ims' in all the related variables & functions has changed to 'Rtp'.
    ex) setOnImsRxNoticeListener  ---->  setOnRtpRxNoticeListener

2. Change viewing of the parcel's data structure.
    Before the parcel is parsed based on it is byte[] type.
    From now it is analyzed as (int type, int[] data)

3. Add IMS permission checking when register the callback

Test: Manually built the tree.
Bug: 158546060
Signed-off-by: Kim Sungyeon <sy85.kim@samsung.com>
Change-Id: I8c78b7ee498d84e9fcdd3a865fd963a63adb6263
2020-10-30 14:34:25 +00:00
Chong Zhang
fd44e4eee1 MediaTranscodeManager: pass client's package name to service
Instead of querying it from package manager native.

bug: 159172726
test: dumpsys and see the package names still displayed correctly.
Change-Id: If171d08d1e44f1aee82e32f428b7d26051e7db1c
2020-10-29 19:06:28 -07:00