Commit Graph

728 Commits

Author SHA1 Message Date
Lucas Dupin fe43e316ae Merge "Remove shadows from app launch animation" into sc-dev am: 4e760601d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14637247

Change-Id: I43c4d9923e7b8b7c2c55234e0f745aadb3abb76c
2021-05-19 20:15:20 +00:00
Lucas Dupin 4e760601d5 Merge "Remove shadows from app launch animation" into sc-dev 2021-05-19 20:01:06 +00:00
TreeHugger Robot 814532969e Merge "Updated gesture navigation tutorial." into sc-dev am: f126d078ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14537683

Change-Id: Ia35f02c7b46b6c4edada3645780e61487bd5551a
2021-05-19 17:33:38 +00:00
TreeHugger Robot f126d078ac Merge "Updated gesture navigation tutorial." into sc-dev 2021-05-19 17:25:48 +00:00
Lucas Dupin 3e19e57d22 Remove shadows from app launch animation
The Material You style proposes a flat model without shadows.

This will also help us reduce overdraw because shadows are drawn in
client composition, causing an almost full screen redraw, given that
shadows have the size of the window, which is not usually marked as
opaque.

Bug: 188420494
Test: manual
Change-Id: I5073788a247ea9084b8e3399d4ca8618c21b8d6b
2021-05-19 09:01:38 -07:00
Alex Chau 5d35355fd1 Use fixed width in overveiw grid
- Removed thumbnail ratio logic in TaskView, getVisibleThumbnailRatio will be clean up separately
- Removed quickswitch clipping and scaling, so overview and quickswitch looks identical. mClippedInsets will be clean up separately
- Put focused task in center of screen
- Refacotred CLearAllButton spacing

Bug: 187839470
Test: Manual
Change-Id: I2a7df1ac02acd5379af33f5b0e9abba0fab8e8d2
2021-05-19 08:02:45 +00:00
Schneider Victor-tulias 29f61d5d21 Updated gesture navigation tutorial.
- Removed 'x' button and added tappable 'skip' text to exit the tutorial.
- Updated tutorial step indicator
- updated AVD colors.
- removed unused AVDs
- Increased the visible duration of the feedback view

Test: Manual
Bug: 148542211
Bug: 169687177
Change-Id: Ice61b1273ff270b068d008b5259d100c66057478
2021-05-18 20:00:26 +00:00
Jon Spivack a44bb71d95 Merge "NIU Actions and Recents UI updates on Go" into sc-dev 2021-05-18 18:05:19 +00:00
Sunny Goyal 5bb515b6cc Merge "Moving taskbar lifecycle to TouchInteractionService" into sc-dev 2021-05-18 17:17:27 +00:00
Pat Manning 049434a504 Merge "Animate task translation on dismissal." into sc-dev 2021-05-18 09:32:19 +00:00
Sunny Goyal e215fb730b Moving taskbar lifecycle to TouchInteractionService
> Inflating taskbar views with a non-launcher window context
> Removing separate taskbar view in Launcher
> Handling taskbar icon clicks directly instead of going via launcher
> Fixing some relayouts during show/hide animation

Bug: 187353581
Test: Manual
Change-Id: Ia7d44acbb770bf0345922234b3daa5cc040a5843
2021-05-17 21:47:08 -07:00
Jon Spivack f90db8a8eb NIU Actions and Recents UI updates on Go
This tweaks the layout and fonts in the Go Overview. It also adds rounded corners to the task snapshots in the Recents view on Go by adding an overrideable value to the base Quickstep Launcher.

Bug: 186004471
Test: Manual (Pixel 3A)
Change-Id: I220836a95a6416b85bdb71d88822d25d939cf205
2021-05-17 11:57:01 -07:00
Pat Manning cc64218e68 Animate task translation on dismissal.
Test: manual
Bug: 186416527
Fix: 186416527
Change-Id: I3919b96b96fdd490e15968b7c2e680dad7f6e5d6
2021-05-17 16:21:38 +00:00
Bill Yi 8d233cd42a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie6f2bc52b3b9f8af036e67d3527d2c77b89be7a0
2021-05-17 10:49:53 +00:00
Bill Yi 2a99f41b95 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iadb532dd2ccc98ba1437e944adf69a9ffb62fba2
2021-05-13 07:38:56 +00:00
Andy Wickham 53a44a2e51 Merge "Update gesture navigation tutorial." into sc-dev 2021-05-12 09:31:44 +00:00
Schneider Victor-tulias e3af6c6513 Update gesture navigation tutorial.
- Updated gesture navigation feedback videos.
- Added feedback motion loop videos.
- Updated strings.
- Added alternate strings for when the user launches tutorial steps from the Tips app.

Test: manual
bug: 169687177
Change-Id: I87d475e1510a25ffefea14dbd0b224a063e7cad8
2021-05-11 18:14:29 -07:00
TreeHugger Robot 95ff5cf63e Merge "Handle config changes in Launcher" into sc-dev 2021-05-11 10:58:48 +00:00
Bill Yi 108367c948 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie96b140705ddb74ae0fdfe16dec8fc123dd73997
2021-05-11 04:18:58 +00:00
Alex Chau a02eddc144 Handle config changes in Launcher
- This is practically a revert to http://ag/c/13687966/5 and refactored to use DisplayController.DisplayInfoChangeListener
- Make Launcher handle size and density change so transition is less janky when screen size changes
- Added fix in RecentsView to update state and TaskView when display profile changes
- Removed 720dp specific resoureces
- Removed unused widget_section_indent
- Removed unnecessary all_apps_background_canvas 600dp override that is not needed in AllApps+
- Moved remaining dp specific into DeviceProfile
- Simplified allowRotation logic to use single variable in DeviceProfile to determine if allow rotation is enabled by default

Fixes: 180803696
Test: manual
Change-Id: Iea0a7d1a0e14dc3613152dd3b3887450a2e1fc2f
2021-05-10 18:50:02 +01:00
Bill Yi 1ac7b83521 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7dd72869281cae2bb6d5c40899856fec566a7670
2021-05-09 10:49:37 -07:00
TreeHugger Robot 2f1d8ed522 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-07 16:12:22 +00:00
Bill Yi 31d41e4ead Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3b40206f9edbf432abf3a2555c1c9cf18ff1885c
2021-05-07 14:43:12 +00:00
TreeHugger Robot 1eba68385a Merge "Make focus task a bit bigger" into sc-dev 2021-05-07 05:53:52 +00:00
Vinit Nayak b2993d65b7 Merge changes from topics "taskbar3Button", "taskbarIME" into sc-dev
* changes:
  Add IME switcher/hide button bar when IME showing
  Initial commit of 3 button work
2021-05-06 20:47:41 +00:00
Alex Chau c8bd480bd5 Make focus task a bit bigger
Bug: 175939487
Test: manual
Change-Id: I0e4a13e02331ab9f4a8b1634197d7bf268edac68
2021-05-06 17:28:55 +01:00
Vinit Nayak 673faf59ee Add IME switcher/hide button bar when IME showing
Bug: 180046394
Change-Id: Ic2bd919ab3d27e0a430b081c771ea8dc5827be81
2021-05-05 12:50:39 -07:00
TreeHugger Robot 46d420bf14 Merge "Add funtional animation for SplitSelect from Grid." into sc-dev 2021-05-05 19:03:47 +00:00
Vinit Nayak 16fd85629d Initial commit of 3 button work
Home, Back and Recents basic functionality working

Fixes: 180046394
Change-Id: Ifc5c767e35e88183500d14d14736eb40df436369
2021-05-05 11:25:36 -07:00
Vinit Nayak 2dbdddb4ba Add funtional animation for SplitSelect from Grid.
Long ways to go to final UI - TODO(b/186800707)
Add comments to grid layout code,
no functional changes at all.

Bug: 181705607
Test: Enter split screen from overview task menu
in grid and carousel. Able to select all items
and enter split.

Change-Id: Ib62f1b286acf0781ec47862fa31b670e6ff1892a
2021-05-05 09:38:42 -07:00
TreeHugger Robot 19a1c4765f Merge "Adds AllSetActivity in Launcher." into sc-dev 2021-05-05 03:12:07 +00:00
Andy Wickham 474c616e98 Adds AllSetActivity in Launcher.
Mostly copied from its location in Tips.

Some exceptions:
 - Accent color (used for the icon at the top and link text)
   is derived from intent extras to match the rest of SUW.
   If needed, we could also pass other colors this way;
   currently they just use default light/dark mode colors.
 - Currently there is no animation in the middle. Not sure
   if one is expected, but we can add it later if so.

Bug: 184722307
Test: Manually passing arbitrary colors via adb:
adb shell am start -a com.android.quickstep.action.GESTURE_ONBOARDING_ALL_SET --ei accent_color_dark_mode -2134901760 --ei accent_color_light_mode 2147418112

Change-Id: I1fb8b20b88b7485d28f06afd2b421999ad847266
2021-05-04 18:44:22 -07:00
Bill Yi fdcf8103e0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ide1f0bfcb4a3a28bcdbc2d0ec830f77de864546f
2021-04-29 19:00:17 +00:00
TreeHugger Robot 127714094a Merge "Change TaskIconMenu to lay out vertically" into sc-dev 2021-04-28 20:16:43 +00:00
Vinit Nayak 4cc0dbb552 Change TaskIconMenu to lay out vertically
Still lays out horizontally when in phone
landscape.
TODO(b/186583656), need to center view.
Also have all layout be dynamic instead of having
some cases be in XML and some in code.

Bug: 181704764
Test: Task menu visible with all options in
portrait/landscape tablet
portrait phone
fake/real landscape phone

Change-Id: I3632eeb174f3e4baf2c9d69d51c1815c3c512e59
2021-04-28 11:47:08 -07:00
Tony Wickham b482188775 Some overview scrim and status bar color adjustments
- Replace UI_STATE_OVERVIEW with UI_STATE_FULLSCREEN_TASK. Overview no
  longer needs it's own status bar treatment as it's handled by
  ScrimView already. So remove instances of UI_STATE_OVERVIEW and
  replace some with UI_STATE_FULLSCREEN_TASK if a TaskView is behind
  the status bar.
