Commit Graph

640958 Commits

Author SHA1 Message Date
Alex Stetson
74cf8e018f Merge "Move HideNonSystemOverlayMixin to SettingsLib" into sc-dev 2021-05-07 14:08:52 +00:00
Rubin Xu
c4ac63a881 Merge "Remove unused isProfileActivePasswordSufficientForParent()" into sc-dev 2021-05-07 13:50:03 +00:00
Riddle Hsu
0196e43003 Log app launch event in fg thread
So the written time is closer to when the app is launched.

Bug: 187043447
Test: Launch app and check the tid of log.
Change-Id: I2a1a067b1c92ae427bf0acfe9b574083ebeb601a
2021-05-07 21:14:31 +08:00
Anton Hansson
c7f5e7d439 Add targets to build doc-stubs for non-updatable
Like the jar stubs, the doc stubs need modularization to avoid depending
on module sources and instead being assembled by merging the doc stubs
of the constituent modules. This will allow generating e.g. the lint
database, annotation zips, and the documentation itself from prebuilts
(which in turn allows mixing e.g. non-updatable R with the latest
modules).

Move the defaults for the non-updatable jar stubs to the shared bp file
and reuse it for the non-updatable doc stubs, and add two targets for
the public and the system stubs.

Bug: 186197911
Test: m android-non-updatable-doc-stubs{,-system}
Merged-In: Ic2cef748c42c141ea42b8cd7b4afd7ee78a1399d
Change-Id: Ic2cef748c42c141ea42b8cd7b4afd7ee78a1399d
2021-05-07 13:51:28 +01:00
Anton Hansson
867f94c755 Add targets to build doc-stubs for non-updatable
Like the jar stubs, the doc stubs need modularization to avoid depending
on module sources and instead being assembled by merging the doc stubs
of the constituent modules. This will allow generating e.g. the lint
database, annotation zips, and the documentation itself from prebuilts
(which in turn allows mixing e.g. non-updatable R with the latest
modules).

Move the defaults for the non-updatable jar stubs to the shared bp file
and reuse it for the non-updatable doc stubs, and add two targets for
the public and the system stubs.

Bug: 186197911
Test: m android-non-updatable-doc-stubs{,-system}
Change-Id: Ic2cef748c42c141ea42b8cd7b4afd7ee78a1399d
2021-05-07 13:48:13 +01:00
Matt Pietal
e28295bb22 Cleanup support for multiple PIN views
Had to support both old/new UX for PIN for a while. Cleanup the
unneeded code and simply the ripple.

Fixes: 187340770
Test: atest KeyguardPinBasedInputViewControllerTest and visual check
Change-Id: Ie12cd93c7aaba5a3ef172792a5dd2a41f2196447
2021-05-07 08:44:55 -04:00
Oli Lan
40cb941144 Amend wording of clipboard access notification.
This corrects the wording of the clipboard access notification
as per UX specification. The current wording is "<app> pasted from
clipboard". It should be "<app> pasted from your clipboard".

Bug: 179469804
Test: Build and flash, copy and paste and check wording
Change-Id: I965690515c9c1fcf92553992a5d67507d0f1b855
2021-05-07 12:59:31 +01:00
Rubin Xu
f7a6c02cc8 Remove unused isProfileActivePasswordSufficientForParent()
Bug: 182561862
Test: builds
Change-Id: I26d18113862c64c51333f62b81db65e335ccd18c
2021-05-07 11:22:35 +01:00
Charles Chen
71cb758286 Fix IME switch dialog crash on Dual rootDA display
The crash is because when the IME switch dialog created window token
is removed, it should switch back to listen to ImeContainer.
However, previous CL use the wrong API findAreaForToken, which only
finds the DisplayArea.Token under mAreaForLayer list.
In this scenario, we cannot find one because ImeContainer is moved to
its sub-RootDisplayArea.

This CL updates the naming and add more javaDoc to prevent from
confusion.

Test: atest WindowContextListenerControllerTests
Test: manual - repro steps in b/186366728#comment1
fixes: 186366728

Change-Id: I50d3247b0a158e83d09be893d31802d673a60697
2021-05-07 10:03:02 +00:00
Neil Fuller
0541a04273 Remove @GuardedBy on a final, immutable field
Remove @GuardedBy on a final, immutable field as it is causing
errorprone warnings on a work-in-progress commit.

