Commit Graph

645461 Commits

Author SHA1 Message Date
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
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
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
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
TreeHugger Robot
d0caba39cc [automerger skipped] Merge "Use IntentFilter CREATOR directly for serializing ParsedIntentInfo" into rvc-dev am: a29bdb9e0d am: eaafd6fc7e -s ours
am skip reason: Merged-In Ib12e0a959eb5a5d73d5832ff2eee26a30eed5ded with SHA-1 f344cfad2b is already in history

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

Change-Id: Ifba4a6ecb9ab9e134baf2a0d1b79bc44b3e03294
2021-06-29 22:06:28 +00:00
Kevin Chyn
34944f74c8 Merge "Add logging for AuthSession cancellation path" into sc-dev 2021-06-29 22:00:06 +00:00
TreeHugger Robot
eaafd6fc7e Merge "Use IntentFilter CREATOR directly for serializing ParsedIntentInfo" into rvc-dev am: a29bdb9e0d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15110948

Change-Id: I562f314aa64840d256b5e4e62b0903ca32025b88
2021-06-29 21:53:13 +00:00
TreeHugger Robot
1928716b32 Merge "Use IntentFilter CREATOR directly for serializing ParsedIntentInfo" into rvc-dev am: a29bdb9e0d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15110948

Change-Id: Id9c7e237a7cde95adf965c811a9e890caeeefd0d
2021-06-29 21:52:57 +00:00
TreeHugger Robot
a29bdb9e0d Merge "Use IntentFilter CREATOR directly for serializing ParsedIntentInfo" into rvc-dev 2021-06-29 21:34:44 +00:00
Riddle Hsu
4b6d4c81a3 Allow to use fixed rotation with remote swipe-unlock animation
- Remove the restriction of no animation to adopt fixed rotation.
  Because the old case no longer happens.
- Always use orientation of keyguard if its window is visible and
  device is going to sleep or is sleeping. This avoid unexpected
  orientation change such as entering portrait AOD while the display
  is landscape due to the requested orientation of top app.
- If device is fully awake, do not use the orientation of keyguard
  if it is going away or is not showing. So if keyguard cancels the
  showing state, its orientation won't affect the top app.
- Remove unused states and methods in WMS.

Bug: 191446147
Test: atest DisplayContentTests#testOrientationDefinedByKeyguard
Test: With remote keyguard swipe animation enabled.
      Launch a landscape app and lock device.
      Unlock by swipe. The landscape app should show in
      its original orientation directly.

Change-Id: I77708fa9e28cf61c9dfd7aef8da77c3169ce5ad9
2021-06-29 21:18:58 +00:00
James.cf Lin
5b001197d8 [UCE] Set the default value of the list subscribe to false
Set the default value of the list subscribe to false because there are not many carriers support the list subscription

Bug: 190683278
Test: atest RcsUceAdapterTest
Change-Id: I146637fda050a74f593c1b221364c18a03d2da5e
2021-06-29 21:01:06 +00:00
TreeHugger Robot
2ce2d91d1e Merge "Properly clear animations after dragging" into sc-dev 2021-06-29 20:52:06 +00:00
Kevin Chyn
0813101890 Merge "Tag toString fields for easier bugreport parsing" into sc-dev 2021-06-29 20:42:39 +00:00