Commit Graph

22963 Commits

Author SHA1 Message Date
thiruram b91480e3c7 Add app launch event for tap on shortcut in shortcut container.
Bug: 157765763
Change-Id: I769eb81ccabc96ad1c6c4c3d53ff89a8a744c3e0
2020-06-01 16:38:36 -07:00
Tony Wickham 1287feb616 Update TaskView fullscreen params when updating the thumbnail matrix
Previously, we were only updating the fullscreen params when updating
fullscreen progress. The problem with that is we optimize to skip
updating fullscreen progress if the new progress is the same as the
current. But since the fullscreen params depend on the insets computed
by the preview position helper, we should update the fullscreen params
when we update the preview position helper.

Test: force stop launcher, quick switch directly to the right, ensure
the adjacent TaskView has its insets applied properly

Bug: 157105795
Change-Id: I3c3b47c69205607c9e10ed38c403211816f30939
2020-06-01 18:32:12 -05:00
Sunny Goyal 518d54e3f2 Preventing launcher preload if user setup is not complete
Also fixing some leaks due to not destroying RecentsAnimationDeviceState

Bug: 155350432
Change-Id: I70f510c3db03515d5889f0bcde6a15a9456e9791
2020-06-01 16:19:38 -07:00
TreeHugger Robot 2a4dce1402 Merge "Fixing loadTasksInBackground called twice on swipe up" into ub-launcher3-rvc-dev 2020-06-01 22:44:03 +00:00
Sunny Goyal b396864072 Fixing loadTasksInBackground called twice on swipe up
Bug: 157644889
Change-Id: Ia4413ea878f8ba731fbb7a8f61b7c0c0050f3811
2020-06-01 15:12:32 -07:00
thiruram 5f1274c863 Log tap on widget and appinfo system icons within ShortcutContainer.
Bug: 157765763
Change-Id: Id417728d27678cce073ff36d24b129c4435dcbe5
2020-06-01 21:56:12 +00:00
thiruram 63bf8eedf9 Add WW log for drag events from longpress popup window.
Bug: 157765763
Sample Log: https://docs.google.com/document/d/1CBP2yTcXdFhPdNG5ZmWFKSgd8mDbMevY-akVlUXPLDo/edit#bookmark=id.368csp9y1pwc

Change-Id: I73024f2c8010e77b6f89829fda64130f54ff81f1
2020-06-01 21:55:25 +00:00
TreeHugger Robot 77aaa94bc2 Merge "Fix bug where font size (etc.) doesn't change after changing display settings." into ub-launcher3-rvc-dev 2020-06-01 21:51:53 +00:00
Jon Miranda 7772fcde47 Fix bug where font size (etc.) doesn't change after changing display settings.
The metrics we get from Display#getMetrics does not change regardless of
what the new configuration is (we would expect the scaledDensity to change).

Documentation shows that Display#getMetrics is deprecated in R.

Using guidance from b/154665987#comment14 we get the metrics from the derived
context.

Bug: 156141463
Change-Id: I25e5f2c13f94e0471111f6c895694947998e3222
2020-06-01 14:08:16 -07:00
vadimt bd7ee7366d Checking for success of interactions with Wellbeing
Bug: 157589968
Change-Id: I9a5cc6341c0133ae5e31c47b6bd89f80e15c9099
2020-06-01 14:03:43 -07:00
TreeHugger Robot 50f2a6c7d6 Merge "Enable RotationWatcher when home rotation is on" into ub-launcher3-rvc-dev 2020-06-01 20:33:30 +00:00
Joshua Tsuji eeb675683b Add SysUiOverlayInputConsumer.
This consumer is used when Bubbles is expanded, and causes swipes up to hide bubbles via closeSystemDialogs rather than going all the way home.

Test: install launcher and swipe up (after including the other CL in this topic)
Fixes: 156390484
Change-Id: I36b71dd95dc45a5a547eddfe0faddf61630b6f25
2020-06-01 20:33:13 +00:00
Vinit Nayak 39cc356a53 Merge "Start quickswitch on task switch instead of touch down" into ub-launcher3-rvc-dev 2020-06-01 20:32:14 +00:00
Tony Wickham 10c2b4f9d9 Update home to overview depth interpolator to match other motion
Overview comes in and workspace goes out at overshoot(1.2), so
the wallpaper depth/blur should match that speed.

Test: go to overview from home in 3 button or 0 button mode,
ensure wallpaper scales down at the same rate as other elements

