Commit Graph

761214 Commits

Author SHA1 Message Date
Beverly
4d8243c0ec Post updateClockViews when called within onLayout
updateClockViews may change the view hiearchy and
calling it within onLayout was causing view measurement issues.

remove chatty debugging logs

Test: manually force updateClockViews to occur in onLayout,
  see the clock is cutoff when notifications are hidden (can use adb:
  adb shell locksettings require-strong-auth
  STRONG_AUTH_REQUIRED_AFTER_USER_LOCKDOWN) w/o change, with this
  change, the clock is never cutoff
Bug: 222260948
Fixes: 233081863
Change-Id: I4ea5dae1dc8018478cc98e5e2520ef2afd2fdc58
Merged-In: I4ea5dae1dc8018478cc98e5e2520ef2afd2fdc58
2022-06-06 14:30:03 +00:00
Vadim Caen
a147b66f61 Merge "Transfer the actual dispatcher when the window is preserved" into tm-dev 2022-06-01 14:35:57 +00:00
Matt Pietal
e16348ebdf Merge "Run unlock animation when device is already unlocked" into tm-dev 2022-06-01 12:44:28 +00:00
Lucas Silva
3abe51bcfd Merge "Disable dismissing the dream on activity start" into tm-dev 2022-06-01 12:42:45 +00:00
Lucas Silva
cd2cf901f1 Merge "Update ActivityStarter to dismiss dreams when starting activities." into tm-dev 2022-06-01 12:42:45 +00:00
Junyu Lai
5b73f4bef4 Merge "Fix crash when incrementing data usage request" into tm-dev 2022-06-01 09:45:05 +00:00
TreeHugger Robot
fcf090345b Merge "Extend the max count for retrying to request DirectActions to 7." into tm-dev 2022-06-01 08:22:04 +00:00
TreeHugger Robot
bd26701a6b Merge "Log why presentation was not shown" into tm-dev 2022-06-01 08:04:53 +00:00
Betty Chang
fc02968aac Merge "[LE] Test cases for Media Output Broadcast Dialog" into tm-dev 2022-06-01 07:20:49 +00:00
Peter Li
c80818f9ed Extend the max count for retrying to request DirectActions to 7.
Bug: 224789902
Change-Id: I986f1b5534c8cae69c770fb67cf9ebbbeb7c75dd
Test: atest CtsVoiceInteractionTestCases
2022-06-01 04:44:50 +00:00
TreeHugger Robot
0d84708056 Merge "Postpone the request direct actions before onStart" into tm-dev 2022-06-01 03:29:35 +00:00
Michael Wright
aabe27b7a4 Merge "Invoke BrightnessSetting callbacks even with identical brightness." into tm-dev 2022-06-01 02:41:25 +00:00
Louis Chang
b4c09cd2b1 Merge "Adding the new activity on the same TF of the cleared activity" into tm-dev 2022-06-01 02:40:46 +00:00
James O'Leary
d88a6933e8 Merge "Revert "Update light/dark detection."" into tm-dev 2022-06-01 01:29:41 +00:00
Ryan Lin
8ef351123b Merge "Drop the cloned windows from visible window list" into tm-dev 2022-06-01 01:29:36 +00:00
Junyu Lai
6675e03317 Fix crash when incrementing data usage request
This fixed a request leak problem which was introduced in previous
Android release but caught recently, where the budget of
MultipathPolicyTracker was cleaned before unregistering requests,
the logic in the tracker would skip the unregister if there is
no budget.

