Commit Graph

645473 Commits

Author SHA1 Message Date
Fabian Kozynski
3e241345ed Merge "Use only a single TileLayout in QSPanel" into sc-dev 2021-06-30 14:42:36 +00:00
Tom Natan
e54680b389 Merge "Add INTERACT_ACROSS_USERS_FULL to PlatformCompatChangeRule" into sc-dev 2021-06-30 14:36:35 +00:00
Ahaan Ugale
94b8898da9 Merge "Allow only HotwordDetectionService to note OP_RECORD_AUDIO_HOTWORD" into sc-dev 2021-06-30 14:28:54 +00:00
Jorge Gil
c794661b9a Merge "Cancel ongoing PIP animations in onTaskVanished" into sc-dev 2021-06-30 14:27:18 +00:00
Ahaan Ugale
b0ef72e5d5 Merge "HotwordDetectionSrvc: Handle SoundTrigger permissions in VIMS" into sc-dev 2021-06-30 14:27:12 +00:00
Hasini Gunasinghe
06327bba21 Merge "Keystore2 Metrics: System server rerouting" into sc-dev 2021-06-30 13:07:20 +00:00
Riddle Hsu
c8bbb99a44 Merge "Skip task snapshot if display has not been enabled" into sc-dev 2021-06-30 12:38:03 +00:00
Flavio Fiszman
ade3d60635 Merge "Conversations Widget - Backup and Restore" into sc-dev 2021-06-30 11:47:22 +00:00
Neil Fuller
9cdd6897f1 Merge "Remove configuration of com.android.geotz module" into sc-dev 2021-06-30 10:54:42 +00:00
tomnatan
03c15770ed Add INTERACT_ACROSS_USERS_FULL to PlatformCompatChangeRule
Fix: 192123697
Test: atest CtsWindowManagerDeviceTestCases:CompatChangeTests
Change-Id: I6814db76a9020a6e18995a2949646afea0ed47fc
2021-06-30 09:47:36 +00:00
Robert Horvath
1e13be4c99 Merge "Announce inattentive sleep warning for accessibility" into sc-dev 2021-06-30 09:38:03 +00:00
Wei Sheng Shih
ef483c66a9 Merge "Workaround to fix remote animation hanging." into sc-dev 2021-06-30 09:32:11 +00:00
TreeHugger Robot
1528bc72fc Merge "AudioFormat: document that 24BIT is little-endian" into sc-dev 2021-06-30 08:33:22 +00:00
Riddle Hsu
a03cc0627a Merge "Allow to use fixed rotation with remote swipe-unlock animation" into sc-dev 2021-06-30 08:18:07 +00:00
Paul Duffin
d8c8547954 Merge "Move media related hidden API flag file entries to frameworks/av" into sc-dev 2021-06-30 07:26:37 +00:00
Riddle Hsu
a58b55052f Skip task snapshot if display has not been enabled
Otherwise if keyguard changes to be showing when booting
and keyguard secured state has not been updated yet, it
will cause allowSnapshotHome to be true. And then take
snapshot for FallbackHome, that is useless and wasteful.

Bug: 192400758
Test: "adb shell dumpsys window w | grep -A5 SnapshotCache"
      should show zero entry after device is booted.
Change-Id: Ia4afe69a70065fc3972fb9cb3dccc1e4b3b35a79
2021-06-30 15:00:05 +08:00
Stanley Wang
d8d35066c1 Merge "Fix the problem that the title of MainsSitchPreference will be truncated." into sc-dev 2021-06-30 06:32:43 +00:00
TreeHugger Robot
d1d3358be9 Merge "Allow power-allowlisted apps to schedule alarm-clocks" into sc-dev 2021-06-30 06:13:59 +00:00
TreeHugger Robot
58f468f186 Merge "Fix --user parameter when setting app op for shell with shell command." into sc-dev 2021-06-30 06:12:37 +00:00
Stanley Wang
85c9c3e6ad Fix the problem that the title of MainsSitchPreference will
be truncated.

- Remove the maxLines=2 attribute.

Fix: 189921147
Test: robotest and see the UI
Change-Id: Ia62fd2f5ed1e76c9f1149e842bdae308e83fb03b
2021-06-30 14:10:40 +08:00
James Lin
5f1dd57e55 Merge "[UCE] Set the default value of the list subscribe to false" into sc-dev 2021-06-30 05:55:10 +00:00
Jackal Guo
04a45607c1 Merge "Move BootTest to internal test" into sc-dev 2021-06-30 05:39:37 +00:00
Riddle Hsu
397f6cdc5e Merge "Return invalid task id if no acceptable target app" into sc-dev 2021-06-30 05:27:53 +00:00
Kyunglyul Hyun
88146b483b Merge "Hide non transferable routes" into sc-dev 2021-06-30 05:06:54 +00:00
Evan Chen
38dfae8c31 Merge "Fix adb command for multiple users" into sc-dev 2021-06-30 03:55:11 +00:00
Hai Zhang
be06f0f221 Fix --user parameter when setting app op for shell with shell command.
ag/13692058 added "com.android.shell" into resolveUid(), which is also
used by appops shell command. However unlike the other special UID
names (e.g. root, shell, media, audioserver), "com.android.shell" is a
regular package name, so this broke the assumption that the UIDs
returned from resolveUid() are all special UIDs that only runs in the
primary user, and made the shell command always set the package mode
for the com.android.shell package in primary user despite being given
an explicit --user parameter (see parserUserPackageOp()
implementation).

