Commit Graph

643173 Commits

Author SHA1 Message Date
Jing Ji
827ebe7f15 Fix NullPointerException in ActiveServices
The ProcessRecord field of a ServiceRecord could be null.

Bug: 190634592
Test: atest CtsAppTestCases:ServiceTest
Change-Id: I63abf5be600991a94e6ad4eb26786450cea1e242
2021-06-09 16:47:50 -07:00
Anton Hansson
ad82033c4a Merge "Make ApiLint's new_since arg the merged txt file" into sc-dev 2021-06-05 08:10:12 +00:00
Lyn Han
8b6cc5fd2e Merge "Do not expand quick settings when shade first opens" into sc-dev 2021-06-05 04:55:52 +00:00
Hui Yu
4ba381fd83 Merge "resetFgsRestrictionLocked() must be called AFTER logFGSStateChangeLocked()." into sc-dev 2021-06-05 02:46:25 +00:00
Charles Chen
de90ce294c Merge "Revert "Don't request PIN field focus again unless re-enabled"" into sc-dev 2021-06-05 01:48:54 +00:00
Ilya Matyukhin
6b5853f94a Merge "Remove unnecessary arguments from disableHbm" into sc-dev 2021-06-05 00:43:01 +00:00
Hui Yu
a6c9fe409c resetFgsRestrictionLocked() must be called AFTER
logFGSStateChangeLocked().

Otherwise logFGSStateChangeLocked() picks up the wrong fields value from
ServiceRecord.

Bug: 190231954
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: I9ccfcb695da803350657836975ce03e05f26b4a4
2021-06-04 16:53:31 -07:00
Lyn Han
4d351c5089 Merge "Use small corner radius for roundness updates from shelf" into sc-dev 2021-06-04 23:35:41 +00:00
Nate Myren
57b72445ad Merge "Remove invalid source tags in AppOpsPolicy" into sc-dev 2021-06-04 22:49:43 +00:00
Jing Ji
6d3b5033d7 Merge "Fix potential overflow with casting long to int in AppExitInfoTracker" into sc-dev 2021-06-04 22:49:41 +00:00
Sally Yuen
00d32f2d61 Merge "Add AccessibilityManager#removeClient" into sc-dev 2021-06-04 22:33:10 +00:00
Jeff Sharkey
c206d63edc Merge "Emit "usesPermissionFlags" in "dump badging"." into sc-dev 2021-06-04 22:06:55 +00:00
Jing Ji
a57d682aaf Merge "Fix a race condition in acquiring content provider" into sc-dev 2021-06-04 22:06:42 +00:00
Jeff Sharkey
0b4b1ccbdb Merge "Don't export HeapDumpProvider." into sc-dev 2021-06-04 22:06:23 +00:00
Kevin Chyn
5eaac85506 Merge "Update default progress bar size" into sc-dev 2021-06-04 22:02:28 +00:00
Anton Hansson
4f90aa5148 Make ApiLint's new_since arg the merged txt file
ApiLint tries to only lint "new" APIs, i.e. those introduced since the
last frozen API. Using android-non-updatable's last frozen txt does not
work well for this, as it is incomplete API surface on its own, so
metalava cannot see all APIs that were present in the previous API
(such as methods inherited from ART), and so makes the wrong decisions
for which APIs are new.

Bug: 171506470
Test: m checkapi
Change-Id: I00d25f2ae0ba8f0ee6fa8564d86642efd74e0d44
2021-06-04 22:23:59 +01:00
Nate Myren
c38dc5456c Remove invalid source tags in AppOpsPolicy
Ensure that, if present, null, "null", and "" attribution tags are not
considered valid source tags

Test: build
Bug: 189484870
Change-Id: I65601c9bb79399bf0f63fbb540090ed3ed6f8337
2021-06-04 14:03:39 -07:00
Lee Shombert
6b5bbd62f9 Merge "A space-efficient 2D matrix" into sc-dev 2021-06-04 20:58:22 +00:00
Jing Ji
acf1398086 Fix potential overflow with casting long to int in AppExitInfoTracker
It'll result in unexpected behavior during sorting.

Also updated the test case to capture this case.

