Commit Graph

640958 Commits

Author SHA1 Message Date
Andy Wickham
4e408fe183 Fixes Studio warning from not being able to find this reference.
Test: Manual
Fixes: 186905222
Change-Id: Iab122016da87dc151d3928666bea9d235691fb67
2021-05-01 01:01:57 +00:00
Tyler Gunn
beab886f6f Merge "Clarify API docs for setShouldScreenCallViaAudioProcessing." am: 3b35faf805 am: d076349808
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1692377

Change-Id: I0fa8a948afd874b16970b802a165e218184bcf63
2021-05-01 01:00:37 +00:00
Tyler Gunn
d076349808 Merge "Clarify API docs for setShouldScreenCallViaAudioProcessing." am: 3b35faf805
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1692377

Change-Id: I8c42d1dd2a2478fd5ce90ec234e03885151bed44
2021-05-01 00:37:07 +00:00
TreeHugger Robot
543b89ccf3 Merge "Remove obsolete comments." into sc-dev 2021-05-01 00:26:58 +00:00
Nikita Dubrovsky
686e4780e3 Merge "Update ContentInfo to implement Parcelable" into sc-dev 2021-05-01 00:25:24 +00:00
Brad Ebinger
f902e408e3 Merge "Clarify DelegateManagerCallback based on API review" am: 95fe9715bc am: 4678139c3b am: 8a42a47340
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690269

Change-Id: Ia04a10a6843e56ca8617bd8fe696416e55a8a284
2021-05-01 00:08:31 +00:00
TreeHugger Robot
4c8e4cdc4d Merge "Unmute the mic toggle for emergency call" into sc-dev 2021-04-30 23:53:42 +00:00
Brad Ebinger
8a42a47340 Merge "Clarify DelegateManagerCallback based on API review" am: 95fe9715bc am: 4678139c3b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690269

Change-Id: I992e94cb58883b495bad31361801ce4b809cdf6b
2021-04-30 23:42:41 +00:00
Lyn Han
3b25cae9ff Hide footer in place instead of scrolling it offscreen
Bug: 186479647
Test: open shade with shelf,
      scroll notifications all the way up to show footer,
      then scroll down => footer hides in place
Change-Id: If95b6f8682cc1d8980d6e2b9edf769fb55aad336
2021-04-30 18:34:45 -05:00
Jeff DeCew
cf5499bd7d Fix "Mark as Read" bug.
When a notification has had its lifetime extended by the NotificationRemoteInputManager$RemoteInputHistoryExtender, we will now terminate that lifetime extension 200ms after any other action has successfully started a PendingIntent. This gives apps 200ms to update the notification without the user seeing anything, and should otherwise prevent the 'dead notification' problem.

Bug: 183025105
Test: Use inline notification reply or smart replies for an app which cancels the notification on reply.  Then tap "mark as read" or "done" on the notification. Notice that the notification now disappears.
Change-Id: I627aaaacf4caee98cc6e282da8f2d0f2bd42bffb
2021-04-30 19:33:20 -04:00
Benedict Wong
9d8fd5d82a Trigger reevaluation of all requests when mobile data state changes
This change ensures mobile data state changes result in the reevaluation
of all NetworkRequests; ensuring that any requests that can be fulfilled
as a result of the mobile data state change start the relevant
GatewayConnections

Test: atest FrameworksVcnTests
Change-Id: I442ca2ee0fc8b9ad962a2491ddc3818535d9e042
2021-04-30 23:29:20 +00:00
Tyler Gunn
3b35faf805 Merge "Clarify API docs for setShouldScreenCallViaAudioProcessing." 2021-04-30 23:27:59 +00:00
Tyler Gunn
4cd4248dce Fix potential strict mode violation when stopping RTT.
When the RTT call was cleaned up, the "close()" method was not being
called.  In practice I think the Dialer app never really stops RTT, but
the APIs (and test app) do allow it to be stopped mid-session.  I'm
hypothesizing that is why we don't see this.

Test: Use Telecom test dialer to start and end RTT session.  Observe no
strict mode violation.
Fixes: 186869727

Change-Id: Id474b493ac3fe39e97360f3ac326279fc9a9a5eb
2021-04-30 16:23:15 -07:00
Brad Ebinger
4678139c3b Merge "Clarify DelegateManagerCallback based on API review" am: 95fe9715bc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690269

Change-Id: I35c030f1059d23854a2f8716ade2b4c05c3644fe
2021-04-30 23:11:40 +00:00
Yurii Zubrytskyi
878714ab82 Add more info to IncrementalService::onDump()
+ suppress a couple lint warnings

