Commit Graph

19348 Commits

Author SHA1 Message Date
Jon 27cd4e6d34 Merge branch 'ub-launcher3-edmonton' into pi-dev
am: bf29023212

Change-Id: I6ef016a92f772bf74b85c7eec84110269adf83ea
2018-05-31 15:22:09 -07:00
Jon bf29023212 Merge branch 'ub-launcher3-edmonton' into pi-dev
Bug: 80134723
Test: manual
Change-Id: If8e9c1b1aacf547ab7a1edaccaa9fed5e976a980
2018-05-31 13:15:57 -04:00
TreeHugger Robot f4392dbf5a Merge "Some launcher3 fixes so that it compiles with different configurations" into ub-launcher3-edmonton 2018-05-31 16:42:56 +00:00
Sunny Goyal d0f43ceba7 Some launcher3 fixes so that it compiles with different configurations
Bug: 79996542
Change-Id: I4267aeb8f5b0714415970c63453049ff41466644
2018-05-30 18:15:21 -07:00
TreeHugger Robot c86805f433 Merge "Theme updates for dark text:" into ub-launcher3-edmonton 2018-05-30 23:06:26 +00:00
Sunny Goyal 337fcb7983 Theme updates for dark text:
> Using white scrim on adjescent tiles in overview
> Using a ligher scrim in dark-theme+dark-text

Bug: 80253867
Change-Id: I3f257d3addaca8bc5970a61722f5ae0e7af89382
2018-05-30 15:53:10 -07:00
Tony 2f347149af Shift recents up slightly in quick scrub
Bug: 79883290
Change-Id: If57fd52505d7f965ea8a28e90e715c5723915e57
2018-05-30 14:28:20 -07:00
Tony Wickham 3635123e45 Merge "Fix animation not playing when going home while another animation is playing" into ub-launcher3-edmonton 2018-05-30 19:31:06 +00:00
Colin Cross 7dfc10392e [automerger skipped] Merge "Revert "Default to AAPT2 = false in AOSP only"" am: 035c5a35a6
am: 09db0149a0  -s ours

Change-Id: I66209abfe3fa4984473c5f09a52e472f6fe47978
2018-05-29 18:14:42 -07:00
Colin Cross 09db0149a0 Merge "Revert "Default to AAPT2 = false in AOSP only""
am: 035c5a35a6

Change-Id: Ie75f91869a8251fa3920094fd6389d88d97e96df
2018-05-29 17:45:38 -07:00
Vadim Tryshev 442fc108c3 Removing accessibility action for Clear-all
Now that Clear-all button is visible for accessibility, there is no need
in it.

Bug: 80156299
Test: Manual
Change-Id: I5997692be015947692a8bb720a449d1d36302526
2018-05-29 17:34:19 -07:00
Tony 67f9cad75a Fix animation not playing when going home while another animation is playing
When going to a new state, we cancel any currently playing animation. When
canceling the animation, we reset mState = mCurrentStableState. Thus, when
determining the duration of the new animation, we have both state == NORMAL
and mState == NORMAL, leading to a duration of 0 and therefore no animation.
Storing the fromState before canceling/resetting fixes the issue.

Change-Id: I92332deae8058c4dd41212fe7f749955ede28b1c
2018-05-29 17:33:16 -07:00
Colin Cross 035c5a35a6 Merge "Revert "Default to AAPT2 = false in AOSP only"" 2018-05-29 23:41:34 +00:00
Sunny Goyal 74be875eb4 [automerger skipped] Merge "Fixing wrong xml refenrece when the packageName is changed" am: 1179b71480
am: a58015e7e5  -s ours

Change-Id: I0f8f7e8366f367247506f16fb39be874a9496f2a
2018-05-29 16:39:39 -07:00
Sunny Goyal a58015e7e5 Merge "Fixing wrong xml refenrece when the packageName is changed"
am: 1179b71480

Change-Id: Ifb7eefd4bcccfcc3450e385cee1f777cd44589a6
2018-05-29 16:01:02 -07:00
Sunny Goyal ab66067def Update displacement on ACTION_UP as well, in case ACTION_UP and came in a different frame
than last ACTION_MOVE

