Commit Graph

4165 Commits

Author SHA1 Message Date
Anton Hansson
76b9b00a37 Merge "Baseline SAM errors" into sc-dev am: ea02255542 am: 4650ed8c8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14845416

Change-Id: Id12a74b5e3b8047edf5b2ca1b73717a097edee61
2021-06-08 09:10:50 +00:00
Michal Olech
8c36342587 Merge "[CEC Configuration] Add 'routing_control' setting" 2021-06-06 20:10:07 +00:00
Jeff Sharkey
b42faf3ca0 Merge "Revert "Hide MediaFormat#KEY_SLOW_MOTION_MARKERS"" 2021-06-05 20:23:33 +00:00
Anton Hansson
d641efeb18 Revert "Hide MediaFormat#KEY_SLOW_MOTION_MARKERS"
This reverts commit fc0dd526c9.

Reason for revert: b/190241620
Bug: 190241620

Change-Id: I4f39a6d3e875dd261f24105c5e01033b597d88d3
2021-06-05 20:22:59 +00:00
Anton Hansson
1f44941dcb Baseline SAM errors
With the finalization of SDK 31, metalava now detects certain old APIs
like new APIs and runs ApiLint to them. Because we cannot change these
shipped APIs, add them to baselines for now until the detection of new
apis can be improved.

Bug: 171506470
Bug: 190240500
Test: m checkapi
Change-Id: I62e7c911977165acc53b2151e7e44bb528a0ba92
2021-06-05 09:03:00 +01:00
TreeHugger Robot
c8eecb8052 Merge "Add SharedLibraryInfo#isNative to @TestApi surface." into sc-dev am: cf28c48575 am: f926ac837d am: 5b1d9c7ac8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14807579

Change-Id: I90c8cddc0c5abdf3430b3d6dce93a6821d81abd1
2021-06-04 13:25:56 +00:00
TreeHugger Robot
5b1d9c7ac8 Merge "Add SharedLibraryInfo#isNative to @TestApi surface." into sc-dev am: cf28c48575 am: f926ac837d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14807579

Change-Id: I1b9fb6f12226f07755585ee3c93a787ea20c0890
2021-06-04 13:12:18 +00:00
TreeHugger Robot
cf28c48575 Merge "Add SharedLibraryInfo#isNative to @TestApi surface." into sc-dev 2021-06-04 12:37:02 +00:00
Marin Shalamanov
0bbdcba79b Merge "Make AudioManager.getSurroundFormats a TestApi" into sc-dev am: 79f5d3f4fc am: e6f77d35d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14787442

Change-Id: I954d0df00971f838d65c728492914b1d0e6026e2
2021-06-04 11:31:36 +00:00
Marin Shalamanov
79f5d3f4fc Merge "Make AudioManager.getSurroundFormats a TestApi" into sc-dev 2021-06-04 10:49:29 +00:00
Marin Shalamanov
3bec57aa03 Make AudioManager.getSurroundFormats a TestApi
We need to access this API from a TVTS test.

Bug: 187028404
Test: locally run
    m tvts && tvts-tradefed run commandAndExit \
         tvts-all -m TvtsHdmiHostTestCases
Change-Id: I0122ff2a1f285aa01dc76e332a35798e19a07ac7
Merged-In: I0122ff2a1f285aa01dc76e332a35798e19a07ac7
2021-06-03 16:45:07 +00:00
Marin Shalamanov
e4a267c13e Merge "Make AudioManager.getSurroundFormats a TestApi" 2021-06-03 15:15:55 +00:00
satayev
749427e8b7 Add SharedLibraryInfo#isNative to @TestApi surface.
The method is used in ClasspathDeviceTest to filter out native .so
files, as it only cares about java classes.

Bug: 189347015
Bug: 187823488
Test: m
Change-Id: Id4d41ddef1cddbecd7f7028e28da4040cdfd5c26
2021-06-03 14:09:36 +01:00
Svetoslav Ganov
ae1d49549a Merge "Switch media fw permissions checks to AttributionSource" into sc-dev am: 1028eb2f62 am: 94893b35e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14664152

