Commit Graph

3431 Commits

Author SHA1 Message Date
Vinit Nayak
1be8a17986 Revert "Disabling flaky test until fix is found"
This reverts commit fdaa12d028.

Reason for revert: Should be fixed with ag/11252279

Bug: 150958400
Change-Id: Ia61462239ad5d8aba502bc8513d685046c1a1361
2020-05-08 20:41:01 +00:00
Vinit Nayak
fdaa12d028 Disabling flaky test until fix is found
TaplTestsQuickstep.testAllAppsFromHome

Bug: 150958400
Change-Id: I333a5f21652a5a8fc7bb90387b6bd0c81ac56330
2020-04-16 18:24:49 -07:00
lumark
bec41bc5b9 Trigger onTaskAppeared when a task started from recents becomes ready.
Launcher can now receive onTaskAppeared callback from
RecentsAnimationController to get remote animation target when in quick
switch mode.

Note: This CL just demonstrates how to receive callback and then
calling removeTask & finish recents animation,
in order to really improve quick switch flicking, launcher side needs
to implement the rest of logic to animate task's remote animation target
to make task switching more smoothly.

Bug: 152480470
Test: WIP
Change-Id: Id0371db7339cfe84942cc905a89b0a2c1fab62ec
2020-04-09 17:19:43 +08:00
Matt Casey
884f8f217f Merging from ub-launcher3-master @ build 6369897
Test: manual, presubmit on the source branch
Bug:150504032

x20/teams/android-launcher/merge/ub-launcher3-master_6369897.html

Change-Id: Id94544cf790a7dcf0841f66648ac864bf2f530d4
2020-04-07 00:54:25 +00:00
TreeHugger Robot
839d0d712c Merge changes from topic "all-apps-arrow" into ub-launcher3-master
* changes:
  Add all apps education bounce animation
  Update vertical drag handle (all apps arrow)
2020-04-06 20:09:45 +00:00
Tony Wickham
490a8ab7c7 Add all apps education bounce animation
- Update existing arrow bounce animation to repeat 3 times,
  and play it when swiping up from nav bar on first home
  screen as well as when tapping the arrow.

Bug: 151768994
Change-Id: Ib120764fdeab6cd932018b6fed8b1093dda20641
2020-04-06 11:28:50 -07:00
Tony Wickham
5edf9e2923 Update vertical drag handle (all apps arrow)
- Change drawable to match specs, using ShadowDrawable to
  add shadow when necessary based on workspace theme.
- New drawable is 18dp by 6dp; add support for different
  width vs height, and decouple from workspace page
  indicator (which is still 24dp tall).

Bug: 151768994
Change-Id: Icfd0eac197ebc4d1f5bb799f8538c4bd99d800cd
2020-04-06 11:26:59 -07:00
TreeHugger Robot
34a9d75238 Merge "Removing support for fake landscape" into ub-launcher3-master 2020-04-05 23:22:41 +00:00
Andy Wickham
0fda3ba99c Removes WindowManager and DisplayManager from sandbox.
Adds the back gesture panel directly to the fragment
View hierarchy rather than a separate Window.

Bug: 148542211
Change-Id: I196a72d29217308a5bdb78fdcff1face5d475379
2020-04-04 00:32:06 +00:00
Sunny Goyal
c4d3201538 Removing support for fake landscape
Bug: 111068105
Change-Id: If31d2f700ddee1d21541735de3a8006ee2a53c5c
2020-04-03 17:11:35 -07:00
Vinit Nayak
4c04982fd6 Merge "Add onQuickSwitchToNewTask(int rotation)" into rvc-dev 2020-04-03 20:27:50 +00:00
Adam Cohen
df83c9026d Merging from ub-launcher3-master @ build 6356169
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_6356169.html

Change-Id: Ife6c578d9a1e212eccdf3cf9a0cd838132eb90f5
2020-04-03 18:34:45 +00:00
Sunny Goyal
8492edb131 Removing new object creating during scroll/draw
Change-Id: I627832c1659ac332d0ea3279dffba9d3c71ec2af
2020-04-03 01:18:40 -07:00
Sunny Goyal
bebae01a94 Not controlling actions visibility during alpha
Bug: 153102687
Change-Id: Ib8f920d03a1123f08e76b0ca8b39784c073348c1
2020-04-02 18:06:38 -07:00
TreeHugger Robot
402e7be703 Merge "Hybrid Hotseat a11y" into ub-launcher3-master 2020-04-02 22:27:32 +00:00
Samuel Fufa
6eaf989d98 Hybrid Hotseat a11y
- speak meaningful accessibility label for predicted items
- disable accessibility focus for on-boarding preview items
- add PIN as an accessibility action
- remove move and remove actions for prediction icons

Bug:152376193
Bug:152359303
Bug:152374583
Bug:152357657
Bug:152268303
Bug:152379490