ContentProviderHolder.mUri is accessed in multiple places without
holding mLock, and it is final and documented as immutable so should be
safe to access without mLock. This commit should reduce ErrorProne
warnings now and in future.

Bug: 185786624
Test: build / treehugger only
Change-Id: Ic7fbe550ff6f538f336cfb859f66daa94844ca28
2021-05-07 10:56:01 +01:00
Edgar Wang
c33698857e Considering to mainline moudle to move some resource to v31
- mainline module team have concern about backward compatible on
  old platform.
  To reduce the change, we move most of change for Android S to v31
- Rename resource name to avoid build conflict in another path.

Bug: 182179573
Test: manual
Change-Id: Ic377c8cde7794e9088dad8b066ae7a9c377f8d5f
2021-05-07 17:55:36 +08:00
Lucas Lin
006f1a69d0 [automerger skipped] Merge "Replace MAX_NETWORK_TYPE with TYPE_VPN" am: 9639cd6242 am: b293e99d25 am: ab0f3875c4 -s ours
am skip reason: Merged-In I27579a942a0424db647ad1f3383db78d5a0c69a9 with SHA-1 afdb65906d is already in history

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

Change-Id: Ifeceb015bca61dd6762c2787b52df4ee089c35bc
2021-05-07 09:53:56 +00:00
Riddle Hsu
da4a464baf Only skip hierarchy op which may reorder task in task lock mode
Otherwise when entering task lock mode from split-screen, the
request from WindowManagerProxy#applyDismissSplit is ignored.
That causes launch root to remain and affect new launch tasks.

Bug: 186764983
Test: MultiWindowTests#testDisallowHierarchyOperationWhenInLockedTask
Test: 1. Enable App pinning
      2. Enter split-screen mode
      3. Pin the task on secondary-split
      4. Unpin the task and launch other new task
      The new task should fill screen bounds.
      "adb shell dumpsys activity a | grep mLaunchRootTasks"
      must be empty.

Change-Id: I890a9e1234b11772f4183168e085b75d31859e20
2021-05-07 09:45:11 +00:00
Shan Huang
4d5a9f9d76 Allow I/O wallpaper to use dark text mode.
Test: Manual
Bug: 187489482
Change-Id: I8e30d536dc1083b8ff8b96899aead1d80becba2e
2021-05-07 17:37:37 +08:00
Lucas Lin
ab0f3875c4 Merge "Replace MAX_NETWORK_TYPE with TYPE_VPN" am: 9639cd6242 am: b293e99d25
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1696985

Change-Id: I79ea719215b6cdfd7e418edfe975cd9207079a5e
2021-05-07 09:29:21 +00:00
Steven Ng
19b0627ae6 Merge "Print the full exception upon widgets inflation error" into sc-dev 2021-05-07 09:08:18 +00:00
Lucas Lin
b293e99d25 Merge "Replace MAX_NETWORK_TYPE with TYPE_VPN" am: 9639cd6242
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1696985

Change-Id: Ib563069788cf575798ae3f0bdc3ba91613035ea9
2021-05-07 09:07:30 +00:00
Chilun
2cf6e53096 Update visibility when finishing activity
Consider the situation where there is a translucent or non-fullscreen
activity in foreground and a middle activity that is going to be
finished. The black background will show below the foreground activity
if the middle activity is in STARTED state because the activity in
STARTED state was not treated as visible.

Another case is that the task of non-fullscreen activity is different to
the middle activity. We can't find any resumed activity from the task of
the middle activity.

This CL treat both PAUSED and STARTED activities as visible and update
the visibility if current activity is opaque.

Also clean up some dead code in Task and ActivityRecord.

Bug: 172837736
Test: atest WmTests:ActivityRecordTests RootTaskTests
Test: atest ActivityVisibilityTests
Test: atest ActivityLifecycleTopResumedStateTests
Test: atest CtsWindowManagerDeviceTestCases:ActivityLifecycleTests
Test: atest MultiDisplayPolicyTests
Change-Id: I43618e34383409b4805942b1923f1281f4226b1c
2021-05-07 17:02:20 +08:00
Lucas Lin
0e768c90f5 Merge "Remove sendNetworkConditionsBroadcast" into mainline-prod am: 8a9e884d02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14271579