- Add ScrimView to fallback recents activity.
- Remove scrim from Background state, don't fade it in until the
  gesture ends to RECENTS.

Test: watch scrim and status bar colors during the following
- Swipe up to home (no scrim, status bar matches task at first but
  then wallpaper once task isn't overlapping status bar)
- Swipe up to overview (no scrim until let go to overview, status
  bar matches task at first, then wallpaper after not overlapping,
  then scrim once it's 90% opacity)
- Quick switch from home (scrim fades in, status bar matches once
  it reaches 90% opacity)
- Quick switch from app (no scrim, status bar matches center task)
- Repeat above for 3P launcher and 2 button mode

Fixes: 185681676
Fixes: 185286870
Change-Id: I9e5c292cc734e714169b9cc8268e8dad4e868aca
2021-04-27 17:44:30 -07:00
Bill Yi 357d710e52 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I03ce29c8d64096e013a7e296df973f83c076f353
2021-04-23 08:48:35 +00:00
Schneider Victor-tulias 5a6e10bba8 Merge "Complete gesture nav sandbox for for UXR." into sc-dev 2021-04-22 17:35:29 +00:00
Bill Yi 814728047b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0c52edf741c9da39c882bc317258e63942ba0fd2
2021-04-21 08:49:29 +00:00
Bill Yi db77bfade2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6e94505a2803c2bd43cb4204944b72987dbb81d2
2021-04-20 15:55:35 +00:00
Schneider Victor-tulias fb552936fd Complete gesture nav sandbox for for UXR.
- Removed All set screens altogether.
- Added "x" button to feedback view. This button now launches a dialog that allows the user to skip the tutorial.
- Added a progress tracker to the feedback view.
- Created a launch option to launch the back, home, then overview gesture tutorials in order.
- Added a button in the feedback view to progress through the tutorial.
- Updated tutorial animations to AnimatedVectorDrawables (with green accents).

Bug: 148542211

Test: manual
Change-Id: Icf3ec424141069895f97da74cd4ae881ff898d3f
2021-04-19 13:41:57 -07:00
TreeHugger Robot 7807cc85e2 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-04-19 05:56:49 +00:00
Treehugger Robot 54161e66f9 Merge "Modifying screenshot button visibility" am: 3e6c445003 am: a3410d3947 am: 8848ba2497
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1461822

Change-Id: Ic1dd59d597b060b609afe818fe2b9584282078fe
2021-04-19 04:05:57 +00:00
Bill Yi 27e0cd7ff5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6d0f6f7f02381791f1e53504ec1a675cf1529ccf
2021-04-19 03:45:07 +00:00
Treehugger Robot 3e6c445003 Merge "Modifying screenshot button visibility" 2021-04-19 02:58:56 +00:00
Bill Yi ef34790bc6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie990000f9b8ff61c1cf39ac23e525dd119510ad0
2021-04-17 22:15:09 -07:00
Andy Wickham 6c9f4ef566 Merge "Sandbox changes for use in UXR prototype." into sc-dev 2021-04-17 05:37:41 +00:00
TreeHugger Robot b16d54d691 Merge "Update gesture navigation string resource for translations." into sc-dev 2021-04-17 01:30:35 +00:00
Andy Wickham 855072cda5 Sandbox changes for use in UXR prototype.
- "All Set" screen doesn't show after Home/Overview/Back tutorials.
 - X button in top left is hidden (we'll want to move this to the
   feedback view).
 - Feedback pops in and out from the top of the screen.
 - Hand animation is replaced by video feedback at start and after
   incorrect gesture.
 - Back tutorial goes left then right, in order to match video.
 - Updated strings and marked translatable (UX-reviewed already).
 - Added Chinese translations.
 - Many other things.

Test: Manual
Change-Id: I126a3ea0dad645014fab9cdee2ed19e06a8a56e9
2021-04-16 16:54:41 -07:00
Schneider Victor-tulias 3ce81f275f Update gesture navigation string resource for translations.
Updated the gesture navigation tutorial skip dialog's subtitle string resource and description:
1. increase char limit.
2. Added a placeholder string.
3. Updated the description to be clearer for translators.

bug: 185381331
Test: none
Change-Id: I6f06991694d48a9babf98777b377393f32998956
2021-04-16 13:38:26 -07:00
Bill Yi a1817425d3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I601faa07c1a2ff65abe3fe14f9aef89b553c12b2
2021-04-15 20:39:39 +00:00
TreeHugger Robot 24545fdb1e Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-04-15 00:57:46 +00:00
Bill Yi 1e8bf03140 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0987416705613c144daee763376970859601484c
2021-04-14 23:32:04 +00:00
Tony Wickham 81f8175ab1 Move taskbar to be closer to QSB
- Offset taskbar to be halfway between QSB and bottom of the screen.
- Add taskbar translationY state property to animate when going
  between launcher and an app.
- Draw the taskbar background in TaskbarContainerView instead of
  TaskbarView so it stays pinned to the bottom as TaskbarView
  translates up. If we want to have a background behind the
  taskbar on home, this should move back to TaskbarView so that
  the drawing can be shared by mTaskbarViewOnHome.

Test: visually on home screen, translates when entering and
exiting an app

Bug: 182981881
Bug: 171917176
Change-Id: I44f8b2c770074f7f015dcccbc2befd3453811193
2021-04-13 10:10:54 -07:00
Tony Wickham be282e9bc8 Update taskbar to add extra hotseat items instead of recent apps
Removes recents-related code including the divider between it and
hotseat.

Test: manually on device

Fixes: 184366189
Bug: 184789479
Bug: 171917176
Change-Id: I7776c98659ded70f53a49befddcd23c8353c6440
2021-04-12 16:20:18 -07:00
TreeHugger Robot 63c169561c Merge "Some cleanup in RecentsView" into sc-dev 2021-04-07 21:06:55 +00:00
Sunny Goyal c82916fecb Some cleanup in RecentsView
> Merging overview and all-apps scrims into a single View
> Decoupling TaskMenuView from taskView

Bug: 184676497
Test: Manual

Change-Id: I49f7249eaa2a800054385ab8e73a441d6a1b5e16
2021-04-06 15:47:33 -07:00
Samuel Fufa 4f7d8fc3fb Merge "[Search] make AbstractSlideinView#createColorScrim overridable" into sc-dev 2021-04-06 22:36:28 +00:00
Zak Cohen fd9af2f017 Merge "Overview - update Clear All and Empty message drawing" into sc-dev 2021-04-06 17:42:05 +00:00
Samuel Fufa ac120c9a47 [Search] make AbstractSlideinView#createColorScrim overridable
+ Introduce feature flag for people tile results

Bug: 183972880
Bug: 184003600
Test: Manual
Change-Id: Ia8b3af4e99a66f640f6f42fc5886d9cbfb5e913c
2021-04-06 03:18:07 -05:00
TreeHugger Robot e77fc9cc25 Merge "Add split placeholder view above OverviewScrim" into sc-dev 2021-04-06 02:34:19 +00:00
Zak Cohen 23b7fea6eb Overview - update Clear All and Empty message drawing
Update Clear All and Empty message to use primary color, not workspace
color, as they are drawn on floating background now, not wallpaper.

Bug: 184260454
Fixes: 184260454
Test: local build, flash and run
Change-Id: Ie8ef4b7ace3053c2068a27b7cbedbbb039fc36d8
2021-04-05 23:45:02 +00:00
Vinit Nayak e3f7d0d1b4 Add split placeholder view above OverviewScrim
Only show single split option for landscape and
seascape overview menu options.

Bug: 181705607
Change-Id: I577fbaed41b5debd007c953851ec2056988057d9
2021-04-05 12:41:06 -07:00
Samuel Fufa ee9aff9b5b [Search][Motion] Normal<->AllApps transition revamp
Preview video attached to BR

Key changes:

- SearchUiManager#getScrollRangeDelta is removed. AllApps initial vertical offset is now controlled by deviceProfile.allAppsOpenVerticalTranslate.
- ShelfScrimView is renamed to AllAppsScrimView. Scrim no longer does vertical translate with AllApps open.  Shelf/overview related code removed.
- Scrim and AllApps content transition are animated with different interpolators. Scrim color is a blend of accentColor and allAppsScrim with proportion determined by progress*TINT_DECAY_MULTIPLIER

Bug: 183001675
Test: Manual
Change-Id: Id6bde7ee65c55c83c2973fe41f458b9364d39ecd
2021-04-05 13:32:51 -05:00
Sunny Goyal 11d7d34f0d Removing unnessary resource split in overview
Bug: 184169818
Test: Presubmit
Change-Id: Iff5a8510be337472f05acb5629712ec088361471
2021-04-02 11:43:29 -07:00
Alex Chau 5bd9ba2a80 Merge "Focus running task in overview grid" into sc-dev 2021-04-02 03:57:58 +00:00
Alex Chau dfde4d96ea Focus running task in overview grid
- calculateTaskSize now returns the Rect for focused task
- Introduced calculateGridTaskSize for non-focused task, and translate non-focused tasks to fit the grid
- As Task Rect is now vertically centered, removed ClearAllButton's grid vertical translation
- When ClearAllButton is not shown (e.g. quickswitch), make sure ClearAllButton's scroll won't be used when page snapping. This happens when page scrolls are translated so they're negative.
- Added back ActionsView when task is focused below the TaskView, which become invisible as you scroll
- In Modal state, move the ActionsView down so it won't cover the TaskView

Bug: 175939487
Test: manual
Change-Id: Idfa94a51f856418adc0503cf04211dcb4b1814fe
2021-04-01 14:52:25 +01:00
Zak Cohen a547b781ee Overview - update UI to use solid color scrim.
Also required updates to colors and status bar icons to match with new
color.

Bug: 179922117
Test: local build and flash on two devices

Change-Id: Ibec54107f52c01f125e6d100abe32434f2067b71
2021-03-31 11:25:41 -07:00
Schneider Victor-tulias 6062b851be Add strings for gesture navigation tutorial.
Added string resources needed for the gesture navigation tutorial.

Test: none.

Bug: 169687177
Change-Id: I75b863141954f6459693dfb6f16ed0d1fff9920d
2021-03-25 11:09:57 -07:00
Alex Chau dedbc8ac36 Remove grid scaling in Overveiw
- Grid scaling has problem that scales task icon and menu, which makes it hard to control icon size and text size in the manula
- Replaced the whole concept with dedicated Task size calculation in grid layout
- Support different icon size in TaskView in grid and removed task_thumbnail_top_margin
- Removed grid progress in TaskViewSimulator as well
- Refactored how ClearAllButton scroll and translations are calcualted to align clear all properly in grid
- Make page center calculation aware of PagedView pivot and scaling

Bug: 174464863
Test: Manual on two screens
Change-Id: I47b13ef6e55c6e16c52ea04225f5bde02ed82fc2
2021-03-24 18:46:32 +00:00
Zak Cohen 334efebaba Overview - Adds first pass at making landscape layout real.
Adds dynamic sizing to margins around task view, also creates space in the
overview actions view in landscape to make space for the proactive chips if
needed.

Bug: 182529089
Test: Local build and run on two devices
Change-Id: I447de3564a3249ede4e8e8a4d3e5d1c177f6be61
2021-03-24 14:45:48 +00:00
Tony Wickham 9ce3b25ef6 Add TaskbarView as a child of Hotseat
Instead of keeping the Taskbar window showing above the home screen,
we now integrate a copy of TaskbarView directly into Launcher's view
hierarchy. Most TaskbarController calls apply to both TaskbarViews
(mTaskbarViewInApp and mTaskbarViewOnHome), except for calls related
to Hotseat, which only apply to mTasbkarViewInApp given the real
Hotseat will be showing with mTaskbarViewOnHome.

More cleanup will follow this change.

Test: All taskbar interactions (e.g. drag and drop) continue to work
Bug: 182512211
Bug: 171917176
Change-Id: I0f0b124f652daa85f866e1df8f9e2981540331a0
2021-03-22 15:26:01 -07:00
Vinit Nayak d987a828e8 Initial commit of new split screen work.
TODO:
* Extract out common elements in TaskShortcutFactory.MultiWindowFactory
for commonalities between new and old way of
invoking split screen
* Integrate with WM APIs (b/182002789)
* Write tests for SplitSelectStateController

Bug: 181704764

Change-Id: Ice35adb4ea82897f5e2433dc9b93a549f3d511b5
2021-03-15 15:42:32 -07:00
Tony Wickham e2ed4b37cc Merge "Replace taskbar hotseat with real hotseat when folder is open" into sc-dev 2021-03-13 02:17:49 +00:00
Tony Wickham ae72b46b2c Replace taskbar hotseat with real hotseat when folder is open
- Seamlessly show real hotseat and hide taskbar hotseat, while
  keeping rest of taskbar visible
- Update MultiValueAlpha to allow for taking max alpha instead
  of blending, and use that for Hotseat
- Fix folder open bounds on home screen when taskbar is present

Test: Open folder from taskbar on home, can drag out items
Bug: 182079330
Bug: 171917176
Change-Id: I7c1983e3219b1341cf233260f0ccac9051c4dc14
2021-03-12 11:05:43 -08:00
Zak Cohen 6066f3dde4 Update Overview UI to new layout.
This change spaces out app icon and proactive row as well as removing
the clipping from task snapshots.

Bug: 179922117
Test: Local on two devices

Change-Id: I5075b6dd7895cb40cdd59495fd27e4153c9cc2ea
2021-03-11 15:27:50 -08:00
TreeHugger Robot 57e41f9fb7 Merge "Calculate grid layout size separately from task size" into sc-dev 2021-03-11 22:51:00 +00:00
Sunny Goyal da2ecb3095 Merge "Adding support for listening for app launch animation completion" into sc-dev 2021-03-11 21:36:43 +00:00
Alex Chau 26c1f3b139 Calculate grid layout size separately from task size
- Add translation to align task into top right/left corner of grid rect
- Also updated grid padding according to mocks

Bug: 174464863
Test: Launch overview, launch overview from app, launch into app
Change-Id: Ie856f9c43ebf35f5e58b5d125ff1754ad7bc0160
2021-03-11 20:21:08 +00:00
Sunny Goyal b65d766d88 Adding support for listening for app launch animation completion
Bug: 181165935
Bug: 179065491
Test: Verified on device
Change-Id: Ifa6a91560cb31b4dfb72a0f582607e873d8a002d
2021-03-10 15:53:21 -08:00
Zak Cohen 9f921098d3 Make TaskMenuView corner radius follow TaskView.
Also removes fake shadow from TaskMenuView as not required in new style.

Bug: 182276195
Test: Run on 3a and 4
Change-Id: Iadf89e30e56d8d7419b1e6c9550bb1b2bf3d5c49
2021-03-10 14:31:02 -08:00
Alex Chau b794ea64c7 Show TaskView as grid in large screens
- Introduced gridProgress to RecentsView/TaskView ofr animating into grid
- Introduced gridProgress dependant translation and scale properties in TaskView
- Animate running task into grid with TaskViewSimulator
- Remove overview actions (for now) but keep clear all button in large screens
- Adjust ClearAllButton translation to acoomodate for grid
- Use screen width +-50% to calculate task visibility
- Use the position where TaskView is on screenEnd as pageScroll
- TODO: Handle separate recents activity

Doc: go/foldables-launcher-overview
Video: http://dr/file/d/107Aydii1LoFCwP63nWG3Twr2PBDE5ZgD/view?resourcekey=0-aUjdnx8ezimS9tmAgao9ag
Test: Test Launchering overview and launching overview from apps with folloiwng combination:
- large / small screen sizes
- portrait / landscape
- thumbnails from different screen sizes / orientations
Bug: 174464863
Fixes: 181509346

Change-Id: I4b691cde774f2e37532b68ba83c6eed399f2332e
2021-03-02 17:10:45 +00:00
Tony Wickham 40fbc96a0a Increase taskbar size to match latest specs
Test: Ran it locally, verified it looked as expected
Bug: 171917176
Change-Id: I8a467db57b579f1ad29d2108927eef3bd10b273a
2021-02-22 11:59:43 -08:00
Tony Wickham 7ba547cd2d Folder support in Taskbar
- Add TaskbarActivityContext which allows shared Launcher elements to
  "just work" using existing generic ActivityContext.
- TaskbarContainerView extends BaseDragLayer<TaskbarActivityContext>.
- Inflate FolderIcon and Folder using TaskbarActivityContext to be
  shown in TaskbarContainerView.
- Use TaskbarActivityContext's DeviceProfile to determine icon size
  instead of overriding in styles. This also ensures that normal
  BubbleTextView icons have the same size as FolderIcons.

Test: Place a folder in home screen hotseat, ensure it shows up in
taskbar and can be opened, and that apps inside it can be launched
or dragged.
Bug: 171917176

Change-Id: Ic25d2f84bcd7e3399c88989305ea565497c030d9
2021-02-16 15:07:01 -08:00
Zak Cohen 0d1fa0ee8d Merge "Adjust task padding overview to match new specs." into sc-dev 2021-02-13 01:23:38 +00:00
Zak Cohen fe7fb09b90 Merge "Remove elevation from Task in Overview." into sc-dev 2021-02-13 01:23:02 +00:00
Sreyas Rangaraju 4e6a7e340d Merge "Updated TaskMenuView." into sc-dev 2021-02-12 23:11:39 +00:00
Rajeev Kumar 1216e5999e Merge "Add NIU Actions buttons to the Go Overview" into sc-dev 2021-02-12 18:23:17 +00:00
Sreyas e87b4c4979 Updated TaskMenuView.
Added padding on top of task name and removed unused code.
Bug: 179490926
Test: Manual

Change-Id: Id28547f30872f449f4f51238854155358b2dbcbe
2021-02-11 15:36:30 -08:00
Zak Cohen b56611d962 Adjust task padding overview to match new specs.
New mocks have increased padding between the tasks.
I think we might need to fold some of these size calculations together
eventually, but this should be ok for the moment.


Bug: 179922117
Test: Local build and run
Change-Id: I4b5186d36012e80d55fae791e0c151c3112eecd1
2021-02-11 19:08:44 +00:00
Zak Cohen 34f4b7ebb8 Remove elevation from Task in Overview.
New designs don't have elevation for task views.


Bug: 179922117
Test: Local run
Change-Id: I0b3cb698574b49a279c7265e7f523819d20e2827
2021-02-11 19:08:02 +00:00
Sreyas 4defb4009d Update TaskIcon UI.
Moved TaskView Icon up and removed TaskMenuView Icon.
Screenshot: https://drive.google.com/file/d/1dVJOr_n4hfj7HvqHs3GQY-ZsPFkv3aFP/view?usp=sharing
Bug: 179490926
Test: Manual

Change-Id: I41844901a3e47ec6d6a8bdb6ed1fb7f4524500c4
2021-02-09 18:56:44 -08:00
Jon Spivack 3a1cfc9082 Add NIU Actions buttons to the Go Overview
The buttons send Intents to the designated app (specified by
niu_actions_package) to do the following:
Listen - Read the contents of the screen aloud
Translate - Translate the contents of the screen
Search - Perform a visual search on the contents of the screen

The Intents also include (via URI) the screenshot of current app used as
a thumbnail by Recents.

The feature is controlled by the enable_niu_actions flag, set to false
here. Both this flag and the niu_actions_package String must be set for
a given Launcher to use these buttons.

Bug: 177955244
Bug: 177955748
Test: Manual (enabled on LauncherGoGoogle and sent Intents to demo Lens
app)

Change-Id: I3d1f870bb176ed0cbae637a45c072bd8acac1d4b
2021-02-09 14:50:56 -08:00
Samuel Fufa 1d8a2a6e0d Merge "Migrate AA+ Search related files" into sc-dev 2021-02-09 21:24:37 +00:00
Hyunyoung Song a3a30a9224 Migrate AA+ Search related files
Bug: 179495850
Test: Manual

Change-Id: I32180f14a11eaf72d5d4981e76c2f2ea74472494
2021-02-09 21:23:36 +00:00
Sreyas 6c7e594d06 Updating Chips UI
Old Screenshot: https://drive.google.com/file/d/1_ptMdXCQGTz_vafOMbB-BZVZ_EP1LsaN/view?usp=sharing
New Screenshot: https://drive.google.com/file/d/1bM6Ur5H5OJdG22XU0MdRfVlNBAf_8aUy/view?usp=sharing
Test: Manual
Bug: 179490983

Change-Id: I14715b07a412239535b4916ba9cb355a0f0cf09e
2021-02-05 17:05:27 -08:00
Tony Wickham d10b587003 Merge "Add recent tasks to Taskbar" into sc-dev 2021-02-04 06:30:37 +00:00
Tony Wickham aaa42bd0e8 Add recent tasks to Taskbar
- Also adds a divider between Hotseat and Recents
- Dedupes Recents from Hotseat

Test: Open some recent tasks, ensure they are deduped
from Hotseat and also handle < 2 tasks.

Bug: 171917176
Change-Id: Ia782c6ccbcda94cfd844aad04dc3d25a3f072c2b
2021-02-03 18:54:58 -08:00
Hyunyoung Song aa793ff226 Merge "Support shorter height row layout / Disable ICON_SLICE" into sc-dev 2021-02-03 16:47:02 +00:00
Hyunyoung Song 7239df7258 Support shorter height row layout / Disable ICON_SLICE
Bug: 178815297
Bug: 178128837
Bug: 178823469

Test: manual, attached screenshot on the bugreport

Change-Id: Ie69c8928f5acc430320cfc5c85547195866e829e
2021-02-03 01:25:16 -08:00
Tony Wickham e747278ee8 Support drag and drop from Taskbar
- Long clicking a BubbleTextView in Taskbar will start a system drag
  and drop operation, setting the original view invisible meanwhile.
- Defer gesture navigation when starting over a Taskbar item, and
  cancel any started gesture if a Taskbar drag and drop starts.

Bug: 171917176
Change-Id: If5049071fbf1755f545ee937daa4edabd869f00d
2021-02-01 18:29:06 -08:00
Tony Wickham b11e4d517d Delegate Taskbar touches to nearest view to ensure 48x48dp touch size
In TaskbarView#onTouchEvent(), which is only reached if a Taskbar
icon didn't already consuem the event, check each child to see if
the event occurs within a 48x48dp bounding box, and delegate the
event and subsequent events to it until UP or CANCEL.

Bug: 171917176
Change-Id: I7afafe0835828ab9213ec6abfe4e88ad7b9af3c4
2021-02-01 18:29:06 -08:00
Tony Wickham 794fe4f58e Add Hotseat items to Taskbar
- Currently supports WorkspaceItemInfo (e.g. normal app icons
  including hotseat predictions and pinned deep shortcuts).
- Currently doesn't support Folders, Notification dots, or
  long press.

Some technical details:
- Always allow HotseatPredictionController updates given the
  Hotseat is always showing even when Launcher is stopped.
- Represent Taskbar Hotseat items as BubbleTextViews, to
  allow for normal click handling etc. When the hotseat is
  updated, we reuse the same BubbleTextViews that were
  initially inflated, and just reapply the new info.
- Add new BubbleTextView iconDisplay for Taskbar, to allow
  for different treatment such as icon size.

Bug: 171917176
Change-Id: I325eb39051f2dc69228b39b5c40ed0cbdad8e200
2021-02-01 18:29:06 -08:00
Samuel Fufa 1ab83de48e Support people search results
+ Introduce temporary workaround icon loading with URLConnection for play results

Manual: go/search-action-icon

Bug: 177223401
Test: Manual
Change-Id: I3b597faaad38e8cd1419065b80b359720baf52b0
2021-01-29 15:48:08 -06:00
Darryl Johnson 170a6b7b98 Revert "Support people search results"
This reverts commit f28db55c96.

Reason for revert: Possible cause of b/178836393

Change-Id: I0e787f02377a5b8fa723816978c61927af67665a
2021-01-29 20:51:38 +00:00
Samuel Fufa f28db55c96 Support people search results
+ Introduce temporary workaround icon loading with URLConnection for play results

Manual: go/search-action-icon

Bug: 177223401
Test: Manual
Change-Id: Ie8e7963447640d98abb9830ec05f26b28ec58345
2021-01-29 12:49:12 -06:00
Samuel Fufa 7c1e37cce1 Migrate Widgets to new Search API
Test: Manual

Bug: 168321831
Bug: 177223401
Change-Id: Ide276002a47f2345fbe535adbcb3acdc2fbc1233
2021-01-28 06:15:47 -06:00
Hyunyoung Song 7575cca264 Support ACTION/THUMBNAIL/SUGGEST corpus for rendering rendering
Hookup notifyEvent for metrics, on device intelligence.


Bug: 178454668
Bug: 178455221

Test: manual (See attached screenshots in the bug)

Change-Id: I652b4f2b0644a4726ccc3e01ce4c945a719f96a8
Signed-off-by: Hyunyoung Song <hyunyoungs@google.com>
2021-01-27 19:13:09 +00:00
Samuel Fufa f1db62cc98 Merge " Introduce feature education for AllApps Search" 2021-01-26 21:03:31 +00:00
Samuel Fufa e9d970106c Merge "Consolidate Search result UIs" 2021-01-25 22:33:42 +00:00
Samuel Fufa 062a8fd979 Introduce feature education for AllApps Search
Preview: https://drive.google.com/file/d/1eXf3K6kFh0bHcYlpwW_voSRjY9RQalJN/view?usp=sharing&resourcekey=0-IABjrtXM5JhHvSf-7yc4tg

Edu can be dismissed permanently by pressing "Got it" button or typing. Swiping down defers edu until next visit to all apps

- Move fallback search to quickstep
Bug: 178100472
Test: Manual

Change-Id: I920aab366330758e81f8b9fa62736abf82fe5cac
2021-01-25 15:17:34 -06:00
Samuel Fufa c282018765 Consolidate Search result UIs
- Allow SearchAction to be represented by SearchResultIcon and SearchResultIconRow
- Fix tap enter to launch regression
- Remove Plugin Pipeline

Bug: 177223401
Test: Manual
Change-Id: Id1d445f6af3f80f840d567165051188c78230ed0
2021-01-25 12:46:05 -06:00
Tony Wickham f26e90aa35 Add empty Taskbar views and initial TaskbarController
Guarded by a FeatureFlag.

Bug: 171917176
Change-Id: I7145c7ae68282bf53552502798fe758c8c0e285d
2021-01-22 15:39:46 -08:00
Samuel Fufa fd58d23cdf Migrate from Plugin SearchTarget to API search Target [1/3]
Setup architecture for separation between aosp and quickstep search as setup for switch to android.app.SearchTarget

Bug: 177223401
Test: manual
Change-Id: Iefd069a34d5e5551bf731e9171958e93377774aa
2021-01-12 19:46:25 -06:00
Jon Miranda f725e955cb Refactor app open code.
Move all the logic that calculate the app open float properties
to a separate class.

This is in preparation for the new app launch properties.

Change-Id: I1a008b2ea1379cbf667c5ad3ad58ece04bd88185
2021-01-11 15:58:58 -05:00
Sunny Goyal 9b1e77377b Removing shelf from 2-button gesture mode
Test: Manual
Bug: 175137718
Change-Id: Ifb64b4dcac53252aefa8ee0bd6434f90f1d868b7
2021-01-05 19:07:21 +00:00
Schneider Victor-tulias 20bbaa3390 Add additional fake task views on overview gesture completion.
Added motion pause listening to animate an additional fake task view on overview gestures in the sandbox.

Test: manual

Demo: https://drive.google.com/file/d/1EpewbIAxiMUEz0Fqdfbok5q9xpWS6NWz/view?usp=sharing
Change-Id: Ifd0aed0a2bbb3204ae32c833b8466952679700e3
2020-12-22 16:10:09 -08:00
Schneider Victor-tulias e5764199de Merge "Add the ability to control the mock app thumbnail and app icon to TutorialControllers." 2020-12-07 17:43:04 +00:00
Schneider Victor-tulias 7f66dde4de Add the ability to control the mock app thumbnail and app icon to TutorialControllers.
Giving the gesture nav tutorial sandbox environment a more accurate look and feel requires the ability to inject mock drawables. The choice of drawables should go to TutorialControllers.

Bug: 175019879

Change-Id: Ie5b03b3fa07b017c0596a58dedf65d3e866a0727
2020-12-07 16:27:37 +00:00
Jon Spivack a89a5084f2 Add the Share App system shortcut to the Go Launcher
This shortcut allows users to initiate peer-to-peer app sharing from an app's long-press menu on the home screen. It does so by passing an intent to the specified component. In this base implementation, that specification in config.xml is left blank, and the button will not appear. In GMS Launchers such as LauncherGoGoogle, the config should be set to point to Nearby Sharing.

This also establishes Launcher3QuickStepGo as a distinct subclass of QuickstepLauncher instead of merely a build configuration.

Bug: 157515296
Bug: 174286192
Test: Manual (tested on local wembley devices)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I826bd03721d2e7e963b15d5958e9a18a1cc16f1d
2020-11-30 18:53:56 -08:00
Winson Chung 87f2b09072 Merging from ub-launcher3-master @ build 6925377
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6925377.html

Change-Id: I928b100c8f41abff34047df69d988622123f9939
2020-10-23 10:16:50 -07:00
Winson Chung f99351888c Revert "Revert "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' ...""
This reverts commit 087a9e39b6.

Change-Id: I05b17a6e4aaaef6de3c2fa26aad45a39eb2833f9
2020-10-23 09:27:48 -07:00
mtk20437 02fc23c993 Modifying screenshot button visibility
Just like "Share" button, we are modifying Screenshot button visibility to gone.

Bug: 168754258
Change-Id: Ie92552c931857eed5d11af130af5a79923ee72e8
2020-10-15 03:31:52 +00:00
Jonathan Miranda eab40983b9 Merge "Add shadow radius to windows during app launch / close animations." into ub-launcher3-master 2020-10-05 22:20:27 +00:00
Alistair Delva 087a9e39b6 Revert "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' ..."
Revert "Merging from ub-launcher3-master @ build 6877130"

Revert "Merging from ub-launcher3-master @ build 6877130"

Revert "Merging from ub-launcher3-master @ build 6877130"

Revert submission 12738409-merge_ub-launcher3-master_6877130

Reason for revert: Introduced crashes to global presubmit

Reverted Changes:
I624658ce6:Merge commit '8d14dbe041199d611839140f1c9285fd4174...
Iccd2f1e3a:Merging from ub-launcher3-master @ build 6877130
I791d64951:Merging from ub-launcher3-master @ build 6877130
Icdd32ab01:Merging from ub-launcher3-master @ build 6877130

Bug: 169963211
Change-Id: I77a4ae59e823147beae8dd7cb9b54ccdace2c7f4
2020-10-05 14:46:26 +00:00
Matt Casey 49a94be109 Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' into merge_ub-launcher3-master_6877130
Change-Id: I624658ce682b55042a12faacd4cf0cfd5d3a9a56
2020-10-01 18:55:38 +00:00
Schneider Victor-tulias 2ec0ade64a Add sandbox mode to gesture tutorial settings.
Test: manual

Added a Sandbox mode tutorial fragment and controller. This fragment allows the user to try all the gesture commands and receive feedback, whether the gesture was successful or not.

Preview: https://drive.google.com/file/d/1Qmn71ZHMOrv2XjUngb6S4W5jOaBIvF1_/view?usp=sharing

Change-Id: I7d28ce25daa38fa6d05b18d43d02b77c1fc8a264
2020-09-30 15:27:27 -07:00
Jon Miranda 020e628f22 Add shadow radius to windows during app launch / close animations.
Bug: 168608912
Change-Id: I2ec50b0b3711c0861659f9c641bbc05fcdeaab45
2020-09-28 19:21:28 -07:00
Sunny Goyal 41874d1e02 [DO NOT MERGE] Snapshot strings from ub-branch to platform
Bug: 159176821
Change-Id: Ia079de403bed5ee7501a2d70f40989dcfafbddc7
2020-09-23 14:51:35 -07:00
Andy Wickham 9e754b008d Adds ability to use LauncherPreviewRenderer in Sandbox.
This is mostly a proof-of-concept for future use and
tweaks as desired by UX.

The idea is to better replicate the actual UI.

Screenshot: https://drive.google.com/file/d/1EGDgcrSH2QZuSh6P3zWLBl6L8Xd-gtFY/view?usp=sharing

Bug: 148542211
Change-Id: Ibed4b8118346ef72599463c9fd6a2f71166993fd
2020-09-16 19:35:18 -07:00
Jon Miranda fcc7dd7e57 Merging from ub-launcher3-master @ build 6834159
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6834159.html

Change-Id: I4350d0ddedd107d7005625480aefda19e5d06ba2
2020-09-14 22:13:30 +00:00
Sreyas 46aba2a46e Adding content push button behind flag to OAV.
Tested: TaplTestsNexus:testOverviewActions()
Change-Id: I83bc6e5033e2292776c927fba363214f347e01ce
2020-09-10 12:59:55 -07:00
Tony Wickham 01e4070836 Standardize quickstep velocities
- Compute velocities as px/ms from VelocityTracker, instead of
  computing px/s and dividing by 1000 in various places
- Use quickstep_fling_threshold_speed in TriggerSwipeUpTouchTracker
  instead of ViewConfiguration#getScaledMinimumFlingVelocity
- Check MotionPauseDetector to determine whether a fling is
  sufficient to escape after pause, in additon to above threshold

Bug: 159089437
Change-Id: Ib0fae7804e1f008f3b6ab37d6c463352c224b0e4
2020-09-03 10:52:34 -07:00
Hyunyoung Song 5191fe9ba0 SearchTarget/SearchTargetEvent API
Bug: 165869384
Bug: 161599758

TL;DR;;
Also introduce some additional methods for
- all apps start and stop
- metrics logging

Change-Id: I666ff5a27a5f8befdb0db483ebb07344a90e96bc
2020-08-28 23:58:23 -07:00
Andy Wickham 3356e870a6 Merging from ub-launcher3-master @ build 6799015
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6799015.html

Change-Id: Ib9d52ba333f2982d2420cab42a0935e8e8a303b3
2020-08-28 22:22:28 +00:00
Tony Wickham fa9675a32e Merging from ub-launcher3-rvc-qpr-dev @ build 6770831
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-qpr-dev_rvc-qpr-dev_6770831.html

Change-Id: Ic07dd8bd495cd0e013a00a29d9d9f11e246dc568
Merged-In: I5e9c73a7ac3033fe82006c4bd72824f56b8988f8
2020-08-18 04:59:10 +00:00
Sunny Goyal 0fc3d1275a Moving hotseat predictions to ModelDelegate
Bug: 160748731

Change-Id: I8db7856a17e0b6ca45b4d5ec3513f788f22db11a
2020-08-17 08:43:07 -07:00
Mehdi Alizadeh 4595166bf5 Merging from ub-launcher3-master @ build 6767682
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6767682.html

Change-Id: I5e9c73a7ac3033fe82006c4bd72824f56b8988f8
2020-08-16 12:31:21 -07:00
Tony Wickham d844fe758c Remove ENABLE_OVERVIEW_ACTIONS flag, defaulting to true
We no longer support the "peeking" model where the shelf would
peek on motion pause from an app and overview would peek on motion
pause from home. Thus, removed/inlined the following:
- FlingAndHoldTouchController (merged into its sole subclass
  NoButtonNavbarToOverviewTouchController)
- ShelfPeekAnim
- OverviewPeekState

Change-Id: I066a3ad2636fde4786089c922b896bf1e03361fd
2020-08-14 15:58:29 -07:00
Sunny Goyal 5fb83a47f2 Removing icon recents version
Change-Id: Ibdc88715e38590cedf8a7b5174061bb2c6ef9533
2020-08-14 10:49:19 -07:00
Zak Cohen 635c08095a Merge "Overscroll plugin - give the plugin its own factory." into ub-launcher3-rvc-qpr-dev am: cbe1fc063d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12353635

Change-Id: Ia471594443d1b744c5c34f0c9c45e7191bbf7938
2020-08-13 00:12:20 +00:00
Zak Cohen fac8741522 Overscroll plugin - give the plugin its own factory.
Separate out the overscroll plugin from the task overlay.
These two classes aren't really related.

Bug: 162012217
Tested: checked plugin still works
Change-Id: Id89eff1ad2ae9766efaaecd8cfc66d6521b9ca8c
2020-08-11 16:42:23 -07:00
Hyunyoung Song bb71582658 Merge remote-tracking branch 'goog/ub-launcher3-master' into temp
Test: make builds

Change-Id: I4e845aa51c9247328159e5aa0d95d425bffa435c
2020-08-06 11:04:41 -07:00
Andy Wickham 17d0080cc3 Adjusts Clear all to be vertically centered with the tasks.
I made a sample task where the content of the app was
centered, and I added lines to demonstrate the center
while in Overview. As you can see, the center of the
app content is slightly different from the TaskView
in Recents - it seems part of the bottom of the app
gets removed when transitioning to Recents (for the
rounded corner radius or nav bar?). On Pixel 4, I
had to add 46dp of padding to the bottom line for it
to appear at the bottom of the screenshot in Recents.

Screenshot: https://drive.google.com/file/d/1xzQNXWb0T0UGDhDS9Ov-AduM3nd-pfg8/view?usp=sharing
Before: https://drive.google.com/file/d/1ghN9VWP44XjcZkdmI106dy4_jB4Vs4J3/view?usp=sharing

Rotating between landscape and portrait:
https://drive.google.com/file/d/1OD5aKT9LCE5w950-6AaHfWXU4sLyW3Qe/view?usp=sharing

Fixes: 154964045
Change-Id: I594057e3b5df58c5a907b6ca14daa700d5011b7b
2020-08-05 19:44:07 -07:00
Hyunyoung Song 45c0918f47 Merging ub-launcher3-rvc-qpr-dev to rvc-qpr-dev
Bug: 162366734
Test: system image builds

Change-Id: I6675431b180976798afacc7a99251ae36764a50a
Merged-In: Ibff46b3ef7ff89accb459db323f31179adb4ef21
2020-07-30 00:26:39 -07:00
Hyunyoung Song 0a4a4d920e Revert "Merging from ub-launcher3-rvc-qpr-dev @ build 6690853"
Revert "Merging from ub-launcher3-rvc-qpr-dev @ build 6690853"

Revert "Merging from ub-launcher3-rvc-qpr-dev @ build 6690853"

Revert submission 12190253-merge_ub-launcher3-rvc-qpr-dev_6690853

Reason for revert: Build ID picked from ub-launcher3-master and not ub-launcher3-rvc-qpr-dev

Reverted Changes:
I9e658ece0:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
I2a47fe180:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
Ie86b0a2e0:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
Id3ca76da6:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
Ib6a63da0f:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
Bug: 162366734


Change-Id: Ie81853a34c9a48d5b3fd922c65483a9ff639e0ce
Merged-In: Ibff46b3ef7ff89accb459db323f31179adb4ef21
2020-07-28 23:43:43 +00:00
TreeHugger Robot 20017da3f4 Merge "Fixing oav text overlap." into ub-launcher3-rvc-qpr-dev am: 6039c70261 am: 11fb39a2f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12173855

Change-Id: I5a3daf62e17a2deaf151a3cb9c6e7215f859a8a4
2020-07-23 22:55:50 +00:00
TreeHugger Robot 11fb39a2f5 Merge "Fixing oav text overlap." into ub-launcher3-rvc-qpr-dev am: 6039c70261
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12173855

Change-Id: I9155c9e8146aaa13deff6a34d7869bb4b09a0fd3
2020-07-23 22:39:19 +00:00
TreeHugger Robot 6039c70261 Merge "Fixing oav text overlap." into ub-launcher3-rvc-qpr-dev 2020-07-23 22:26:16 +00:00
Hyunyoung Song 65b16d6db2 Merging from ub-launcher3-rvc-qpr-dev @ build 6690853
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-qpr-dev-rvc-qpr-dev_6690853.html

Change-Id: Ie86b0a2e0d82646a0c3d44a0214cbb985435320d
Merged-In: Ibff46b3ef7ff89accb459db323f31179adb4ef21
2020-07-23 03:47:06 +00:00
Tony Huang a0dfbff96a Enable one-handed mode gestural in QuickStep
Handling swipe-down/swipe-up gestural in device bottom area
for one-handed mode

1) The regsion is larger than gesture navigationbar view
2) One handed gestural in quickstep only active on NO_BUTTON, TWO_BUTTONS mode
3) One handed gestural only support on portrait mode

