Commit Graph

1213 Commits

Author SHA1 Message Date
Jerry Chang
f1745c13a7 Merge "Fix Launcher being occluded during rotate transition" 2022-02-09 03:28:21 +00:00
TreeHugger Robot
10e2560cba Merge "Have both NAVIGATION_HINT_IME{,_SWITCHER}_SHOWN" 2022-02-05 02:48:09 +00:00
Yohei Yukawa
bf122b9f94 Have both NAVIGATION_HINT_IME{,_SWITCHER}_SHOWN
This is a mechanical renaming CL with no behavior change.

Somehow NAVIGATION_HINT_IME_SHOWN was set when the IME switcher needs
to be shown, not when the IME is shown.  This CL aims to avoid future
confusions by also introducing

  NAVIGATION_HINT_IME_SWITCHER_SHOWN

then setting NAVIGATION_HINT_IME_SHOWN when the IME is actually shown.

This CL also updates NavigationBarTest to verify those flags.

Bug: 192412909
Bug: 217755059
Test: atest SystemUITests:NavigationBarTest
Change-Id: I8bdd58d040689953072c7f384ece2bca677265e1
2022-02-04 12:49:21 -08:00
Shan Huang
445c5f24a2 Expose IBackAnimation from Shell to Launcher.
Test: m -j
Bug: b/195946584
Change-Id: I26f48e78c91ef99757da9bc09d4a4f98dc50f863
2022-02-04 18:50:38 +00:00
Caitlin Cassidy
44386a5a2e [Media TTT] Add @SystemApis for all the media transfer callbacks.
This migrates the media transfer from just a service to a full-fledged
@SystemApi. Some of the testing infrastructure has not yet been migrated
to keep this CL slightly smaller.

Bug: 216318437
Test: systemui media.taptotransfer tests *still need to be updated*
Change-Id: Idf1f72de1343020668e158d74051c1dfb970cfcd
2022-02-02 16:14:33 +00:00
Caitlin Cassidy
8333b4f42f Merge "[Output Switcher] Implement nearby device callbacks." 2022-02-02 14:37:20 +00:00
TreeHugger Robot
fc3e8ba58a Merge "Apply alpha to status bar during unfold" 2022-02-02 03:47:54 +00:00
Caitlin Cassidy
3594077b18 [Output Switcher] Implement nearby device callbacks.
Bug: 216313420
Test: atest NearbyMediaDevicesServiceTest
Change-Id: I7014df50afef1e845a6c8a62e6b3ef29cc7197a8
2022-02-01 16:58:17 +00:00
Nicolo' Mazzucato
8188445d32 Apply alpha to status bar during unfold
Status bar icons are displayed only in the last 25% of the unfold progress. Otherwise, during unfold to app scenario, they were going outside the app window.

+ Minor kotlin fixes.

Test: Unfold while app opened
Bug: 210997078
Change-Id: I26ab9cb28ce4d894ad33b6b26e11ae59e28234bd
2022-02-01 16:57:34 +01:00
Nicolo' Mazzucato
4b40d32ae4 Animate notification shade during unfold
Adds some constant translation to elements of the notification shade during fold/unfold. This is only applied when the device is in natural rotation.

KeyguardUnfoldTransition was doing the same: the logic has been extracted in UnfoldConstantTranslateAnimator, that is now used by both classes.
KeyguardUnfoldTransition's tests related to the animator have been moved to UnfoldConstantTranslateAnimatorTest.kt.

+ Minor formatting issues fixed (using ktfmt)

Bug: 201411030
Test: atest UnfoldConstantTranslateAnimatorTest KeyguardUnfoldTransitionTest + Tested manually on lockscreen and notification shade
Change-Id: Ic8d4cf5d7b2a9f8fc366842623c87c15cf79766f
2022-01-31 19:22:27 +01:00
Bryce Lee
f57d17639a Remove CommunalSource related AIDL interfaces.
This changelist removes the CommunalSource AIDL interfaces that are no longer used.

Bug: 216515830
Test: manual
Change-Id: I82f96e1b30da7eb46145e46cbe629135cc342c8e
2022-01-30 12:37:50 -08:00
Pat Manning
c9327bc2da Merge "Track immersive mode via a new SysUI state." 2022-01-28 10:24:07 +00:00
Jerry Chang
3bcc395074 Fix Launcher being occluded during rotate transition
I1177b1ef removed independent checks and reparent all transition-leashes
to root leash. Which result to wrong z-order setup during rotation
transition because it also reparents task display area transition-leash
to root leash.