Bug: 184844615
Test: manual + check the dump output
Change-Id: Ic1cf2a2fb519cc9e746c73816b1cb55f14d11279
2021-04-30 16:09:52 -07:00
Hai Zhang
9443a3e84d Merge "Filter package visibility in getAllPermissionGroups()." into sc-dev 2021-04-30 23:00:51 +00:00
Hai Zhang
0833b47147 Merge "Filter package visibility in getPermissionGroupInfo()." into sc-dev 2021-04-30 23:00:23 +00:00
Hai Zhang
6f2962e7d7 Merge "Filter package visibility in getPermissionInfo()." into sc-dev 2021-04-30 23:00:09 +00:00
Hai Zhang
e02367511e Merge "Filter package visibility in queryPermissionsByGroup()." into sc-dev 2021-04-30 22:59:50 +00:00
Brad Ebinger
95fe9715bc Merge "Clarify DelegateManagerCallback based on API review" 2021-04-30 22:52:15 +00:00
TreeHugger Robot
5ee1270cab Merge "libhwui: AnimatedImageThread fix 'UAF' nits" into sc-dev 2021-04-30 22:38:00 +00:00
Santiago Seifert
14cdc32bd0 Rename MediaExtractor symbols to log session id
Test: atest CtsMediaHostTestCases
Bug: 167036690
Change-Id: I2e71d460e6907400daeba21fd6a76fa0ea5e0922
Merged-In: I2e71d460e6907400daeba21fd6a76fa0ea5e0922
2021-04-30 22:32:55 +00:00
Amit Mahajan
a55105fe89 Remove obsolete comments.
Test: none
Bug: 140239857
Change-Id: Ia867484683a6651e5dadfab5877b1e8dfbdff659
2021-04-30 15:29:44 -07:00
Chris Li
02e4c2deda Determine whether to support activities in multi window (3/n)
Add flags to support device settings for support activities in multi
window.

Will use the new flag to determine whether an activity can be shown in
multi window.

Bug: 176061101
Test: atest WmTests:ActivityTaskManagerServiceTests
Change-Id: I2808b0bbf2ce436f972a0239ece7d6a781af035b
2021-04-30 15:13:26 -07:00
Kohsuke Yatoh
8ab1b7c46f Add 'cmd font update-family'.
This command can be used to simulate calling
FontManager#updateFontFamily() API from shell.

Bug: 180364534
Test: cmd font update-family /data/local/tmp/test.xml
Change-Id: I4b53a9b598a5136ad4d34ab48bdcd0dc3ee9c899
2021-04-30 15:08:50 -07:00
Kohsuke Yatoh
3a83bef009 Fix NullPointerException in UpdatableFontDir.
The localeList param is @NonNull in FontConfig.FontFamily ctor.
Bug: 186891684
Test: manual

Change-Id: Ida60723e577f225e63f86dc48e9719c0d725412f
2021-04-30 15:03:55 -07:00
Songchun Fan
1af4840b3d [am] move incremental manager calls to post dumpStackTraces
To make sure we do not delay taking the thread dump

BUG: 186858453
Test: atest android.cts.statsdatom.statsd.UidAtomTests#testANROccurred
Change-Id: Ia076c72d0b9763f05ddf733dbd6ff73c7fa4c614
2021-04-30 21:56:47 +00:00
Andy Hung
f4d9213903 [automerger skipped] Merge changes from topics "dra", "dts_uhd" am: 6a1812c30f am: ea8e392fef am: 6e1398b55f -s ours
am skip reason: Merged-In Id6078e65941020a73f8a43017f480574c2a78999 with SHA-1 fb082f6463 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691214

Change-Id: If0edc0dc78c9de2852845f45f1611b10b69120f1
2021-04-30 21:53:39 +00:00
Andy Hung
89b13f19be [automerger skipped] Audio: Add ENCODING_DTS_UHD am: bd3a68b6f1 am: d3b7c9bb9c am: e70b8644aa -s ours
am skip reason: Merged-In I740a9ba041ad444ead5513fb3b632a78d391ab1c with SHA-1 e73976dba6 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691700

Change-Id: If8e96aac78708e70e5ce5d21c71c9214ef64878d
2021-04-30 21:53:17 +00:00
Makoto Onuki
a67d5200f6 Fix field name
Test: build
Bug: 184867830
Change-Id: I4b1de57e0359090ab211a60aea4d12c838a35cd6
2021-04-30 14:52:50 -07:00
Robert Shih
26cb27a912 Merge "libmedia_jni requiresSecureDecoder: throw on error" into sc-dev 2021-04-30 21:52:31 +00:00
Hai Zhang
8f6290db77 Fix nullability of the group name parameter in queryPermissionsByGroup().
Change-Id: Id503da0fe4f16a92997634089fc052d58e78f9df
Fixes: 141452667
Test: presubmit
2021-04-30 21:43:05 +00:00
Andy Hung
6e1398b55f Merge changes from topics "dra", "dts_uhd" am: 6a1812c30f am: ea8e392fef
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691214

Change-Id: I34f818f3140c8d5c6f21089bf168b6b836a61fbc
2021-04-30 21:28:39 +00:00
Andy Hung
e70b8644aa Audio: Add ENCODING_DTS_UHD am: bd3a68b6f1 am: d3b7c9bb9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691700

Change-Id: I070bba4d6da54a75dd9ecf264a8e985ddaf36ed6
2021-04-30 21:28:33 +00:00
Winson Chiu
627cac02ad Merge changes Ie90dc390,Ia9513817 into sc-dev
* changes:
  Strip invalid domains in DVS#addPackage
  Move withPackageSettingsSnapshot methods into PackageManagerInternal