Change-Id: I394ab3ceee1685c4fdabd27f8377a2f3227c33be
2021-05-07 08:59:26 +00:00
Lucas Lin
9639cd6242 Merge "Replace MAX_NETWORK_TYPE with TYPE_VPN" 2021-05-07 08:48:28 +00:00
Lucas Lin
8a9e884d02 Merge "Remove sendNetworkConditionsBroadcast" into mainline-prod 2021-05-07 08:44:59 +00:00
Stanley Wang
d979dbd6af Update MainSwitchBar to Material Next style.
Fix: 182255113
Test: Run robotest and see the ui
Change-Id: I2d407bb463a13ed986fe7fe3611e4c00c55284dd
2021-05-07 16:02:44 +08:00
markchien
5024d4d046 startTethering with silent entitlement in systemui
During R development cycle, default entitlement check is changed from
silent to showUI(start activity) in TetheringRequest. So start hotspot
by systemui is changed from silent to trigger UI. Expcility set
entitlement back to silent check in systemui for better user experience.

Fix: 182724427
Fix: 169493230
Test: atest HotspotControllerImplTest
      atest CtsTetheringTest
      on/off hotspot by systemui
Change-Id: Ida1964e28a7b2d0f1a1394e5de2ec437e0bc420a
2021-05-07 07:26:57 +00:00
Stanislav Zholnin
4762e7e8db Fix bug in BaseParceledListSlice implementation.
Under specific conditions, parceled list can be written in such a
way that writing of new list starts when destination parcel is
just above MAX_IPC_SIZE. In that case "0" is written to parcel to
indicate that there will be no inline items written and writing of
the list will start with extra items.

When unparcelling such list, listElementClass is not determined and
stays equal to null, because it only can be determined if there
were some inline items read first, before switching to extra.

This leads to random unparcelling failures with the following
error message:

Can't unparcel type <typename> in list of type null.

Test: manually verified
Bug: 186193371
Fix: 151481291
Bug: 156514418
Fix: 169191099
Change-Id: I849bf46158b6d9b109139b19b93a6a1ba16ecc77
2021-05-07 08:12:30 +01:00
Yuncheol Heo
8376f3d27a Adds car.permission.CAR_INSTRUMENT_CLUSTER_CONTROL to CarSystemUI.
- The permission is need to use ClusterHomeManager.

Bug: 173454330
Test: it bulids
Change-Id: I3553d8136866b04804ba849fe601abff86c3b92f
2021-05-06 23:42:02 -07:00
Yuncheol Heo
714df2c520 Removes car.permission.ACCESS_PRIVATE_DISPLAY_ID from ClusterHome.
Bug: 173454330
Test: it builds
Change-Id: Iade4f6e5486ad10936cb1e4b881bc3f63b61ece6
2021-05-06 23:41:25 -07:00
Bill Yi
fe7dfdb6aa Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5f4ae3cdece5af631a0f9e42021779f7c56e4324
2021-05-07 06:31:43 +00:00
Bill Yi
f3f67a2243 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8b6762e046528ad6b15f37a327245887d575c263
2021-05-07 06:21:09 +00:00
Bill Yi
34aae4505d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib60935a216f58dba7417bf2c6247b487cdf7e49c
2021-05-07 06:12:43 +00:00
TreeHugger Robot
cdd106a463 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: 5df5a337e3 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ia9a7e79870b44a2569d5ad6a090e8d69520b9200
2021-05-07 05:49:46 +00:00
TreeHugger Robot
1b03d2057b Merge "Don't include stretch overscroll in benchmark." into sc-dev 2021-05-07 05:48:40 +00:00
TreeHugger Robot
5df5a337e3 Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-05-07 05:23:08 +00:00
Austin Wang
b6edb9b86a Merge "Add dock_info_bottom_area_overlay" into sc-dev 2021-05-07 05:07:03 +00:00
Chen Xu
38663c6a6c missing permission check to access multi_sim_data_call settings
this private settings can be accessed from alternative API
SubscriptionManager.getPreferredDataSubscriptionId which requires
READ_PRIVILEGED_PHONE_STATE permission. Add additional permission
check for settings access to avoid any potential security holes.
note: the alernative API from SubscriptionManager is also a hidden
one, without the public alertnative API we have to handle app-compat
properly to avoid breaking apks targeting previous SDKs.

Bug: 172670679
Test: Manual
Change-Id: If527f375da33cc6c30c6513c82bf529209da277a
2021-05-07 04:57:47 +00:00
Bill Yi
bca4acc749 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0fb1a33648fe6a9f57a7f1412ad03164eebacb0b
2021-05-07 04:29:30 +00:00
TreeHugger Robot
666d445123 [automerger skipped] Merge "[SP31] Expose onSetWarningAndLimit System API" into mainline-prod am: 0bc22e9ff7 -s ours
am skip reason: Merged-In I6f5e22e3a7b80a38cae9f3c5d7296a1dff34facf with SHA-1 80fb26a90d is already in history

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

