Commit Graph

497771 Commits

Author SHA1 Message Date
Mady Mellor
edddfb37ef DO NOT MERGE Fix bubbles for workprofile
- use getPackageManagerForUser when looking up app info
- use the userId on the bubble, not the currentUserId from
  BubbleController when writing to XML as the currentUserId
  in BubbleController does not account for workprofile.

Test: atest SystemUITests
Test: atest BubbleControllerTest
Test: - have a managed work profile
      - install the bubbles app *only* for the work profile
      - make some bubbles
      => Notice bubbles appear
      - dismiss all the bubbles
      - restart the device, add a bubble
      - open the bubble, navigate to the bubble overflow
      => notice the previously dismissed workprofile bubbles
        are in the overflow
Bug: 184041127
Change-Id: Iefc4e4e80a569a4f3b4ac3b8a1268de1b475409b
2021-03-30 23:23:08 +00:00
TreeHugger Robot
4d7d9c5fce Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-29 06:00:13 +00:00
TreeHugger Robot
1693fa81d1 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-29 05:54:21 +00:00
Bill Yi
19183d5f5e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia74e84643d003dc17312d0441ed688baadfb3188
2021-03-28 00:18:43 -07:00
Bill Yi
df4dcbdef0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4385898e8f31a1d053b77695962e2dbedabc9dd3
2021-03-27 23:13:02 -07:00
TreeHugger Robot
95772b81fa Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-28 05:56:31 +00:00
TreeHugger Robot
e7de4892a4 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-28 05:50:11 +00:00
TreeHugger Robot
9c58673433 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-28 05:49:31 +00:00
Bill Yi
163fbd02a2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia5df6d8ecf844e2672ae57690a8046d27f87b424
2021-03-27 20:27:49 -07:00
Bill Yi
35aa2cec17 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I76f6ddc48a29241179e6660090da6e62e401f9fc
2021-03-27 19:21:39 -07:00
TreeHugger Robot
f52bf29d5e Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-27 18:30:49 +00:00
TreeHugger Robot
b3369c3928 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-27 18:30:30 +00:00
TreeHugger Robot
4dce43161d Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-27 18:24:20 +00:00
TreeHugger Robot
d130b6491f Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-27 18:23:30 +00:00
Bill Yi
513ddcef34 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I22361347acc607c795468a0ffbdc6ca19eb20019
2021-03-27 10:35:38 -07:00
Bill Yi
c7ff4f5174 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib393f1993b9485bbc807e4b03eabca6279c437a2
2021-03-27 11:32:02 +00:00
Bill Yi
15bd86ad6d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ieb647bf8840a48d6590bfb8539c9088edd7e6c4a
2021-03-27 11:12:31 +00:00
Bill Yi
60f6eb1f2a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I993d5d541f2e86e4b17cdeeadf96a3b81da9c09d
2021-03-27 09:56:42 +00:00
Bill Yi
3156171e77 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I87669a1e468060aedf8580200fc893815ed629a8
2021-03-27 07:01:49 +00:00
TreeHugger Robot
d615818816 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-27 06:49:08 +00:00
TreeHugger Robot
b882c35625 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-27 06:48:06 +00:00
TreeHugger Robot
672bcb21e2 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-27 06:41:47 +00:00
TreeHugger Robot
f6b5062f6b Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-27 06:41:37 +00:00
Bill Yi
5a496b8aea Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9824a40916c5d274af59fefc01d3f80d948f4173
2021-03-27 05:40:17 +00:00
Bill Yi
226dd2b589 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9dec7659f6d51ab4885ae395738f606d9f19da05
2021-03-27 02:56:18 +00:00
Bill Yi
7b2f860dd0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I419de50bd53cb082cb36fa570ca8cdb29409824d
2021-03-27 01:36:26 +00:00
Bill Yi
ad2a4b39d5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib27fc0c1020464d7b12835114907745f2fb093a8
2021-03-26 17:12:14 -07:00
Alex Stetson
87e65f6442 Merge "DO NOT MERGE Inflate NotificationPanel on instantiation" into rvc-qpr-dev 2021-03-25 23:44:16 +00:00
TreeHugger Robot
32c1220518 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-25 06:23:49 +00:00
Bill Yi
b4abed8fa6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I839198e64ea8ea374d42a1894e71e29351bd2639
2021-03-25 04:46:25 +00:00
Hui Yu
28644e3b9e BG-FGS while-in-use restriction uses the same grace period mechanism as BG-Activity-Launch.
WindowProcessController.areBackgroundActivityStartsAllowed() has the 10 seconds grace period,
starts from last activity's launch time or finish time.

Expose this method for AMS to call, to determine if BG-FGS while-in-use permission is allowed.

Bug: 182400165
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Merged-In: I30706dc1950bf5d49926a8e26c0493d9e168eb1b
Change-Id: I3615d0a2dc3464b6e980237b906c83872c3b4bce
2021-03-24 13:04:53 -07:00
Hui Yu
4221ca489c Merge "Allow FGS started from MediaButtonReceiver to have while-in-use permissions." into rvc-qpr-dev 2021-03-24 17:41:39 +00:00
Hui Yu
ebfad50cc1 Allow FGS started from MediaButtonReceiver to have while-in-use
permissions.

1. Create FgsWhileInUseTempAllowList, the uid on this list is allowed to
have while-in-use permission when the FGS is started from background for
a duration of time.
2. When media button is pressed, the targetUid is added to
FgsWhileInUseTempAllowList for the duration of 10 seconds, this way the
targetUid can start FGS from background and have while-in-use permission.
3. When checking for ProcessRecord.
mAllowBackgroundActivityStartsTokens, it is the caller app's
ProcessRecord should be checked instead of the service's ProcessRecord.