Bug: 150747547
Bug: 154189137
Bug: 156988988

Test: make and install
Test: manual enable one handed mode and swipe down to trigger
Test: manual start one handed and rotate device

Change-Id: I7b2447bfb2fe4082c95176b62934b98077b84920
(cherry picked from commit 7d375e31fe)
2020-07-21 09:59:43 -07:00
Bill Yi d5821326f8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I344fea4e320a851f0d04a3308c9f7f2dca4c934e
2020-07-20 14:00:53 -07:00
TreeHugger Robot 30d771860e Merge "Updating gesture tutorial home animation" into ub-launcher3-rvc-qpr-dev am: 24ddf21cea
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12117946

Change-Id: I6a86fd320482d9f3b894b8ff8eb5c7f0d5bdc9ca
2020-07-17 01:47:52 +00:00
Sreyas 5e19073c23 Fixing oav text overlap.
Bug: 159240113

Change-Id: I89d8249c21cca86f21cdf57a017745237b4b6cf1
2020-07-17 00:57:56 +00:00
Bill Yi 2ef5f38ae5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7f36648a52740ae4e104c8bd2f0321f541ee218f
2020-07-10 14:54:57 -07:00
TreeHugger Robot 24ddf21cea Merge "Updating gesture tutorial home animation" into ub-launcher3-rvc-qpr-dev 2020-07-09 21:44:51 +00:00
Bill Yi 6d76207e37 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I3d133ff2ba4e7c0cf1de39cacfdcbe13a9c2a366
2020-07-09 09:31:47 -07:00
Sunny Goyal 6fd105b69a Updating gesture tutorial home animation
> Using a separate View as icon, instead of the taskView
> Updating swipe animation logic to abstract out FloatingIconView dependency