So the fix should be keeping the resolveUid()'s semantics and make it
only handle the special UID names instead of package names. For the
special case for shell in verifyAndGetBypass(), it can be done in that
method locally.

Bug: 187329570
Test: adb shell appops set --user 10 com.android.shell
      MANAGE_IPSEC_TUNNELS allow
Test: adb shell dumpsys appops | grep -5 shell
Change-Id: Ia3157d6fd45dad085fa672e385287817fa20e90b
2021-06-30 03:37:00 +00:00
Jorge Gil
47aa9f156e Merge "Check the min menu size when exp. to normal bounds" into sc-dev 2021-06-30 03:32:16 +00:00
Wei Sheng Shih
590ccb4e73 Merge "Skip close activity transition since no closing app can be visible" into sc-dev 2021-06-30 03:23:04 +00:00
TreeHugger Robot
12ded20343 Merge "Exempt default_input_method from BG-FGS-start restriction." into sc-dev 2021-06-30 03:03:32 +00:00
wilsonshih
24ed9cac0e Workaround to fix remote animation hanging.
After Ic78c603b2375d36cf2170b81cca7cddbf334408b, sometimes there will
call keyguardGoingAway twice to trigger the second phase unlock
animation, so several conditions the remote animation may not execute,
so better to send the callback to update the status in window manager.

Right now the framework cannot ignore the second keyguardGoingAway call
because keyguard status in KeyguardViewMediator could be hiding, so
better to trigger startKeyguardExitAnimation once there was receive
keyguardGoingAway.

Still need to find out why will keyguardGoingAway been called twice,
better to merge those call together.

Bug: 190040281
Test: No hanging when launch app and received two keyguardGoingAway
calls.

Change-Id: I3c425066e2fc2d00dc8f55f470efa229607ac83f
2021-06-30 10:38:28 +08:00
Silin Huang
ed6a76796f Merge "Update wallet tile secondary label when QAW cards fetching in flight." into sc-dev 2021-06-30 02:24:45 +00:00
Ahaan Ugale
ba966c1461 HotwordDetectionSrvc: Handle SoundTrigger permissions in VIMS
This allows properly checking/noting against the voice interactor or
HotwordDetectionService as needed. Otherwise,
SoundTriggerMiddlewarePermission notes ops for data delivery to the
interactor, even if the data only reaches the HotwordDetectionService.

This is accomplished with a decorator for permission checks, that wraps
the real implementation. A proxy that serves as the remote Binder object
is also needed, to allow this decoration pattern.

