Commit Graph

642404 Commits

Author SHA1 Message Date
TreeHugger Robot
1d4a672528 Merge "Recreate QuickAccessWallet for Wallet Tile and Lockscreen Icon when the default payment app has changed." into sc-dev 2021-05-26 20:50:05 +00:00
Dmitri Plotnikov
16d1188b7d Merge "Fix system service power calculation when measured energy is available" into sc-dev 2021-05-26 20:48:55 +00:00
Makoto Onuki
d55565dcb8 Merge "Remove BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS" into sc-dev 2021-05-26 20:42:38 +00:00
Lucas Dupin
5941f0fb95 Merge "Enable dithering on RippleDrawable" into sc-dev 2021-05-26 20:39:09 +00:00
Tianjie Xu
5262ee15b5 Merge "Add an error code for RoR failure due to no network" into sc-dev 2021-05-26 20:25:56 +00:00
Tianjie
b2485fd62d Add an error code for RoR failure due to no network
This gives us detailed information on whether server based RoR fails
due to no network after reboot. There might be a race condition
when the device gets network (check) after RoR fails in gmscore (use).
But the case should be rare, and it's acceptable for metrics purpose.

Also mock the methods to read timeouts. This helps avoids denail to read
device_config when running test on internal targets.

Bug: 179105110
Bug: 189353915
Test: trigger a server based ror, check error code
Change-Id: If600e8e06d7707da7160fec66d71bc9341327965
Merged-In: If600e8e06d7707da7160fec66d71bc9341327965
(cherry-picked from commit 7c47365059)

Change-Id: I02893c5a5337685736236b2a5082d581c2419a9e
2021-05-26 20:21:44 +00:00
Lucas Dupin
a0ec96f10a Merge "Constant sparkle scale" into sc-dev 2021-05-26 20:17:48 +00:00
TreeHugger Robot
a75009f504 Merge "Run "insane" network jobs when charging + unmetered." into sc-dev 2021-05-26 20:08:08 +00:00
TreeHugger Robot
dfe917dc35 Merge "AOD Media" into sc-dev 2021-05-26 19:53:41 +00:00
TreeHugger Robot
0e09a24432 Merge "Do not show footer when shade is closed" into sc-dev 2021-05-26 19:18:26 +00:00
Silin Huang
3b4f91e9af Recreate QuickAccessWallet for Wallet Tile and Lockscreen Icon when the default payment app has changed.
Also to avoid a wallet client that doesn't have ServiceInfo is living
too long, don't make it final and re-create the wallet client if it has a null service info.

Fix: 187972400
Test: atest
Test: manual, see demo- the default payment app is GPay, check Tile and
Lockscreen Icon, then change the default payment app and check again.
https://drive.google.com/file/d/10-I339VPuxJRGXJT-XmwmnZs4MHaH3gm/view?usp=sharing&resourcekey=0-wDtRXNNr_Tg9ptxk1Tpxsw

Change-Id: Ie9a05795bff447424b299132fa60ae2efb2092be
2021-05-26 12:09:54 -07:00
Lucas Dupin
ca7b693508 Merge "Use new text color attr on widgets" into sc-dev 2021-05-26 18:57:26 +00:00
Matt Casey
379dd20a32 Merge "Add invocation type to PhoneWindowManager's launchAssistAction" into sc-dev 2021-05-26 18:37:42 +00:00
Kweku Adams
093a6dc517 Run "insane" network jobs when charging + unmetered.
When we're charging and on an unmetered network, run jobs that we
calcluate won't complete within the max execution time due to the
network speed, just so they have a chance of running.

Also update documentation to guide to only providing size of
non-interruptible transfers.

Bug: 188429037
Test: Run `m offline-sdk-docs` and check site at out/target/common/docs/offline-sdk/reference/android/app/job/JobInfo.html
Test: atest FrameworksMockingServicesTests:ConnectivityControllerTest
Change-Id: Ic69e85a7e0eae51b3dd3ea89bd00255a734c1472
2021-05-26 11:29:51 -07:00
Winson Chung
bd62d13f49 Merge "Skip recreating the nav bar when locale changes" into sc-dev 2021-05-26 18:16:28 +00:00
Evan Laird
8261dc7483 Merge "Remove corner cutout tracking from HeadsUpStatusBarView" into sc-dev 2021-05-26 18:05:22 +00:00
TreeHugger Robot
bb93c00164 Merge changes I44ba0f9a,I70afa777 into sc-dev
* changes:
  Fix the live caption tooltip, which was sad and broken.
  Clip caption container to outline so the ripple doesn't extend past the circular bounds.
