Commit Graph

644571 Commits

Author SHA1 Message Date
Matt Casey
184c61395e Merge "Fix mPositionInWindow to not use global coords" into sc-dev 2021-06-22 12:44:33 +00:00
Nikita Ioffe
4db95cceb9 Merge "allocateSpaceForUpdate: clear calling identity before calling into apexd." into sc-dev 2021-06-22 11:55:55 +00:00
Santos Cordon
410dd5be58 Merge "High Brightness Mode (HBM) Refresh Rate Limiting." into sc-dev 2021-06-22 11:23:02 +00:00
Wei Sheng Shih
a1b3ce5250 Merge "Ignore exit animation when view is detached from window." into sc-dev 2021-06-22 11:02:59 +00:00
Adrian Roos
e53e6f5c10 Merge "Insets Animations: Always dispatch onEnd when cancelled" into sc-dev 2021-06-22 10:29:08 +00:00
TreeHugger Robot
2adcf7686d Merge "Fix SysUI NPE crash during the boot/init progress" into sc-dev 2021-06-22 07:27:24 +00:00
Arc Wang
51e147b260 Merge "Shows ripple effect for SettingsSpinnerPreference" into sc-dev 2021-06-22 07:08:48 +00:00
TreeHugger Robot
f84bf1fd07 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-06-22 06:37:46 +00:00
Bill Yi
57869d4fb7 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 863584aa7c -s ours
am skip reason: subject contains skip directive

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