Change-Id: Ib466262afead11ebe4ca035d589f0382c37e3e97
2020-07-09 07:51:34 -07:00
Hyunyoung Song 85d90a16bc Merging from ub-launcher3-rvc-dev @ build 6617269
Bug: 150504032
Test: manual, presubmit on the source branch
https://android-launcher.teams.x20web.corp.google.com/merge/ub-launcher3-rvc-dev_rvc-dev_6617269.html

Change-Id: I7a13230553f9c42d5f67164234c33cf77efa9cf2
Merged-In: I2a168bfa8e3979ade26ab1d3cddbbae84cf79590
2020-06-23 05:11:31 +00:00
Hyunyoung Song 0b51b916b0 Merging from ub-launcher3-rvc-dev @ build 6617269
Bug: 150504032
Test: manual, presubmit on the source branch
https: //android-launcher.teams.x20web.corp.google.com/merge/ub-launcher3-rvc-dev_master_6617269.html
Change-Id: I2a168bfa8e3979ade26ab1d3cddbbae84cf79590
2020-06-22 18:53:39 -07:00
Samuel Fufa 0b0a57f422 Merge "Allow Users to migrate their hotseat when returning from AiAi" into ub-launcher3-rvc-dev am: a529cd0f5f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11855090

Change-Id: I988af6be3b74c45692adf281448ec2d9d936448e
2020-06-19 01:08:12 +00:00
Samuel Fufa d25a112b0e Allow Users to migrate their hotseat when returning from AiAi
- If a user has mostly predicted hotseat, show a snack bar. otherwise, show migration option.
- Guard onboarding activity with permission `com.google.android.apps.nexuslauncher.permission.HOTSEAT_EDU`

