Commit Graph

1376 Commits

Author SHA1 Message Date
Yunfan Chen
bcadfd2476 Refine the provide insets parameters
There're 3 different parameters trying to affect the insets provided by
a window and can be set independently but are related. This change will
make a new class InsetsFrameProvider to let the window set all the
information needed for the insets at the same place.

Besides, this change also extends the insets calculation logic to
support more use cases. With this, the bars can provide insets outside
of its window frame as well.

Test: atest DisplayPolicyLayoutTests
Bug: 161689946
Bug: 232044523
Change-Id: I7059b3a222745818b6852a288416e197e2afd7b2
2022-06-09 15:20:30 +09:00
TreeHugger Robot
a074c45b0e Merge "Move plugin definition to plugin library" 2022-06-08 00:16:37 +00:00
Hawkwood Glazier
14f67f4d74 Move plugin definition to plugin library
Bug: 229771520
Test: No new tests, just a package change
Change-Id: I591c337f8f6062befdb2a08f61a1456c5af04be3
2022-06-07 19:55:48 +00:00
Beverly
b559278cda 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
Bug: 233081863
Change-Id: I4ea5dae1dc8018478cc98e5e2520ef2afd2fdc58
2022-06-06 14:21:49 +00:00
Hawkwood Glazier
02d0ac1be7 Merge "Changes to plugin events to better match AnimatableClockView" 2022-06-03 18:44:36 +00:00
Vinit Nayak
962b25b144 Merge "Remove deprecated methods from SysUiProxy" into tm-qpr-dev am: 3ba101f940 am: c0c31d5856
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18701924

Change-Id: I07e8f5f976d9f818809ca8f93d99d6917142953b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-03 17:33:21 +00:00
Vinit Nayak
3ba101f940 Merge "Remove deprecated methods from SysUiProxy" into tm-qpr-dev 2022-06-03 16:39:11 +00:00
Hawkwood Glazier
12e7465fe2 Changes to plugin events to better match AnimatableClockView
Bug: 229771520
Test: Interface change, no test
Change-Id: Id25a9efc4bb2410f03634b8f8ab3ed301af07bf9
2022-06-03 15:40:40 +00:00
Hawkwood Glazier
18c08045e9 Migrate AnimatableClockView to SystemUISharedLib
Attempt #2

Bug: 229771520
Test: Automated
Change-Id: I93170c27d47017a81c4ef430823939fd0b9ec9c7
2022-06-02 18:16:32 +00:00
Martijn Coenen
50b6567573 Merge "Revert "Migrate AnimatableClockView to SystemUISharedLib"" 2022-06-02 14:18:55 +00:00
Martijn Coenen
b821a9ae3c Revert "Migrate AnimatableClockView to SystemUISharedLib"
Revert submission 18538234-anim_clock_view_migrate

Reason for revert: b/234715807
Reverted Changes:
Ic1270b5fc:Migrate AnimatableClockView to SystemUISharedLib
Ieeef5d67c:Update package of AnimatableClockView

Change-Id: Id88b5ea8a578c2dc322b17cc86d5b65f7ddcf4c2
2022-06-02 14:14:22 +00:00
Hawkwood Glazier
4b2880462e Merge "Migrate AnimatableClockView to SystemUISharedLib" 2022-06-02 13:54:20 +00:00
Tracy Zhou
52c134ea8b Merge "Show floating rotation button in sticky immersive mode if in gesture nav" into tm-qpr-dev am: 21fc900abf am: 6aac32a3ef
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18670921

Change-Id: Ifba1ded1a15b565a9b2ed0c6e98dc20d2f5e7559
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 01:28:20 +00:00
Vinit Nayak
65030621f8 Remove deprecated methods from SysUiProxy
Bug: 233006032
Change-Id: If934c96245eb782d7905334421d437a8b45bd801
2022-06-01 16:06:10 -07:00
Hawkwood Glazier
1a356f83b7 Migrate AnimatableClockView to SystemUISharedLib
Bug: 229771520
Test: Automated
Change-Id: Ic1270b5fc31526b877068eb3357f822d7818d304
2022-06-01 14:25:08 +00:00
Hawkwood Glazier
e3004a6e5f Setting for Lockscreen Clock
Bug: 229771520
Test: Automated
Change-Id: Ia5b4dfe38d48a41cbfb59109c819647b9e8398cf
2022-06-01 00:22:39 +00:00
Tracy Zhou
2a4e1476d3 Show floating rotation button in sticky immersive mode if in gesture nav
Bug: 216182085
Test: manual
Change-Id: I00f1718e754f81e68ea2cc153540d65a65576599
2022-05-31 12:52:46 -07:00
Wei Sheng Shih
d48faa1920 Merge "Cancel the recents animation when keyguard is occluding.[1/2]" into tm-qpr-dev am: b1f4e4cf81 am: 9047fd05c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18130746