Change-Id: I9da82f4471ed98efc441f9e5cffdd784e287add8
2021-06-22 06:30:05 +00:00
Bill Yi
79eeb6aecc [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 3e00c3c26e -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iee33d2aed42d92781056876a88da74a426616a64
2021-06-22 06:29:40 +00:00
Jackal Guo
cc057784c1 Merge "Remove unused interface and implementation" into sc-dev 2021-06-22 04:58:58 +00:00
Bill Lin
c4bdf37af2 Fix SysUI NPE crash during the boot/init progress
When Device boot and SystemUI servies starting, settings provider
may callback onChange() when OneHandedController register observer.
If the callback timing earlier han mEventCallback registered by
WMShll#initOneHanded, then the NPE will happen.

The simple fix is to add NPE check in
OneHandedController#notifyExpandNotifcation()
we can just ignore the callback during init time since the singal
is to expand notification and come from shorcut after user enable
and tap shortcut.(No need to act for the signal during boot progress.)

Test: manual reboot device and observe
Test: atest WMShellUnitTests
Bug: 191600033
Change-Id: I73849afa9904031759da304298221dbb222aeaaa
2021-06-22 11:50:46 +08:00
Bill Yi
7387998e46 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7821aa8c4f0dfa0024a401e8cda0350866350425
2021-06-22 03:33:21 +00:00
TreeHugger Robot
236f268650 Merge "canScheduleExactAlarms returns true for older apps" into sc-dev 2021-06-22 03:32:23 +00:00
Arthur Hung
4c74c4e33f Merge "Update transform hint from relayout window (1/2)" into sc-dev 2021-06-22 03:27:26 +00:00
Bill Yi
3e00c3c26e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia4e3717ca81c2d0b046fb33ee8d227f5e3a48fc6
2021-06-22 03:08:12 +00:00
James O'Leary
c20c2fe88b Merge "Fix XML serialization of WallpaperColors" into sc-dev 2021-06-22 02:48:57 +00:00
James O'Leary
6aad992ea5 Merge "Update serialization of WallpaperColors" into sc-dev 2021-06-22 02:48:57 +00:00
Bill Yi
863584aa7c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1b77491026bd788ad8e6c69bac3d158d3a51eeda
2021-06-22 02:33:31 +00:00
Joshua Mccloskey
0a2ae5bb54 Merge "Add NPE check to FpDetectClient" into sc-dev 2021-06-22 02:30:30 +00:00
Suprabh Shukla
a7807022fe canScheduleExactAlarms returns true for older apps
Callers that don't target S can schedule exact alarms so should get a
return value of true when they call canScheduleExactAlarm.

Test: atest FrameworksMockingServicesTests:AlarmManagerServiceTest

Bug: 191328951
Change-Id: I1cd1d0fb3d3d922360494552e653ed540bfe5227
2021-06-21 18:09:35 -07:00
Louis Chang
d6be50957e Merge "Avoid locking profile task when it is already lock" into sc-dev 2021-06-22 00:57:58 +00:00
TreeHugger Robot
c9d806644a Merge "Update Mobile Data State on subscription changes." into sc-dev 2021-06-22 00:55:20 +00:00
Lee Shombert
a7ff24bf6b Merge "Validate Computer functions" into sc-dev 2021-06-22 00:11:11 +00:00
Jieru Shi
b247011e66 Merge "Media impression logging bug fix" into sc-dev 2021-06-21 23:30:19 +00:00
TreeHugger Robot
e4724a8e8f Merge "Added a hidden modelState to indicate model was deleted from device but available still." into sc-dev 2021-06-21 23:19:26 +00:00
TreeHugger Robot
890daeb051 Merge "Do not canonicalize overlay config test paths" into sc-dev 2021-06-21 23:07:21 +00:00
Lee Shombert
c1ad465c8a Merge "Modify PropertyInvalidatedCache" into sc-dev 2021-06-21 23:03:18 +00:00
Lorenzo Colitti
46b8e08243 Merge "Remove most of the NetworkStack dependencies on frameworks/base." into sc-dev 2021-06-21 23:01:06 +00:00
Lee Shombert
80010e6d92 Validate Computer functions
Bug: 186654390

Add a validation function to perform some basic checks on the
structure of functions that are part of the Computer interface. The
checks are:

1. Every function in Computer must have an @Live annotation.  The
   annotation indicates if the function is locked or not.

2. If function is locked then there must be an override in
   ComputerLocked.

3. If the function is not locked then there may not be an override in
  ComputerLocked.

4. Every function in ComputerLocked must be an override of a function
   declared in Computer.

Test: atest
 * PackageManagerServiceTests#testComputerStructure

The test is run once on the candidate image - no failures  are
reported.  The test is then run on modified builds, exercising the
following five cases, to verify that errors are properly detected.

Manual testing with the following three cases:

1. A function in Computer that does not have an @LiveImplementation
   annotation.

2. A function in Computer that has an invalid
   LiveImplementation.override annotation.

3. A locked function that is not overridden in ComputerLocked.

4. A not-locked function that is is overridden in ComputerLocked.

5. A function that is defined for the first time in ComputerLocked.

Change-Id: Ic34aac67fe40aa4fec2d343fe4babdf1c565ce85
2021-06-21 21:55:29 +00:00
TreeHugger Robot
6a6b9effdf Merge "Fix LegacyGlobalActions broadcast receiver" into sc-dev 2021-06-21 21:48:56 +00:00
TreeHugger Robot
6c10325d9c Merge "Disable scrolling behavior for collapsing toolbar" into sc-dev 2021-06-21 21:18:18 +00:00
James O'Leary
3a00015faa Fix XML serialization of WallpaperColors
WallpaperColors is serialized to disk for use the next time the device
boots. WallpaperColors wasn't serializing the quantizer results, just
the 3 "main" colors, so it was unable to identify more than a few
colors, using the AOSP algorithm.

Bug: 186203148
Test: Reboot device without patch, verify only a couple colors are
available, or none if the AOSP algorithm for selecting main colors
differed sufficiently. Verify that with patch, rebooting the device
shows the same color options in the same order as it did at runtime.
Change-Id: I881a2cfe5b7dda5b7734ce3fda7275dc5544ce0c
2021-06-21 16:58:41 -04:00
Lee Shombert
659dcc86a3 Modify PropertyInvalidatedCache
Bug: 186778818

This makes two changes to PropertyInvalidatedCache.

1. disableLocal() now disables all current and future caches that use
   the same name (not the necessarily the same property) , in the
   local process.  Previously, disableLocal() only disabled a single
   cache instance, but the intent was always to disable all instances
   of the same cache in the process.

   disableInstance() is available with the old behavior.

2. A bypass() method has been added.  If bypass() returns true,
   query() will skip the cache and go straight to the binder call as
   though the cache had been disabled.  The default implementation
   always returns false.  Caches can override the implementation to
   avoid caching selected queries.

These changes specifically address the problem of caches that are
created dynamically and which should be disabled in the local
process.

A unit-test is added for PropertyInvalidatedCache.  This is not a
complete test because test processes are not allowed to set system
properties.  The unit-test will be improved in the future by modifying
PropertyInvalidatedCache to use an invalidation mechanism other than
system properties.

Manual test: boot a phone with a baseline build and with the build
under test and verified that the list of disabled caches is the same.
Use 'dumpsys cacheinfo' to get the cache status.

Test: atest
 * FrameworksServicesTests:UserManagerServiceCreateProfileTest

Change-Id: I9f604b872911290e4e3d8a58b3e28e328b2000a9
2021-06-21 13:49:29 -07:00
Joshua Mccloskey
95b8d4bc80 Merge "Added fingerprint_bad_calibration." into sc-dev 2021-06-21 20:41:01 +00:00
Vishnu Nair
ed9701bbc8 Merge "FocusResolver: Clean up focus requests and results when a display is removed" into sc-dev 2021-06-21 20:32:34 +00:00
Adam He
8b25ff8c9f Added a hidden modelState to indicate model was deleted from device but available
still.

Bug: 191518728
Test: atest CtsTranslationTestCases
Change-Id: I16ee0c2514052f9a8d6589646098c043d67a6703
2021-06-21 13:25:20 -07:00
Kweku Adams
aa8f6da7d4 Merge "Allow bucket elevation for timed-out restricted apps." into sc-dev 2021-06-21 20:20:17 +00:00
Dmitri Plotnikov
8b22190dfd Merge "Reduce size of BatteryUsageStats Parcel" into sc-dev 2021-06-21 19:57:08 +00:00
Adrian Roos
29721a1319 Insets Animations: Always dispatch onEnd when cancelled
Previously, we only dispatched onEnd if onStart was already dispatched. However,
some animations might get cancelled after onPrepare but before onStart. In that
case, it is rather tricky for apps to actually cancel the animation.

Now we always dispatch onEnd if onPrepare has been dispatched already.

Fixes: 177983907
Test: atest WindowInsetsAnimationControllerTests
Change-Id: I3fa142110bd5593679f87561c138ed3318034fca
2021-06-21 21:34:51 +02:00
Joshua Mccloskey
1877985759 Add NPE check to FpDetectClient
Test: N/A
Fixes: 187747020
Change-Id: Id16d5037d675487ad913c51a2e04c57f798027f8
2021-06-21 12:31:40 -07:00
TreeHugger Robot
c0af5cac34 Merge "Remove marquee for QQS Tiles" into sc-dev 2021-06-21 19:31:05 +00:00
TreeHugger Robot
ccc5c7c345 Merge "Catch NoSuchElementException when unbinding print doc death recipient" into sc-dev 2021-06-21 18:28:11 +00:00
Makoto Onuki
d97f509923 Merge "Update the javadoc around FGS" into sc-dev 2021-06-21 18:04:37 +00:00
Jieru Shi
594551f419 Media impression logging bug fix
1. Remove redundant LS impressions: Bouncer->LS, Shade LS->LS (User has to visit LS first in order to visit Bouncer and Shade LS)
2. Remove extra impression when user is on second media card, tap to app
or turn off screen (previously there will be an impression logged for
first media card)
3. Fix logging for resumption media card, previously they were not
logged.
4. Fix impression logging for reactivated media card when user connect headphone on
QQS, previously they were not logged
5. Use SmallHash to compute instanceid according to b/190640624
6. Remove media resume card logging when Smartspace data is not
available

Bug: 181364757
Test: manual
Change-Id: I6e2e7bc00ecd3f21fefedb2c47315b1e85e5beeb
2021-06-21 11:04:24 -07:00
Ming-Shin Lu
cae02ff4dc Merge "Calling updateImeParent when the layering target is staled" into sc-dev 2021-06-21 17:41:49 +00:00
Evan Chen
891f3034ea Merge "Fix system crash when unpair app" into sc-dev 2021-06-21 17:02:21 +00:00
TreeHugger Robot
8f21448a7a Merge "Accessibility fix for ShellRoot" into sc-dev 2021-06-21 16:56:38 +00:00
Winson Chung
37f493f566 Merge "Remove display policy references while waiting for window animation to complete" into sc-dev 2021-06-21 16:46:18 +00:00
TreeHugger Robot
aadedc76b6 Merge "Hook WakefulnessLifecycle for best timing of LockedDisabled" into sc-dev 2021-06-21 16:42:36 +00:00