The list of sessions stored in VIMS is removed for simplicity. It
currently serves no purpose (used only in dump() but doesn't implement
it so it's a no-op there).

DataDelivery checks will be addressed in a followup change.

Bug: 186164881
Test: manual - permissions are checked appropriately
Test: atest CtsVoiceInteractionTestCases
Change-Id: I80dabaf6ae0e781028dde16ead3321fbff319542
2021-06-29 19:13:13 -07:00
Shan Huang
be9f6e9bed Merge "Fix clock font weight animation to always match the latest doze state." into sc-dev 2021-06-30 01:58:04 +00:00
Zoey Chen
fc3e38324f Merge "[Telephony] Add description about location permission" into sc-dev 2021-06-30 01:23:39 +00:00
TreeHugger Robot
4260ce4100 Merge "Improve javadocs for repeating alarms" into sc-dev 2021-06-30 00:55:07 +00:00
TreeHugger Robot
3a4b5e0817 Merge "Flush Content Capture context updated event immediately" into sc-dev 2021-06-30 00:49:26 +00:00
TreeHugger Robot
268e58afe4 Merge "Remove SCHEDULE_EXACT_ALARM from Shell" into sc-dev 2021-06-30 00:42:40 +00:00
PETER LIANG
dc68f8f303 Merge "Extend to support the static and animated format image for IllustrationPreference." into sc-dev 2021-06-30 00:38:20 +00:00
Suprabh Shukla
94f5840bed Improve javadocs for repeating alarms
Specifically, mentioning that the alarm count can only be included with
the alarm if the supplied pending intent is mutable.

Test: make offline-sdk-docs

Fixes: 178413211
Change-Id: I2914bceebeed8b52b0de11d70960aa33e6837b13
2021-06-29 17:34:14 -07:00
jorgegil@google.com
129493d418 Cancel ongoing PIP animations in onTaskVanished
onTaskVanished may be called when an activity is moved to
the back while a resize animation is still in progress.
This causes a race between the windowing mode change to
fullscreen and the PIP resize that results in the
fullscreen task leash getting a PIP-sized crop.
This change cancels any ongoing animations in
onTaskVanished and makes sure that finishResize() is not
called when the animation is canceled because the transition
to fullscreen will handle the final resize and cropping.

Bug: 188856244
Test: enter YT PIP, click the next button and the music
button quickly after that, then re-open YT from the
notification - verify the activity is fullscreen and is
cropped correctly.

Change-Id: Ide52b8c6b63205081bde96472a5e0589664e1c8a
2021-06-29 17:33:42 -07:00
Silin Huang
3d86d270cb Update wallet tile secondary label when QAW cards fetching in flight.
Also re-create the QAW client if the wallet feature is unavailable; and query the wallet cards only when the wallet feature is available.

Test: atest
Test: manual
Bug: 190036483
Change-Id: Ibad3429a6f77d3f8a474b577759e7b7193ad6f23
2021-06-30 00:07:21 +00:00
Phil Burk
48ad7ea299 AudioFormat: document that 24BIT is little-endian
Bug: 190724856
Test: read resulting autodocs
Change-Id: Iedd34eb89e6cf26ec8bea05b376447181eeea0d9
2021-06-29 23:52:33 +00:00
TreeHugger Robot
a46f524537 Merge "Double DEFAULT_MAX_LABEL_SIZE_PX to 1000px" into sc-dev 2021-06-29 23:36:33 +00:00
Suprabh Shukla
d50bc69f94 Remove SCHEDULE_EXACT_ALARM from Shell
Shell doesn't need this permission and it confusing to the user
if visible in Settings.

Test: Shell doesn't appear in Settings under
Settings -> Apps -> Special app access -> Alarms & Reminders ->
3 dot menu -> Show system

Bug: 190775895
Change-Id: I98b051f37f3edf4f616f8847f691b956dafbdd12
Merged-In: I98b051f37f3edf4f616f8847f691b956dafbdd12
2021-06-29 16:27:28 -07:00
Paul Duffin
8c37e55416 Merge "Move tethering related hidden API flag file entries to packages/modules/Connectivity/Tethering" into sc-dev 2021-06-29 22:54:01 +00:00
Huihong Luo
4d7a36be41 Merge "Reparent surface control for Webview overlay" into sc-dev 2021-06-29 22:38:17 +00:00
Paul Duffin
56dc119776 Merge "Enable appsearch to perform its own hidden API processing" into sc-dev 2021-06-29 22:37:46 +00:00
Suprabh Shukla
96da2e8fae Allow power-allowlisted apps to schedule alarm-clocks
They can already use a lot of APIs to perform work in the background
and it simplifies the logic handling permission state changes and the
return value of canScheduleExactAlarms.

The major changes in behavior are:
1. Allowlisted apps can schedule unlimited alarm-clock alarms. This
should be the same as pre-S behavior.
2. If they happen to get the permission revoked, due to whatever reason:
user revocation, deny list, or app update, their alarm-clock alarms will
stay safe like their other exact alarms.
3. The API canScheduleExactAlarms is now true to its name: It returns
true even if the app is allowlisted.

Test: atest CtsAlarmManagerTestCases:ExactAlarmsTest
atest FrameworksMockingServicesTests:AlarmManagerServiceTest

BYPASS_INCLUSIVE_LANGUAGE_REASON=Existing APIs

Bug: 191716678
Bug: 190625528
Change-Id: I420694455f50aac10cf49cd43ff3b98575d86e9f
2021-06-29 15:32:29 -07:00
Riddle Hsu
0b2d6e1aa3 Return invalid task id if no acceptable target app
No matter the app is not found or has different uid, return
the invalid id to indicate that the add operation is failed.
So the caller won't know whether the specified package exists
or not.

Bug: 189122913
Test: Pass intent with specified component name to
      ActivityManager#addAppTask.
Change-Id: I013264414c60f2d9864a5fcc369180425f20529e
2021-06-30 06:07:09 +08:00
TreeHugger Robot
0221168d9d [automerger skipped] Merge "Use IntentFilter CREATOR directly for serializing ParsedIntentInfo" into rvc-dev am: a29bdb9e0d am: 1928716b32 -s ours
am skip reason: Merged-In Ib12e0a959eb5a5d73d5832ff2eee26a30eed5ded with SHA-1 7ac9b1da73 is already in history

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

Change-Id: Ia1cb97adcc49c4aaf5f732da073c0a4c3b51b746
2021-06-29 22:06:51 +00:00