Change-Id: I823013e3a8d28dc12131c8c6b9549f716e4b1daf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 02:30:14 +00:00
wilsonshih
c2a9637541 Cancel the recents animation when keyguard is occluding.[1/2]
User can enter recents animation while a showWhenLocked activity on top
of keyguard by touch down navigation bar. In legacy, Launcher start the
recents animation by keep the original top activity on top. But for
shell transition, Launcher will start home activity with transient
launch flag. When core receive start activity request, unlike
startRecentsAnimation, core will try to move the activity to top, which
break the keyguard occluding state, so the keyguard will pop up on
screen before dismiss recents animation, and there is not have enough
information for shell know whether to hide the surface of the original
top activity.
To make the occluding state unchange during start transient launch, we
do not resume the launcher activity, also we do not move it to top. So
what we need to do is to collect the surfaces from launcher + top
occluding task + wallpaper and send this transition to shell.
Another change is Launcher will finish recents animation by calling the
RecentsAnimationController directly without start home activity. By
determine the top activity when set restoreTransientOrder, there will
update the hierarchy, which may change the occluding state and decide
whether to play unoccluding animation.

Bug: 230582311
Test: monitor no strange animation when running atest KeyguardTests
Test: enable shell transition. Start showWhenLocked activity while
keyguard showing. Scroll up to dismiss the activity and verify the
activity and home shall be stopped and only keyguard remains on the
screen.
Also verify entering recents works fine when device is unlocked.

Change-Id: Ia16fa01fdc09547cfb3ae1370875ac70f07ede8d
2022-05-25 12:56:10 +08:00
Hawkwood Glazier
1323984dac Move ClockRegistry to SystemUISharedLib
Bug: 229771520
Test: Automated
Change-Id: I7e921038a803188eee4cc437b7076db97ecdd853
2022-05-21 02:08:46 +00:00
Alex Johnston
00090b1d4a Merge "Add background protection when work biometrics is shown" into tm-dev am: ed00c662dc am: 9eeb0112fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18351382

Change-Id: Ic48ca6f44aabcb4cc02ac03dc656603f8e8a3c4f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:00:03 +00:00
Alex Johnston
fd0e047e1f Add background protection when work biometrics is shown
* Remove existing coloured background.
* Add a background with a layout that includes a
  badged icon of the app being opened.

Manual testing steps:
* Set up device with a work profile using TestDPC
* Set a fingerprint in the work profile
* Open a work app
* Lock the device
* Verify the background protection is shown behind
  the biometric prompt

Screenshots:
* Dark mode: https://screenshot.googleplex.com/3SwGWrBREYoZFaH
* Light mode: https://screenshot.googleplex.com/8bzX9wLoFGJ2ado

Bug: 206761107
Test: Manual testing
    WorkLockActivityControllerTest
    TaskStackListenerImplTest
Change-Id: I90d117a97d7457a3186953c16db8bd0bbac048ed
(cherry picked from commit b3aa96f89f)
2022-05-17 22:59:09 +00:00
Tony Huang
c5f4df466a Merge "Remove supportsSplitScreenMultiWindow" into tm-qpr-dev am: 0a066377f3 am: ab6067b959
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18281748

Change-Id: I37dd8417c415f3d7ad63a110a546a65964bea5e5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 22:37:20 +00:00
Alex Johnston
b3aa96f89f Add background protection when work biometrics is shown
* Remove existing coloured background.
* Add a background with a layout that includes a
  badged icon of the app being opened.

Manual testing steps:
* Set up device with a work profile using TestDPC
* Set a fingerprint in the work profile
* Open a work app
* Lock the device
* Verify the background protection is shown behind
  the biometric prompt

Screenshots:
* Dark mode: https://screenshot.googleplex.com/3SwGWrBREYoZFaH
* Light mode: https://screenshot.googleplex.com/8bzX9wLoFGJ2ado

Bug: 206761107
Test: Manual testing
    WorkLockActivityControllerTest
    TaskStackListenerImplTest