Change-Id: I40fe0ef6329cd5b1d9215ac5fa1716f15db89ac8
2020-04-02 14:16:07 -07:00
Vinit Nayak
b9cb1e3c8f Merge "Re-enable orientation sensor for Overview animation" into ub-launcher3-master 2020-04-02 19:02:30 +00:00
Vinit Nayak
6b7cc3fdc2 Re-enable orientation sensor for Overview animation
Slight revert of ag/10668129 with adjustment
of disabling it for tests.

Fixes: 151456795
Test: Ran the labtest command for OOP
tests for crosshatch (where this issue
was first detected)

Change-Id: I315d138c2e4a6d4068304e9b5fb2e1b7feb34e63
2020-04-02 11:07:10 -07:00
TreeHugger Robot
e124718af0 Merge "Allow delegate input consumer to clear consumer state" into ub-launcher3-master 2020-04-02 03:51:07 +00:00
TreeHugger Robot
2d652c1d6b Merge "Show work switch tip" into ub-launcher3-master 2020-04-01 19:20:44 +00:00
Samuel Fufa
9f7f9d9e34 Show work switch tip
This shows a tip view on the third visit to work tab

Bug: 151407879
Test: Manual
Change-Id: Ia28860e97113f8a9c246c3a82b0a1da4a53d8e07
2020-04-01 11:43:27 -07:00
Hyunyoung Song
8a97f58214 Merge "ItemInfo supports lite proto builder (1/n)" into ub-launcher3-master 2020-04-01 06:27:47 +00:00
Hyunyoung Song
7ac0ef1cb1 ItemInfo supports lite proto builder (1/n)
Bug: 144953948
Bug: 137777105

The new lite proto builder is used to send two types of logging to statsd
1) Snapshot logging
2) App launch, task launch, task dismiss

Statsd will be connected once platform CL is submitted

Change-Id: If606cee5288fe4bd6c522605ae84eb0f24174f5b
2020-03-31 20:52:36 -07:00
Sreyas
cd866635d9 OverviewActions - update strings for OAV AOSP.
Finalize the strings in overview actions for translation.

Change-Id: I2237507ff33f8fcf04a78bd4e7826383386b01ad
2020-03-31 12:34:36 -07:00
Sunny Goyal
514dfa2deb Changing actions button visibility to match clear-all button
> Removing translation when animating actions button

Change-Id: I6875e03f9c55f00232c605743348175ea132cb15
2020-03-30 16:46:06 -07:00
Sunny Goyal
c2203b13a4 Removing drag handle from overview state
Change-Id: Icbd486857c1caf8f96e5afed2fcf3f2960f50692
2020-03-30 13:21:10 -07:00
TreeHugger Robot
5c359efc5b Merge "Adding tracing for quick switch not working" into ub-launcher3-master 2020-03-30 19:14:44 +00:00
Tony Wickham
c4822a3701 Merge changes I37a9dd3e,I6a386626 into ub-launcher3-master
* changes:
  Don't start task from quickswitch until scrolling finishes
  Fix flicker near end of quick switch
2020-03-30 17:57:24 +00:00
vadimt
459a6b091b Adding tracing for quick switch not working
Bug: 152658211
Change-Id: I61686452eb1eeffbfd8ab74c59532807968068ae
2020-03-30 10:25:04 -07:00
Sreyas
a13250e927 Remove SetData from ImageApiImpl for sharing image.
Change-Id: I8a91df336921d824257b819538bc63784f64b873
2020-03-28 14:18:49 -07:00
Tony Wickham
62117d7b8c Don't start task from quickswitch until scrolling finishes
Before, we did this by extending the window/launcher animation to
match the scroller duration. But now that we are using springs to
control the scroller, that duration is not really accurate. So
instead, we now let the window/launcher move at its own pace, and
wait for both that animation and the scroller to finish before
calling onSettledOnEndTarget().

Bug: 147302669
Change-Id: I37a9dd3eea17ebe663c33c3a4478b1b53a63dcc2
2020-03-27 20:56:25 -07:00
TreeHugger Robot
349e95f1e4 Merge "TAPL: Verifying activity start/stop events" into ub-launcher3-master 2020-03-28 03:45:24 +00:00
Winson Chung
8287721114 Allow delegate input consumer to clear consumer state
- When we have multiple wrapped input consumers, mConsumer will be
  set to the wrapper while the caller can actually be the input
  consumer being delegated to (ie. other activity ic). So we should
  clear the consumer state if the caller is anywhere in the IC
  hierarchy.  This results in a separate issue where mGesture
  could be cleared during onConsumerAboutToBeSwitched() before being
  passed to the new consumer, so make a copy of the previous state
  just for passing to the new consumer.