This brings back independent change checks and overrides root task
targets with corresponding child task info. This is needed because
Launcher monitors leaf task id to perform recent apps transition.
Otherwise child task targets might get transformed twice with the flow
like RecentsView#redrawLiveTile.

Bug: 206487881
Test: close landscape app to portrait home, observed Launcher stays on
      top of wallpaper during transition.
Test: swipe up split pair to recent apps panel transformes thumbnail
      pair properly.

Change-Id: I234e329c40938cec7e35a62dc51d00cdf2e84b0b
2022-01-27 16:34:04 +00:00
Wei Sheng Shih
85b897d6f3 Merge "Fixes opening task from Recents can be hidden." 2022-01-25 03:45:17 +00:00
Josh Tsuji
675a220925 Merge "Adds Launcher in-window animations, and reworks how the unlock flow works." 2022-01-24 20:34:44 +00:00
Caitlin Cassidy
dbd0419bab Merge changes Iceea7c10,Iba98b916,I912caa44,Id5aef5c4,Iddc05936, ...
* changes:
  [Media TTT] Add NoLongerCloseToReceiver callback.
  [Media TTT] Add TransferToThisDeviceSucceeded callback.
  [Media TTT] Add an undo callback to the interface for when a transfer has succeeded. The callback will be invoked when the user presses the undo button.
  [Media TTT] Add the #transferToReceiverSucceeded callback.
  [Media TTT] Add transferToThisDeviceTriggered callback.
  [Media TTT] Update chip states to not require otherDeviceName if they don't need it. Define a #getChipTextString method instead.
2022-01-24 20:04:34 +00:00
TreeHugger Robot
cbfc6f5891 Merge changes Ibb968d5c,I38521e9a
* changes:
  [Media TTT] Add the #transferToReceiverTriggered callback.
  [Media TTT] Don't use futures for determining whether a transfer has succeeded or not.
2022-01-24 19:36:40 +00:00
TreeHugger Robot
c11852d456 Merge changes Ic4074394,I1be9f1ab
* changes:
  [Media TTT] Add error state.
  [Media TTT] Add the #closeToReceiverToEndCast callback.
2022-01-24 19:36:24 +00:00
Pat Manning
0a45cccbc1 Track immersive mode via a new SysUI state.
Test: manual
Bug: 203748818
Change-Id: Iae29044fd1962391a6bd0390dcb7870ced2b3efb
2022-01-24 18:06:00 +00:00
TreeHugger Robot
0e4308a36c Merge "Add log dumps for taskbar" 2022-01-21 15:05:32 +00:00
Wei Sheng Shih
e399817f9d Merge "Shift Recents task to top when opening Recents." 2022-01-21 10:11:57 +00:00
Wei Sheng Shih
d84239bd7a Merge "Let TransitionHandler to clear the transition-leash" 2022-01-21 09:34:02 +00:00
Caitlin Cassidy
180e9686d6 [Media TTT] Add NoLongerCloseToReceiver callback.
Bug: 203800643
Bug: 203800347
Test: verify `adb shell cmd statusbar media-ttt-chip-sender Device
NoLongerCloseToReceiver` hides the chip
Test: media.taptotransfer tests

Change-Id: Iceea7c10b23dc1b175e11335ca4fcf695ca98fb6
2022-01-21 00:24:08 +00:00
Caitlin Cassidy
ca400ac4a9 [Media TTT] Add TransferToThisDeviceSucceeded callback.
Bug: 203800643
Bug: 203800347
Test: verify `adb shell cmd statusbar media-ttt-chip-add-sender Device
TransferToThisDeviceSucceeded` shows the chip
Test: media.taptotransfer tests

Change-Id: Iba98b91617e25126e03c99d03e0a628994e6516a
2022-01-20 23:43:33 +00:00
Schneider Victor-tulias
8ef85375cd Add log dumps for taskbar
Test: created bugreport and checked logs
Bug: -
Change-Id: I45f28aa27dfccab016ebbd96b5dc189af5444b09
2022-01-20 10:43:28 -08:00
Nicolò Mazzucato
e0e9d4ef49 Merge "Reformat unfold lib with ktfmt" 2022-01-20 13:18:30 +00:00
wilsonshih
afad4c7fc5 Fixes opening task from Recents can be hidden.
The opening task from Recents can be invisible because there would hide
the created leash, which should be unnecessary since the recents window
animator would handle the cross fade animation.

Test: Enable shell transition, enter recents, swipe to right-most page(
the page shows "Clear all"), then click the task and verify the task
won't become invisible during animation. Test on both NexusLauncher and
3rd-party Launcher.
Test: atest FlickerTests:OpenAppFromOverviewTest
Test: atest TaplTestsQuickstep