Change-Id: I90d117a97d7457a3186953c16db8bd0bbac048ed
2022-05-16 14:20:56 +01:00
Tony Huang
0a066377f3 Merge "Remove supportsSplitScreenMultiWindow" into tm-qpr-dev 2022-05-16 08:04:27 +00:00
Automerger Merge Worker
da994d6a25 Merge "Merge "Extract unfold classes to a separate library" into tm-qpr-dev am: 3676e7afd6" into tm-qpr-dev-plus-aosp am: c289c56bf3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18321388

Change-Id: I795ecf34d8fbee30992141f6ef77515e240367ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 20:06:30 +00:00
Nick Chameyev
0f3c4e522e Extract unfold classes to a separate library
No behaviour changes in this CL.
Extracted classes related to the fold/unfold
animation (that plays on foldable devices) to
a separate library that does not depend on
system classes. This is necessary to ease
reusing these classes in live wallpapers.

Bug: 231936088
Test: fold/unfold device
Change-Id: Ic1e1ec742867fca9c1209b930accd5738de18e39
2022-05-13 13:33:17 +00:00
Tony Huang
98b4783fa8 Remove supportsSplitScreenMultiWindow
For new split screen, we are using supportsMultiWindow and other
multi-window features should use it too so remove
supportsSplitScreenMultiWindow and update some files which still
use it.

Bug: 199236198
Test: pass existing tests
Change-Id: I3b3ec3376a4c79295f9d9f913585534a3815e75a
2022-05-11 17:52:34 +08:00
Dave Mankoff
2a9196841c Remove last call to Dep.get from NavigationBarView
Removes the last call to Dependency#get from NavigationBarView. A few
more calls were added in the process, but they will be easier to deal
with in future cls.

Bug: 218354102
Test: manual && atest SystemUITests
Change-Id: I0b6b3837d9f1cfd11f0cdb4089fb51ecf79b467b
Merged-In: I0b6b3837d9f1cfd11f0cdb4089fb51ecf79b467b
2022-05-10 00:23:52 +00:00
Dave Mankoff
6c0c934313 Remove last call to Dep.get from NavigationBarView
Removes the last call to Dependency#get from NavigationBarView. A few
more calls were added in the process, but they will be easier to deal
with in future cls.

Bug: 218354102
Test: manual && atest SystemUITests
Change-Id: I0b6b3837d9f1cfd11f0cdb4089fb51ecf79b467b
Merged-In: I0b6b3837d9f1cfd11f0cdb4089fb51ecf79b467b
2022-05-09 20:45:25 +00:00
Dave Mankoff
dbd746d84c Remove last call to Dep.get from NavigationBarView
Removes the last call to Dependency#get from NavigationBarView. A few
more calls were added in the process, but they will be easier to deal
with in future cls.

Bug: 218354102
Test: manual && atest SystemUITests
Change-Id: I0b6b3837d9f1cfd11f0cdb4089fb51ecf79b467b
2022-05-09 16:30:13 +00:00
Justin Weir
1ebcb179b4 Merge "Ensure log buffers are dumped to file on uncaught exceptions" into tm-dev am: b41c2879b4 am: 844af86b3d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17915248

Change-Id: I3acca5dc2642a2c001d97a841834e0560cfaa139
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-03 13:36:11 +00:00
Justin Weir
e57d93028f Merge "Ensure log buffers are dumped to file on uncaught exceptions" into tm-dev am: b41c2879b4 am: 9fa399c705
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17915248

Change-Id: I49a46acc2cf07ea935275ab5f35985ed753d7fb1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-03 13:35:40 +00:00
TreeHugger Robot
bd3b9d8695 Merge "Listen for VIS window visibility changes in SysUI" into tm-dev am: 0b870355cb am: 9ef47d9ed9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17211291

Change-Id: I7517f6109e45142d02b9749355f5ca7398847a53
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 22:52:48 +00:00
Justin Weir
7209b5baf1 Ensure log buffers are dumped to file on uncaught exceptions
Move the functionality for wrapping an uncaught exception pre-handler
from PluginManager to a standalone manager. Make DumpHandler register
another uncaught exception pre-handler that will tell the log buffer
eulogizer to dump contents to a file.

Fixes: 213884413
Test: manually verified, added tests, and ran atest
Change-Id: If829fc33769819624530f766178689ecf0374926
2022-05-02 20:41:24 +00:00
Josh Tsuji
49b3051783 [conflict] Merge "Use Launcher smartspace instead of SysUI's for the shared element transition." into tm-dev am: 7b5e80f2f6 am: 4c4fac6cad
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17892808