Change-Id: I5dfa6199ec032779c732e916d6622427466c3f2f
2021-06-02 23:28:02 +00:00
Svetoslav Ganov
1028eb2f62 Merge "Switch media fw permissions checks to AttributionSource" into sc-dev 2021-06-02 23:07:22 +00:00
Jacky Kao
e10e9e587f Merge "Adds the display Id into the A11y event" 2021-06-02 22:55:55 +00:00
Jeff Sharkey
dbfae6ddc7 Merge changes from topic "may27-sdk" into sc-dev am: e6fb6087aa am: b3a4448be3 am: 77499b3231
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14749815

Change-Id: I759a5582a387d95bb13ad726817b0bcba86e841d
2021-06-02 20:27:34 +00:00
Jeff Sharkey
77499b3231 Merge changes from topic "may27-sdk" into sc-dev am: e6fb6087aa am: b3a4448be3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14749815

Change-Id: Ifdf0c0d1c2ee8035074e3201401c77add39175f0
2021-06-02 20:19:58 +00:00
Marin Shalamanov
49e778e792 Make AudioManager.getSurroundFormats a TestApi
We need to access this API from a TVTS test.

Bug: 187028404
Test: presubmit
Change-Id: I0122ff2a1f285aa01dc76e332a35798e19a07ac7
2021-06-02 14:29:56 +00:00
Michal Olech
cd149b8aa6 Merge "[CEC Configuration] Add 'system_audio_control' setting" 2021-06-02 14:12:49 +00:00
Svet Ganov
2eebf92965 Switch media fw permissions checks to AttributionSource
Attribution source is the abstraction to capture the data
flows for private data across apps. Checking permissions
for an attribution source does this for all apps in the
chain that would receive the data as well as the relevant
app ops are checked/noted/started as needed.

Teach speech recognition service about attribution
chains. If an implementation does nothing the OS
would enforce permisisons and do blame as always.
This apporach leads to double blaming and doesn't
support attribition chains where app calls into
the default recognizer which calls into the on
device recognizer (this nests recursively). If the
implementer takes advantage of the attribution chain
mechanims the permissions for the entire chain are
checked at mic access time and all apps are blamed
only once.

Fixed a few bugs around finishing ops for attribution
chains. Also ensured that any app death in a started
attribution chain would lead to finishing the op for
this app

bug: 158792096

Test: (added tests for speech reco)
      atest CtsMediaTestCases
      atest CtsPermissionTestCases
      atest CtsPermission2TestCases
      atest CtsPermission3TestCases
      atest CtsPermission4TestCases
      atest CtsPermission5TestCases
      atest CtsAppOpsTestCases
      atest CtsAppOps2TestCases

Merged-In: Ic92c7adc14bd2d135ac13b96f17a1b393dd562e4

Change-Id: Ic92c7adc14bd2d135ac13b96f17a1b393dd562e4
2021-06-01 23:43:29 +00:00
Svetoslav Ganov
757486cde6 Merge "Switch media fw permissions checks to AttributionSource" 2021-06-01 21:31:30 +00:00
Svet Ganov
b033da4e3a Switch media fw permissions checks to AttributionSource
Attribution source is the abstraction to capture the data
flows for private data across apps. Checking permissions
for an attribution source does this for all apps in the
chain that would receive the data as well as the relevant
app ops are checked/noted/started as needed.

Teach speech recognition service about attribution
chains. If an implementation does nothing the OS
would enforce permisisons and do blame as always.
This apporach leads to double blaming and doesn't
support attribition chains where app calls into
the default recognizer which calls into the on
device recognizer (this nests recursively). If the
implementer takes advantage of the attribution chain
mechanims the permissions for the entire chain are
checked at mic access time and all apps are blamed
only once.

Fixed a few bugs around finishing ops for attribution
chains. Also ensured that any app death in a started
attribution chain would lead to finishing the op for
this app

bug: 158792096

Test: ((added tests for speech reco))
      atest CtsMediaTestCases
      atest CtsPermissionTestCases
      atest CtsPermission2TestCases
      atest CtsPermission3TestCases
      atest CtsPermission4TestCases
      atest CtsPermission5TestCases
      atest CtsAppOpsTestCases
      atest CtsAppOps2TestCases

