755820 Commits

Author SHA1 Message Date
Treehugger Robot
bdf20659d3 Merge "Added command line tool to enable/disable new data stack" 2022-04-01 20:40:00 +00:00
Winson
d9aa57e156 Migrate AppDataHelper reconcileAppsData to snapshot
To avoid lock contention when starting a user, migrate
the reconcile calls to use the snapshot and hopefully
avoid taking the lock.

Bug: 220249728

Test: presubmit

Change-Id: I7d893fedbada66d911310c0feed87a77facd10ce
2022-04-01 13:34:43 -07:00
Shan Huang
69a3984aae Remove OnBackInvokedDispatcherOwner interface.
Test: m -j update-api. Build and flash and test back behavior throughout
the system.
Bug: 227500290

Change-Id: Ibdb13d02e044741d05d99f1cad96e43dc0129fe4
2022-04-01 20:27:34 +00:00
Vadim Caen
d0923a2197 Merge "Split animation methods out of OnBackInvokedCallback" into tm-dev 2022-04-01 20:13:30 +00:00
Vadim Caen
c627777dda Split animation methods out of OnBackInvokedCallback
This makes OnBackInvokedCallback SAM compatible

Bug: 227789359
Test: atest \
        CtsWindowManagerDeviceTestCases:android.server.wm.BackNavigationLegacyTest \
        CtsWindowManagerDeviceTestCases:android.server.wm.BackNavigationTests \
        WmTests:com.android.server.wm.BackNavigationControllerTests \
        FrameworksCoreTests:android.window.BackNavigationTest \
        FrameworksCoreTests:android.window.WindowOnBackInvokedDispatcherTest \
        CtsViewTestCases:android.view.cts.OnBackInvokedDispatcherTest
Change-Id: Iab86b0488f1b3048eb02042191acaeb6a645a0bc
2022-04-01 20:09:26 +00:00
Gaurav Bhola
be5abebe9f Merge "Add the insets visibilities requested by the focussed window in topFocussedWindowChanged() api." into tm-dev 2022-04-01 19:57:58 +00:00
Joe Bolinger
eab24acdb4 Run biometric cleanup on user switch.
This will force the new to user start on the scheduler, open a new session, and close the old user's session in the HAL.

Add a similar user swtich hook to keyguard to refresh the lockout state. Note that lockout behavior is still ill-defined (b/225986544) and HALs may not support a lockout state per user.

Bug: 205908931
Test: manual (unlock, cause lockout, & switch users)
Test: atest KeyguardUpdateMonitorTest

Change-Id: I89d3d7454894bc5caa0cac33e96d7fd0d61e9083
2022-04-01 12:56:35 -07:00
TreeHugger Robot
2a2931d93f Merge "Add logging for package stopped event" into tm-dev 2022-04-01 19:54:17 +00:00
Rafael Higuera Silva
ce7867d377 Fix include location data to check for coarse location first.
Bug: 222766399
Test: make, atest TelephonyLocationTests, manual
Change-Id: Id277d16aceb58324ec70eadfcd3fb871821707c9
Merged-In: Id277d16aceb58324ec70eadfcd3fb871821707c9
(cherry picked from commit 22ca59c42b52d8b8c02429cfbc4717bb55a58fda)
2022-04-01 19:39:55 +00:00
TreeHugger Robot
97dabec966 Merge "Move out PermissionController allowlist entries" into tm-dev 2022-04-01 19:39:20 +00:00
Prabir Pradhan
baf0f20718 Merge "Remove injectInputAfterTransactionsApplied from WMS" into tm-dev 2022-04-01 19:39:15 +00:00
Sarah Chin
43d5f07670 [automerger skipped] Merge "Add PROTOCOL_UNKOWN" am: e5e9a5c339 am: 235c3b6316 am: 228f933f63 -s ours
am skip reason: Merged-In I5bd0351925d27bb2178d4cd0cc93197f463236cd with SHA-1 7319c5f3fd is already in history

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

Change-Id: Ic44cd9f45c3f0a50f352e0ced964d6e478d0a8e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 19:33:01 +00:00
Lucas Silva
01a93ea1e4 Merge "Implement dream complication motion/fade when transitionting to bouncer." into tm-dev 2022-04-01 19:32:34 +00:00
Beverly
f024fc1a8e Trigger face auth on udfps-fingerdown, even on AOD
Test: manual
Fixes: 209924058
Change-Id: Ie6fe439c6d3cd4ed07cbf84e1547d08e2368cd5a
2022-04-01 19:19:48 +00:00
Sarah Chin
228f933f63 Merge "Add PROTOCOL_UNKOWN" am: e5e9a5c339 am: 235c3b6316
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052598

