Commit Graph

20478 Commits

Author SHA1 Message Date
Winson Chung 85011bdc21 Merge "Add state callback in launcher" into qt-dev 2019-04-11 15:22:36 +00:00
Winson Chung c4b88c3dfb Add state callback in launcher
Bug: 129785904
Test: Manual, change states and verify state is sent
Change-Id: Ia1f69494a6cbae68085fb09670ffa309ce147430
2019-04-10 21:59:25 -07:00
Hyunyoung Song cec2df62b2 Merging ub-launcher3-qt-dev, build 5456758
Test: Manual

Bug:111142970 Icon display blur in all apps page
Bug:114136250 Have a more spartan RecentsActivity on android go
Bug:122609330 Update PIP animation for swiping up to home
Bug:123985787 Respect dialogCornerRadius for all apps / widgets / settings / shortcut menu / dwb / task / overview (everything)
Bug:126587956 Create an app to use with Launcher testing
Bug:126606858 In multiwindow mode, not able to switch between recent apps.
Bug:127766994 Gray app icons disappeared after completing cable transfer for a while
Bug:127987071 Create a proper contract for specifying default Launcher Layout
Bug:129033091 [Q-Preview] I would like the ability to swipe up anywhere on my screen to open up the app li.
Bug:129297464 [Gesture Nav] Exclude edges from most Launcher / Overview states.
Bug:129434166 Lab-only flake: drag to workspace doesn't happen
Bug:129746879 [Q-Preview] Quick search bar overlaying other app
Bug:129874298 Show different string (Wallpaper vs Style & Wallpaper) on Settings depending on device type
Bug:129947426 nexus launcher crash observed randomly during device boot up(NPE:Attempt to invoke virtual method 'android.app.ActivityManager$RunningTaskInfo com.android.systemui.shared.system.ActivityManagerWrapper.getRunningTask(int)' on a null object reference)
Bug:129976669 Implement returning to home from Widgets in 0-button mode Bug:130027168 Can't tap in nav region on home screen
Bug:130151609 Some tests in MultiDisplaySystemDecorationTests.java failing in pre-submit
Bug:130182878 Pixel launcher crashes on secondary display
Bug:130225926 Cannot unpin app while in gesture nav
Bug:130245920 Icons disappear from launcher when selected
Bug:130272454 [C1/B1] Message app crash when opening a video MMS.
Change-Id: I18aa35d2c75deaf5149358d96d4e1d7f26de2f02
2019-04-10 23:51:57 +00:00
Winson Chung 5d7694c237 Merge "Check before the user is unlocked before handling proxied events" into ub-launcher3-qt-dev 2019-04-10 23:15:00 +00:00
Tony Wickham d807724de2 Merge "Track window for 2 button nav as well as 0 button" into ub-launcher3-qt-dev 2019-04-10 23:06:51 +00:00
Tony Wickham 8e5c13f360 Track window for 2 button nav as well as 0 button
This allows us to revert the change that fades in the shelf during swipe
up in 2 button mode, since the shelf doesn't show up until the window is
out of the way anyway.

Bug: 129746879
Change-Id: I929d8095989f9eae32d71b5bc3f67997e9df4ba0
2019-04-10 15:36:07 -07:00
Winson Chung 43b758c454 Check before the user is unlocked before handling proxied events
Bug: 130272454
Test: None, just checking for null state
Change-Id: I6b5a5c0dc7a0dbd8d2d75decd4e7d7ddf6cc3e3d
2019-04-10 15:30:01 -07:00
Winson Chung e9c4c50168 Temporarily disable screen pinning UI in gesture nav
Bug: 130225926
Change-Id: I782a5c6cdf00dfb8e501185f58defed4bfee3ac1
(cherry picked from commit e041ba0d61)
2019-04-10 22:11:19 +00:00
Hyunyoung Song 052624d897 TaskCornerRadius should not use dialogCornerRadius on devices not supporting rounded corners
Bug: 123985787

Change-Id: I4ffe06362256d4cc83bbe34c139d71ea1f6ca92e
2019-04-10 14:29:36 -07:00
TreeHugger Robot 731242ee66 Merge "Put pippable apps to pip mode upon swipe up to home gesture" into ub-launcher3-qt-dev 2019-04-10 21:26:47 +00:00
Tony Wickham 7f78e23ccc Don't scale/translate hotseat icons if they are visible in overview
Bug: 129145824
Change-Id: I02af7ad21b6dbc46041e774dfc6f5d3efb0ab8a9
2019-04-10 14:02:38 -07:00
Tony Wickham 9bbbe9cc14 Use DeviceLockedInputConsumer if !mIsUserUnlocked
There's an edge case where user isn't unlocked even if device is. In
that case, we still need to use DeviceLockedInputConsumer because
variables needed for any other input consumer aren't initialized until
the user is unlocked.