Bug: 152318829
Change-Id: I4afcef5b18aa772889e9104f3977887893f174ea
2020-03-27 16:58:18 -07:00
Sreyas
1963d3f3ed OverviewActions: Adding action buttons to Oem quickstep.
Change-Id: Id5c0d8f1b41107535c1bac982b47f67eb2574c21
2020-03-27 16:42:10 -07:00
TreeHugger Robot
effe04aef4 Merge "Fix NPE on FeatureFlag.addChangeListener" into ub-launcher3-master 2020-03-27 20:37:32 +00:00
vadimt
0dd1bd1113 TAPL: Verifying activity start/stop events
It also turned out that Pilfer event seems to come in a
non-deterministic order relative to the events from the Main and TIS
sequences. So I moved it to its own sequence.

Change-Id: Ie4ea5865afd900bebbd8287dad2372c94dce8ad5
2020-03-27 10:23:33 -07:00
Tony Wickham
aa8a77b8c3 Fix flicker near end of quick switch
Unlike isStarted(), mHasLauncherTransitionControllerStarted is true
even after the animation has ended. Once it's ended, we shouldn't
continue updating it even if window shift is still changing.

This can happen when springs are enabled, as that can increase the
recents scroll duration beyond the window/launcher animation
duration (and we updateFinalShift() when the scroll changes).

Test: quick switch by swiping up and over at angle, or really hard
directly to the right, to engage the springs long enough to have a
few frames where you can notice the flicker before this change.

Bug: 147302669
Change-Id: I6a38662612de91352c0f956e6a3137f6c24eba66
2020-03-26 21:30:30 -07:00
TreeHugger Robot
98783d03c1 Merge "Remove max displacement threshold in 2-zone model" into ub-launcher3-master 2020-03-27 03:49:49 +00:00
Winson Chung
88fb279975 Merge "Update launcher call to fetch recent tasks" into rvc-dev 2020-03-27 02:37:10 +00:00
Samuel Fufa
0928456d55 Fix NPE on FeatureFlag.addChangeListener
Bug: 152400212
Change-Id: I64890370f1d638048b0340bcb537ffdbf7011681
2020-03-26 17:03:44 -07:00
Tony Wickham
c94a5bfbce Remove max displacement threshold in 2-zone model
We had a max displacement for detecting pause before because people
were falsing into overview when they dragged all apps all the way
up. In this mode, there's no way to get to all apps from the nav
bar so the threshold doesn't make sense.

Bug: 151039912
Change-Id: I349f38ec1589f8b151cfbe32542159b3eb92bf61
2020-03-26 00:34:43 -07:00
Samuel Fufa
59affa428e Beta specific hotseat opt in behavior
https://docs.google.com/document/d/1CKK-3vTl-SPGxx3Cwty7r69jk_vaDs9MlanbhpH85cY/edit

Bug: 142753423
Test: Manual
Change-Id: I51e949fa9962bc8e9d0cdb66d07fbe9e344fb35d
(cherry picked from commit 6b13c841c9)
2020-03-26 02:38:12 +00:00
Samuel Fufa
0068e1861c Personalize hotseat education
If a user has has 0 apps in the hotseat, jump directly to showing predications.
Otherwise show migration dialog as usual and if user rejects it, show different tips based on the number of available spots.

Bug: 142753423
Test: Manual
Change-Id: Ic5202caf074db2409f6468dd9373875571f3f3c1
(cherry picked from commit aa2aff5a8f)
2020-03-26 00:32:51 +00:00
Samuel Fufa
32bf6cd650 Remove Edu notification if predictions are empty
Bug: 142753423
Test: Manual
Change-Id: I1111fa15b9b677bb077478309a185e70e6784bce
(cherry picked from commit ca1c32537c)
2020-03-26 00:32:13 +00:00
Samuel Fufa
cac6ef1ee9 Resume UI update on user active
resume UI update for hybrid hotseat if user returns to launcher while app launch transition is animating.

Bug: 142753423
Test: Manual
Change-Id: I11ffa080bb78e7b4269747b1602b32d706f2405d
(cherry picked from commit 28f3136c6a)
2020-03-26 00:31:15 +00:00
Samuel Fufa
210774dfaa enable prediction logging
reverting accidental commit on ag/10673926

Bug: 142753423
Change-Id: I8d2f5f591b200484282f0b170fccab4f99b93fae
(cherry picked from commit 0570a795f9)
2020-03-25 23:51:34 +00:00
Samuel Fufa
3984530f8c Merge "Beta specific hotseat opt in behavior" into ub-launcher3-master 2020-03-25 23:27:13 +00:00
Samuel Fufa
6b13c841c9 Beta specific hotseat opt in behavior
https://docs.google.com/document/d/1CKK-3vTl-SPGxx3Cwty7r69jk_vaDs9MlanbhpH85cY/edit

Bug: 142753423
Test: Manual
Change-Id: I51e949fa9962bc8e9d0cdb66d07fbe9e344fb35d
2020-03-25 15:51:01 -07:00
TreeHugger Robot
6a72017a84 Merge "Remove Edu notification if predictions are empty" into ub-launcher3-master 2020-03-25 22:43:28 +00:00
Samuel Fufa
e0914e21ea Merge "Resume UI update on user active" into ub-launcher3-master 2020-03-25 21:36:21 +00:00