Bug: 186132521
Bug: 189975360
Test: atest ApplicationExitInfoTest
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest
Change-Id: I7542f73b1acf4ddee16f712d0d97223e151935f7
2021-06-04 13:46:37 -07:00
James O'Leary
0e8f141f4a Merge changes Ifc451f54,Ifefd3e56 into sc-dev
* changes:
  Cache set wallpaper as PNG instead of JPEG
  Only rescale wallpaper if its > display height
2021-06-04 20:44:14 +00:00
Ilya Matyukhin
8dc49b532d Remove unnecessary arguments from disableHbm
Bug: 187081118
Test: UdfpsControllerTest
Change-Id: I0b9b333ecdacb36fcfa30242e6781d04b11f6850
2021-06-04 13:38:59 -07:00
Sally
4a41eca71b Add AccessibilityManager#removeClient
Whenever an app makes a Text toast, this gets routed through systemUI
starting from R. Two A11yManagerClients are registered with
A11yManagerService for every toast. Since clients aren't removed until
the process is killed, there are a bunch of clients from systemui
hanging around and potentially cause the system to crash.

We add a way here to explicitly unregister a client

Test: build and flash,
atest android.view.accessibility.AccessibilityManagerTest
Bug: 189010828

Change-Id: I3f71bac475b4539c7be5b328adeb0be35a0b5543
2021-06-04 20:28:26 +00:00
Selim Cinek
6b5d83475b Merge "Removed logic that sized the view before the shelf" into sc-dev 2021-06-04 20:04:04 +00:00
Kevin Chyn
2e813eb8a9 Update default progress bar size
Bug: 187460696
Test: manual
Change-Id: If9b04db98648574ccbad712ce1385c975b62df56
2021-06-04 12:47:05 -07:00
Winson Chiu
1e372e6744 Merge "Only add parent profile resolution if strictly greater" into sc-dev 2021-06-04 19:41:19 +00:00
Mady Mellor
73eb2771f8 Merge changes I5c096c2b,If0d0d86b into sc-dev
* changes:
  PIP dismiss updates
  Bubble dismiss updates
2021-06-04 19:29:15 +00:00
Lyn Han
7c9f13310d Do not expand quick settings when shade first opens
Fixes: 187200208
Test: manual
Change-Id: Id5aee36cc8c3c650b007810b752b1fe0955fd263
2021-06-04 14:17:15 -05:00
George Mount
e0fa7da5aa Merge "Fix ListView not moving during catch" into sc-dev 2021-06-04 18:16:13 +00:00
Lee Shombert
9af47e2bac A space-efficient 2D matrix
Bug: Bug: 188447813

Convert WatchedSparseBooleanMatrix to use one bit per boolean, to
further reduce the storage required for large arrays.

Further unit-tests are developed to test the Watchable and Snappable
behaviors of the matrix class.

Test: atest
 * CtsContentTestCases:IntentFilterTest
 * CtsDynamicMimeHostTestCases
 * CtsRoleTestCases
 * FrameworksServicesTests:UserSystemPackageInstallerTest
 * FrameworksServicesTests:PackageManagerSettingsTests
 * FrameworksServicesTests:PackageManagerServiceTest
 * FrameworksServicesTests:AppsFilterTest
 * FrameworksServicesTests:PackageInstallerSessionTest
 * FrameworksServicesTests:ScanTests
 * UserLifecycleTests#startUser
 * UserLifecycleTests#stopUser
 * UserLifecycleTests#switchUser
 * FrameworksServicesTests:WatcherTest
 * android.appsecurity.cts.EphemeralTest
 * android.appsecurity.cts.InstantAppUserTest

Change-Id: I5e9ada0ad3057efeafa4cf4fcf4b371850ea344a
2021-06-04 11:08:06 -07:00
Lyn Han
26d13fecf2 Use small corner radius for roundness updates from shelf
Fixes: 187548302
Test: scroll, swipe, dismiss notifications in shade/lockscreen
      => no sharp corners
