Commit Graph

640958 Commits

Author SHA1 Message Date
TreeHugger Robot
d0e35be714 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-04-19 18:11:05 +00:00
TreeHugger Robot
d9cdcb2260 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-04-19 18:10:15 +00:00
Dmitri Plotnikov
d215e29f75 Merge "Use BatteryStats instead of BatteryStatsImpl in BatteryUsageStatsProvider" into sc-dev 2021-04-19 18:09:31 +00:00
TreeHugger Robot
410e46c277 Merge "Fix ConnectivityController running job counting." into sc-dev 2021-04-19 18:09:02 +00:00
Soonil Nagarkar
dfbcf92cc8 Relax getCurrentLocation() age constraints
Allow returning of locations up to 30s old.

Bug: 185801329
Test: presubmits
Change-Id: I5cf67b154daab3b5727ce2c588ac80fb5b997e38
2021-04-19 11:03:00 -07:00
Sahana Rao
574076a59c Add more javadoc for requestRawExternalStorageAccess
Bug: 183938109
Test: N.A.

Merged-In: I6d805a842874971fbf88fcbecc5661afb176d6ca
Change-Id: I6d805a842874971fbf88fcbecc5661afb176d6ca
2021-04-19 17:53:13 +00:00
Lucas Dupin
2f274cd9dc Merge "[RTL] "Pair New device" overlap on + icon for ar, fa, iw and ur languages" into sc-dev 2021-04-19 17:49:45 +00:00
Jack Yu
b7d886709b Merge "Disallow data when QNS switched the preference" into sc-dev 2021-04-19 17:39:22 +00:00
TreeHugger Robot
38e67609c4 Merge "Increase max # per-UID callbacks to 125." into sc-dev 2021-04-19 17:36:36 +00:00
Hui Yu
36429f87de Allow FGS started from MediaButtonReceiver to have while-in-use
permissions.

1. Create a generic FgsTempAllowList class, mFgsStartTempAllowList and
 mFgsWhileInUseTempAllowList are instantiated from FgsTempAllowList.
2. For mFgsWhileInUseTempAllowList, 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.
3. When media button is pressed, the targetUid is added to
mFgsWhileInUseTempAllowList, for the duration of 10 seconds, this way the
targetUid can start FGS from background and have while-in-use permission.
4. 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, 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
has "allowWhileInUsePermissionInFgs=true" and "isForeground=true".

Change-Id: Ic80aefe4202fe2210881bb8eea24b6e34cb1e7d0
2021-04-19 10:34:28 -07:00
TreeHugger Robot
a6950d1f01 Merge "Register side swipes on the QS with the FalsingManager." into sc-dev 2021-04-19 17:33:39 +00:00
Jack Yu
50a8fccec7 Disallow data when QNS switched the preference
When the preference has switched to another transport, do
not allow data setup. This avoid the case that data service
keeps asking telephony to retry while QNS already switched
the preference to another transport.

Test: Manual
Fix: 182899920
Fix: 175399007
Change-Id: I1a0c86a978756d5b05851d939e011010f8f1afc2
2021-04-19 17:25:11 +00:00
Jeff Sharkey
95b4e6a7f5 Merge "Add missing Bluetooth API permission enforcement." into sc-dev 2021-04-19 17:23:20 +00:00
Steven Moreland
12d2d7fd9c Merge "reflect libbinder->libpermission: appops" 2021-04-19 17:20:21 +00:00
TreeHugger Robot
20ea7bab39 Merge "[ANAPIC Review] Change the type of List by ANAPIC review" into sc-dev 2021-04-19 17:19:50 +00:00
TreeHugger Robot
df8de5061e Merge "Allow HotwordDetectionService to obtain ContentCaptureManager." into sc-dev 2021-04-19 17:15:50 +00:00
TreeHugger Robot
f493164d91 Merge "Ensure the no calling icon is not ignored" into sc-dev 2021-04-19 17:15:11 +00:00
jorgegil@google.com
a50e0e791d Add tests for PIP exclusion bounds updates
Bug: 176302696
Test: atest PipTaskOrganizerTest && atest PipBoundsStateTest
Change-Id: I7de14865cc944d35452dedc054ad917afd2ecb18
2021-04-19 10:11:17 -07:00
Dan Saadati
bc776cb98a Merge "Update AppSearchManager to clarify features" into sc-dev 2021-04-19 17:05:06 +00:00
Yan Yan
3022c5437c Merge "Use #setNetwork and #getNetwork for IkeSessionParams" 2021-04-19 17:04:25 +00:00
TreeHugger Robot
0540a18e26 Merge "Add permission check for TvPipNotification" into sc-dev 2021-04-19 16:55:21 +00:00
Aurimas Liutikas
6dd6c5a603 Merge "Cleanup nativeHeapZeroInit and memtagMode implementation." 2021-04-19 16:52:58 +00:00
lucaslin
7562843d60 Remove the usage of hidden API
- Connectivity related files will be inside mainline module, so
the external callers cannot call its hidden API. Remove the usage
of hidden API or replace it with public API.

