Commit Graph

649009 Commits

Author SHA1 Message Date
Beverly
4f3715c78d Update dwell ripple parameters am: bc9015e209
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15830762

Change-Id: Ic584b8a938aa1816c82cf8b615e381fe2eac7b14
2021-09-16 03:44:19 +00:00
Winson Chung
ac32f8b813 Merge "Account for last animated-to-sleep state when calculating nav visibility" into sc-qpr1-dev 2021-09-16 03:08:32 +00:00
TreeHugger Robot
9a57cd553b Merge "Fix OHM H/W key shortcut dosn't work appropriately" into sc-qpr1-dev 2021-09-16 00:40:58 +00:00
Tim Joines
aeb139aca5 Merge "Adding native flag namespace for lmkd." into sc-qpr1-dev 2021-09-15 23:01:57 +00:00
Beverly
bc9015e209 Update dwell ripple parameters
Targeted effect:
* Immediate visual response on touch down at
  sufficiently visible radius for variable finger sizes.
* Then decelerate radius expansion to convey tension / elicit
  force and constrain at limited max radius past first stage.
* Bump values on non-AOD surface to improve visibility with
  more variable backgrounds.

Test: `adb shell cmd statusbar auth-ripple dwell` expands ripple (but
doesn't animate the retract)
Test: manual, atest SystemUITests
Bug: 198864174
Change-Id: I1fb2e456e89a824b1b749150e3d82c6bc3223f47
2021-09-15 20:39:46 +00:00
Pyuli Naithani
5710ed9330 Merge "Add indicator logging for privacy dialog." into sc-qpr1-dev 2021-09-15 20:30:04 +00:00
Winson Chung
4df879db93 Account for last animated-to-sleep state when calculating nav visibility
- mAnimatedToSleep is true for the duration of the animation to sleep,
  but the last nav visibility is incorrect if it doesn't account for
  the last animated state, which results in the showing the bar to be
  ignored.

Bug: 199536651
Test: atest StatusBarKeyguardViewManagerTest
Test: Enable aod, power off, power on before it fully dozes
Change-Id: I6d3f7f92be567bb561f8cfc62a367c97b00c799d
2021-09-15 11:46:11 -07:00
Rucha Katakwar
4881b7d690 Merge "Camera:Fix the memory leak caused during HFR mode." into sc-qpr1-dev 2021-09-15 17:33:28 +00:00
Charles Chen
c72d4fc175 Merge "[RESTRICT AUTOMERGE] Send DA's config directly when attaching to DA" into sc-qpr1-dev 2021-09-15 13:29:40 +00:00
Issei Suzuki
b60eafbd4a Merge "Fix flicker when device is unlocked from AOD." into sc-dev am: aaba1884bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15736949

Change-Id: I59cf69e0e844bb4fa6d9df33b7b5b0bd7a00167b
2021-09-15 11:11:02 +00:00
Issei Suzuki
aaba1884bb Merge "Fix flicker when device is unlocked from AOD." into sc-dev 2021-09-15 10:53:57 +00:00
TreeHugger Robot
75bdd11137 Merge "Remove the isBound() check for HotwordDetectionService." into sc-qpr1-dev 2021-09-15 05:00:38 +00:00
Li Li
efdb4f8ac4 Merge "Freezer: fix binder race" into sc-qpr1-dev 2021-09-15 04:00:03 +00:00
TreeHugger Robot
32efa155f4 Merge "RESTRICT AUTOMERGE: More improve IME transition during task switch" into sc-qpr1-dev 2021-09-15 01:04:13 +00:00
Arthur Hung
e0cc463e33 Merge "Fix wrong coordinate for DRAG_STARTED" into sc-qpr1-dev 2021-09-15 00:53:18 +00:00
Zoey Chen
9f3c901311 Merge "[Provider Model] Show W+ when connected to Carrier Wi-Fi Network" into sc-qpr1-dev 2021-09-15 00:26:58 +00:00
Pyuli Naithani
5d449a8bf8 Add indicator logging for privacy dialog.
BUG:191372187

Test: Manual
Change-Id: I6967f5c3debad01fbf836d1d127ad337fa6ac5bc
2021-09-14 23:34:46 +00:00
Sudheer Shanka
d5cee06acc Merge "Start blob store service synchronously." into sc-qpr1-dev 2021-09-14 23:12:49 +00:00
TreeHugger Robot
e7f5a37501 Merge "Ensure package context used by System UI has a valid userId." into sc-qpr1-dev 2021-09-14 20:29:02 +00:00
TreeHugger Robot
6b43633299 Merge "Correct documentation of AppWidgetProviderInfo" into sc-dev am: 4ac31d7f6c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15825508

Change-Id: I5e1f8399f8bcb441415b419ce588c1bd35168b11
2021-09-14 20:16:43 +00:00
TreeHugger Robot
4ac31d7f6c Merge "Correct documentation of AppWidgetProviderInfo" into sc-dev 2021-09-14 20:05:30 +00:00
Rucha Katakwar
2d99c9f930 Camera:Fix the memory leak caused during HFR mode.
During high speed recording mode, it was observed that there was a
memory leak due to too many nodes at mPendingFrameNumbersWithOtherType
list. After ag/1962479 added batching for HFR it only updates the
FrameNumberTracker every 4 or 8 frames during high speed recording. This
change fixes that by updating every frame. A map is used to store
requestIds which have batchOutput. For every such requests we update
each frame in the batch in a for loop.

bug: 194618660

Test: 1. Did validity check with the change. Now frameNumber is incremented
by 1 instead of every 4 or 8 in FrameNumberTracker.
2. The mPendingFrameNumbersWithOtherType for otherType is empty during
HFR recording.
3. Verified using other modes of camera and did not observe any
crashes.
4. CTS tests Pass.

Change-Id: I2638e6663e7b70e4ef7a29dfeb27d423c9c7137d
(cherry picked from commit 236ed73e26)
2021-09-14 18:42:01 +00:00
Jeff DeCew
9d1e05c6b3 Ensure package context used by System UI has a valid userId.
Fixes: 189924598
Bug: 194356170
Test: atest SystemUITests
Test: atest android.service.notification.StatusBarNotificationTest#testGetPackageContext_worksWithUserAll
Change-Id: Ic43a0301cb62ab27e276c2938012a27c3a9a6fff
2021-09-14 13:39:45 -04:00
TreeHugger Robot
a888b50f1c Merge "Delay the transition to AOD1 if udfps is activated" into sc-qpr1-dev 2021-09-14 17:37:45 +00:00
Li Li
f3925cbfbd Freezer: fix binder race
As there isn't an atomic operation to freeze the main thread and binder
threads altogether, it's possible the main thread initiates a new binder
transaction while the binder threads are already frozen. This race issue
will result in failed binder transaction and unexpectedly kill the app.

Fix it by rescheduling the ongoing freezing opeartion if there's already
an outstanding binder trasaction or new pending binder transactions. At
the same time, treat the REPLY transactions of those pending ones the
same way as an oneway transaction so that it can successfully reach the
frozen process, preventing it from being killed.

Bug: 198493121
Test: app launch/foreground/background stress test
Change-Id: I1009fa33edbd2b1db14cf51b598f5869d41ee6b6
2021-09-14 09:18:51 -07:00
Beverly
c87d7f79ca Delay the transition to AOD1 if udfps is activated
We don't want to change display states while the user
is interacting with the UDFPS sensor or else we'll
lose the touch and cut fp authentication short.

Test: atest DozeScreenSTateTest
Bug: 198710028
Change-Id: I3a8168e6f1970c36717e0a7a223bcc74c3ec5600
2021-09-14 11:00:35 -04:00
Calvin Pan
fcf06e22b7 Merge "Check the timeout only the reason is CF_REASON_NO_REPLY" into sc-qpr1-dev 2021-09-14 14:06:59 +00:00
Arthur Hung
c2f08d83da Fix wrong coordinate for DRAG_STARTED
We should translate touch (x, y) to window coordinate.

Bug: 198531521
Test: atest DragDropTest
Change-Id: Ib0521dbc45eae2462c73d597d2ce89b75c56f205
2021-09-14 10:09:44 +00:00
Ilya Matyukhin
ae5181cd41 Merge "Increase the UDFPS touch area" into sc-dev am: 8826c6c3e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15759265

Change-Id: Id1f45a55bda401e7344bcfa8394ad53dbdbffa08
2021-09-14 09:19:23 +00:00
Ilya Matyukhin
8826c6c3e5 Merge "Increase the UDFPS touch area" into sc-dev 2021-09-14 09:00:20 +00:00
Pierre Barbier de Reuille
6221b43571 Correct documentation of AppWidgetProviderInfo
All the dimensions are in pixel, not dp. The conversion from complex
value to pixel is done in AppWidgetProviderInfo#updateDimensions.

Fix: 199524613
Test: N/A
Change-Id: Ifdc90e7338ade8494d90e567fc95500b650c4ebb
2021-09-14 07:40:13 +00:00
Joy Babafemi
ba5c9e0770 Merge "DO NOT MERGE: Persist UWB State in AOSP stack." into sc-qpr1-dev 2021-09-14 03:28:56 +00:00
Charles Chen
37430c5ba8 [RESTRICT AUTOMERGE] Send DA's config directly when attaching to DA
WindowContext relies on WindowTokenClient#onConfigurationChanged after
calling WMS#attachWindowContextToDisplayArea.
However, it took some time to wait for onConfigurationChanged callback
from the server side so that we may get a stale value right after
creating WindowContext.
This confuses developers especially when the foreground activity is in
size compat mode or freeform because the process config is overridden
by activity's config.
This CL makes #attachWindowContextToDisplayArea return DA's configuration
and applies to WindowContext direcly.
It also benefits WindowProviderService because it can obtain DA's
 configuration before onCreate() based on [1] and this CL.

Bug: 190019118
Bug: 190745506
Bug: 198298520
Test: manual - 1. launch an Activity in size compat mode
               2. create a WindowContext and verify if WindowMetrics
                  matches DA bounds.
Test: atest WindowContextTest WindowContextTests
Test: atest WindowContextControllerTest ContextGetDisplayTest
[1]: dd4a748af0

Change-Id: I8dd3987b731662502bc01e9d2ed67e718ada5f46
2021-09-14 03:06:50 +00:00
TreeHugger Robot
c8e92727b1 Merge "Show privacy dialog on secondary user calls" into sc-qpr1-dev 2021-09-13 22:25:40 +00:00
Winson Chung
d8ea434287 Merge "Fixing a couple nav bar crashes" into sc-qpr1-dev 2021-09-13 21:21:29 +00:00
Fabian Kozynski
30ead8d85d Show privacy dialog on secondary user calls
When calls are performed by a secondary user, the attribution is to UID
1000, so they don't match the current user. However, as they are marked
with isPhoneCall, show them anyway.

Test: atest PrivacyDialogControllerTest (fails without fix)
Fixes: 198552515
Change-Id: I11682eceb578ab3b9bf1b2573294af8ca418e6e2
2021-09-13 14:39:27 -04:00
Joy Babafemi
f63aa88736 DO NOT MERGE: Persist UWB State in AOSP stack.
Test: Manual
Bug: 191608501
Change-Id: Ib3ff55ab509b5794e2ed0aa0b3a805a6baee8246
2021-09-13 16:56:00 +00:00
TreeHugger Robot
fc9b5bac0d Merge "Add logout button style" into sc-qpr1-dev 2021-09-13 16:55:49 +00:00
TreeHugger Robot
61671b413b Merge "Add NPE protection to NextAlarmController dump" into sc-qpr1-dev 2021-09-13 16:22:56 +00:00
Beverly Tai
99efba6b99 Merge "Register for doze brightness as soon as we can" into sc-qpr1-dev 2021-09-13 16:07:11 +00:00
Wu Ahan
a3921a91f4 Merge "DO NOT MERGE: Fix temporary black after setting a new image wallpaper" into sc-qpr1-dev 2021-09-13 15:54:44 +00:00
TreeHugger Robot
9a60071e12 Merge "[DO NOT MERGE] Make sure WiFi and Cell tiles are not created in Provider Model" into sc-qpr1-dev 2021-09-13 15:52:25 +00:00
Pavel Grafov
a238881ee0 Merge "Respect PASSWORD_QUALITY_MANAGED for biometrics" into sc-qpr1-dev 2021-09-13 13:52:26 +00:00
Beverly
1bec05c3c7 Add logout button style
So that the "End Session" affordance
looks like a button that's tappable

Test: manual, go/testdpc
Fixes: 183708476
Change-Id: Ic09f1dfe741b77567b0b8eaaef7aa3405babe65a
2021-09-13 13:26:57 +00:00
TreeHugger Robot
caad2a3f4d Merge "Add extra logs for when pulse is dropped" into sc-qpr1-dev 2021-09-13 12:56:26 +00:00
Beverly
345569f6ec Add NPE protection to NextAlarmController dump
Test: manual
Fixes: 199469246
Change-Id: I8702c3ca69c31cb18264741c51bc31f874311f60
2021-09-13 08:49:49 -04:00
Ahan Wu
7af300eea6 DO NOT MERGE: Fix temporary black after setting a new image wallpaper
Sometimes see temporary black wallpaper after setting a new image
wallpaper because of:
- decode bitmap twice, results in long latency until drawing.
- the set wallpaper apis didn't sync with wallpaper rendering well.
Solutions:
- Only decode bitmap when necessary.
- Make set wallpaper apis wait for image wallpaper rendering finished.

Bug: 194080642
Test: see b/194080642#comment3
Test: atest WallpaperManagerServiceTests --iterations 50
Test: atest SystemUITests
Change-Id: I369eff5195571161cf286b3ec97175481b02eed7
2021-09-13 18:53:27 +08:00
Calvin Pan
f7e9afbea4 Check the timeout only the reason is CF_REASON_NO_REPLY
The timeout in call forwarding is only valid for CF_REASON_NO_REPLY
reason, so only check if reason is CF_REASON_NO_REPLY

Bug: 194112447
Test: enable/disable call forwarding
Change-Id: I290d5fa64f0a32ddcaf1f16c51b99f52e8e38913
2021-09-13 10:16:54 +00:00
Ming-Shin Lu
278e944fd5 RESTRICT AUTOMERGE: More improve IME transition during task switch
This CL aims to optimize the previous CL[1] to schedule removing
tasksnapshot after a fixed timeout according the tasksnapshot:
    - With IME snapshot: 350ms
    - Without IME snapshot: 100ms

As the previous approach has some cons espically when the tasksnapshot
has IME shown:
1) It lacks a signal or callback to notify WmShell to dismiss
tasksnapshot when IME is actually drawn on the task and always
dismissed after the timeout.