Bug: 80292740
Change-Id: Ie75ac3ebb74024073965a7455a6503e8ed3f6d99
2018-05-29 15:54:59 -07:00
Tony Wickham 0512a6de57 Merge "Unhide badge when popup closes without animation" into ub-launcher3-edmonton 2018-05-29 22:44:09 +00:00
Treehugger Robot 1179b71480 Merge "Fixing wrong xml refenrece when the packageName is changed" 2018-05-29 22:23:42 +00:00
Tony Wickham ad361780fe Merge "Set mState = mCurrentStableState in onAnimationCancel" into ub-launcher3-edmonton 2018-05-29 22:16:05 +00:00
TreeHugger Robot ad85852cc0 Merge "Accounting for one frame jump when starting a fling animation" into ub-launcher3-edmonton 2018-05-29 22:07:55 +00:00
Tony Wickham 8935d9515c Set mState = mCurrentStableState in onAnimationCancel
mState is set when the transition starts toward that state even if it is
never reached. If the animation is canceled, therefore, we should reset
mState = mCurrentStableState since that is the state we came from.

For instance, when swiping up from overview, mState = ALL_APPS, but when
swiping back down we cancel that animation and create the task launch
animation. When creating the task launch animation, we reapplyState(),
which, before this change, was still ALL_APPS instead of OVERVIEW.

Bug: 79935289
Change-Id: I59c5799e92350747e4ef1d99a80ba678a2ce7b98
2018-05-29 21:58:52 +00:00
Tony bb9378aead Unhide badge when popup closes without animation
Bug: 80379412
Change-Id: I7d6c1b67a07747078b43b17612d8c67a46c8cc0e
2018-05-29 14:44:41 -07:00
TreeHugger Robot 688701317a Merge "Enable accessibility of Clear All button." into ub-launcher3-edmonton 2018-05-29 20:48:47 +00:00
Sunny Goyal 9c3f172d9c Accounting for one frame jump when starting a fling animation
Bug: 80292740
Change-Id: I47bca071d42d1d217068c128f9793e87210d0286
2018-05-29 13:38:57 -07:00
Colin Cross 7ff0d582e1 Revert "Default to AAPT2 = false in AOSP only"
I276d22e82dbef65eaa0f6c3331d7990292a62bc9 fixes the underlying
issue that was causing Launcher to crash when building with aapt2.

This reverts commit 0838a7d416.

Bug: 80404630
Test: booted and launcher didn't crash
Change-Id: I77e231b000e7c05a631bc44271c203dd698b6873
Merged-In: I2edc3c9ba8e3e7616ea39c4ebf1fe6e65f113090
2018-05-29 13:23:21 -07:00
Sunny Goyal 8d3070f5cf Fixing wrong xml refenrece when the packageName is changed
Test: none
Change-Id: I276d22e82dbef65eaa0f6c3331d7990292a62bc9
Merged-In: I276d22e82dbef65eaa0f6c3331d7990292a62bc9
(cherry picked from commit 3cf2d5093f)
2018-05-29 13:23:17 -07:00
Tony Wickham 222d517c89 Merge "Fix clipping recents when scaling down" into ub-launcher3-edmonton 2018-05-29 19:33:24 +00:00
TreeHugger Robot 038338d214 Merge "Various quickscrub fixes" into ub-launcher3-edmonton 2018-05-29 19:26:07 +00:00
Sunny Goyal 9bb8ffb5e3 Various quickscrub fixes
> Fixing PagedView resetting the currentPage, if scrollToPage was called before first layout
  This causes quickscrub to jump back to the current task if launcher activity was dead.
> Fixing missing callbacks in DeferredTouchConsumer causing missed quick scrub flings
> Sending the resents animation callbacks on the motion queue thread, to avoid synchronization
  issues with sysui callbacks.
> Waiting until the recents animation is received before starting the scale down animation
> Calculating the offset for quickscrub statically incase launcher activity was dead

Bug: 80214390
Change-Id: I1b7d00b7b266655a92fcd6239f25ba191655150f
2018-05-29 12:17:20 -07:00
Tony 615ad40c38 Fix clipping recents when scaling down
- Parent shouldn't clip scaled down child
- Remove outline provider from scaled down child so it doesn't clip

Bug: 80267476
Change-Id: I9feb1ccf2069b8c88d8499e2813c818f9aea19af
2018-05-29 12:09:57 -07:00
Vadim Tryshev a3e48d8035 Enable accessibility of Clear All button.
The button appears in the accessibility hierarchy
as a child of RecentsView.

This makes both Talkback and Switch access
to work with it normally.

Bug: 80156299
Test: Manual

Change-Id: Ife2044b2ef78fb27b32f2d33fb17744662a2b054
2018-05-29 18:51:57 +00:00
TreeHugger Robot a845e1500c Merge "Fix testWidgetsContainerFling" into ub-launcher3-edmonton 2018-05-29 18:09:52 +00:00
Jorim Jaggi 87356e7b48 Merge "Fix binder call for app opening" into ub-launcher3-edmonton 2018-05-29 17:40:56 +00:00
TreeHugger Robot 03aaced252 Merge "Fix clipping of adaptive icons Bug:62372639" into ub-launcher3-edmonton 2018-05-29 17:38:28 +00:00
Erik Kline 66cac57064 [automerger skipped] Merge "Default to AAPT2 = false in AOSP only" am: 6146e28628
am: 5eca469669  -s ours