Bug: 158569583
Test: Manual
Change-Id: Id0c1c812233fcf288a2f49848720199dedd2015d
2020-06-18 16:38:58 -07:00
Andy Wickham 6c2ac9e7aa Merge "Removes Sandbox from launcher task." into ub-launcher3-rvc-dev am: 4a85948843
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11688625

Change-Id: I935f383bf0df15991cb55f9fba30386394d1b696
2020-06-17 23:13:18 +00:00
Andy Wickham 4a85948843 Merge "Removes Sandbox from launcher task." into ub-launcher3-rvc-dev 2020-06-17 22:56:44 +00:00
Miranda Kephart 1bb17f2658 Merging from ub-launcher3-rvc-dev @ build 6595814 am: efdc4e2318 am: 9cb1795a71 am: ad4bd43b8f am: 9269333de9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11885879

Change-Id: Ie7d2e841b2d41504e07633f116d80b4e3adde59f
2020-06-17 20:49:31 +00:00
Miranda Kephart efdc4e2318 Merging from ub-launcher3-rvc-dev @ build 6595814
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6595814.html

Change-Id: I4be85d0e52cc3cb8801012a7313a269851680c8b
2020-06-16 20:52:28 +00:00
Pinyao Ting 5c2f1a6fa4 Merging from ub-launcher3-rvc-dev @ build 6577335 am: 8020bf2f4b am: e0a0876062 am: af957e82c4 am: cd902c0fc0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11828234