2) The timing to schedule tasksnapsit removal is when
ActivityRecord#onWindowFirstDrawn, which is much eariler than the
window focused (about 100-150ms), and it may easier to see flickering
when the task is showing IME.

The reason is that IME is drawn after window focused and started input
connection. Also, starts from R, IME insets visiblity
is handled by the app's UI thread, so if the schedule removal timing
been triggered too early and if IME / App takes more time to handle IME
surface layout, then user might aware the app task flickering when
tasksnapshot dismissed, since IME is not yet be drawn and then it
show up again when the next layout finished.

In this CL, we made the following changes to improve the above cons
- Postpone the schedule removing tasksnapshot (with IME) timing to
  after the app task has focused.
- Modify the tasksnapshot removal timeout (with IME)  from 350ms to
  450ms (with renaming to MAX_DELAY_REMOVAL_TIME_IME_VISIBLE),
  in case some edge cases may take longer time to process IME layout.
- add ITaskOrganizer#onImeDrawnOnTask(taskId) to notify the shell
  task organizer to properly remove the tasksnapshot without waiting
  until the max timeout.

[1]: I7865e17b57961e12a0cdcf068e412195123a6ec7

Fix: 192065018
Test: ateset StartingSurfaceDrawerTests#\
        testRemoveTaskSnapshotWithImeSurfaceWhenOnImeDrawn
Test: manual tests by
   1) launching Android Message with focusing an editor
   2) swiping out to home and launch another apps (e.g. chrome)
   3) swiping up to overview, tapping Android Message task
   4) verify if IME is flickering after switched back.
Change-Id: I81031f64966b1aeb55cc09f381d4d83ec3460dc9
2021-09-13 18:01:56 +08:00
Bill Yi
906b2ed5a1 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-09-13 05:02:02 +00:00