Change-Id: I328a1f5f457b55b77e941536daaaef77e40ef6ff
2018-05-29 09:10:39 -07:00
Erik Kline 5eca469669 Merge "Default to AAPT2 = false in AOSP only"
am: 6146e28628

Change-Id: I15ce6a49f40ebf190c021b60a3e1abff31bc0a9c
2018-05-29 09:04:35 -07:00
Treehugger Robot 6146e28628 Merge "Default to AAPT2 = false in AOSP only" 2018-05-29 15:55:02 +00:00
Erik Kline 0838a7d416 Default to AAPT2 = false in AOSP only
Bug: 80404630
Test: booted and launcher didn't crash
Merged-In: I2edc3c9ba8e3e7616ea39c4ebf1fe6e65f113090
Change-Id: Ic90717d81b00698f7ab068fb075b92626df614c9
2018-05-29 14:16:38 +00:00
Jorim Jaggi 1d1a3d7242 Fix binder call for app opening
Needs to acquire the AM/WM lock, which may cause jank during
the animation.

Test: Open app, observe no binder calls.
Bug: 78611607
Change-Id: I3459383c9597801405dd9c688837a2bffeeb7f9e
2018-05-28 18:08:40 +02:00
Vadim Tryshev 68ac46da0c Fix testWidgetsContainerFling
It relies on the presence of the popup in the accessibility view.

Bug: 72967764
Test: atest google/perf/jank/SystemUI/UbSystemUIJankTests:android.platform.systemui.tests.jank.LauncherJankTests#testWidgetsContainerFling
Change-Id: I9d41ddcd60f9dc7626a96762b4e78a7b862aa1c9
2018-05-25 20:08:44 -07:00
Hyunyoung Song 49df554dc2 Fix clipping of adaptive icons
Bug:62372639

Context: only noticeable on large form factor AND Large display setting
Ceiling operation is needed to calculate offset of the drawing.

Change-Id: I7c77fa53f0811990b8cfdc3a12e2b43eb4d2d73e
2018-05-25 16:30:23 -07:00
Vadim Tryshev 5c17a390d2 Merge "Reporting range of visible tasks" into ub-launcher3-edmonton 2018-05-25 19:55:39 +00:00
Winson Chung 30d2fc748d Merge "Tweaking quickscrub launch animation for new task sizes." into ub-launcher3-edmonton 2018-05-25 19:54:24 +00:00
Vadim Tryshev 528b9e0615 Reporting range of visible tasks
Also fixes task position being incorrectly reported specifically for
swipe events due to using stale getCurrentPage().

Bug: 72222505
Test: Manual
Change-Id: Ic79b67f8a6ffbfabc397b411b14afc309405197e
2018-05-25 12:24:40 -07:00
Sunny Goyal 4308bd232e Merge "Fixing launcher going to a different state when dragging an icon from different activity" into ub-launcher3-edmonton 2018-05-25 19:17:28 +00:00
Sunny Goyal 4dcda06542 Fixing launcher going to a different state when dragging an icon from different activity
Bug: 80191074
Change-Id: I45ea646dc2bd21627e8b724dac9c9fc23c18797d
2018-05-25 11:56:53 -07:00
Sunny Goyal 271dc919d0 Merge "Cancelling quickscrub state incease we missed quickscrub end event" into ub-launcher3-edmonton 2018-05-25 18:40:16 +00:00
Winson Chung 35cde20a17 Tweaking quickscrub launch animation for new task sizes.
Bug: 79945202
Change-Id: Ibe1e53d45bc3fda325cebc14aa6a61f61f08edb0
2018-05-25 10:58:17 -07:00
Jon fa13804878 Merge branch 'ub-launcher3-edmonton' into pi-dev
am: aea65680e6

Change-Id: Ifba0b867fb58a5f8e8001710ccb0a7ac651c535d
2018-05-25 10:53:44 -07:00
Hyunyoung Song de184a243d Add logging for selected text and split screen
Bug: 79787082

action:LONGPRESS
  Source child:TASK_PREVIEW

action:TAP
  Source child:SPLIT_SCREEN_TARGET


Change-Id: Ica5a3955f092c6678e646b6df76567cdfa3485df
2018-05-25 10:53:39 -07:00