Change-Id: Ic7a9537554cbd290393111086ed8a691744cb33c
2021-05-07 04:10:53 +00:00
Yi-Ling Chuang
98362d0ee0 Merge existing bundle with ActivityOptions
Use Bundle.putAll() to take both the bundle passed in to the
startActivity(Intent, Bundle) and also the new created ActivityOptions
bundle, so no extra info will be lost.

Test: rebuild and add log to make sure all bundle info are kept
Bug: 187471344
Change-Id: I802e17893b86fd4eacb812b4a7ab20b5167790fe
2021-05-07 11:44:50 +08:00
TreeHugger Robot
0bc22e9ff7 Merge "[SP31] Expose onSetWarningAndLimit System API" into mainline-prod 2021-05-07 03:42:44 +00:00
TreeHugger Robot
c9c67d25f9 Merge "Check the device type instead of the object reference" into sc-dev 2021-05-07 03:41:14 +00:00
Riddle Hsu
c41c018ac8 Merge "Dismiss immersive mode confirmation on setting changed to confirm" into sc-dev 2021-05-07 03:40:29 +00:00
Treehugger Robot
397273a160 Merge "Move myself to emeritus section" am: c8fd9b844b am: b4a032843b am: cc7e711cfd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697183

Change-Id: Idd77c2249d3bc6a7b59ff95d4616bf3e8cf1e048
2021-05-07 03:39:34 +00:00
Wessam Hassanein
0e86b445bb Merge "Enable PerfettoJavaHeapStackProf in the zygote." am: 45087d31f8 am: 12dfac6247 am: a431288fbe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1692305

Change-Id: I2a54da650a1e8d35530cdf77a41a338ab90582e6
2021-05-07 03:39:05 +00:00
Rambo Wang
2ec957d62b [automerger skipped] Merge "Make LocationAccessQuery's builder safer to use" am: a863b0297b am: 524b0aaec6 am: 0ea41c4636 -s ours
am skip reason: Merged-In Ica8779dff4c671352b917a3ccc02cdd0e1c5856d with SHA-1 d7c2351676 is already in history

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

Change-Id: I1ad629ffec46bfaec70fed6fc6f1c344ab8fba79
2021-05-07 03:38:24 +00:00
Bill Yi
cc090ad8e7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7fa0e4720235250ffcefd20c039f58fee926d50f
2021-05-07 03:37:58 +00:00
Seth Moore
7ac158fda8 Merge "Don't re-wrap DeviceIdAttestationExceptions" am: 27bc799e7e am: 02359c00d6 am: 85d779c4a4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1698089

Change-Id: I9aefcc9b3b93a37437885d7e6fb1a8d9734b3dd1
2021-05-07 03:37:24 +00:00
Bill Yi
870effc58a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5926154f5e4cac825a7cc438357df0baba283b54
2021-05-07 03:21:20 +00:00
Evan Laird
8f29f62631 Privacy chip (3/many)
- Don't show the privacy dot when the shade is expanded.
- Rework the privacy dot view controller to use a view state + resolver
  so we don't miss states
- Add a way for ThreadFactory to create Executors given a Looper

Test: atest SystemUITests
Bug: 177323724
Bug: 186039244
Change-Id: I272eb3135fe6a53dfb5e7aac8a1b165bc4ad3d43
2021-05-06 23:13:55 -04:00
Treehugger Robot
cc7e711cfd Merge "Move myself to emeritus section" am: c8fd9b844b am: b4a032843b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697183

Change-Id: Ie735d8b711a7e852c010398f5ea2f9ce00ead32b
2021-05-07 03:11:46 +00:00
Wessam Hassanein
a431288fbe Merge "Enable PerfettoJavaHeapStackProf in the zygote." am: 45087d31f8 am: 12dfac6247
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1692305

Change-Id: Idee0c7b34ec3ab8e8ce74c5802420603418da32e
2021-05-07 03:11:25 +00:00
Rambo Wang
0ea41c4636 Merge "Make LocationAccessQuery's builder safer to use" am: a863b0297b am: 524b0aaec6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1695246

Change-Id: I3f9226521f344345a0b1021748ee073bb38b020e
2021-05-07 03:10:55 +00:00