Bug: 182859030
Test: atest FrameworksMockingServicesTests:ConnectivityControllerTest
Change-Id: I36e732b7e44aeb7e7716ef2c948b92770d458529
2021-04-20 00:51:19 +08:00
TreeHugger Robot
efede1755e Merge "Suppress AutoBoxing issue for hasRequestRawExternalStorageAccess" into sc-dev 2021-04-19 16:50:35 +00:00
Chloris Kuo
99d60e82ba NAS Settings onboarding notification
1) disable notification for user set to none
2) send notification to primary user only

Test: atest NotificationAssistantsTest, NotificationManagerServiceTest
Bug: 185623118

Change-Id: Iada56e2f2ee10eaaad9a03d5e436de883e8f3e28
2021-04-19 09:44:56 -07:00
Aaron Huang
796136281f Merge "Rename getAllNetworkStateSnapshot which should be pluralized" into sc-dev 2021-04-19 16:42:58 +00:00
Chavi Weingarten
8570e52d00 Merge "Updated DisplayHash APIs" into sc-dev 2021-04-19 16:30:45 +00:00
Bill Yi
365d1f1320 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: a118e94cc6 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Id2072e4169ca4a5016b6fbef32e19bcb81d4563b
2021-04-19 16:29:52 +00:00
Hall Liu
1178834365 Merge "Use new bcast permission filter in telephonyregistry" into sc-dev 2021-04-19 16:24:19 +00:00
Winson Chung
af760cfc40 Alternative workaround for using private attribute
- SysUI studio has trouble referencing this private attribute
  directly, so move the resolving of the color to the code
  instead

Bug: 152086714
Test: Studio builds, numpad colors still reflect the
      colorSurface color when changing dark/light &
      wallpapers
Change-Id: I9a96c89010c41eaf6d14d5e1cfe86777cc30c8be
2021-04-19 09:22:08 -07:00
Sally Yuen
afbb23d1d3 Merge "Add UiAutomation shell permission tests to Shell presubmit tests" 2021-04-19 16:14:01 +00:00
Tiger Huang
88ae86be6b Clear controls in the temp list after using them
The list would be cleared while next time we use them, so it could
constantly occupy the memory. This CL clears the temp list right after
we use the controls. So it won't occupy the memory while they are not
being used.

This CL also sends a new list to the app when dispatching the insets
animation progress. In this way, we don't need to clear mTmpRunningAnims
after dispatching it. Also, the app might use the animation list AFTER
the 'onProgress' callback. This change can make the list stay the same.

Fix: 183684434
Test: Use Android Memory Profiler to check if there is
      InsetsAnimationControlImpl or WindowInsetsAnimation instances
      after GCing after playing insets animation in Launcher.
