Commit Graph

16421 Commits

Author SHA1 Message Date
Selim Cinek
d3436b42b1 Merge "Adds the ScreenOffAnimationController, which fixes multiple issues with unlocked screen off." into sc-dev am: df773665d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14737509

Change-Id: If70fa90357401af1b6bd608162ecbce354b7aa33
2021-06-03 06:21:03 +00:00
Matt Casey
3649ea6cec Merge "Move ScrollView scroll capture to the center" into sc-dev am: 07056eaa46
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14752211

Change-Id: I3be83dca44dc2ae12fbce25a3106fb9aa3b5b14c
2021-06-03 06:16:24 +00:00
Selim Cinek
df773665d0 Merge "Adds the ScreenOffAnimationController, which fixes multiple issues with unlocked screen off." into sc-dev 2021-06-01 18:00:10 +00:00
Matt Casey
9e25d3b8b5 Move ScrollView scroll capture to the center
Avoid most floating content by centering the requested content within
the view instead of just scrolling so that it's visible.

See ag/14213766 for the corresponding RecyclerView change.

Bug: 189487659
Test: atest ScrollViewCaptureHelperTest, plus manual testing.
Change-Id: I194288cf9e568614ffd7c45b7d046a5b982829d6
2021-05-27 17:49:35 -04:00
Josh Tsuji
ee89a547f1 Adds the ScreenOffAnimationController, which fixes multiple issues with unlocked screen off.
This changes the screen off animation so that the controller directly animates the LightRevealScrim and the shade keyguard UI, rather then tying these to the dozeAmount. This makes it easier for us to manage/cancel these animations, such as during the camera launch gesture, since the various doze components update their state asynchronously.

This approach also means that instead of actually changing everything to KEYGUARD as soon as the power button is pressed, we actually just show the LightRevealScrim and the shade's AOD UI. This results in far less jank. We then actually show the keyguard once the animation finishes or is cancelled.

Bug: 169693662
Bug: 169739682
Bug: 181020504
Fixes: 185567665
Fixes: 189342687
Fixes: 185567665
Fixes: 183195436
Test: atest SystemUITests
Test: trigger screen off and cancel it
Test: trigger screen off and don't cancel it, make sure it wakes up fine
Test: disable 'power button locks instantly' and make sure it doesn't lock the device, both when the animation finishes or when it's cancelled
Test: press the power button twice in rapid succession
Test: press the power button twice in slower succession about 200ms apart (which triggers the camera onWakingUp vs onFinishedGoingToSleep)
Test: press the power button 5 times, make sure emergency gesture comes up
Test: disable AOD, observe no screen off animation and lock functionality works
Change-Id: I1c44304becdadfd37bab7fd81286a9702e5d6141
2021-05-27 16:26:22 -04:00
Dmitri Plotnikov
c22cb8480d Merge "Fix system service power calculation when measured energy is available" into sc-dev am: 16d1188b7d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14726213

Change-Id: If51b3289ebd05e19b25de0cc36ff34c63fae5876
2021-05-26 20:53:30 +00:00
Dmitri Plotnikov
1643f794d0 Fix system service power calculation when measured energy is available
Bug: 188930285
Test: atest FrameworksCoreTests:SystemServicePowerCalculatorTest
Change-Id: Ic48bd627b8458cde18f812eb63cbc1e37496326d
2021-05-25 18:26:38 -07:00
Jeff DeCew
8d6af97d2b Merge "Resolve Notification.Colors once, instead of lazily." into sc-dev am: f294d0ba5f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14140988

Change-Id: I3beac51a74ec5eec5348f01e0b71ae73925ef035
2021-05-25 16:56:58 +00:00
Jeff DeCew
f294d0ba5f Merge "Resolve Notification.Colors once, instead of lazily." into sc-dev 2021-05-25 16:44:59 +00:00
Alison Cichowlas
5e03ec2456 Merge "Set RESULT_OK on exit via copy button." into sc-dev am: 7014d28df9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14670950