Change-Id: I0f7b7855de944c744190f6599ed48490f6e0d9f0
2022-01-20 16:14:18 +08:00
wilsonshih
028954b0b1 Let TransitionHandler to clear the transition-leash
Send the remove transition-leash transaction back to the transition
handler, so it can be applied with finishTransaction together, in
case the task surface suddenly disappears due to no parents.

Bug: 213867585
Bug: 214352241
Test: atest WMShellFlickerTests:QuickSwitchBetweenTwoAppsForwardTest
Test: atest WMShellFlickerTests:MovePipDownShelfHeightChangeTest
Change-Id: I5fca942c92d7175dc2f08c3f14f4da464405709c
2022-01-20 14:55:19 +08:00
wilsonshih
798075a566 Shift Recents task to top when opening Recents.
Unlike usual opening/closing app transition, the Recents task should
above Home task when opening recents, otherwise the home task would
above the recents task so it will seems like the home been add into
recents animation.

Bug: 207297486
Test: enable shell transition, setup 3rd-party launcher as default
home. Entering recents at home page and verify the home task won't
stay on top.

Change-Id: I9bac97cb79febf112ec9ac1bdbe3de205604b01d
2022-01-20 06:54:06 +00:00
Merissa Tan
f689c8dfef Merge "Create new DesktopNavbarButtonsViewController class." 2022-01-19 19:22:49 +00:00
Jerry Chang
1b7cf5a207 Merge "Consolidate recent animation in split screen with shell-transition" 2022-01-19 01:45:56 +00:00
Merissa Tan
2d6fce65c2 Create new DesktopNavbarButtonsViewController class.
This CL creates a new DesktopNavbarButtonsViewController class to allow
for taskbar buttons and status icons customization on desktop
environment.

Recall: http://recall/clips/1f3b88e2-9f4e-4291-a9fe-a17641d1fd0c

Bug: 213964564
Bug: 196757951
Test: Switch between different system navigation modes and verify the
desktop taskbar buttons/status icons stay on screen, and are functional.

Change-Id: I05846b61689213ded88b8f49460aced88e49fd65
2022-01-18 17:06:48 -08:00
Josh Tsuji
32354d952b Adds Launcher in-window animations, and reworks how the unlock flow works.
Bug: 197636887
Test: atest SystemUITests
Change-Id: If6ff114f90fcfc19b9e3530bb0dea8cc0591f745
2022-01-18 17:41:28 -05:00
Nicolo' Mazzucato
ff4060f5a5 Reformat unfold lib with ktfmt
This runs ktfmt on all unfold shared lib files. In this way there is always only one valid and consistent way to format our files.

+ Some documentation comment spacing refactored to look nicer.

Bug: 193798864
Test: m
Change-Id: I031a6e8c580ff763f9d2f4ee364807f1d405ba6d
2022-01-18 17:55:46 +01:00
Michael Groover
e10c4c21ac Merge "Add unaudited exported flag to exposed runtime receivers" 2022-01-17 17:53:29 +00:00
Jerry Chang
3c1ea525ed Consolidate recent animation in split screen with shell-transition
Make sure to delegate recent transition to launcher after split screen
activated.

Bug: 206487881
Test: manual check swipe split-pair to overview panel and swipe to home
      behavior
Change-Id: I1177b1efdd7a45e8f9ec162b2155dbea1660e1af
2022-01-17 03:13:31 +00:00
Michael Groover
de14599c42 Add unaudited exported flag to exposed runtime receivers
Android T allows apps to declare a runtime receiver as not exported
by invoking registerReceiver with a new RECEIVER_NOT_EXPORTED flag;
receivers registered with this flag will only receive broadcasts from
the platform and the app itself. However to ensure developers can
properly protect their receivers, all apps targeting T or later
registering a receiver for non-system broadcasts must specify either
the exported or not exported flag when invoking #registerReceiver;
if one of these flags is not provided, the platform will throw a
SecurityException. This commit updates all the exposed receivers
with a new RECEIVER_EXPORTED_UNAUDITED flag to maintain the existing
behavior of exporting the receiver while also flagging the receiver
for audit before the T release.

Bug: 161145287
Test: Build
Change-Id: I5faa64ae0d2b22b62390bf13cb2b87fd6926e0c7
2022-01-15 00:26:43 +00:00
Caitlin Cassidy
5852540a88 [Media TTT] Add an undo callback to the interface for when a transfer
has succeeded. The callback will be invoked when the user presses the
undo button.

Bug: 203800643
Bug: 203800347
Test: verify `adb shell cmd statusbar media-ttt-chip-add-sender Device
TransferToReceiverSucceeded` shows a chip with an Undo button. Verify
tapping the undo button switches the chip to the loading state again.
Test: media.taptotransfer tests