Ignore-AOSP-First: Urgent fix
Test: MultipathPolicyTrackerTest#testOnThresholdReached
Bug: 233733267
Fix: 145963406
Change-Id: Icee43a4ee913a6459a47632f608fa6cb8b2ed4c2
2022-06-01 09:25:02 +08:00
Matt Casey
fc51b366b4 Merge "Remove spans from edited text when copying back to clipboard" into tm-dev 2022-06-01 01:14:05 +00:00
Matt Casey
707b534826 Merge "Make source color textColorSecondary" into tm-dev 2022-06-01 01:13:58 +00:00
Matt Casey
8d5bcaa534 Merge "Fix Chooser enter transition animation" into tm-dev 2022-06-01 01:13:49 +00:00
Louis Chang
e107722e17 Merge "Restrict the smallest screen width dp of an embedded TF" into tm-dev 2022-06-01 01:07:42 +00:00
skxu
48a5cbb2d6 Log why presentation was not shown
Fixes: 219613425
Test: b/233833739
Change-Id: Ic95cc69b912e8144726124ebc8355c2d1e24079e
Merged-In: Ic95cc69b912e8144726124ebc8355c2d1e24079e
2022-06-01 00:10:02 +00:00
Raphael Kim
99945d5d70 Merge "Implement dumpsys for CompanionDeviceManagerService.CompanionDeviceManagerImpl" into tm-dev 2022-06-01 00:03:42 +00:00
TreeHugger Robot
92538a9dbc Merge "Fix "NetworkCallback was not registered" crash" into tm-dev 2022-05-31 22:16:47 +00:00
Matt Pietal
ea5a86dcd4 Run unlock animation when device is already unlocked
When the screen times out, the device may not immediately lock based
upon a user setting. In this case, keyguard is visible but not fully
locked. If the user uses finger auth, MODE_ONLY_WAKE is used but the
keyguard is not properly dismissed. Use MODE_WAKE_AND_UNLOCK to run
all animations.

Fixes: 231553219
Test: atest BiometricsUnlockControllerTest
Change-Id: I8ff2c2f983b64c7f62d7025fce227a2dd9eabf04
2022-05-31 17:37:47 -04:00
James O'Leary
676c0c450d Revert "Update light/dark detection."
Revert "Update smartspace shadow"

Revert "Update app icon shadows"

Revert submission 17935777-lightDarkDetection

Reason for revert: Talked with Adam Cohen, white shadows are controverstial and we'd need to escalate to senior UX if we want to ship. James would rather do it in U timeframe, will flag to UXers we work with that the opportunity to escalate is available if needed.
Reverted Changes:
Ia91221427:Update light/dark detection.
Ie12d3d054:Update app icon shadows
Icc88c3496:Update smartspace shadow

Change-Id: I7d6b972d29b328a7d5ca7ac7241156b6e51a2cd6
2022-05-31 21:12:38 +00:00
Hongwei Wang
eb700c0090 Merge "Validate content overlay before removal" into tm-dev 2022-05-31 19:24:48 +00:00
Lucas Silva
fae2ace6df Update ActivityStarter to dismiss dreams when starting activities.
This fixes an issue where activities are started below the dream.

Bug: 198041170
Test: atest CentralSurfacesImplTest
Test: manually on device
Change-Id: Iec7324f397161c3e0bbf626153f8cb453e6a86ca
2022-05-31 16:59:24 +00:00
Issei Suzuki
0dfb582d5a Merge "Exclude launcher from app transition animation while recents is running." into tm-dev 2022-05-31 15:48:01 +00:00
Jing Ji
57e03f3b30 Merge "Add component types which a process is hosting into the proc memstats" into tm-dev 2022-05-31 15:37:52 +00:00
Mady Mellor
91d28d1b21 Merge "Fix the pointer position when displayed in RTL" into tm-dev 2022-05-31 15:10:09 +00:00
Patrick Baumann
f598205c2d Merge "Add visibility special casing for sdk sandbox" into tm-dev 2022-05-31 14:56:37 +00:00
Hongwei Wang
4c4b7ef959 Validate content overlay before removal
Bug: 234158920
Test: atest --iteration 20 --no-bazel-mode \
        PinnedStackTests#testLaunchTaskByAffinityMatchSingleTask