Change-Id: Ibd73a4a2097f872029076e1014bfd1cad5a1e8ef
2021-05-25 15:24:24 +00:00
Alison Cichowlas
7014d28df9 Merge "Set RESULT_OK on exit via copy button." into sc-dev 2021-05-25 15:04:25 +00:00
Jeff DeCew
cab7d8e011 Resolve Notification.Colors once, instead of lazily.
* Instead of resolving colors as-needed, resolve the entire palette potentially used by the notification at the start.
* Centralize color logic and palette storage into Notification.Colors for easier unit testing.
* Adds unit tests for the Notification.Colors, including validating color contrast ratios for various colors.
* Fix a bug with ColorContrastUtil where the luminosity for dark/light font cutoff was 0.5, which resulted in a max contrast ratio of 1.9 for some colors.  Now contrast ratios of 4.5:1 can be achieved for all colors.
* Removes a few of the color accessors in Notification.Builder which were infrequently used, and replaces them with direct use of Notification.Colors.
* Notification specific colors (primary, secondary, default) have only been used by colorized notifications for a few months.  Remove the dark mode overrides of these, ensuring that colorized notifications have the same exact appearance in light and dark themes.
* Replace the use of the "default" color with the "secondary text color"; this practically only affects the alerted bell icon, is more consistent, and reduces complexity.

Fixes: 187881776
Test: manual
Test: atest android.app.NotificationTest
Change-Id: Ib8840d04093094c324d8bdce5b2e84c93a94db8d
2021-05-25 09:57:11 -04:00
Dmitri Plotnikov
73fcaf480a Merge "Fix time-in-foreground to include PROCESS_STATE_FOREGROUND_SERVICE" into sc-dev am: 4113199752
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14671229

Change-Id: I62e891f31ddad5e4e2bdce79d2ae57b81de3675d
2021-05-24 20:09:09 +00:00
Dmitri Plotnikov
4113199752 Merge "Fix time-in-foreground to include PROCESS_STATE_FOREGROUND_SERVICE" into sc-dev 2021-05-24 20:02:36 +00:00
Patrick Baumann
c4f9c63bbe Merge "Updates OWNERS files" into sc-dev am: dff37ee6d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14687219

Change-Id: Iee0440f821f0d7b0a99f8ac60b05e9782c4440c9
2021-05-24 18:52:50 +00:00
Patrick Baumann
dff37ee6d2 Merge "Updates OWNERS files" into sc-dev 2021-05-24 18:30:19 +00:00
Victor Chang
5aa10ca300 Merge "Disable sentence-case for Georgian" into sc-dev am: 0946a97d06
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14489968

Change-Id: I0aa295994f22289363af9f4909409cc07b390255
2021-05-24 16:04:35 +00:00
Victor Chang
0946a97d06 Merge "Disable sentence-case for Georgian" into sc-dev 2021-05-24 15:57:25 +00:00
Siim Sammul
9ea13f2ae2 Merge "Add sharding to BinderCallsStats collection and make it configurable. The hash code of the callsession will be used to select which apis will be collected for based on the configured modulo. This is needed to reduce the amount of data collected from public devices." into sc-dev am: d49a40998a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14440248

Change-Id: I559ec7c27252c3d2111a88a395484ff9c6795cdb
2021-05-24 13:32:04 +00:00
Siim Sammul
d49a40998a Merge "Add sharding to BinderCallsStats collection and make it configurable. The hash code of the callsession will be used to select which apis will be collected for based on the configured modulo. This is needed to reduce the amount of data collected from public devices." into sc-dev 2021-05-24 13:09:19 +00:00
TreeHugger Robot
c82e4d2328 Merge changes I1de322c9,Id0983d4b into sc-dev am: 453acbbf29
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14687246

Change-Id: If93dfeab89c644f67001c144253a594996c96eef
2021-05-22 05:12:50 +00:00
TreeHugger Robot
453acbbf29 Merge changes I1de322c9,Id0983d4b into sc-dev
* changes:
  Improve IKEv2/IPsec VPN by proposing more IPsec algorithms
  Improve IKEv2/IPsec VPN by proposing more IKE algorithms
2021-05-22 05:05:51 +00:00
Soonil Nagarkar
54d0f31169 Merge "Update location bypass allowlist" into sc-dev am: 20b934e7db
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14671675