Change-Id: I7def4bc74da0e4bf8ce19bd281d90945f45a6a3d
2020-06-11 09:58:01 +00:00
TreeHugger Robot ee67acfc3c Merge "Show discovery tip for hybrid hotseat" into ub-launcher3-rvc-dev am: 743e25e2d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11638182

Change-Id: I3cc06fc4989a636139bcce2d8c22c9136ee419ad
2020-06-10 23:23:56 +00:00
Andy Wickham 690543f159 Removes Sandbox from launcher task.
Instead, adds it to the gesture-exclusion activities
to prevent normal gesture handling.

Bug: 148542211
Change-Id: Ie04d2e71346a0c039e73fcc386cedc1b74fadadb
2020-06-10 15:41:37 -07:00
Samuel Fufa 5b2da14e72 Show discovery tip for hybrid hotseat
Doc: go/hybrid-hotseat-tips

Issue 157683315: for fully populated hotseat, count returns to home screen and show discovery tip if Tip action was not tapped.
Issue 158301717: Don't use cached items if client has predicted items.

Test: Manual
Change-Id: I4747a1148caa62a6262fb6592d5185bdf216ede6
2020-06-10 15:12:55 -07:00
Pinyao Ting 8020bf2f4b Merging from ub-launcher3-rvc-dev @ build 6577335
Bug: 150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_6577335.html

Change-Id: Ie1f44dd646088759fef66251fe9e5f584b804d73
2020-06-10 21:54:11 +00:00
Samuel Fufa fb318873f8 Merge "Allow hotseat edu in landscape mode" into ub-launcher3-rvc-dev am: 07e2b4b6e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11531791

Change-Id: Ia46130b013096a8d90604eec513e42e9edfe8ab7
2020-06-04 19:52:53 +00:00
Samuel Fufa 07e2b4b6e7 Merge "Allow hotseat edu in landscape mode" into ub-launcher3-rvc-dev 2020-06-04 19:42:11 +00:00
TreeHugger Robot fb4fa0c4c7 Merge "Import translations. DO NOT MERGE" into ub-launcher3-rvc-dev 2020-06-04 16:41:44 +00:00
Adam Cohen fa6e021ce6 Merging from ub-launcher3-rvc-dev @ build 6557059
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6557059.html

Change-Id: I9c0912f26445d454f71c4f0f63d45b184726db3d
Merged-In: I280025d9e58626fe725fe24ca60c28e89d0cee74
2020-06-04 15:02:12 +00:00
Andy Wickham 0425762c4e Merge "Adds Assistant Sandbox tutorial." into ub-launcher3-rvc-dev am: ad6a4dceea
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11688618

Change-Id: Ib10371ca89ee88a66722f7db13f127e4f3ece8ef
2020-06-04 01:43:04 +00:00
Andy Wickham ad6a4dceea Merge "Adds Assistant Sandbox tutorial." into ub-launcher3-rvc-dev 2020-06-04 01:30:22 +00:00
Adam Cohen f903d2c910 Merging from ub-launcher3-rvc-dev @ build 6557059
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6557059.html

Change-Id: I280025d9e58626fe725fe24ca60c28e89d0cee74
2020-06-04 00:56:51 +00:00
Bill Yi f2d2d1e084 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I0322065edda96559d79a8fbda5d05354b8460fda
2020-06-04 00:08:26 +00:00
TreeHugger Robot cd6a7133ab Merge "Adds Dark mode support to Sandbox." into ub-launcher3-rvc-dev am: 55a758253b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11720146

Change-Id: Ib78c370eda25c377342a7ac4ee0d5e1def2fdced
2020-06-03 22:05:44 +00:00
TreeHugger Robot 55a758253b Merge "Adds Dark mode support to Sandbox." into ub-launcher3-rvc-dev 2020-06-03 21:52:35 +00:00
TreeHugger Robot 1f80e194c5 Merge "Restore hotseat when user turns off suggestions immediately after migration" into ub-launcher3-rvc-dev am: 9f365cb782
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11666757

Change-Id: Ibd1a0d471fc9322041ca5f65317383e988aa35be
2020-06-03 21:11:36 +00:00
TreeHugger Robot 9f365cb782 Merge "Restore hotseat when user turns off suggestions immediately after migration" into ub-launcher3-rvc-dev 2020-06-03 20:56:24 +00:00
Andy Wickham 3212b10941 Adds Dark mode support to Sandbox.
Screenshots
Back: https://drive.google.com/open?id=1brE9WLWGeKaOgzMsczpV40rPIckOk1YJ
Home: https://drive.google.com/open?id=1zexyFPsXr4VzvwlMqhLv720kqHh7s66v
Tutorial complete: https://drive.google.com/open?id=1UbeIDYMQR04lzJhGK7rp2rSdmhiHl5QR

Fixes: 157483039
Change-Id: Id9753a00832dbe42316fbdcaf447f3a51a45bc3e
2020-06-03 13:48:39 -07:00
Adam Cohen e557bac0a1 Merging from ub-launcher3-rvc-dev @ build 6552182
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6552182.html