Bug: 154637581
Change-Id: I03254fa3fdf19f468852bed8aab7ba21203c429a
2020-06-01 14:36:46 -05:00
TreeHugger Robot 0e1cbf56aa Merge "Reset Overview layout after swiping to home" into ub-launcher3-rvc-dev 2020-06-01 19:24:54 +00:00
Vinit Nayak acd2f58693 Start quickswitch on task switch instead of touch down
Previously we would enter a quickswitch session state
whenever user tapped on navbar and sent flags to
sysui to only enable edge gesture for the current rotation.
Now we only do that on a new task resulting from the gesture
or when going into recents to show nav bar in the
orientation user would expect it (only if they never
quickswitched).

Fixes: 155844780
Test: Tested swiping back from quickswitching
into apps of different orientations.
Note that back is still broken when you
quickswitch and then rotate the foreground app.

Change-Id: I935e7c66489d46e59156414d64653c846ae4c5d8
2020-06-01 12:06:47 -07:00
Hyunyoung Song 2911c56a80 Merge "Migrate launcher home settings button tap/longpress logging to WW" into ub-launcher3-rvc-dev 2020-06-01 18:08:39 +00:00
Vinit Nayak 90b006dbe5 Reset Overview layout after swiping to home
Reset overview when user does a swipe to home
gesture. Preivously we only rest when user
first when to over, and then swiped to home.

Fixes: 156053957
Change-Id: I5a157f9e2229aba4b36851bd46d704a39d647110
2020-06-01 10:40:05 -07:00
TreeHugger Robot 6d9e0c4a55 Merge "More logging for pause non-detection" into ub-launcher3-rvc-dev 2020-06-01 17:27:10 +00:00
TreeHugger Robot 7149a7e0c5 Merge "Removes unused constant" into ub-launcher3-rvc-dev 2020-06-01 16:50:30 +00:00
Jon Miranda 10a6ed86eb More logging for pause non-detection
Bug: 156044202
Change-Id: I68d6febf4c201c2fea41c7e24600dcc2c54a680a
2020-06-01 09:39:13 -07:00
TreeHugger Robot 291f393b17 Merge "More logging for pause non-detection" into ub-launcher3-rvc-dev 2020-05-30 03:20:50 +00:00
Jon Miranda 77d8903f4a More logging for pause non-detection
Bug: 156044202
Change-Id: I0831735aa743360c16e1f940c30875f32432fec5
2020-05-29 19:43:52 -07:00
TreeHugger Robot ac38ec99c8 Merge "When tap on empty string edittext, and suggestion is made, select all the string" into ub-launcher3-rvc-dev 2020-05-30 01:51:24 +00:00
TreeHugger Robot 8a3be8cb53 Merge "Don't defer finish, only defer disableInputProxy" into ub-launcher3-rvc-dev 2020-05-30 00:41:06 +00:00
Hyunyoung Song 75dedacfc4 When tap on empty string edittext, and suggestion is made, select all the string
Bug: 157771174
Change-Id: I4a274333d897693bc214d50edcea30cf012ce859
2020-05-29 17:36:40 -07:00
Tony Wickham cc558e86fb Don't defer finish, only defer disableInputProxy
We should always finish the controller when requested, to ensure
everything is cleaned up immediately. But if touch is in progress,
we should keep input proxy enabled until touch up/cancel.

Test: swipe up to launcher and interact with it during the transition
- Swipe to recents and scroll it or dismiss the current task
- Swipe to home and open another app or swipe again on the nav bar

Bug: 157771305
Change-Id: Ida53289e4ecbd5e5d16933fcc79bbebdf1f8d898
2020-05-29 19:04:48 -05:00
Hyunyoung Song b117a9221c Migrate launcher home settings button tap/longpress logging to WW
Bug: 157777128
Change-Id: Ic88811efc9aef8f38a0e7e5ae79e3b35236c6663
2020-05-29 17:03:22 -07:00
Samuel Fufa d811fe19a7 Make "Don't suggest app" default True
Bug: 157011277
Change-Id: I84ab3502ae18d28e3108e9d10a24a08f55dcaff3
2020-05-29 16:08:57 -07:00
Sunny Goyal 142dcd8489 Fixing exception when applying transaction while the surface is released
> Check surface before applying transaction
> Keeping the release check around even if it release true the first time, as some other check may defer release
> Waiting on animation complete before releasing a surface