Change-Id: Ib4409ee4eaf30fa6e0e2706437fbd41938a48876
2021-05-22 04:39:07 +00:00
Soonil Nagarkar
20b934e7db Merge "Update location bypass allowlist" into sc-dev 2021-05-22 04:04:54 +00:00
Yan Yan
ff41121597 Improve IKEv2/IPsec VPN by proposing more IPsec algorithms
This commit allows IKEv2/IPsec VPN to propose more algorithms that
newly added in IpSecAlgorithm. Those new algorithms have stronger
security guarantees and better performances.

This commit also removes algorithm name validation because all
algorithms are URL encoded to ensure no special characters create
problems due to their use by VpnProfile for list or field delimiting
(e.g. rfc7539esp(chacha20,poly1305))

Bug: 185265778
Test: atest FrameworksNetTests, CtsNetTestCases
Test: All new algorithms are manually verified
Change-Id: I1de322c95aacc8924e95bcdbcfdbd1ec441de99c
Merged-In: I1de322c95aacc8924e95bcdbcfdbd1ec441de99c
2021-05-21 23:33:23 +00:00
Joe Bolinger
f9742d8153 Merge changes I57f018e4,Ib1e92278 into sc-dev am: 16cd6bb81f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14669695

Change-Id: Ia1803709a97e0bcc6905cd3f00da3d9e0e66009f
2021-05-21 21:43:34 +00:00
Yohei Yukawa
e56486181f Merge "Remove InputMethodManager#reportActivityView()" into sc-dev am: e738cfc898
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14429499

Change-Id: Id5b4932a00aa13b8485203dc3ed8aa73df9db0d1
2021-05-21 21:43:08 +00:00
Joe Bolinger
16cd6bb81f Merge changes I57f018e4,Ib1e92278 into sc-dev
* changes:
  Remove confirm button when falling back to fingerprint auth.
  Delay starting fingerprint sensor when using multi-sensor devices.
2021-05-21 21:35:57 +00:00
Yohei Yukawa
e738cfc898 Merge "Remove InputMethodManager#reportActivityView()" into sc-dev 2021-05-21 21:33:16 +00:00
Patrick Baumann
43628ca24c Updates OWNERS files
Bug: 186864416
Test: Builds
Change-Id: I04dfc5c2c7143825334ebc62742e335b8c889492
2021-05-21 14:13:18 -07:00
Calin Juravle
83e844bb57 Merge "Update the use of registerAppInfo" into sc-dev am: dd8b94557d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14669173

Change-Id: I29769ce32c0f5401bdb25bbbfd688aca5c2c695a
2021-05-21 20:51:30 +00:00
Calin Juravle
dd8b94557d Merge "Update the use of registerAppInfo" into sc-dev 2021-05-21 20:29:17 +00:00
Yohei Yukawa
44c499d853 Remove InputMethodManager#reportActivityView()
This CL logically reverts my previous CL [1], which re-enabled
CursorAnchorInfo API for ActivityView since ActivityView is finally
removed [2].

There should be no user/developer impact in this CL as

   InputMethodManager#reportActivityView()

is called nowhere.

 [1]: Id0411a80456182111bb5b681c6d1230b58e7ec2e
      b4f328a2f3
 [2]: Ic66f3740819634366edb20a34a7c8177af258c2f
      5456990f7e

Bug: 115693908
Bug: 179161778
Test: atest CtsInputMethodTestCases
Test: atest CtsWindowManagerDeviceTestCases:ActivityViewTest
Change-Id: Idd60d96a39f827197d189beb5de016446576d9cd
2021-05-21 18:13:17 +00:00
Soonil Nagarkar
1ea818347e Update location bypass allowlist
Create a new DeviceConfig entry to replace the prior Settings entry on
which the location ignore settings allowlist is based. This allows us to
allowlist based on attribution tag, and eliminate holes for large
applications.

Test: manual + CTS + GTS
Bug: 187421886
Change-Id: I31e61db79b93e202bd8c66efae1bb5aaf0c88ff5
2021-05-21 09:25:47 -07:00
Calin Juravle
2d2bd54bd5 Update the use of registerAppInfo
Pass additional parameters to ART to assist with better profiling
and debuggability.

(cherry picked from commit 3e308c6270)

Test: m
Bug: 182793486
Bug: 185979271

Merged-In: Iae0beab92194d75f191147578922c760f04470b9
Change-Id: Iae0beab92194d75f191147578922c760f04470b9
2021-05-21 14:13:03 +00:00
Siim Sammul
91223d54e5 Add sharding to BinderCallsStats collection and make it configurable. The
hash code of the callsession will be used to select which apis will be
collected for based on the configured modulo. This is needed to reduce
the amount of data collected from public devices.