Change-Id: Ic92c7adc14bd2d135ac13b96f17a1b393dd562e4
2021-06-01 15:12:57 +00:00
Jeff Sharkey
de062e478c Finalize resource IDs; script to help in future.
Bug: 171506470
Test: Build
Change-Id: I7b7360475ff0f6f4d4c8b8872eefc4e80fd9640e
2021-06-01 06:48:52 -06:00
Jeff Sharkey
7c5f4337fd platform/frameworks/base/ - S is now 31
Bug: 171506470
Test: Build
Change-Id: I46d4df5f27783a96a58c966b113391ea3bc112cb
2021-06-01 06:48:51 -06:00
Michal Olech
bc57a6aaa5 [CEC Configuration] Add 'routing_control' setting
This ports Settings.Global.HDMI_CEC_SWITCH_ENABLED to HdmiCecConfig.

Bug: 187284252
Test: run cts
Change-Id: I7994a1d69ffc0bf68323d4dcc212a89be1926db9
2021-05-31 13:03:47 +02:00
Michal Olech
3d007e9ce4 [CEC Configuration] Add 'system_audio_control' setting
This ports Settings.Global.HDMI_SYSTEM_AUDIO_CONTROL_ENABLED to
HdmiCecConfig.

Bug: 187284252
Test: run cts
Change-Id: Idb0e069f915a9a7c04c4f7fd24d8c200666c47a9
2021-05-31 13:03:46 +02:00
Jeff Sharkey
19e14f1d4c Merge "Revert "Add user privacy sensitivity APIs."" into sc-dev am: 14016d39a6 am: c3943f2be7 am: d02d709d8b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14669180

Change-Id: Icf9a664e58bdab771768890978bf81c93698a30e
2021-05-28 03:03:54 +00:00
Jeff Sharkey
d02d709d8b Merge "Revert "Add user privacy sensitivity APIs."" into sc-dev am: 14016d39a6 am: c3943f2be7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14669180

Change-Id: Id6aba428c2f508b4669ea26ff0cdf1f29105e814
2021-05-28 02:54:17 +00:00
Jeff Sharkey
14016d39a6 Merge "Revert "Add user privacy sensitivity APIs."" into sc-dev 2021-05-27 11:59:21 +00:00
Jeff Sharkey
6beb9880bd Merge changes from topic "may26-dab" into sc-dev am: 163db52409 am: c142a92708 am: 88d7d7b4e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14738430

Change-Id: Ib9f321554e7bd827c42b2d468fed568c79064bb0
2021-05-26 21:29:47 +00:00
Jeff Sharkey
c142a92708 Merge changes from topic "may26-dab" into sc-dev am: 163db52409
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14738430

Change-Id: I22eeac1697b302e632534486f498e1503f170919
2021-05-26 21:08:34 +00:00
Jeff Sharkey
725a2ea256 Clean up "Deprecated at Birth" APIs.
When APIs are refactored mid-release, they can often be left marked
as @Deprecated with the intention of eventually removing them before
the SDK is finalized.

Well, the time has come to finalize the SDK, so let's clean them up.

Bug: 189325658
Test: manual
Change-Id: I48e3e1c1306fbaf071e4acfd9e8107e6ad564ffe
2021-05-26 13:09:00 -06:00
Brad Ebinger
4b097031bf Set all references to SipDelegateImsConfiguration as @removed
SipDelegateImsConfiguration should not be included in the final
API.

Bug: 186118835
Test: atest CtsTelephonyTestCases
Change-Id: I6321ac6d0c9fbcc4258d1a068934d1116b1819cf
2021-05-26 12:55:56 -06:00
Ahaan Ugale
ec95ec054f Merge "Manual overwrite @removed for genereated builder apis." into sc-dev am: c449e23d4d am: ab5c58b56d am: 598fe13232
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722632

Change-Id: I4bd202929763009ebf656bacc5323b1aedb74870
2021-05-26 02:02:57 +00:00
Ahaan Ugale
ab5c58b56d Merge "Manual overwrite @removed for genereated builder apis." into sc-dev am: c449e23d4d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722632