2021-05-26 17:59:52 +00:00
Taran Singh
e81d43c1e1 Merge "Don't cache IME surface in fullscreen mode" into sc-dev 2021-05-26 17:54:45 +00:00
TreeHugger Robot
eb89b5cf6b Merge "Fixed an issue where media could flicker during bypass" into sc-dev 2021-05-26 17:46:49 +00:00
TreeHugger Robot
03b86cd11f Merge "Add documentation to VibratorManager on foreground/background behavior" into sc-dev 2021-05-26 17:28:52 +00:00
Beverly Tai
ee48d00b16 Merge "Hide LightRevealScrim when pulsing" into sc-dev 2021-05-26 17:28:42 +00:00
Adam Bookatz
fdf919fbd5 Merge "BatteryUsageStats - use bus end time" into sc-dev 2021-05-26 17:19:47 +00:00
TreeHugger Robot
ffe73fdf89 Merge "Add KEY_CARRIER_SUPPORTS_CALLER_ID_VERTICAL_SERVICE_CODES_BOOL for treating *67 and *82 as a temporary mode CLIR when dialing E911" into sc-dev 2021-05-26 17:11:49 +00:00
TreeHugger Robot
144d78e795 Merge "Change the definition of noDefaultNetwork and noValidatedNetwork" into sc-dev 2021-05-26 17:07:48 +00:00
TreeHugger Robot
945334a3dd Merge "Always display the default network" into sc-dev 2021-05-26 17:05:17 +00:00
Steve Elliott
7161f1d4a8 Merge "Add unregisterCallback method to NotificationShadeWindowController" into sc-dev 2021-05-26 17:02:27 +00:00
Songchun Fan
7e5a53a0e5 Merge "[metrics] implement callbacks for InstalledIncrementalPackage pulled atom" into sc-dev 2021-05-26 17:01:21 +00:00
Evan Laird
d73b838304 Merge changes Iaaefbeb2,I3eb47392 into sc-dev
* changes:
  Add some dumpsys information to SystemStatusAnimationScheduler
  Tests for StatusBarContentInsetsProvider
2021-05-26 16:58:01 +00:00
Ytai Ben-tsvi
c53f7a2d41 Merge "Prevent double-closing of native handle in HidlMemory" into sc-dev 2021-05-26 16:41:14 +00:00
Michael Wright
a5706d2900 Merge "Stop deferring wake lock logging." into sc-dev 2021-05-26 16:36:08 +00:00
Lucas Dupin
9f6fb354e8 Constant sparkle scale
Drawables from different themes are yielding different densities.
Framework themes are returning 160 (DENSITY_MEDIUM), while AppCompat
is reporting 420 (DENSITY_420.)

This is causing the sparkles to have completely different sizes on
the same device, which is wrong.

Fixes: 189236372
Test: manual
Change-Id: Ia79e360123cf740aaba85d5348f07604c2b39026
2021-05-26 09:31:24 -07:00
Josh Tsuji
995553c359 Fix the live caption tooltip, which was sad and broken.
- Position it correctly using getLocationOnScreen since the dialog height is now variable.
- Update colors so it's readable in dark mode.
- Make it touchable so it can be dismissed without dismissing the entire volume dialog.

Fixes: 184624161
Test: commented out setting tooltip seen so I could experiment with it
Change-Id: I44ba0f9a5488edf88a63ff4842e9abc27e1ce408
2021-05-26 12:16:10 -04:00
Lucas Dupin
1cbfc3b00b Enable dithering on RippleDrawable
Per UX request, given that gradients started to show some banding.