Bug: 129947426
Change-Id: I33a5e9a8d5c4266d45bd0d5a16657fa3c9644a1f
2019-04-10 12:54:54 -07:00
Winson Chung fd378d79e5 Check before the user is unlocked before handling proxied events
Bug: 130272454
Test: None, just checking for null state
Change-Id: I6b5a5c0dc7a0dbd8d2d75decd4e7d7ddf6cc3e3d
2019-04-10 09:51:38 -07:00
Tony Wickham 5dc60a0543 Add some egregious back exclusion rects
- Don't allow back gesture at all whenever we hid back button before
- Exclude RecyclerViewFastScroller thumb rect

Bug: 129297464
Change-Id: I40a33697592b02619218c18d1b3def7c3c203f56
2019-04-09 18:28:43 -07:00
Tracy Zhou d64fe113f5 Put pippable apps to pip mode upon swipe up to home gesture
Fixes: 122609330
Test: manual
Change-Id: I6cd0110b17fba9be6de1b3e6ba5750018d6f0514
(cherry picked from commit b091ed9098)
2019-04-09 21:11:19 +00:00
Tony Wickham 9edc8eb756 Merge "Allow swipe up to all apps anywhere on workspace" into ub-launcher3-qt-dev 2019-04-09 19:51:48 +00:00
Tony Wickham e2e953304f Allow swipe up to all apps anywhere on workspace
Bug: 129033091
Change-Id: Ib0066c59f86b3137aedad8d18393b5a622e0cd80
2019-04-09 12:23:01 -07:00
TreeHugger Robot 563178b173 Merge "Do a full touch dispach when proxying touch" into ub-launcher3-qt-dev 2019-04-09 19:03:02 +00:00
Sunny Goyal d158097cfd Do a full touch dispach when proxying touch
> Workspace can no longer be scrolled when swipin on hotseat

Bug: 130027168
Change-Id: Ie4621e5b7de8d7248227b25fb065249d0c252090
2019-04-09 11:53:41 -07:00
Tony Wickham 5e29395eba Merge "Swipe up on nav bar to go home from -1 and widgets" into ub-launcher3-qt-dev 2019-04-09 18:14:15 +00:00
Tony Wickham 9791bd1555 Swipe up on nav bar to go home from -1 and widgets
More specifically, any window (e.g. qsb search) or AbstractFloatingView.

NavBarToHomeTouchController now implements TouchController directly instead
of AbstractStateChangeTouchController, as it not only dealing with
launcher states. This makes it easier to override intercept logic to
handle cases like not having window focus, for example.

AbstractFloatingViews can createHintCloseAnim() to play an animation
hinting that it is about to be closed by swiping up. Widgets sheets use
this to pull back similar to the all apps transition to home.

Bug: 129976669
Change-Id: Ie157b978d9f1ee36d5fd32cea72ec02ce40878c0
2019-04-09 10:53:24 -07:00
Hyunyoung Song 2aec9c42f5 Change task view / all apps/ widgets / folder radius to dialogCornerRadius
Bug: 123985787
Change-Id: Iaa8088beb51d37dba90d57ad065f9eac0dd46270
2019-04-09 00:27:07 +00:00
Tracy Zhou b091ed9098 Put pippable apps to pip mode upon swipe up to home gesture
Fixes: 122609330
Test: manual
Change-Id: I6cd0110b17fba9be6de1b3e6ba5750018d6f0514
2019-04-08 20:34:31 +00:00
Sunny Goyal c7cc3dc2c5 Removing unnecessary corner size caching in RecentsModel
Change-Id: I1be87dc15a3b9ec8225dccce701bff19785658d6
2019-04-05 15:11:42 -07:00
vadimt 2a0670890a Not using system res ids in tests
Change-Id: I3aad2380dd6cd51ee23803cf5164f8b332a62e98
2019-04-04 14:36:53 -07:00
Hyunyoung Song 01aea983ef Merging ub-launcher3-master, build 5437471
Test: Manual

Bug:129423457 PluginCoreLib is not built from source code in master
Bug:129873705 Launcher crashes with Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS

Change-Id: Ib95d4de181eb70a30171c6ef511e803816b88dbf
2019-04-04 21:27:09 +00:00
vadimt 24eb1c9c89 Not using magic constant for edge sensitivity
+Some cleanup in TAPL

Change-Id: I886a6c4abacf8b806ee5507e633ec21f2e7ad1d4
2019-04-04 13:20:34 -07:00
vadimt f185552108 Not using Play Store app in tests
As it magically misses from some devices

Change-Id: I7765d987ef996dc2f515b9a0023b6f545f9cb534
2019-04-03 18:31:43 -07:00
Sunny Goyal 9e84e0c1c1 Removing SWIPE_HOME flag and using sysUI mode instead
Bug: 129873705
Change-Id: Ieaa7d7928427daed98538c616bdf58b28d295829
2019-04-03 17:02:36 -07:00
Hyunyoung Song 7572a12c84 Merging ub-launcher3-master, build 5434161
Test: Manual