Test: unit tests
Bug: 180584913
Change-Id: I66ea9ad9a7f4b66b135358ac899ed425c731760a
2021-05-21 09:36:04 +00:00
Tony Huang
c3acdff9e8 Merge changes I1ea02fa9,I033a79dc,Iac219a8e into sc-v2-dev
* changes:
  Make AppTransition animations sharable (6/n)
  Make AppTransition animations sharable (5/n)
  Make AppTransition animations sharable (4/n)
2021-05-21 07:46:13 +00:00
Yanting Yang
8cd70e05b1 Merge "Add Settings page scroll CUJ to InteractionJankMonitor" into sc-dev 2021-05-21 03:02:05 +00:00
Dmitri Plotnikov
a00309cdc2 Fix time-in-foreground to include PROCESS_STATE_FOREGROUND_SERVICE
Bug: 188656360
Test: atest FrameworksCoreTests:BatteryUsageStatsProviderTest
Change-Id: I29312fb36e13181a57c68bb9968b103256f14077
2021-05-20 18:56:46 -07:00
Joe Bolinger
fdc48a48c5 Delay starting fingerprint sensor when using multi-sensor devices.
Fix: 183951321

Test: atest com.android.server.biometrics
Test: atest com.android.systemui.biometrics
Test: manual with integration app

Change-Id: Ib1e92278d695b0ce5b6f799f51007262ade31f05
2021-05-20 18:56:31 -07:00
Jing Ji
dec2e2169e Merge "Reset common association source while resetting procstats associations" into sc-dev 2021-05-21 00:18:14 +00:00
Alison Cichowlas
013c379752 Set RESULT_OK on exit via copy button.
Bug: 188778935
Test: manual & atest ChooserActivityTest
Change-Id: I6a45a14bd145234e9a7743bb6e68fe05ac05de46
2021-05-20 20:02:58 -04:00
Jing Ji
ea9ed7b0f2 Reset common association source while resetting procstats associations
Bug: 188130785
Bug: 183101565
Bug: 186438656
Test: atest ProcStatsValidationTests
Test: atest ProcessStatsDumpsysTest
Test: atest CtsIncidentHostTestCases:ProcStatsProtoTest
Test: atest CtsStatsdHostTestCases
Change-Id: I0a555c86bc6ba341a6344f28f73faca914d65c3f
2021-05-20 13:05:24 -07:00
Jeff DeCew
9b357d5480 Improve notification style comparisons
Bug: 178272497
Test: atest SystemUITests
Change-Id: I9b1a55834360e48e83c09dc1d61b9b35f1f6ec09
2021-05-20 15:02:00 -04:00
Jeff DeCew
fd4d01d8a0 Merge "Use "collapsible indent" for actions of any notification type." into sc-dev 2021-05-20 18:56:27 +00:00
Jaewan Kim
d05e7856d7 Merge "Stop ignoring media key events in PhoneFallbackEventHandler while in call" into sc-dev 2021-05-20 13:46:57 +00:00
Kholoud Mohamed
b04a005c3f Merge "Revert "Create non-bypassable op restrictions"" into sc-dev 2021-05-20 09:48:56 +00:00
Tony Huang
bc3d6581c6 Make AppTransition animations sharable (6/n)
1. Migrate wallpaper related animation.
2. Refactor and correct some handled animations.

Bug: 178678389
Test: manual
Change-Id: I1ea02fa946c1c28d53ac6b92786db17dacbb45c4
2021-05-20 16:36:24 +08:00
Tony Huang
29bdef95f8 Make AppTransition animations sharable (5/n)
Handle attachThumbnail animation.

Bug: 178678389
Test: manual
Change-Id: I033a79dcf0a54d782c438c98763c6a5ad00d2bbf
2021-05-20 16:36:17 +08:00
Tony Huang
a2c4a7577d Make AppTransition animations sharable (4/n)
Migrate ActivityOptions transition animation to shell transition.

Bug: 178678389
Test: manual
Change-Id: Iac219a8eabab7ac7fac73a47e97ec003bbf2d366
2021-05-20 16:36:13 +08:00