Change-Id: I912caa4408badffaa7a8e19f04e89bafd5d9a8ad
2022-01-14 20:49:39 +00:00
Caitlin Cassidy
a6d18d89f9 [Media TTT] Add the #transferToReceiverSucceeded callback.
Bug: 203800643
Bug: 203800347
Test: verify `adb shell cmd statusbar media-ttt-chip-add-sender Device
TransferToReceiverSucceeded` shows the chip
Test: media.taptotransfer tests

Change-Id: Id5aef5c4f5fe61d26ad556b28f6d6cdb4d6ad31d
2022-01-14 19:18:04 +00:00
Nicolò Mazzucato
5355b68962 Merge "Add Jank test for unfold transition" 2022-01-14 10:59:12 +00:00
Nicolò Mazzucato
15b6908100 Merge "Enhance dagger usage in UnfoldSharedModule" 2022-01-14 09:28:52 +00:00
TreeHugger Robot
2bb62ccaaa Merge "Removing SurfaceControlCompat" 2022-01-14 07:04:53 +00:00
TreeHugger Robot
24f7505d0b Merge "[Media TTT] Add DeviceInfo to the service callback." 2022-01-13 22:42:32 +00:00
Caitlin Cassidy
b3defd20a4 [Media TTT] Add transferToThisDeviceTriggered callback.
Bug: 203800643
Bug: 203800347
Test: `adb shell cmd statusbar media-ttt-chip-add-sender Device
TransferToThisDeviceTriggered` triggers a chip saying "Playing on this
device" with loading icon
Test: media.taptotransfer tests

Change-Id: Iddc0593603f7fdd96a67b805a808205e77658d8d
2022-01-13 21:55:31 +00:00
Caitlin Cassidy
60bb228f70 [Media TTT] Add the #transferToReceiverTriggered callback.
Also renames TransferInitiated -> TransferToReceiverTriggered, because
we also need a TransferToThisDeviceTriggered callback.

Bug: 203800643
Bug: 203800347
Test: verify `adb shell cmd statusbar media-ttt-chip-add-sender Tablet
TransferToReceiverTriggered` works
Test: media.taptotransfer tests

Change-Id: Ibb968d5c35391cf84e28fc2460148ea6bf396d14
2022-01-13 21:44:15 +00:00
TreeHugger Robot
71abd1233b Merge "[Media TTT] Add the aidl interface for the sender and a service that implements it." 2022-01-13 21:37:03 +00:00
Caitlin Cassidy
a0cf54232c [Media TTT] Add error state.
Screenshot of chip is in the linked bug.

Fixes: 211493953
Test: manual: verify `adb shell cmd statusbar media-ttt-chip-add-sender
Tablet TransferFailed` triggers failed chip
Test: media.taptotransfer tests

Change-Id: Ic4074394af1bf619581bad479eb6828ff04368d1
2022-01-13 20:39:13 +00:00
Caitlin Cassidy
b8bcb11dd7 [Media TTT] Add the #closeToReceiverToEndCast callback.
Bug: 203800643
Bug: 203800347
Test: verify `adb shell cmd statusbar media-ttt-chip-add-sender
Tablet MoveCloserToStartCast` triggers start cast chip
Test: verify `adb shell cmd statusbar media-ttt-chip-add-sender
Tablet MoveCloserToEndCast` triggers end cast chip
Test: media.taptotransfer tests

Change-Id: I1be9f1ab9785b47c4b2321e48a61e0985613e112
2022-01-13 20:39:08 +00:00
Vadim Tryshev
28623e0269 Merge "Removing 2-button support from tests" 2022-01-13 17:59:57 +00:00
Nicolo' Mazzucato
6fb25a6665 Enhance dagger usage in UnfoldSharedModule
UnfoldTransitionProgressProvider is used in sysui and in other places that don't use dagger (e.g. Launcher).
However, we want to use dagger for all unfold transition related classes.
The solution in this cl is to create FoldSharedComponent. If an app that doesn't use dagger need UnfoldTransitionProgressProvider (or other shared classes), it can create the component with the factory, and get those object (now created by dagger, previously manually created).
If the app uses dagger, UnfoldSharedModule should be used instead.

The external interface is not changed in this cl: createUnfoldTransitionProgressProvider is left as it was before, therefore launcher doesn't require any change and continues to work as before.

Test: atest com.android.systemui.unfold
Test: Manually tested
Bug: 213908821
Change-Id: I22885ec15fed99254405e26ed2fe99a9567625b6
2022-01-13 18:10:01 +01:00