Change-Id: I1ed848fcd742443a23ecaa17ba6b4fb8cdb061e2
2022-05-31 10:40:53 +00:00
Louis Chang
73774c269d Restrict the smallest screen width dp of an embedded TF
Or the smallest screen width dp could be the same as the
display size.

Bug: 230035382
Test: verify sw config of an embedded activity
Change-Id: Ic085c6ed134c2787a26fd2b02b4345b04fb693e6
Merged-In: Ic085c6ed134c2787a26fd2b02b4345b04fb693e6
(cherry picked from commit 9cee26e261)
2022-05-31 18:25:02 +08:00
Louis Chang
c4e6a6f30c Adding the new activity on the same TF of the cleared activity
While starting an activity with FLAG_ACTIVITY_CLEAR_TOP, the
existing activity could also be finished and therefore the new
activity is added on the same TF of the top running activity.
However, the top running activity could be on a TF which is
different from the cleared activity.

Bug: 233860721
Test: start Settings' shortcut activity
Test: atest TaskTests
Change-Id: I5607a2737e7d0d5986adf14f44f169791da3d38a
2022-05-31 17:35:22 +08:00
lpeter
f8342c8db5 Postpone the request direct actions before onStart
By the original design, we register the activity event in the
ActivityManagerService. After getting the activity event, we will
query current visible activities and report them to Assistant.
Assistant will start to get direct actions of those visible
activities. But sometimes they can not get the direct actions
due to the stage of activity lifecycle before onStart().

We will postpone the request direct actions a few times
before onStart().

Bug: 224789902
Test: atest CtsVoiceInteractionTestCases
Change-Id: If7cd52c5ba749523e575c0be5595e8f20704c4f2
2022-05-31 14:59:42 +08:00
ryanlwlin
70764c141a Drop the cloned windows from visible window list
Currently the cloned windows is avaialbe from window list,
however the node info from the cloned window is incorrect.
To avoid confusion, we would drop them for a short term solution.

Bug: 230300971
Test: manually test with switchaccess
      adb shell dumpsys accessibility to observe the window list
Change-Id: I7a03376567698a493c9eb5e26d1f3390aacdb408
2022-05-31 13:48:08 +08:00
Michael Wright
83097c6db4 Invoke BrightnessSetting callbacks even with identical brightness.
Even if the brightness is the same we still need to invoke any listeners
as just the act of setting the brightness has side effects, like
clearing the temporary brightness. Skipping these callbacks mean we can
possibly get stuck in a state where we don't adjust the brightness at
all until the next time a user touches the brightness slider -- this
persists even through screen off.

Fixes: 218600709
Test: Manual
Change-Id: I918636a61424a51f9d22d32fd692beb6eb2b8f2d
2022-05-31 02:10:47 +00:00
Robert Horvath
d59d17d74a Merge changes from topic "privacy-type-media-projection" into tm-dev
* changes:
  Add MediaProjection privacy item type
  Extract privacy item monitoring interface, add AppOpsPrivacyItemMonitor
2022-05-30 17:43:32 +00:00
TreeHugger Robot
c17eae2651 Merge "Invalidate autofill session on IME disconnect" into tm-dev 2022-05-30 16:50:17 +00:00
Ming-Shin Lu
c2a6a2efeb Merge "Fix snapshot starting window isn't apply fixed-rotation with IME visible" into tm-dev 2022-05-30 12:24:51 +00:00
Robert Horvath
ea71e9e9c4 Merge "Improve LogAccessDialogActivity's rotation handling" into tm-dev 2022-05-30 11:37:55 +00:00
Ricky Wai
76f37a5d74 Merge "Only add boolean extra to bundle when the value is false" into tm-dev 2022-05-30 10:01:52 +00:00
changbetty
26f06fc61a [LE] Test cases for Media Output Broadcast Dialog
Bug: 230722306
Test: atest MediaOutputBroadcastDialogTest
Test: atest MediaOutputDialogReceiverTest
Change-Id: I9caa0d72b41fe1d458c343fe36442a8070b044b8
2022-05-30 09:38:56 +00:00
Tiger Huang
1fab45404b Merge "Only update the compat system UI visibility if the source is valid" into tm-dev 2022-05-30 08:40:03 +00:00
Ming-Shin Lu
7ee09c4b55 Fix snapshot starting window isn't apply fixed-rotation with IME visible
As IME window will be hidden by AsyncFadeAnimationController when
receiving IME show request in IMMS side during fixed-rotation.