Bug: 148885018
Bug: 148194313
Change-Id: Ieb2b98492ff7df165e6b28a108b5f2cbc7ded32d
2020-05-29 16:08:28 -07:00
Samuel Fufa be40b29097 Allow hotseat edu in landscape mode
Screenshot: https://screenshot.googleplex.com/bTXH04qQRog
Bug: 152362405
Test: Manual
Change-Id: I8a9926e82794b11ab1b0fbce742f6b075e220c85
2020-05-29 15:48:31 -07:00
Jonathan Miranda 02f0f82883 Merge "Fix depth jumping around during transitions." into ub-launcher3-rvc-dev 2020-05-29 22:31:54 +00:00
TreeHugger Robot 0e3572b953 Merge "[Overview actions] Remove unused duration variable." into ub-launcher3-rvc-dev 2020-05-29 22:00:42 +00:00
TreeHugger Robot 7fab619676 Merge "Animates a fake TaskView in Home gesture tutorial." into ub-launcher3-rvc-dev 2020-05-29 21:50:43 +00:00
TreeHugger Robot bc374cf7f2 Merge "Fix all apps alpha applying twice" into ub-launcher3-rvc-dev 2020-05-29 21:25:54 +00:00
Zak Cohen 0c8e20eea7 [Overview actions] Remove unused duration variable.
Test: local build
Change-Id: I2f18e77273753f491c6d802aa3b4406fefce6ad7
2020-05-29 14:15:09 -07:00
Andy Wickham f8a8117676 Animates a fake TaskView in Home gesture tutorial.
The "TaskView" morphs as you drag up from the
nav bar, and transforms into a "home icon" or
final "TaskView" when you release your finger.

If you cancel the gesture (e.g. drag back down),
the view simply fades out and provides a hint
to swipe straight up.

Demo: https://drive.google.com/open?id=1NXlO1W6IhLoX0k2K6b-QZ5IXp0o7OYqO

Bug: 148542211
Change-Id: I3d5e9a45fcadc6a498941ea17813b9487720a504
2020-05-29 14:06:36 -07:00
Andy Wickham 7e78e63d50 Removes unused constant
Change-Id: Ic3d96ae3791ba75c5ce6c1c00203bf9d21469fe5
2020-05-29 13:49:09 -07:00
Jon Miranda 84f6e0182e Fix depth jumping around during transitions.
This is caused because we use mDepth for depth comparisons, but there are
cases where we set mDepth but we do not pass that value to WallpaperManager
(ie. surface is null or not valid) and that leads us into
inconsistent states.

Bug: 155780358
Change-Id: I3faf14416d5783ad472892425eb0bd37dd469a46
2020-05-29 13:06:55 -07:00
Tracy Zhou 625bd51fe3 Merge "Delete PreviewSurfaceRendered (launcher3 fork)" into ub-launcher3-rvc-dev 2020-05-29 20:00:45 +00:00
TreeHugger Robot aaac3f1519 Merge "Fixing incorrect taskView size in multiwindow-landscape" into ub-launcher3-rvc-dev 2020-05-29 20:00:31 +00:00
Samuel Fufa dbb212e939 Merge "Remove dependency on Launcher notification for hotseat edu" into ub-launcher3-rvc-dev 2020-05-29 19:39:28 +00:00
Tracy Zhou 0a0255812b Delete PreviewSurfaceRendered (launcher3 fork)
We had this class when we used SysUI to pipe through surface rendering, but this is no longer used after we swtiched to public API.

Bug: 152003916
Test: N/A
Change-Id: I21459c254c1e200ad1a193536e826dae9be2561d
2020-05-29 12:08:18 -07:00
Tracy Zhou c577bb8425 Merge "Support predicted icons in preview" into ub-launcher3-rvc-dev 2020-05-29 18:06:23 +00:00
Tracy Zhou bc305fc7fe Support predicted icons in preview
Fixes: 152789575
Test: https://screenshot.googleplex.com/r3AtHp3TAh0
Change-Id: I22f7ee2a69f2df12ade16f50bf455651dbfce597
2020-05-29 09:58:01 -07:00
Tony Wickham 244e173a68 Fix all apps alpha applying twice
Test: quick switch from home, ensure QSB fades out at the same
rate as the workspace/hotsea

Change-Id: I59ecd0c65a6abf3e24ea1c2bfba3c84f6a88e653
2020-05-29 11:10:10 -05:00
TreeHugger Robot fd522fe13e Merge "Using unstable client for fetching test info for oop tests" into ub-launcher3-rvc-dev 2020-05-29 05:26:46 +00:00
Winson Chung bc849d6159 Using unstable client for fetching test info for oop tests
Bug: 157661745
Change-Id: Ifbb211f9bbaa444df682145a0a9e82c5d0f24bdf
2020-05-28 20:14:54 -07:00
TreeHugger Robot 172ea18639 Merge "Fix actions view showing up when it shouldn't in a couple spots" into ub-launcher3-rvc-dev 2020-05-29 01:16:31 +00:00
TreeHugger Robot 06fcfe1f5f Merge "Remove overview share to match spec" into ub-launcher3-rvc-dev 2020-05-29 00:40:20 +00:00