Bug:127840207 [logging] quickswitch usage
Bug:127848641 [logging] (left|right) back gesture / home gesture usage
Bug:128711026 [Gesture Nav] widgets and icons are clipped
Bug:129337684 Swipe up from home falses to Overview
Bug:129711952 Overview stays in view hierarchy while in all apps
Bug:129723135 Broken tests: swipe from killed launcher doesn't open overview
Bug:129867977 [gestural nav] Add assistant gesture logging

Change-Id: I5a47424b0eb6cadbb8e3ced037fe5913302e6afa
2019-04-03 23:26:22 +00:00
Vadim Tryshev 5fadfe562c Merge "Not using unstable Messages app in tests" into ub-launcher3-master 2019-04-03 23:06:03 +00:00
vadimt 67d3fd574b Not using unstable Messages app in tests
Change-Id: I4811621613dc950ce5d16fc621b7f546170d8037
2019-04-03 15:44:19 -07:00
Winson Chung 41d58f7100 Add launcher logging of back button
Bug: 127848641
Test: adb shell setprop log.tag.UserEvent VERBOSE, then hit back
Change-Id: I020738280d2e51a8a192e577baf48c0b092f22f6
(cherry picked from commit df7d00328c)
2019-04-03 22:41:39 +00:00
Sunny Goyal 745df7c483 Skipping touch dispatch when it happens withing the window gesture region
> Those events are already proxied through the TouchInteractionService

Change-Id: If06483f208cbd462fdfdf01abba27bd937b766e7
2019-04-03 15:26:18 -07:00
Winson Chung df7d00328c Add launcher logging of back button
Bug: 127848641
Test: adb shell setprop log.tag.UserEvent VERBOSE, then hit back
Change-Id: I020738280d2e51a8a192e577baf48c0b092f22f6
2019-04-03 13:57:21 -07:00
Sunny Goyal 65f2396ecd Merge "Adds the ability for Launcher3 to respond to QSB alpha change requests." into ub-launcher3-master 2019-04-03 20:20:12 +00:00
Sunny Goyal 2adfd57db8 Merge "Initial change for using input monitor for swipe up handling" into ub-launcher3-master 2019-04-03 20:20:12 +00:00
TreeHugger Robot 7da5bbeb71 Merge "Add logging for assistant gesture" into ub-launcher3-master 2019-04-03 19:54:20 +00:00
TreeHugger Robot 01ec89a2ac Merge "Use motion event time instead of system time when detecting motion pause" into ub-launcher3-master 2019-04-03 19:43:27 +00:00
Hyunyoung Song ebc5f82ac5 Add logging for assistant gesture
Bug: 129867977
Change-Id: I6254bf06b7352f6076af229a581d4ebdd584a4a1
2019-04-03 12:31:42 -07:00
Tony 1274c7a3dc Use motion event time instead of system time when detecting motion pause
Bug: 129337684
Change-Id: Ie6e54658bf86094fbd9b6a8098e5ff147aafbfa7
2019-04-03 12:28:55 -07:00
Tracy Zhou 79c73fd21b Merge "Fix live tile overlay clipping part of the screen during swipe up to home animation" into ub-launcher3-master 2019-04-03 19:20:04 +00:00
Govinda Wasserman 24e489e5a3 Adds the ability for Launcher3 to respond to QSB alpha change requests.
Test: Tested locally
BUG:124063782
Change-Id: I8c4bfaa62d9608fcfffff5e30b2913f3a6fb2f75
(cherry picked from commit 827f0807d3)
2019-04-03 17:33:55 +00:00
Sunny Goyal aa2ec036bf Initial change for using input monitor for swipe up handling
Change-Id: Ie2cf982e86d7e47435db933bff13b29d45926c8b
2019-04-03 16:09:43 +00:00
Govinda Wasserman 827f0807d3 Adds the ability for Launcher3 to respond to QSB alpha change requests.
Test: Tested locally
BUG:124063782
Change-Id: I8c4bfaa62d9608fcfffff5e30b2913f3a6fb2f75
2019-04-03 10:27:51 -04:00
Vadim Tryshev 0ca0188374 Merge "Ignoring testStressSwipeToOverview until the bug is fixed" into ub-launcher3-master 2019-04-03 01:15:30 +00:00
vadimt 066e5ec731 Ignoring testStressSwipeToOverview until the bug is fixed
Bug: 129723135
Change-Id: Ib4af82ffaaeb410fd354312b17cca124c147909a
2019-04-02 17:48:28 -07:00
Sunny Goyal ffd60be5cb Initial change for using input monitor for swipe up handling
Change-Id: Ie2cf982e86d7e47435db933bff13b29d45926c8b
2019-04-02 17:21:33 -07:00
Tony Wickham f242463256 Merge "Update logging for quick switch" into ub-launcher3-master 2019-04-02 22:17:33 +00:00
Tony Wickham 8eacdc0c0b Update logging for quick switch
Now we log direction based on end velocity, instead of only using
Direction.UP or DOWN based on end state. We also log the page index
that we are switching to, or -1 if it's the task we came from.

Bug: 127840207
Change-Id: I038d7c461957f25c55d3cdee01cc3e955ca4c4fa
2019-04-02 14:33:44 -07:00