Change-Id: I366fed58aafc477399a792e5b65fca4df915a4d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 11:07:45 -04:00
TreeHugger Robot
5f3fe3229e Merge "Listen for VIS window visibility changes in SysUI" into tm-dev am: 0b870355cb am: 9ef47d9ed9 am: cfa19fb1f7 am: 982bd63b00
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17211291

Change-Id: I2842c982f61c334d02956fe3b6f20a84362d32f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 12:36:18 +00:00
TreeHugger Robot
982bd63b00 Merge "Listen for VIS window visibility changes in SysUI" into tm-dev am: 0b870355cb am: 9ef47d9ed9 am: cfa19fb1f7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17211291

Change-Id: Iec7d8aace358b38112e02502a67d4c5f7bcd41a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-30 03:51:32 +00:00
TreeHugger Robot
0b870355cb Merge "Listen for VIS window visibility changes in SysUI" into tm-dev 2022-04-30 03:29:16 +00:00
Winson Chung
4801f789c5 Listen for VIS window visibility changes in SysUI
Bug: 222308557
Bug: 216301097
Test: Manual, invoke assistant on the lockscreen and verify you can
      go back

Change-Id: I675a0c694b8d85e7cd67f7a550fe8e8ab85e9ad2
2022-04-29 21:11:49 +00:00
Josh Tsuji
74510b4b37 [conflict] Merge "Use Launcher smartspace instead of SysUI's for the shared element transition." into tm-dev am: 7b5e80f2f6 am: b9d48538d5 am: ef77303801
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17892808

Change-Id: I911eec7e45ded0b3452ec341aafd254b9bbc2d95
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 16:24:33 -04:00
Josh Tsuji
ddfe8bda75 Use Launcher smartspace instead of SysUI's for the shared element transition.
See justification/explanation in linked bug.

I re-ordered some methods in the unlock controller so they'd make more sense,
they're generally called from top to bottom now during the unlock sequence.

Bug: 229890190
Fixes: 227713319
Test: atest SystemUITests
Test: manual
Merged-In: I58fa437eea183691ff29548143664698498c2105
Change-Id: I58fa437eea183691ff29548143664698498c2105
2022-04-29 05:40:54 +00:00
Josh Tsuji
53781df704 Use Launcher smartspace instead of SysUI's for the shared element transition.
See justification/explanation in linked bug.

I re-ordered some methods in the unlock controller so they'd make more sense,
they're generally called from top to bottom now during the unlock sequence.

Bug: 229890190
Fixes: 227713319
Test: atest SystemUITests
Test: manual
Change-Id: I58fa437eea183691ff29548143664698498c2105
2022-04-28 13:00:16 -04:00
Nick Chameyev
e15b3e9ea7 Merge "Initialize StatusBar unfold animation with 1f progress" into tm-dev am: cd1db9f39e am: 5a91a37c32
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17884335

Change-Id: I4f493699c3e950c4a1b092720ba2979762f7cdac
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 15:00:49 +00:00
Nick Chameyev
f970175b79 Merge "Initialize StatusBar unfold animation with 1f progress" into tm-dev am: cd1db9f39e am: bbe6bb795b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17884335

Change-Id: Ic96c76cc1a94621deab7eaf768ac2b1767d4d240
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 14:58:58 +00:00
Nick Chameyev
cd1db9f39e Merge "Initialize StatusBar unfold animation with 1f progress" into tm-dev 2022-04-25 14:24:32 +00:00
Issei Suzuki
3a0ce75489 Merge "Add timestamp to ActivityOptions.OnAnimation*Listener" into tm-dev am: 408b90ffad am: 69ca04c6e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17860344

Change-Id: I2eee80f5c11f997b8071ac62bcb1afa939365251
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-23 05:10:02 +00:00
Issei Suzuki
e04873ac02 Merge "Add timestamp to ActivityOptions.OnAnimation*Listener" into tm-dev am: 408b90ffad am: f5271f10de
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17860344

Change-Id: I912bc42a72262e88730a4364ad556a3a6fa6ca2b
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-23 05:09:30 +00:00
Issei Suzuki
8fbc23c5c9 Add timestamp to ActivityOptions.OnAnimation*Listener
Bug: 229948029
Test: atest ActivityTransitionTests
Change-Id: I1e6d21c8b603f4e81bde6c649868baad625c2b38
2022-04-22 21:47:24 +02:00
Josh Tsuji
e585c86f02 Merge "Invalidate home task snapshot onWakeAndUnlock." into tm-dev am: 30183c1cf8 am: 84545d2acf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17802841

Change-Id: Ia919ca13990c794f6ee5f47fae7bf9393bff5208
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 18:59:20 +00:00