Change-Id: I166e65e995b4f8fbc5fcc66710942047ce23f03d
2021-06-04 17:51:22 +00:00
Matt Pietal
1746c1e330 Merge "Default to the new lockscreen layout for AOSP" into sc-dev 2021-06-04 17:18:32 +00:00
Mark Renouf
1472259f79 Merge "Ignore ScrollCaptureFrameworkSmokeTest until bug fixed" into sc-dev 2021-06-04 17:08:34 +00:00
Cecilia Hong
cb3cf0b9b6 Merge "Recreate the media recommendation card after the Display setting is changed." into sc-dev 2021-06-04 16:45:34 +00:00
Nate Myren
1428a68f00 Merge "TEMP add app ops debug logs" into sc-dev 2021-06-04 16:41:03 +00:00
Grace Jia
b150ae9b2a Merge "Add error log of addConnetionService in RemoteConnectionManager." into sc-dev 2021-06-04 16:36:21 +00:00
Matt Casey
8675d85d76 Ignore ScrollCaptureFrameworkSmokeTest until bug fixed
Bug: 189958075
Test: presubmit
Change-Id: I63125756c1fbcdc46d4efd3aa1933b37eb3c4904
2021-06-04 12:11:17 -04:00
Flavio Fiszman
fa2a032dd8 Merge "Hide demoted conversations from People service" into sc-dev 2021-06-04 15:48:26 +00:00
Sarah Chin
327f915971 Merge "Add function to get APN types as ints from bitmask" into sc-dev 2021-06-04 15:39:14 +00:00
Matt Casey
35d25d11c4 Merge "Fixes for scrolling screenshot tests." into sc-dev 2021-06-04 15:33:58 +00:00
Nataniel Borges
9ac4eb345a Merge "Promote stable flicker tests (rotation)" into sc-dev 2021-06-04 15:32:49 +00:00
Charles Chen
105f6dddf1 Revert "Don't request PIN field focus again unless re-enabled"
This reverts commit 3ce118c58c.

Reason for revert: The culprit candicate CL of b/190128793. Not that this revert is just to verify if it is the real culprit of b/190128793. Doesn't mean it must be reverted
Bug: b/190128793

Change-Id: Ibd580df35590ecf0c75f6004db900b9d4aafb03a
2021-06-04 15:07:00 +00:00
cecilia
ca8abecb3b Recreate the media recommendation card after the Display setting is
changed.

Keep a SmartspaceMediaData copy in MediaPlayerData for the recreation.

Fixes: 189500920
Test: Local builds

Change-Id: If0b88e28a3a2b5a062a1cef15a3166dda30aada9
2021-06-04 15:04:19 +00:00
Nataniel Borges
488a0a3b8d Merge "Promote stable flicker tests (app close)" into sc-dev 2021-06-04 14:45:12 +00:00
Matt Pietal
c74d868bf8 Default to the new lockscreen layout for AOSP
The old layout has issues with spacing and the new large clock, and is
in the process of being removed.

Fixes: 189909942
Test: manual
Change-Id: I2c2da5184330c0fa4e2f5ea81f7d93518f172b2d
2021-06-04 10:35:57 -04:00
Nataniel Borges
f420024bf5 Promote stable flicker tests (rotation)
The tests have been stable since last weeks when the underlying bugs were closed.

Bug: 185401242
Bug: 185400889
Test: atest FlickerTests:com.android.server.wm.flicker.rotation
Change-Id: I4aa13016f214f99bcff5adcd98e71096eacada2d
2021-06-04 16:04:56 +02:00
Caitlin Cassidy
d4c8951618 Merge "[Device Controls] Handle taps correctly when the tile is in an inactive state." into sc-dev 2021-06-04 13:54:08 +00:00
Flavio Fiszman
d9d1e8e6d6 Hide demoted conversations from People service
Change-Id: I8b2c3810aeca388a6fa7235f853458ef1fd474b6
Test: DataManagerTest
Bug: 181929846
2021-06-04 14:47:20 +01:00
Nataniel Borges
b94ab5c28f Promote stable flicker tests (app close)
The tests have been stable since last weeks when the underlying bugs were closed.

Bug: 185401242
Bug: 185400889
Test: atest FlickerTests:com.android.server.wm.flicker
Change-Id: I6c99e84f0da01c122d8ff6a28eebbdb9bcc6582a
2021-06-04 15:23:54 +02:00
Selim Cinek
2d792d0af9 Merge "Scaling back the wallpaper + blurring when dragging down on LS" into sc-dev 2021-06-04 13:16:43 +00:00
Jorim Jaggi
eb24079b9e Merge "Ensure reportFrameMetrics not being called on deleted instance" into sc-dev 2021-06-04 13:04:52 +00:00