Change-Id: I795aafd151c6ce53077e1aebb97567eedd84f274
Merged-In: I795aafd151c6ce53077e1aebb97567eedd84f274
2020-06-03 20:28:44 +00:00
Samuel Fufa f667a1352d Restore hotseat when user turns off suggestions immediately after migration
- Creates a backup table `hybrid_hotseat_restore` and copies current workspace layout before hotseat migration
- restores to back up when user turns off suggestions and launcher receives empty predicted items
- deletes hybrid_hotseat_restore table if there's a layout change

Test: Manual
Bug: 157688471
Change-Id: Iaf7ddb33799493d36dbcd12408b57224162221d9
2020-06-03 13:15:21 -07:00
Adam Cohen 5ca2980e54 Merging from ub-launcher3-rvc-dev @ build 6552182
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6552182.html

Change-Id: I795aafd151c6ce53077e1aebb97567eedd84f274
2020-06-03 01:52:11 +00:00
Andy Wickham 1a5795d1fe Adds Assistant Sandbox tutorial.
Demo: https://drive.google.com/open?id=1onivF9qKdgJeUG2ROkQBxcgi-l0VfC4f

Fixes: 157824552

Change-Id: Ia0e5f46b39e3f06feed2f7e175ab7861e9d51a96
2020-06-02 14:38:45 -07:00
TreeHugger Robot 66f1e0215c Merge "Adds Overview Sandbox tutorial." into ub-launcher3-rvc-dev am: 34413df66d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11688637

Change-Id: I6a87092cb8e50fce2770e391898d9c8be8ca0071
2020-06-02 21:28:49 +00:00
Andy Wickham fad8a87773 Adds Overview Sandbox tutorial.
Extracts fake task view animation logic to
SwipeUpGestureTutorialController, which
Home and Overview controllers extend.

Fixes: 157945497
Change-Id: Ibd1c129c57e9bee8db62baae455ca1bd9df114c7
2020-06-02 13:58:27 -07:00
Tracy Zhou 40a53f5398 Merge "Merging from ub-launcher3-rvc-dev @ build 6541617" into rvc-dev am: 614c185e21 am: dfbe0fc1a3 am: ffa5d445b1 am: 1ee4743a17
Change-Id: Idcc1eb34ad0df71379b0689728d5304cda3bcf43
2020-05-30 08:36:42 +00:00
Tracy Zhou 6699858d49 resolve merge conflicts of 5d065997f8 to master
Test: I solemnly swear I tested this conflict resolution.
Bug: None
Change-Id: I277a74dac999f3f56836fafc04ac799f84154013
2020-05-29 19:38:36 -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
TreeHugger Robot 10e7a2bd4e Merge "Animates a fake TaskView in Home gesture tutorial." into ub-launcher3-rvc-dev am: 7fab619676
Change-Id: I39d6c9a66e4019427b17cfb8b9c0128f61263da9
2020-05-29 22:05:35 +00: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
Samuel Fufa 8c323b1178 Merge "Remove dependency on Launcher notification for hotseat edu" into ub-launcher3-rvc-dev am: dbb212e939
Change-Id: Ibf409d87cdb8f55526fc3095bfbbfc03bef9f42b
2020-05-29 19:55:29 +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 6ae611a8eb Merging from ub-launcher3-rvc-dev @ build 6541617
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6541617.html

Change-Id: I23f7656c1cc1fcc922aab4f533bcb25509bc882f
2020-05-29 12:03:25 -07:00
Tony Huang 7d375e31fe Enable one-handed mode gestural in QuickStep
Handling swipe-down/swipe-up gestural in device bottom area
for one-handed mode

1) The regsion is larger than gesture navigationbar view
2) One handed gestural in quickstep only active on NO_BUTTON, TWO_BUTTONS mode
3) One handed gestural only support on portrait mode

Bug: 150747547
Bug: 154189137
Bug: 156988988

Test: make and install
Test: manual enable one handed mode and swipe down to trigger
Test: manual start one handed and rotate device

Change-Id: I7b2447bfb2fe4082c95176b62934b98077b84920
2020-05-29 19:40:15 +08:00
TreeHugger Robot b14c703579 Merge "Remove overview share to match spec" into ub-launcher3-rvc-dev am: 06fcfe1f5f
Change-Id: I53c28941881b083d7a7312377a280bc4ea1f8d55
2020-05-29 00:56:33 +00:00
Tracy Zhou d67be77066 Merging from ub-launcher3-rvc-dev @ build 6538292
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6538292.html

Change-Id: I53b084ca2dc94d94f87d696bbfd7666b55d712ad
2020-05-28 17:45:04 -07:00
Sreyas ae23746fa0 Remove overview share to match spec
Bug: 157174391
Change-Id: Iabfeb34b77abcb885b1518d348cac45e71dc92a9
2020-05-28 17:04:42 -07:00
Samuel Fufa f0dc0b6ae0 Remove dependency on Launcher notification for hotseat edu
Doc: go/hybrid-hotseat-tips

Allow launcher to show hotseat education with intent action "launcher.show_hotseat_edu"

Bug: 157683315
Test: Manual
Change-Id: I62c79b821b79cf1adb831e2f79f6f0f02166ca42
2020-05-28 16:40:46 -07:00
TreeHugger Robot d1d4c78b12 Merge "Putting Overview Share button behind flag" into ub-launcher3-rvc-dev am: 065c84cbeb
Change-Id: If8d51e1077e61a2c22644f289ef15d3cd6c910cb
2020-05-28 20:58:18 +00:00
Sreyas dbedb91ad8 Putting Overview Share button behind flag
https://drive.google.com/file/d/1Io5N-LyXoRa9LHQjJNd1BAgBkVuBvnhr/view?usp=sharing
https://drive.google.com/file/d/15HhNvNoUn5qX1GhkjDaifA3G05PLoIwO/view?usp=sharing
Bug: 157174391

Change-Id: I8314d5aa309fe020a4121753d4e76ca10370c626
2020-05-28 12:03:12 -07:00
Jon Miranda 46fd4ec625 Add all apps education tutorial.
* Added FeatureFlag.ENABLE_ALL_APPS_EDU
* When user swipes up on nav bar three times and goes to hint state
  consecutively, we show the new All Apps education tutorial.
* For now we block interaction while the animation is playing,
  and we remove the view when the animation is done.
* Future CL will leave view up until user successfully reaches All Apps state.

Bug: 151768994
Change-Id: I903e0a3914d0558950ecb8cd714d97ddc10ca06b
(cherry picked from commit 517cec5344)
2020-05-26 15:21:28 +00:00
TreeHugger Robot 69d772633d Merge "Import translations. DO NOT MERGE" into ub-launcher3-rvc-dev 2020-05-22 23:23:03 +00:00
Bill Yi 5051db820b Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I37782ef5afd3cf3606bef863f14731996ae9e0c9
2020-05-22 23:09:02 +00:00
Jon Miranda 68e1d6a060 Add all apps education tutorial. am: 517cec5344
Change-Id: I0425fd2c1fc9bff20817a40d7daeba3b54f52b30
2020-05-20 19:37:32 +00:00
Jon Miranda 517cec5344 Add all apps education tutorial.
* Added FeatureFlag.ENABLE_ALL_APPS_EDU
* When user swipes up on nav bar three times and goes to hint state
  consecutively, we show the new All Apps education tutorial.
* For now we block interaction while the animation is playing,
  and we remove the view when the animation is done.
* Future CL will leave view up until user successfully reaches All Apps state.

Bug: 151768994
Change-Id: I903e0a3914d0558950ecb8cd714d97ddc10ca06b
2020-05-20 11:44:23 -07:00
Joshua Trask 41dc164d11 Merging from ub-launcher3-rvc-dev @ build 6511067
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6511067.html

Change-Id: Ifc8c251ef0f03e66de3b1c9fa94bfcb980704769
2020-05-20 11:12:54 -04:00
James O'Leary 3ed973c034 Merge "Compose gesture integrated fully into Launcher" into ub-launcher3-rvc-dev am: 4cb77a60aa
Change-Id: Ib138be3ddb8a1740d9ade68fa460be5bc50980c0
2020-05-14 20:26:00 +00:00
James O'Leary 4cb77a60aa Merge "Compose gesture integrated fully into Launcher" into ub-launcher3-rvc-dev 2020-05-14 20:20:13 +00:00
Winson Chung ceffbf644f Remove LockscreenRecentsActivity am: 1801d19bcd
Change-Id: I8c9aa9ce998391b20ceaf5bd3a9a11e1ddcedcb1
2020-05-14 18:18:22 +00:00
James O'Leary 74a2746b35 Compose gesture integrated fully into Launcher
- Support dismissing Compose via the reverse gesture from the appear
gesture
- Use Tony Wickham's ag/10204761 with some glue code to enable the
app below Compose panning in the same direction as the gesture as
Compose peeks in
- Add feature flag to use Compose hosted in a window (permits underlying
app panning)
- Use InterpolatingVelocityTracker to fix OtherActivityInputConsumer
processing swipes in the wrong direction ~20% of the time due to a bug
in VelocityTracker (see go/quirky-bubbles)

Change-Id: I3adbaee1763f21557fb628b60d03b0a03e7079ab
2020-05-14 14:18:19 -04:00
Winson Chung 1801d19bcd Remove LockscreenRecentsActivity
- This activity would create another task (no longer in the same
  stack since we don't have activity type stacks) which was causing
  the camera to be occluded sometimes, which then cancels the recents
  animation
- Tweaking the animation slightly to match the movement of the closing
  the activity back to the lockscreen

Bug: 156514461
Test: Launch camera on the lockscreen and swipe up to dismiss (repeatedly)
Change-Id: I8aaac22767288d7fbf183683276c50acaaf831d2
2020-05-14 10:51:44 -07:00
Winson Chung 6e0d05fc41 Merging from ub-launcher3-rvc-dev @ build 6492476
Bug: 150504032
Test: manual, presubmit on the source branch
    x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6492476.html
Change-Id: I96b36965f7b471eb77aa78a8b923ed9298e8a02f
2020-05-13 23:22:18 +00:00
TreeHugger Robot a0aa8a790f Merge "Adds Settings button back to Back gesture tutorial." into ub-launcher3-rvc-dev am: d893a478a3
Change-Id: I2ce1a865519932d53c38389ce29c81b5c176007f
2020-05-13 18:36:37 +00:00
TreeHugger Robot d893a478a3 Merge "Adds Settings button back to Back gesture tutorial." into ub-launcher3-rvc-dev 2020-05-13 18:34:37 +00:00
Becky Qiu 3e1001247d [Overview Actions] Adjust the select mode taskview UI. am: dc48fc4f84
Change-Id: Ie3b94689faf8f0110b0130e46743989316b4eb24
2020-05-13 18:30:29 +00:00
Becky Qiu dc48fc4f84 [Overview Actions] Adjust the select mode taskview UI.
It will have a 30dp horizontal paddings and vertically in the middle of the screen.

Test: local
Bug: 155444014

Change-Id: I4f3d627008b2c114cc4921bf683919c6044926e4
2020-05-13 18:23:28 +00:00
Andy Wickham ee1203e436 Adds Settings button back to Back gesture tutorial.
Uses a simpler Intent which actually works :)