Change-Id: Ie17d28198fe3b0dd2edf88986550e3cd183f7986
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 19:13:22 +00:00
Eric Biggers
e4dcbf5af9 Merge "Remove FDE warning from AccessibilityShortcutChooserActivity" am: db9ea17177 am: b548de7856 am: cd42593479
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2045979

Change-Id: Id302758aa15d64b8d7e00628f90b13782213fb9a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 19:03:39 +00:00
Sarah Chin
235c3b6316 Merge "Add PROTOCOL_UNKOWN" am: e5e9a5c339
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052598

Change-Id: Id55ff9221c025a93ce0e0a73753c82d65a646320
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 18:57:39 +00:00
Lucas Silva
07c54de32d Merge "Prevent the bouncer from showing over dreams when swiping down the shade." into tm-dev 2022-04-01 18:50:17 +00:00
Eric Biggers
cd42593479 Merge "Remove FDE warning from AccessibilityShortcutChooserActivity" am: db9ea17177 am: b548de7856
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2045979

Change-Id: I3fbe51313843c63950cb0e3d8141b88f79d41d77
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 18:42:11 +00:00
TreeHugger Robot
f14e35e47d Merge "Move call to captureDisplay outside of the synchronized block." into tm-dev 2022-04-01 18:38:45 +00:00
Miranda Kephart
111177e96b Merge "Fix screenshot actions scrolling" into tm-dev 2022-04-01 18:35:38 +00:00
Fabian Kozynski
3377c4eeba Fix unregisterReceiver in ClipboardOverlayController
We are registering broadcasts using BroadcastDispatcher, so we should
use that to unregister.

Test: atest FrameworksCoreTests:ChooserActivityTest
Test: atest SystemUITests
Fixes 227760347

Change-Id: Ic84140671214787ac3a44fdb9ebb54e88ac6eb7c
2022-04-01 14:34:00 -04:00
Sarah Chin
e5e9a5c339 Merge "Add PROTOCOL_UNKOWN" 2022-04-01 18:32:50 +00:00
Beverly
8fd6efd76d Update UDFPS "press to unlock" strings
To make it clear to the user that we're asking
that they press on the unlock icon.

Fixes: 227501872
Test: trigger face auth, see message
Test: enable a trust agent, then tap empty space on LS,
see message

Change-Id: I4f0d5c9e3be2870a038276944e3e2b3e9ae77630
2022-04-01 18:32:45 +00:00
Beverly Tai
7db16524cf Merge "WAKE_AND_UNLOCK when FP is auth'd while animating screen off" into tm-dev 2022-04-01 18:30:56 +00:00
Eric Biggers
b548de7856 Merge "Remove FDE warning from AccessibilityShortcutChooserActivity" am: db9ea17177
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2045979

Change-Id: I4bc898e73ec0a23b60f3cf365302690f63da5c46
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 18:26:05 +00:00
Evan Laird
7809404637 Merge "Use 60Hz frame calculations instead of magic numbers" into tm-dev 2022-04-01 18:20:55 +00:00
Aaron Liu
a9143bf7bd Bouncer: Add style in sim pin view.
We have this style in the normal pin view but not the sim pin view. This
should set the text to primary.

Bug: 224895279
Test: Manual
Change-Id: I61751d5c6afc352c616f8be8c9e82fbfb832c420
2022-04-01 18:20:25 +00:00
Chavi Weingarten
c250d4054c Merge "Clean up buffer sync logic in SurfaceView." into tm-dev 2022-04-01 18:17:25 +00:00
Ricky Niu
9d86af2555 Modified the resetUsbPort command to Asynchronous
Because the resetUsbPort API modified to Asynchronous,
related function need to be modified.

Bug: 217369748
Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: Ieef549736532688ff356b4bb8fa790fb10403300
2022-04-01 18:16:45 +00:00
Sally Yuen
b9d928eae3 Merge "Revert "Fixes for a11y selection". Reverts hiding some selection UI" into tm-dev 2022-04-01 18:14:37 +00:00
Santos Cordon
34ba6c0914 Add logging for AutomaticBrightness
Adding more readable table for relationship between
lux, nits and display brightness.

  Difference between current config and default:
             lux:  0.00,   1.0,   2.0,   3.0...
         default:   5.1,  10.0,    18,    22...
       long-term:   5.1,  10.0,    18,    22...
         current:   2.3,   3.0,   5.0,   5.8...
     current(bl): 0.000, 0.001, 0.004, 0.005...
      current(%):     0,    14,    24,    32...