Bug: 182481312
Test: use b/167998084 reproduce steps, use Line app to make a voip call, the
 receiver side screen is unlocked, the receiver side uses bluetooth
headset button to pick up the call, "dumpsys activity -a" shows the FGS
"com.linecorp.voip.core.common.notification.VoipNotificationCommand" has
"allowWhileInUsePermissionInFgs=true" and "isForeground=true".

Change-Id: Ic80aefe4202fe2210881bb8eea24b6e34cb1e7d0
Merged-In: I32a14d675550cd262976bb8e16a48a070387d318
2021-03-23 23:19:19 -07:00
TreeHugger Robot
302f9bd796 Merge "Prevent caching unexpected IME shown state for legacy split" into rvc-qpr-dev 2021-03-24 02:36:17 +00:00
TreeHugger Robot
8fab4c9222 Merge "Make sure to hide IME adjust dims when exiting split mode" into rvc-qpr-dev 2021-03-24 02:36:12 +00:00
Jing Ji
ab365df981 Merge "DO NOT MERGE: Don't take the AM lock in cached app compaction handler" into rvc-qpr-dev 2021-03-23 05:36:22 +00:00
TreeHugger Robot
9dce064283 Merge "Return copy of pending token list" into rvc-qpr-dev 2021-03-22 23:54:39 +00:00
Patrick Baumann
13c433a651 Merge changes I5d66c2b2,Ic11952e0 into rvc-qpr-dev
* changes:
  RESTRICT AUTOMERGE Handling removing <original-package> tag
  RESTRICT AUTOMERGE Revert "Handling removing <original-package> tag"
2021-03-22 16:54:17 +00:00
TreeHugger Robot
9941d8e007 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-22 14:03:49 +00:00
Bill Yi
291dfebc52 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6003ab9c212695a31695991f30a7e8dd2716930e
2021-03-22 09:47:26 +00:00
tim peng
a6b0836e95 Merge "[Fix] Bluetooth device ordering" into rvc-qpr-dev 2021-03-22 03:22:04 +00:00
Jing Ji
75a4e3f38c DO NOT MERGE: Don't take the AM lock in cached app compaction handler
A single oomAdjUpdate pass could trigger quite a few app compactions,
each of them would need to acquire the AM lock during the handling,
results in lock contentions. Now use its own lock. Also skip the
scheduling if the given app is pending with compaction already.

Bug: 163297662
Test: atest CachedAppOptimizerTest
Test: Manual - Boot & check the logs
Change-Id: I4618a3ae78838cd9783a431e7364130270ebb4d6
2021-03-19 22:32:10 -07:00
Youngjun Kwak
7dc8ba8c37 Merge "DO NOT MERGE Remove superfluous resetting of Keyguard on unocclusion." into rvc-qpr-dev 2021-03-20 01:41:25 +00:00
Patrick Baumann
552bf38f66 RESTRICT AUTOMERGE Handling removing <original-package> tag
This reverts commit I7b9d3c786d653a9b00a553e89d7390bcef45c0f2.

Fixes: 169414761
Test: Manual
Test: Add package A
Test: Verify package A exists
Test: Remove A, add package B w/ original-package A
Test: Verify package A exists, but codepath is to package B
Test: Replace package B w/o original-package A
Test: Verify package A removed and package B added
This reverts commit dd13be00dc5654e98ddcb206dc15fc4e07829526.

Change-Id: I5d66c2b2649bd4d19b5318ea6bbcd31cb6d405fc
2021-03-19 23:20:11 +00:00
Patrick Baumann
92c80af471 RESTRICT AUTOMERGE Revert "Handling removing <original-package> tag"
This reverts commit 27c28b9428.

Change-Id: Ic11952e0ebc913ee453aa47e559b0fd0232816db
Bug: 169414761
2021-03-19 05:20:39 +00:00
TreeHugger Robot
1c9ac73a78 Merge "TelephonyRegistry: Pass featureId to LocationAccessPolicy" into rvc-qpr-dev 2021-03-19 04:16:53 +00:00
TreeHugger Robot
2b534bde0e Merge "Fix an NPE in BatteryService" into rvc-qpr-dev 2021-03-18 20:10:12 +00:00
Gavin Corkery
5a2b08a5f9 Merge "Add immutability flag to PendingIntents" into rvc-qpr-dev 2021-03-18 09:29:37 +00:00
Jerry Chang
73c06b9218 Prevent caching unexpected IME shown state for legacy split
Due to DisplayImeController listens to insetsChanged and display
rotation at all time, it might caching unexpected IME shown state in
DividerImeController. Since RemoteInsetsControllerTarget only
controlling insets during split mode, it won't receive hideInsets event
when the target app request to hide IME. Thus leaving unexpected IME
state in split component. When the next time entering split screen,
it'll adjust split layout with wrong IME state.

Update to not caching IME shown state in DividerImeController if the
split is not activated.

Bug: 176846448
Test: atest WMShellUnitTests
Test: open IME and rotate and dock two apps in split mode, observed
the divider bar is interactable and there's no dim layer on the
secondary split

Merged-In: I2f63eebb208b8c987a0a05615ddef4f6feef10d6
Change-Id: I2f63eebb208b8c987a0a05615ddef4f6feef10d6
2021-03-18 14:49:35 +08:00
Alex Stetson
04cdf3a7d4 DO NOT MERGE Inflate NotificationPanel on instantiation
If the NotificationPanel is not inflated, the proper listeners are not
setup and certain behavior will be broken until the panel is opened for
the first time.

Bug: 182531816
Test: manual
Change-Id: If55156b963c0a83ff644524dea0106708f1635cc
2021-03-17 09:26:13 -07:00