Fixes: 149348244
Bug: 148542211
Change-Id: I5e28c63d1eec93b4642e398c7532e7ec4809d6e2
2020-05-13 10:48:38 -07:00
TreeHugger Robot 6097c36aea Merge "[Overview Actions] Put the taskview in the middle of the screen." into ub-launcher3-rvc-dev am: 7c604edf92
Change-Id: Icfd6a7d2a74dcdd355ff4afdf68b385cd4675996
2020-05-12 23:19:19 +00:00
Becky Qiu 073cbca370 [Overview Actions] Put the taskview in the middle of the screen.
Using horizontal padding 48dp to adjust the scale of the taskview and put it in the middle of the vertical space.

Test: local
Bug: 155444014
Change-Id: Iee6096baf18ae1106c24c83b4675abd4d3ff4d4f
2020-05-12 15:00:54 -07:00
TreeHugger Robot 225663ffae Merge "[Overview Actions] Change actions view UI based on different nav modes." into ub-launcher3-rvc-dev am: 17d3fe81c4
Change-Id: Ic8d3ca56862bc6e7f34d8bdb1a1586045cc59656
2020-05-11 19:31:02 +00:00
Zak Cohen 9e3797b260 Merge "Overview Actions - shows a message if action is blocked by policy." into ub-launcher3-rvc-dev am: 02a25be89d
Change-Id: Ied5427ad95a8a65679551fae09b158778b87f6e1
2020-05-11 19:30:49 +00:00
TreeHugger Robot 17d3fe81c4 Merge "[Overview Actions] Change actions view UI based on different nav modes." into ub-launcher3-rvc-dev 2020-05-11 18:52:13 +00:00
Zak Cohen 02a25be89d Merge "Overview Actions - shows a message if action is blocked by policy." into ub-launcher3-rvc-dev 2020-05-11 18:43:55 +00:00
Becky Qiu 7d12134240 [Overview Actions] Change actions view UI based on different nav modes.
1. Change the overview actions container to 66dp height.
2. For 3 button mode, container will have 8dp bottom margin.
3. For gesture mode, container will have 16dp bottom margin.
4. Action buttons and close button will always be in the center vertically.

Spec: https://docs.google.com/presentation/d/1gXWNdCRXvXuEhgDmE0TX2KYqCxIQBXVtWKdl4pKrno8/edit#slide=id.g840c32b190_3_6

Demo:
- 3 button: https://screenshot.googleplex.com/2Y3uMaJMi9E
- gesture: https://screenshot.googleplex.com/XzaKHpp5ke9
Test: tested for both modes and when switch between.
Bug: 155444592

Change-Id: If66d369df0218b7ee2abab8a3f345488bf223b16
2020-05-11 10:46:21 -07:00
Bill Yi 91e0db3905 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I2f2cda2793113a012d86b0d18cccf3e6fabb7e69
2020-05-10 20:53:08 +00:00
Zak Cohen 4ebd859bc4 Overview Actions - shows a message if action is blocked by policy.
Device policy or app secure surface policy mean that snapshot based
actions shouldn't work.
This is encoded in whether the snapshot is "real", the fake snapshot is
generated when policy doesn't allow captures.

Test: tested with Test DPC fake device policy app
Change-Id: Ib34e5a90ab58fb401d4516c531866d1c13569256
2020-05-08 17:16:15 -07:00
TreeHugger Robot 2547f57cee Merge "Disabling OverviewActionsView buttons while scrolling or clear all shown." into ub-launcher3-rvc-dev am: e4d1a71413
Change-Id: Ibeed4fefaa4072c37bb9df9ce31a08b47767b040
2020-05-08 00:19:25 +00:00
TreeHugger Robot e4d1a71413 Merge "Disabling OverviewActionsView buttons while scrolling or clear all shown." into ub-launcher3-rvc-dev 2020-05-08 00:02:54 +00:00
James O'Leary fe68c9eec1 Merging from ub-launcher3-rvc-dev @ build 6469858
Bug: 150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_6469858.html

Change-Id: Ia2feae3192f875638692e55f4c88746c0a8159a3
2020-05-07 17:53:51 -04:00
James O'Leary bfa2133fe1 Merge "Revert "Compose gesture integrated fully into Launcher"" into ub-launcher3-rvc-dev am: ac327df55c
Change-Id: I8c565067ea1c804ec08c3d6b76008f41e6ac77d5
2020-05-07 01:28:20 +00:00
James O'Leary ac327df55c Merge "Revert "Compose gesture integrated fully into Launcher"" into ub-launcher3-rvc-dev 2020-05-07 01:14:44 +00:00
James O'Leary 2610bfde05 Revert "Compose gesture integrated fully into Launcher"
Revert "Compose gesture integrated fully into Nexus Launcher"

Revert submission 11035205-compose_gesture_fully_integrated_launcher

Reason for revert: Broke Launcher Android Studio build, quick switch, and home gesture doesn't work if Compose is open.
Reverted Changes:
I2d97b22d5:OverscrollPlugin refactored to use onTouchEvent
Ia19a55f65:Compose gesture integrated fully into Nexus Launch...
I65aa07ac1:Compose gesture integrated fully into Launcher

Change-Id: Ic05c47eb686b3942ba519e76db32977fc568844b
2020-05-07 00:13:47 +00:00
Sreyas 78f53856a9 Disabling OverviewActionsView buttons while scrolling or clear all shown.
Bug: 153469850, 153387526
Video: https://drive.google.com/a/google.com/file/d/1mOc8yubux92iKtXRtSOKTcnjWWzvDgC7/view?usp=sharing

Change-Id: Id507d3a050e67057fc34a30771c9566ddfcf94ca
2020-05-06 16:36:24 -07:00
TreeHugger Robot 6cc23ef85a Merge "Updates Back and Home tutorial animations." into ub-launcher3-rvc-dev am: e725a69fb5
Change-Id: I9ab7eeb244c55dd4afccfd0245dadbc8b09e90c3
2020-05-06 22:59:54 +00:00
TreeHugger Robot e725a69fb5 Merge "Updates Back and Home tutorial animations." into ub-launcher3-rvc-dev 2020-05-06 22:45:27 +00:00
James O'Leary 78bc076c27 Compose gesture integrated fully into Launcher am: d9c86d4b3b
Change-Id: I83dd887d810ff41018524385789050d3f388c60b
2020-05-06 18:56:49 +00:00
James O'Leary d9c86d4b3b Compose gesture integrated fully into Launcher
- Support dismissing Compose via the reverse gesture from the appear
gesture
- Use Tony Wickham's ag/10204761 with some glue code to enable the
app below Compose panning in the same direction as the gesture as
Compose peeks in
- Add feature flag to use Compose hosted in a window (permits underlying
app panning)
- Use InterpolatingVelocityTracker to fix OtherActivityInputConsumer
processing swipes in the wrong direction ~20% of the time due to a bug
in VelocityTracker (see go/quirky-bubbles)

Change-Id: I65aa07ac112db8bd89cec9acfa0ce2b6ebacd43f
2020-05-06 13:40:47 -04:00
Bill Yi 77fe1a7c90 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I2a006876dfa9ef67f47ff5e29aa9e2bcd4ef328d
2020-05-05 22:50:24 -07:00
Zak Cohen e5d5ee782b Merge "OverviewActions - make button ripple workspace text color." into ub-launcher3-rvc-dev am: 224ef0efe7
Change-Id: Ib02e8501aca2b01c2b9b1b76f74143d3d2c26750
2020-05-05 19:28:27 +00:00
Zak Cohen b4ee058955 OverviewActions - make button ripple workspace text color.
Uses a theme to set the control highlight color.

Test: local on dark and light wallpaper
Change-Id: Iddb668fcbd3ab760faabd9c296274315d63e044f
2020-05-04 17:17:52 -07:00
Andy Wickham f7c033f5e3 Updates Back and Home tutorial animations.
Also adds Overview and Assistant for future use.

Back: https://drive.google.com/open?id=1-VWcGelSZLHQysCn4Bm1tv7vyXbeMpDX
Home: https://drive.google.com/open?id=1YnpMuZcjs3bdQwQkdCOv5px5Ktpm_aBM

Bug: 148542211
Change-Id: Iaaf24e43f24af5ffca1a040e3c0d71e7d26a2175
2020-04-30 21:44:48 +00:00
Santiago Etchebehere 82902c0da6 Merging from ub-launcher3-rvc-dev @ build 6436292
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6436292.html

Change-Id: I28d6ec42b7a6a8e779abb306cc29c9801910206f
2020-04-27 22:40:31 -07:00
TreeHugger Robot fbb6d6a73a Merge "Import translations. DO NOT MERGE" into ub-launcher3-rvc-dev 2020-04-25 21:03:52 +00:00
Bill Yi 0d3d73a402 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I9fc4e7de6693ab7fee98740c1c09e92dfbd82eda
2020-04-25 03:09:04 -07:00
TreeHugger Robot 3176077614 Merge changes I38874b8b,I627ed7c6 into ub-launcher3-rvc-dev am: a29a69943a
Change-Id: I324727deb4c83401e9c1ed13d2c8b0add146ac7e
2020-04-24 20:15:50 +00:00