Change-Id: I3e83169d1915cd98ce88572619ee0b9d23b8f11c
2021-05-26 01:08:11 +00:00
Ahaan Ugale
c449e23d4d Merge "Manual overwrite @removed for genereated builder apis." into sc-dev 2021-05-26 01:01:43 +00:00
Brad Ebinger
76765ff8b7 Merge "Remove the deprecated SipDelegate methods pertaining to Dialogs" into sc-dev am: df366773b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722677

Change-Id: I6eb510480b3a76ff98e6b19169e20511b85b3ce3
2021-05-25 23:03:46 +00:00
Brad Ebinger
df366773b4 Merge "Remove the deprecated SipDelegate methods pertaining to Dialogs" into sc-dev 2021-05-25 22:54:27 +00:00
Sergey Volnov
fdd8f55445 Merge "Hotword: Add onStopDetection() for software detectors." into sc-dev am: 76660ef721 am: 20a30b3855 am: ac235e9a60
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14718524

Change-Id: I8d4a47536d42264f72854390c5d48f47964d97a8
2021-05-25 22:39:36 +00:00
Sergey Volnov
ebfddc542d Merge "Make builder public for HotwordRejectedResult." into sc-dev am: 12d855bbb5 am: 982328c402 am: b6c928d1f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14720630

Change-Id: I9b254cbe081450b130cdff4ef075bc4a9136c350
2021-05-25 22:39:19 +00:00
Sergey Volnov
ac235e9a60 Merge "Hotword: Add onStopDetection() for software detectors." into sc-dev am: 76660ef721 am: 20a30b3855
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14718524

Change-Id: Ib3cc9feb1b9339c5502dfbcfa4fe805274a85c02
2021-05-25 22:23:32 +00:00
Sergey Volnov
b6c928d1f3 Merge "Make builder public for HotwordRejectedResult." into sc-dev am: 12d855bbb5 am: 982328c402
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14720630

Change-Id: I25fd76aca10978fc95611f9baf669a3dd2c41644
2021-05-25 22:23:17 +00:00
Brad Ebinger
2114adb0b8 Merge "Remove the deprecated SipDelegate methods pertaining to Dialogs" am: e2540fd31f am: bebe46bfb0 am: 1cba9be5c8 am: 0a2f949f56
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1702026

Change-Id: I0832b3b9909a5ad115c07b54b738e45ae5299a99
2021-05-25 22:14:58 +00:00
Sergey Volnov
20a30b3855 Merge "Hotword: Add onStopDetection() for software detectors." into sc-dev am: 76660ef721
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14718524

Change-Id: Id52a02d9e7c53b3d8fe373397452d20c36fa6a1c
2021-05-25 22:09:01 +00:00
Sergey Volnov
982328c402 Merge "Make builder public for HotwordRejectedResult." into sc-dev am: 12d855bbb5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14720630

Change-Id: Icd398bb1550d1c35af78f070dab7e4867ae18eb7
2021-05-25 21:50:47 +00:00
Brad Ebinger
0a2f949f56 Merge "Remove the deprecated SipDelegate methods pertaining to Dialogs" am: e2540fd31f am: bebe46bfb0 am: 1cba9be5c8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1702026

Change-Id: I967bc97ee91fe6be71f8b02bb718ae6e02f5e9bb
2021-05-25 21:42:23 +00:00
Sergey Volnov
76660ef721 Merge "Hotword: Add onStopDetection() for software detectors." into sc-dev 2021-05-25 21:41:58 +00:00
Brad Ebinger
1cba9be5c8 Merge "Remove the deprecated SipDelegate methods pertaining to Dialogs" am: e2540fd31f am: bebe46bfb0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1702026

Change-Id: Ic5ac0f6a6468b8e4977edf3eef4785a417e57794
2021-05-25 21:26:13 +00:00
Brad Ebinger
a0dcca7cb5 Remove the deprecated SipDelegate methods pertaining to Dialogs
Remove deprecated APIs pertaining to closeDialog now that all
dependencies on this method have been removed.

Bug: 187747944
Test: atest CtsTelephonyTestCases
Merged-In: I2675d3bd15199c75d70560b7ba529f267ac08970
Change-Id: I2675d3bd15199c75d70560b7ba529f267ac08970
2021-05-25 13:51:06 -07:00