2021-04-30 21:24:05 +00:00
Nate Myren
37acd7ee52 Ensure storage permission revoke happens for all users
When revoking storage permissions due to storage escalation, ensure the
revoke happens for all users

Fixes: 186034260
Bug: 171430330
Test: atest --user-type secondary_user StorageEscalationTest
Merged-In: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
Change-Id: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
2021-04-30 21:22:23 +00:00
Adam Bodnar
5ff0bc1ce0 Add support for manifest based opt-in for game modes
Also add support for games to opt-out of specific
interventions via manifest.

Manifest metadata tag name attributes need to be one of:
"com.android.graphics.intervention.wm.allowDownscale"
"com.android.app.gamemode.performance.enabled"
"com.android.app.gamemode.battery.enabled"
and the value attribute must be "true"

Bug: b/184849707, b/186582669

Test: atest com.android.server.app.GameManagerServiceTests
Change-Id: I0d09c1e1fb9ac704bb92cf65000d6f78a67e42fd
2021-04-30 14:22:09 -07:00
Nate Myren
8a1085bdcb Ensure storage permission revoke happens for all users
When revoking storage permissions due to storage escalation, ensure the
revoke happens for all users

Fixes: 186034260
Bug: 171430330
Test: atest --user-type secondary_user StorageEscalationTest
Merged-In: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
Change-Id: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
2021-04-30 21:21:58 +00:00
Nate Myren
1a3709073f Ensure storage permission revoke happens for all users
When revoking storage permissions due to storage escalation, ensure the
revoke happens for all users

Bug: 186034260
Bug: 171430330
Test: atest --user-type secondary_user StorageEscalationTest
Merged-In: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
Change-Id: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
2021-04-30 21:21:34 +00:00
Andy Hung
ea8e392fef Merge changes from topics "dra", "dts_uhd" am: 6a1812c30f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691214

Change-Id: I9eb5d61551fda9bb93af9ad447e5e2d861bd05f5
2021-04-30 20:53:56 +00:00
Andy Hung
d3b7c9bb9c Audio: Add ENCODING_DTS_UHD am: bd3a68b6f1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691700

Change-Id: I4c2d8308760d1de91b6698ac28a5312ff0a08af4
2021-04-30 20:51:24 +00:00
Joe Bolinger
d16f3bd2db Fix oneway complaints for fingerprint auth.
Fix: 186047141
Test: adb logcat -s Binder:E -e "I.*getSensorProps" (is blank)
Change-Id: Ib8a3ebe274a3421814bffdad290ea2d0e417af28
2021-04-30 13:48:18 -07:00
Florian Mayer
748c3a8040 Merge changes from topic "playprofileable" into sc-dev
* changes:
  Add packageInstaller to packages.list.
  Add profileable opt-out to packages.list.
2021-04-30 20:42:16 +00:00
Yi Jiang
73d3172e96 Merge "Adds expirations for remote callbacks" into sc-dev 2021-04-30 20:33:03 +00:00
Andy Hung
6a1812c30f Merge changes from topics "dra", "dts_uhd"
* changes:
  Audio: Add ENCODING_DRA
  Audio: Add ENCODING_DTS_UHD
2021-04-30 20:29:48 +00:00
Brad Ebinger
bc75177c71 Merge "Add the ability to get Accept-Contact header params" am: 71a05ba2b4 am: 0c5b322274 am: 1c5ed5e364
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690090

Change-Id: Ibb8e787a5acdc66049e175954376141efab9e75d
2021-04-30 20:26:26 +00:00
Lyn Han
0c2fcca0a1 Swipe a little, open shade a lot
Bug: 172289889
Test: manual
Change-Id: Ib3117685d24c5dff1e926ade0e1af6bc6f12708a
2021-04-30 15:23:31 -05:00
Evan Severson
6ff9c4c735 Unmute the mic toggle for emergency call
Also if the device is locked we shouldn't change the state of the
toggles, the system ui controls already prevent this but there's still a
workaround with adb.

Fixes: 186425724
Fixes: 186706938
Test: insert sim and \
      `adb shell cmd phone emergency-number-test-mode -a <phone-#>`
Change-Id: Iaf7f3413d8875bb6d909c828f354c1cd9229d01f
2021-04-30 13:11:32 -07:00
Dmitri Plotnikov
d354520023 Aggregate power data in AggregateBatteryConsumers
as opposed to SystemBatteryConsumers, which will be removed
in a follow-up CL

Bug: 186006876
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsTests

Change-Id: Ie4166217be211d92293c2a107762801a7d3c206f
2021-04-30 13:09:32 -07:00
Brad Ebinger
1c5ed5e364 Merge "Add the ability to get Accept-Contact header params" am: 71a05ba2b4 am: 0c5b322274
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690090

Change-Id: Ib8bacbb9ebdca85546e5e9d71b0aab65f0272903
2021-04-30 20:09:04 +00:00