Commit Graph

786656 Commits

Author SHA1 Message Date
Lucas Silva
68cb239bb0 DO NOT MERGE Fix crash related to getting the root of an unattached view
view.getRootView returns itself when unattached, which may not be a
ViewGroup instance. Therefore trying to cast to a ViewGroup will cause a
ClassCastException. This fix avoids the exception by ensuring that the
view is attached before trying to cast the root view.

Fixes: 277637573
Test: mp droid and verified touch gestures on dream work correctly by
swiping up the bouncer, and swiping down the notification shade.

Change-Id: Ic2d87278e5c60509c39062437b548ae76959b169
2023-04-12 11:51:19 -04:00
Massimo Carli
b3d0060102 Merge "CompatUI UX Improvements" into tm-qpr-dev 2023-04-04 15:13:16 +00:00
Shan Huang
31fb807ef2 Merge "DO NOT MERGE Add logging for when IOnBackInvokedCallback is null." into tm-qpr-dev 2023-04-04 14:02:58 +00:00
Islam Elbanna
6ed71b9057 Merge "Revert "Update boot image and system server profiles [M20C15P70S...", RESTRICT AUTOMERGE Since these are profiles for T release only." into tm-qpr-dev 2023-04-04 12:45:57 +00:00
TreeHugger Robot
bb53e2386d Merge "Ensure scrim visibility updated by mPrimaryBouncerToGoneTransition" into tm-qpr-dev 2023-04-04 11:38:15 +00:00
Islam Elbanna
998a75e3d9 Revert "Update boot image and system server profiles [M20C15P70S...", RESTRICT AUTOMERGE Since these are profiles for T release only.
Revert submission 22278342-t-profiles-v8

Reason for revert: Memory regression at b/275595328

Reverted changes: /q/submissionid:22278342-t-profiles-v8

Change-Id: I0fa202869230a7aeeb0f9b7b8221bb4ea9760112
2023-04-04 09:46:27 +00:00
Massimo Carli
03d7ba5be3 CompatUI UX Improvements
This CL does the following UX improvements:
  - Increase fading animation duration to 400ms
  - Implement a logic for horizontal and
    vertical education indipendently which displays
    icons when in center position only once and
    every time user double-taps for a not-central
    position.
  - Remove the circles animation

Bug: 275054578
Test: atest WMShellUnitTests:ReachabilityEduLayoutTest
      atest WMShellUnitTests:LetterboxEduWindowManagerTest
      atest WMShellUnitTests:ReachabilityEduWindowManagerTest

Change-Id: I55cd13c83f43a8a31725e6f6493504bc3ab4e62e
2023-04-04 09:12:48 +00:00
Massimo Carli
5e30c56337 Merge "Fix translucent in smart linking" into tm-qpr-dev 2023-04-04 08:25:14 +00:00
Shan Huang
306150025c DO NOT MERGE Add logging for when IOnBackInvokedCallback is null.
It should never be null. We had a bug where the IME callback can be
unexpectedly GC-ed and jam back nav. This is to verify if we need its
fix ag/21301891 in QPR as well.

Bug: 274911901
Test: atest WindowOnBackInvokedDispatcherTest
Change-Id: Ic2a576655ca16577ca35f3544f5b26d4a0db8f90
2023-04-04 01:58:49 +00:00
Jeff DeCew
e3cbc37188 Merge "[RESTRICT AUTOMERGE] Fix test failure caused by incorrect string" into tm-dev am: 6b0424260e am: 2cbc7777cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22409910

Change-Id: Iccac5511d63413ae7ed7e7c12c7a605b8a1c4e33
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-03 21:31:56 +00:00
Jeff DeCew
93c0c69478 [RESTRICT AUTOMERGE] Fix test failure caused by incorrect string am: ce645d80ba am: 45133db2e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22409910

Change-Id: I421eda80fb61754e0a2e85159d2ebbc8046146dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-03 21:31:40 +00:00
Jeff DeCew
2cbc7777cf Merge "[RESTRICT AUTOMERGE] Fix test failure caused by incorrect string" into tm-dev am: 6b0424260e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22409910

Change-Id: I3a73207ff70392f5e066119520da57262ebc5b54
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-03 21:00:58 +00:00
Jeff DeCew
45133db2e3 [RESTRICT AUTOMERGE] Fix test failure caused by incorrect string am: ce645d80ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22409910

Change-Id: I0d4a480874af04d682b9498dac80a4f0ecebc2f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-03 21:00:52 +00:00
Justin Weir
ceb7010da6 Ensure scrim visibility updated by mPrimaryBouncerToGoneTransition
This was a race condition where the back scrim was not getting to
alpha=zero in time for the last scrim visibility update, so it was
keeping the window up (which then ate the touches). The fix is to
add an insurance scrim visibility update at the end of the fade-in.

Test: ran all atest tests
Test: manually verified that the breaking condition occurred but was mitigated
Fixes: 273998188
Change-Id: I2986c82b3c6831fc581e745cd2a3ac118f314f33
2023-04-03 16:08:33 -04:00
Mike Schneider
83623aaa8e Merge "Change the use of ScreenLifecycle to WakefulnessLifecycle." into tm-qpr-dev 2023-04-03 19:44:22 +00:00
Aaron Liu
453faac20f Merge "Ensure that setVisibility is the" into tm-qpr-dev 2023-04-03 18:24:30 +00:00
Jeff DeCew
6b0424260e Merge "[RESTRICT AUTOMERGE] Fix test failure caused by incorrect string" into tm-dev 2023-04-03 18:10:51 +00:00
TreeHugger Robot
30a093f995 Merge "Add stack trace for OPS disconnect reason logging" into tm-qpr-dev 2023-04-03 16:35:20 +00:00
Massimo Carli
155692f329 Merge "Update double-tap education label" into tm-qpr-dev 2023-04-03 16:33:26 +00:00
TreeHugger Robot
73359104ba Merge "Fix TestUnfoldProgressListener when there are no progress" into tm-qpr-dev 2023-04-03 15:36:45 +00:00
Vinit Nayak
5b7b153349 Merge "Add getter for mockability" into tm-qpr-dev 2023-04-03 14:58:28 +00:00
Mike Schneider
543c39b886 Change the use of ScreenLifecycle to WakefulnessLifecycle.
This is a better fit for the signal in launcher, since it identifies
whether the device is awake or asleep, where asleep also inclues AoD.

Also adding SYSUI_STATE_NOTIFICATION_PANEL_VISIBLE to the IntDef and
debug getSystemUiStateString, since it was missing.

Test: manual, unit tests
Bug: 275319714

Change-Id: I8a3275e177967c24f3bcd30308f11b3524e9d53d
2023-04-03 16:51:44 +02:00
Jeff DeCew
ce645d80ba [RESTRICT AUTOMERGE] Fix test failure caused by incorrect string
Fixes: 276453966
Bug: 274759612
Test: atest NotificationInterruptStateProviderImplTest
Change-Id: I2b49e55e2b0321b6b091793c91b8087135231b86
2023-04-03 14:15:09 +00:00
Massimo Carli
6886d9a129 Update double-tap education label
Put the double-tap education label on two lines

Bug: 275054578
Test: Manual

Change-Id: I17411b0310b672eb48e029c9e32c5a62c69bcfeb
2023-04-03 13:32:28 +00:00
Michael Mikhail
4370dd7e66 [automerger skipped] Merge "Fix issues with setRemotePlaybackInfo" into tm-dev am: 9587fcef86 am: d7e8db0496 -s ours
am skip reason: Merged-In Ida43bb4acc34d666e354c16c4344d5c5eb6b333b with SHA-1 c90fb3f90a is already in history

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

Change-Id: Iaea90a52746de656dd32479416016e1a666b881f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-03 12:40:52 +00:00
Michael Mikhail
d7e8db0496 Merge "Fix issues with setRemotePlaybackInfo" into tm-dev am: 9587fcef86
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22204857

Change-Id: I88322d32ce3405a2f114e3bd3321579a15b7529d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-03 12:11:49 +00:00
Michael Mikhail
9587fcef86 Merge "Fix issues with setRemotePlaybackInfo" into tm-dev 2023-04-03 11:40:47 +00:00
Nicolo' Mazzucato
ca6d0d258e Fix TestUnfoldProgressListener when there are no progress
.last() was failing when there was still no progress.

Test: RemoteUnfoldTransitionReceiverTest
Bug: 276407993
Change-Id: I82afe7a94e29975b96c749885fcbf87a0eeaa89c
2023-04-03 09:04:07 +00:00
Bryce Lee
8630554449 Do not track DreamOverlayStatusBarView for touch.
The dream overlay status bar no longer needs to handle touches
(a touch handler now handles dragging down the notification
shade). This changelist removes touch interception on this view
to allow touches to pass down to the dream.

Fixes: 273540283
Test: manual - tap recovery button from status bar area.
Change-Id: I4551fbc76e083d4214a7b4a83c25ba1f4e077d7a
Merged-In: I4551fbc76e083d4214a7b4a83c25ba1f4e077d7a
2023-04-02 07:46:47 -07:00
TreeHugger Robot
797b0c1b03 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-04-02 03:31:14 +00:00
TreeHugger Robot
de115381fd Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-04-02 03:31:14 +00:00
TreeHugger Robot
63107f1979 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-04-02 03:31:14 +00:00
TreeHugger Robot
415acec274 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-04-02 03:31:14 +00:00
TreeHugger Robot
3f731ab669 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-04-02 03:31:14 +00:00
TreeHugger Robot
77965c4e68 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-04-02 03:31:14 +00:00
TreeHugger Robot
2f9deb2981 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-04-02 03:31:14 +00:00
TreeHugger Robot
14c44a339b Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-04-02 03:31:14 +00:00
TreeHugger Robot
457190e808 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-04-02 03:31:14 +00:00
TreeHugger Robot
18e26e63e9 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-04-02 03:31:14 +00:00
Bryce Lee
7dd0196e53 Merge changes from topic "267565290" into tm-qpr-dev
* changes:
  Allow swiping down notification shade over dream.
  Allow in-progress touch sessions to continue outside resume.
  Correct display dimensions considered.
  Suppress transient bars over dreams.
2023-04-02 03:26:57 +00:00
Mark Renouf
c709566321 Merge "Prevent sharesheet from previewing unowned URIs [RESTRICT AUTOMERGE] (corrected)" into tm-qpr-dev 2023-04-01 00:21:47 +00:00
Bill Yi
4fe1616b1c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I497d069282dead803e0da4de4f6708ac635bb726
2023-03-31 16:54:33 -07:00
Bill Yi
2fba5e4434 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibc02ca0273170cde8b7b2753650be19b106fb1f1
2023-03-31 16:50:15 -07:00
Bill Yi
f892cc9731 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3d9a67e175758600b94e67ac409e57b8ac07bb8f
2023-03-31 16:12:49 -07:00
Bill Yi
64903fd697 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3951cab897572e7f24c772761e000d588f8ed2d3
2023-03-31 16:10:01 -07:00
Bill Yi
dc64aefc70 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I207eff13cf79e82f3bc9fb4d0003f4a68909726a
2023-03-31 16:09:08 -07:00
Bill Yi
39863b7db0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If24b8ce1f72753543509a4550a5af6ad3e438164
2023-03-31 16:07:58 -07:00
Bill Yi
97f070edcd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I31e113f71f6cb930389730dea881925134effb7f
2023-03-31 15:46:04 -07:00
Bill Yi
b252a4595f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1d49dc0ceed33bcfd8901bbf8e525a2a2f7bb51d
2023-03-31 15:45:01 -07:00
Bill Yi
a7c8a1ee7e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id5e9d7d2e8aacf8822bfe0aed60847a00b2c8cc6
2023-03-31 15:31:22 -07:00