Test: adb shell dumpsys display
Bug: 220586744
Change-Id: Idb3df2ae446de1df760907a9f2f7601c41663988
2022-04-01 18:14:13 +00:00
Ricky Niu
dc74aff111 Asynchronous the resetUsbPort
Modify the resetUsbPort be asynchronous

Bug: 217369748
Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I5d799691f2f3fce4df97a960c8628194236d9f81
2022-04-01 18:13:32 +00:00
Ricky Niu
66c77dfdf9 Add resetUsbPort in svc usb command
Implement resetUsbPort to support manual testing on
real device to verify feature functionality from App layer
and VTS test.

Bug: 216387845
Test: Manual test with "svc usb reset UsbPort" correctly

Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: Ieb29de3dd398859607490548a1f3a16f8359ae8f
(cherry picked from commit 519062eabd54d4f961bb3c1ac65e937a678f905b)
Merged-In: Ieb29de3dd398859607490548a1f3a16f8359ae8f
2022-04-01 18:12:33 +00:00
Riddle Hsu
4ca3b32345 Merge "Revert "Make sure display config is updated when cutout is changed"" into tm-dev 2022-04-01 18:02:43 +00:00
Jing Ji
69bdecb371 Coalesce the shared GID battery usage into its real UID
Also skip isolated UIDs as they've been attributed to their parent
processes' battery usage.

Bug: 203105544
Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest
Test: manual - adb shell dumpsys activity -a
Change-Id: I16a5537efe7fa8728c5fc7dca79bcc6fc717a161
2022-04-01 11:02:28 -07:00
Eric Biggers
db9ea17177 Merge "Remove FDE warning from AccessibilityShortcutChooserActivity" 2022-04-01 18:00:45 +00:00
Jack Yu
b6512b4ead Added command line tool to enable/disable new data stack
Provide the temporary command line tool to check whether new
data stack is enabled or not.

Bug: 196597630
Test: adb shell cmd phone get-data-mode
Change-Id: I9f95e7424e6e74af12a0f6780a58fb5732df7300
Merged-In: I9f95e7424e6e74af12a0f6780a58fb5732df7300
2022-04-01 10:55:48 -07:00
Beverly Tai
ef5feb45d1 Merge "Separate out bouncer updates" into tm-dev 2022-04-01 17:54:09 +00:00
Vadim Caen
9e3ac14976 Merge "Add View.findOnBackInvokedDispatcher" into tm-dev 2022-04-01 17:49:33 +00:00
Jing Ji
9e607df5a3 Merge "Include cached battery usage in app-restriction proto dump" into tm-dev 2022-04-01 17:40:29 +00:00
TreeHugger Robot
20514d4e5e Merge "Add tracing to wallpaper local colors" into tm-dev 2022-04-01 17:30:41 +00:00
chaviw
5e70aa5597 Add ScopedLocalFrame in functions that hold Java objects
In order to make sure all the Java objects are cleaned up, add
ScopedLocalFrame in each function that converts native objects to Java.
This will make sure any local object will be cleaned up.

Test: Builds
Bug: 225287201
Change-Id: I4264d3869409597c44bcf897e4ebeae0660f252b
2022-04-01 17:16:58 +00:00
Nicolò Mazzucato
3057f82528 Merge "Add basic integration tests for shelf" into tm-dev 2022-04-01 16:56:52 +00:00
Nicolò Mazzucato
1f5c93ebf2 Merge "Revert logic to calculate StackEndHeight" into tm-dev 2022-04-01 16:56:52 +00:00
Ling Ma
d985d0a3fe Add PROTOCOL_UNKOWN
Test: build
Bug: 217375910
Merged-In: I5bd0351925d27bb2178d4cd0cc93197f463236cd
Change-Id: I5bd0351925d27bb2178d4cd0cc93197f463236cd
2022-04-01 09:40:49 -07:00
Sarah Chin
30eec56eac Merge "SetDataEnabled indicate calling package" into tm-dev 2022-04-01 16:07:46 +00:00
Ming-Shin Lu
df8e2a5131 Merge "Fix insets animations being skipped when the host view was invisible" into tm-dev 2022-04-01 16:02:52 +00:00
Vadim Caen
a28e989921 Merge "Some cleanup logging and test for back navigation" into tm-dev 2022-04-01 15:57:59 +00:00
Vadim Caen
71297c8aab Some cleanup logging and test for back navigation
- Better logging
 - Remove method form OnBackInvokedDispatcher interface (but not the
   implementation)
 - Add test for ag/17211289

Bug: 222675481
Test: BackNavigationControllerTests#testUnregisterCallbacksWithSystemCallback
Change-Id: I6a3ae30da7e29dddda116acd8fa0c9af4b9faa6e
2022-04-01 15:57:49 +00:00