Test: manual
Fixes: 189281134
Change-Id: I8898f2463c6e07c390c07c242b6632dcbb9c3ef3
2021-05-26 09:13:51 -07:00
Josh Tsuji
09f82e22fd Clip caption container to outline so the ripple doesn't extend past the circular bounds.
Fixes: 188850921
Test: touch it and it looks not broken anymore
Change-Id: I70afa777fc921873c8ef5e95a8a56280be375f04
2021-05-26 12:13:22 -04:00
Artur Satayev
8cde076e1e Merge "Revert "Revert "Add bootclasspath_fragments to platform-bootclas..."" into sc-dev 2021-05-26 16:10:57 +00:00
Selim Cinek
7ddf76bedc Merge "Transitioning media on lockscreen with a fade" into sc-dev 2021-05-26 16:10:07 +00:00
Dave Mankoff
f7e815dd30 Merge "Show a small toast when a double tap is needed." into sc-dev 2021-05-26 16:03:52 +00:00
Seth Moore
a63e111574 Merge "Check for Ignore-AOSP-First commit tag" into sc-dev 2021-05-26 16:02:06 +00:00
Josh Tsuji
b8945154d0 Merge "Fix weird ripple circle in the volume SeekBar." into sc-dev 2021-05-26 16:01:11 +00:00
Lyn Han
106c4613b6 Do not show footer when shade is closed
Fixes: 185746065
Test: footer hidden for unlocked hun and lockscreen
Change-Id: I6588e91fc9e2d9a42cded21ed1811a0bbd7607b0
2021-05-26 10:32:05 -05:00
Andrei-Valentin Onea
72cd5f1552 Merge "Add PLATFORM_COMPAT_SERVICE to SystemServiceRegistry" into sc-dev 2021-05-26 15:26:28 +00:00
Dave Mankoff
2c306ce62b Merge "Break VolumeDialogControllerImpl' dependency on StatusBar" into sc-dev 2021-05-26 14:59:51 +00:00
Matt Pietal
44ad78711f AOD Media
Add media back into smartspace content when the new plugin is
enabled. Only show media on AOD when no other content is displayed,
other than the default weather/date card.

Fixes: 185373132
Test: atest KeyguardMediaViewControllerTest

Change-Id: I9a1ff4eaeb4e13ed30c7796c1e9d2d5d46916737
2021-05-26 10:48:57 -04:00
Selim Cinek
e4dbcf927d Fixed an issue where media could flicker during bypass
When turning off the phone, media could sometimes
flicker in during bypass, because the qs expansion
would become larger than 0.0f. We now keep the
expansion at 0 during screen off

Bug: 189318793
Test: enable bypass, turn off screen.
Change-Id: Ib2b30fb1c96e4b078978b1958747473aa5fc9cfc
2021-05-26 16:44:14 +02:00
Riddle Hsu
b35c0291f5 Merge "Use opaque enter animation for freezing without rotation change" into sc-dev 2021-05-26 14:38:31 +00:00
Andrei-Valentin Onea
c97307a0ec Merge changes from topic "fix-module-visibility" into sc-dev
* changes:
  Fix media-s-sources visibility
  Remove services-all-sources
2021-05-26 14:28:09 +00:00
Selim Cinek
67563f5ce0 Transitioning media on lockscreen with a fade
UX wise a fade was much preferred, so we built in the capability
for media transitions to fade from location to location.
We're now also fading the media when transitioning
between QS and Lockscreen.

This also polishes the animation further.

Bug: 184946919
Test: atest SystemUITests
Change-Id: Id9fc58469bebe69ad7a0189e4c4acd36523cdeed
2021-05-26 16:23:26 +02:00
Michael Wright
ab0e1839f8 Stop deferring wake lock logging.
Turns out, deferring the work was just as expensive as doing the logging
inline, so we're effectively paying the cost twice. Doing this inline
should have a negligible impact on wakelock latency and save us a fair
amount of CPU work.

Bug: 166289189
Test: atest WakeLockLogTest
Change-Id: I43cdd8fcfa9bd0832fdbaf2d7278f3b38249e11b
2021-05-26 14:16:21 +00:00
Lais Andrade
c76c77393f Add documentation to VibratorManager on foreground/background behavior
Add information to javadocs explaining that apps in background can
only vibrate the device if the given AudioAttributes usage is one of
notification, ringtone or alarm usages.

Bug: 146313440
Test: N/A
Change-Id: Ib0b8401539157f0ce2768aab281f3b23aae38dae
2021-05-26 15:11:11 +01:00
Miranda Kephart
24658c8bdf Merge "Update screenshot dismiss gesture physics" into sc-dev 2021-05-26 14:02:17 +00:00