we could remove the previous logic from CL[1] in case snapshot starting
window surface may not apply fixed-rotation when IME snapshot visible in
the first place, since in CL[2] has already removed the disable
fixed-rotation when animating snapshot starting window with IME visible.

[1]: Idfdf129adbfbee6634d8a27aa78da1f631bd213b
[2]: Iceaedbfdb75e68e9f7fb8fd4a1bf8f35a779797e

Bug: 230733128
Test: 1. Launch a portrait app which keeps showing IME. (e.g. Chrome)
      2. Return to home be home key or swiping.
      3. Hold the device in landscape.
      4. Launch the app again.
      The app should show in landscape directly and IME will
      fade-in when it is drawn in landscape.

Change-Id: Ieb656aaa9f76d0f5dcc5487a6602e528ec771552
2022-05-30 08:34:39 +00:00
Nikolas Havrikov
79c5fed289 Invalidate autofill session on IME disconnect
Remember the latest InlineSuggestionsRequestCallback coming from the
autofill service, so that its autofill session can be invalidated
when the IME process is unbound or stopped.

Test: atest InlineWebViewActivityTest#testAutofillOneDataset
Bug: 226240255
Change-Id: I49cf295b95cec33b7eb404eab62b900014d09e26
(cherry picked from commit 33dc7f89c8)
Merged-In: I49cf295b95cec33b7eb404eab62b900014d09e26
2022-05-30 08:22:08 +00:00
Wenhao Wang
edfc3fa2ae [automerger skipped] Revert "[conflict] Move service initialization am: 38fe45b539" am: 8bb5e98ecb -s ours am: c543f70e3d -s ours am: aa456df74e -s ours am: b1cf2a0cd2 -s ours am: 718d5a4d2f -s ours am: e9f7ca4fd5 -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 38fe45b539 is already in history. Merged-In was found from reverted change.

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

Change-Id: Iab195185cff6a1a09845d48bf74d0b5045c21d8e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 08:07:34 +00:00
Wenhao Wang
e9f7ca4fd5 [automerger skipped] Revert "[conflict] Move service initialization am: 38fe45b539" am: 8bb5e98ecb -s ours am: c543f70e3d -s ours am: aa456df74e -s ours am: b1cf2a0cd2 -s ours am: 718d5a4d2f -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 38fe45b539 is already in history. Merged-In was found from reverted change.

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

Change-Id: If384bbd807b6b10bbafebf359d11b725b30db72e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 07:51:13 +00:00
Wenhao Wang
718d5a4d2f [automerger skipped] Revert "[conflict] Move service initialization am: 38fe45b539" am: 8bb5e98ecb -s ours am: c543f70e3d -s ours am: aa456df74e -s ours am: b1cf2a0cd2 -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 38fe45b539 is already in history. Merged-In was found from reverted change.

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

Change-Id: Id2ee63db92aae509297f6e014a03fe7ccf574497
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 07:33:49 +00:00
Wenhao Wang
b1cf2a0cd2 [automerger skipped] Revert "[conflict] Move service initialization am: 38fe45b539" am: 8bb5e98ecb -s ours am: c543f70e3d -s ours am: aa456df74e -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 38fe45b539 is already in history. Merged-In was found from reverted change.

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

Change-Id: I5926ea7d571c78eae47ca529cb0a166c2a718519
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 06:58:02 +00:00