Change-Id: I781233abb2c9c8400c6f76b537bef161745e67f7
2021-04-20 00:13:55 +08:00
TreeHugger Robot
f34b066b9e [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 5d4a124c24 -s ours am: 75e671c77c -s ours
am skip reason: subject contains skip directive

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

Change-Id: I73ef845ae62676ea8703d8bd7cef754b016a7053
2021-04-19 16:02:37 +00:00
TreeHugger Robot
fd87827bc8 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: e0b7f6bcc6 -s ours am: dfd24298c1 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ifda82b236ea993a9cdd5b5acf654e488879b3a63
2021-04-19 16:01:38 +00:00
Alex Johnston
46553039ee Replace binder uid and context permission methods dpms
- Replace binderGetCallingUid with caller identity getUid
- Use hasCallingPermission and variants
- Use precondition checks

Bug: 167960209
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest
      atest com.android.cts.devicepolicy.ProfileOwnerTest
      atest com.android.cts.devicepolicy.ManagedProfileTest
Change-Id: I96ae4c46ad7d7bd40428109fc199c7c804232cc8
2021-04-19 16:57:50 +01:00
Sergey Volnov
818ace5fe7 Add a comment mentioning that errors might be unbundled, to improve
backwards compatibility story.

Bug: 183427999
Test: N/A, comment change.
Change-Id: I1f583fe31c9edccada510f9a0ab2e333cc62df08
2021-04-19 16:57:10 +01:00
Neil Fuller
c277d49287 Merge "Add server flag for the lower bound" into sc-dev 2021-04-19 15:56:26 +00:00
TreeHugger Robot
0e47206b0a Merge "Use the existing wallpaper command API to send wake/sleep events to the wallpaper." into sc-dev 2021-04-19 15:50:33 +00:00
Jay Aliomer
73d2150d15 Image inline reply
Fixes: b/185377047
Test: manual
Change-Id: I394f1485f95fe36b739e0d377c6a552f0621347b
2021-04-19 15:42:26 +00:00
Bill Yi
0e1e52b6cc Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I50e6222bfa764d5dcc340d76d6d21be0a4597bd6
2021-04-19 15:42:13 +00:00
TreeHugger Robot
0f6a128108 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-04-19 15:42:07 +00:00
Tiger Huang
44a65980e1 Refine isLightBarAllowed
The light bar is only allowed if the color-controlling window has
intersection with the system bar.

The app window frame doesn't need to 'contains' the frame of the bar,
because:
1. In split-screen mode, the app window only intersects a part of status
   bar.
2. When navigation bar is at the same side of a display cutout,
   navigation bar would be thicker than the cutout. The app window which
   fits the cutout can only intersect with a part of navigation bar.

Fix: 183696228
Test: atest LetterboxTest LightBarTests DisplayPolicyTests
Change-Id: If17a2050b22e674bb760d6c98305ee69067b11fe
2021-04-19 23:36:55 +08:00
TreeHugger Robot
75e671c77c [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 5d4a124c24 -s ours
am skip reason: subject contains skip directive

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

Change-Id: If5d03747df55d187721ad67fca9562293aeaedb9
2021-04-19 15:34:11 +00:00
TreeHugger Robot
dfd24298c1 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: e0b7f6bcc6 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Id695ec2deb2b6cb12b3856bbb30ec71d6f42004f
2021-04-19 15:33:18 +00:00
Riddle Hsu
c5f95fb5a5 Update config from ancestor if it can handle orientation request
When calling Activity#setRequestedOrientation, the orientation of task
may not be updated yet. If the requested orientation are mismatched,
the configuration could be letterboxed (unresizable activity) according
to the intermediate state. And because WindowProcessController may be a
configuration listener of the activity, the app may receive unexpected
configuration and keep calling setRequestedOrientation to cause a
relaunch loop.

Now the direct onConfigurationChanged from setOrientation is only
called when:
 - In multi window mode: if the activity is unresizable, its requested
   orientation should be still respected to compute letterboxed bounds
   if needed. Otherwise the orientation is ignored for resizable.
 - The ancestor ignores orientation request from descendant, e.g. in a
   fixed orientation display.

This should save an extra onConfigurationChanged for the most common
case in fullscreen windowing mode.

Fixes: 169349616
Test: atest WindowContainerTests#testSetOrientation

Change-Id: I49ba2003699422a491c1183b10a691e25867ffa7
2021-04-19 23:32:04 +08:00
Gyumin Sim
3586e3e0d4 Fix ParcelableListBinder to send empty list
Bug: 185058759
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest
Change-Id: I9a846472d74be52e186d9e7bd5def7edbc50ad56
2021-04-20 00:27:59 +09:00
Dave Mankoff
0b613298f6 Register side swipes on the QS with the FalsingManager.
Fixes: 184843242
Test: manual && atest SystemUITests
Change-Id: I6141996e1fdb385d2578a4e56eb1df7e7b5bd6bc
2021-04-19 11:25:41 -04:00
TreeHugger Robot
5d4a124c24 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-04-19 15:25:24 +00:00
TreeHugger Robot
1628ab397e Merge "Make LocationProvider exemption SystemApi" into sc-dev 2021-04-19 15:22:11 +00:00
Bill Yi
1a33b3891f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia4af106b55b138e6888979ab1b5adf37910b6f48
2021-04-19 15:21:22 +00:00