Commit Graph

104 Commits

Author SHA1 Message Date
Andy Wickham
68d7a6e5b2 Adds feature flag for BC Smartspace.
Change-Id: Iaf9fb7507d0ccd004a4e00188c75dadd6a059246
2020-10-07 14:27:17 -07:00
Pinyao Ting
a435e18686 enable minimal device mode for droidfood in S
Test: manual
Change-Id: Ieb24734e6c4245a872b5ac0f1a99766d542e983e
2020-09-20 05:27:51 +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
Hyunyoung Song
f269542929 Remove USER_EVENT_DISPATCHER feature flag
Bug: 165675920

Change-Id: I56fc4833f7e83dc2babffdb1f7c17c7ba39558a8
2020-08-19 21:24:07 -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
TreeHugger Robot
ba9415162c Merge "Use system VelocityTracker instead of forking least squares algorithm" into ub-launcher3-master 2020-08-13 18:17:41 +00:00
TreeHugger Robot
58a1689cef Merge "Overview Actions - enable proactive actions flag." into ub-launcher3-rvc-qpr-dev am: 2ddbe127fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12286410

Change-Id: I54898c6a1a47d271c8d18c17d24a5acb6e67fd1e
2020-08-13 18:05:50 +00:00
Tony Wickham
59d04e6ea6 Use system VelocityTracker instead of forking least squares algorithm
Change-Id: I8e03cdd0942b9037054cd1955bdb6809c89f3ea2
2020-08-13 10:41:49 -07:00
Zak Cohen
1e414d5005 Overview Actions - enable proactive actions flag.
Bug: 162623012
Test: local
Change-Id: I343ae83601ebdab4dacc9f4611b069f87b5542eb
2020-08-12 16:32:45 -07:00
TreeHugger Robot
a02206e4f8 Merge "Minimal Phone Mode (part-1)" into ub-launcher3-rvc-qpr-dev am: 5484fd3e7a am: 07ab7015f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12171290

Change-Id: I4eeb9731c15b3b0d0aac32b4545675e11cc8391a
2020-07-24 18:51:37 +00:00
Pinyao Ting
422015cb9f Minimal Phone Mode (part-1)
Include feature flag for minimal phone mode

Bug: 161462256
Test: manual
Change-Id: I4ddbe7fd2fd73b4cfaa27ab18c210f38133dd3c2
2020-07-21 11:45:36 -07:00
Samuel Fufa
9ae44d6c2b Setup controller for on device search
With introduction of feature flag ENABLE_DEVICE_SEARCH, Launcher can now show a softkey input when user goes to all apps.

Bug: 161545076
Test: Manual
Change-Id: Ie75d059da0a20d0fb98b87bb948a205c080ba529
2020-07-18 13:00:32 +00:00
Tracy Zhou
f957ff9123 Do preview grid migration in a worker thread
Also remove USE_SURFACE_VIEW_FOR_PREVIEW flag

Fixes: 159755324
Test: manual
Change-Id: I6517c34911e217a69063226b01e4583194902f9c
(cherry picked from commit 633a4bdf57)
2020-06-25 21:04:25 +00:00
Tracy Zhou
633a4bdf57 Do preview grid migration in a worker thread
Also remove USE_SURFACE_VIEW_FOR_PREVIEW flag

Fixes: 159755324
Test: manual
Change-Id: I6517c34911e217a69063226b01e4583194902f9c
2020-06-25 13:12:52 -07:00
Samuel Fufa
cb771349da convert HOTSEAT_MIGRATE_TO_FOLDER to DebugFlag
Bug: 159282737
Change-Id: Ided5ff36ee9c8792b9d9942814af15ac4c7ed7db
2020-06-18 15:08:19 -07:00
TreeHugger Robot
e34b183547 Merge "Add feature flag for majority ranking." into ub-launcher3-rvc-dev 2020-06-09 23:23:49 +00:00
Jayaprakash Sundararaj
f4898452f7 Add feature flag for majority ranking.
Bug: 157907222
Change-Id: I72962c3c68559ce8d40ca4137e89b9cc2913825a
2020-06-09 15:50:58 -07:00
Hyunyoung Song
97c5dacf87 Guard logging behind a feature flag
Bug: 158442037

Change-Id: Idcfc519037f975542b7ed91e411b008f32d41dd5
2020-06-08 01:58:19 -07:00
Samuel Fufa
d811fe19a7 Make "Don't suggest app" default True
Bug: 157011277
Change-Id: I84ab3502ae18d28e3108e9d10a24a08f55dcaff3
2020-05-29 16:08:57 -07:00
TreeHugger Robot
065c84cbeb Merge "Putting Overview Share button behind flag" into ub-launcher3-rvc-dev 2020-05-28 20:38:46 +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
Sunny Goyal
a314d5ad58 Updating swipe up on home animations
> Scaling down home activity on swipe-up from home and spring back to place on cancel
> Fading out recents on swipe-up to home, so ensure that adjecent tiles also dissapear
> Instead of controlling alpha, controlling full transform for base and home task. This allows adding custom animation for home task on swipe up.
> Removing alpha hanging for fallback activity in baseSwipeHandler. Instead controlling full transform for home activity
> Adding feature flag to use QuickstepLauncher as 3P Launcher to make development easier.

Bug: 156398988
Change-Id: I69cc59f2c9c95d15df6926ba635e7d6c251dceb6
2020-05-27 19:49:46 +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
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
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
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
Zak Cohen
51e144ff8f Flag - rename SELECT_MODE to OVERVIEW_SELECTIONS
Better reflects what it is for.

Bug: 155806266
Test: toggled locally
Change-Id: Ied3ba04bce5363696e03741e494a1e1507ce38ce
2020-05-05 14:27:12 -07:00
Samuel Fufa
49d0f64a9d Decouple feature flag and predictions
- Always default to true for ENABLE_HYBRID_HOTSEAT
- Allow launcher to show predictions anytime regardless of notification and on-boarding.
- Remove past beta specific plans
- Migrate if first screen can accommodate hotseat items otherwise show tip

Bug: 142753423
Test: Manual
Change-Id: I142cd95d779964822da07a96e5884a0c82813742
2020-05-04 15:20:39 -07:00
Tracy Zhou
219426f870 Turn on V2 migration algorithm feature flag
This flag is behind grid options master flag, so it won't go to all dogfood users yet.
I will turn on grid options flag after enough bug bash, hopefully at the end of this week.

Bug: 154154093
Test: N/A
Change-Id: I608af1cd3c5613f7cc33a940a145309ac90a6c00
2020-04-23 09:18:46 -07:00
Sunny Goyal
b7833f8193 Moving various orientation related config in RecentsOrientaedState
> Fixing RecentsOrientationState values for fallback recents
> Using proper rotation in task simulator

Change-Id: I770e7c8850e469f5dc0ce6f89889672f2decdc0d
2020-04-22 10:49:02 -07:00
Hyunyoung Song
14a3ace27e add FeatureFlag type to the dump / also sort them
Bug: 152660449

$ adb shell dumpsys activity service com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
SERVICE com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService d4107aa pid=27740
  Client:
    DeviceFlags:
      APP_SEARCH_IMPROVEMENTS, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
      ENABLE_HYBRID_HOTSEAT, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
      ENABLE_SUGGESTED_ACTIONS_OVERVIEW, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
      FOLDER_NAME_SUGGEST, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
      HOTSEAT_MIGRATE_TO_FOLDER, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
    DebugFlags:
      ADAPTIVE_ICON_WINDOW_ANIM, defaultValue=true, mCurrentValue=true
      ALWAYS_USE_HARDWARE_OPTIMIZATION_FOR_FOLDER_ANIMATIONS, defaultValue=false, mCurrentValue=false
      APPLY_CONFIG_AT_RUNTIME, defaultValue=true, mCurrentValue=true
      ASSISTANT_GIVES_LAUNCHER_FOCUS, defaultValue=false, mCurrentValue=false
      ENABLE_DATABASE_RESTORE, defaultValue=true, mCurrentValue=true
      ENABLE_DEEP_SHORTCUT_ICON_CACHE, defaultValue=true, mCurrentValue=true
      ENABLE_FIXED_ROTATION_TRANSFORM, defaultValue=true, mCurrentValue=true
      ENABLE_LAUNCHER_PREVIEW_IN_GRID_PICKER, defaultValue=true, mCurrentValue=true
      ENABLE_LSQ_VELOCITY_PROVIDER, defaultValue=true, mCurrentValue=true
      ENABLE_OVERVIEW_ACTIONS, defaultValue=true, mCurrentValue=false
      ENABLE_PREDICTION_DISMISS, defaultValue=false, mCurrentValue=false
      ENABLE_QUICK_CAPTURE_GESTURE, defaultValue=true, mCurrentValue=true
      ENABLE_QUICKSTEP_LIVE_TILE, defaultValue=false, mCurrentValue=false
      ENABLE_SELECT_MODE, defaultValue=true, mCurrentValue=true
      ENABLE_UNIVERSAL_SMARTSPACE, defaultValue=false, mCurrentValue=false
      FORCE_LOCAL_OVERSCROLL_PLUGIN, defaultValue=false, mCurrentValue=false
      KEYGUARD_ANIMATION, defaultValue=false, mCurrentValue=false
      MULTI_DB_GRID_MIRATION_ALGO, defaultValue=false, mCurrentValue=false
      PROMISE_APPS_IN_ALL_APPS, defaultValue=false, mCurrentValue=false
      PROMISE_APPS_NEW_INSTALLS, defaultValue=true, mCurrentValue=true
      QUICKSTEP_SPRINGS, defaultValue=true, mCurrentValue=true
      UNSTABLE_SPRINGS, defaultValue=false, mCurrentValue=false
      USE_SURFACE_VIEW_FOR_GRID_PREVIEW, defaultValue=true, mCurrentValue=true
    PluginManager:
      numEnabledPlugins=1
      numDisabledPlugins=0
      enabledPlugins=[ComponentInfo{com.android.launcher.plugins.AllAppsSearchPlugin/com.android.launcher.plugins.AllAppsSearch}]
      disabledPlugins=[]



Change-Id: Ifefc02683834e52e3b78f93861a90f97a72c01d8
2020-04-17 15:08:52 -07:00
Zak Cohen
071af14ff6 Merge "Overview actions - rename chips flag and make it a device flag." into ub-launcher3-master 2020-04-06 21:58:11 +00:00
Sunny Goyal
c4d3201538 Removing support for fake landscape
Bug: 111068105
Change-Id: If31d2f700ddee1d21541735de3a8006ee2a53c5c
2020-04-03 17:11:35 -07:00
Zak Cohen
512da48db8 Overview actions - rename chips flag and make it a device flag.
We want to be able to control this value with deviceconfig.

Test: local

Change-Id: I05de087afcf2f558424706a59de2521bb6fddc4e
2020-04-03 15:09:50 -07:00
Hongwei Wang
3b99a6c7d6 Revert "Default fixed_rotation to off"
This reverts commit c0b289c93e.

Reason for revert: fixed in ag/10826395

Bug: 151727009
Change-Id: I0c71d5d47a6825c2445bf8dc9d8a9a1ca23f9e64
(cherry picked from commit 08c4d99237)
2020-03-26 23:48:26 +00:00
TreeHugger Robot
c7189a6f2d Merge "Enabling Least square velocity tracker algorithm" into ub-launcher3-master 2020-03-26 17:56:24 +00:00
TreeHugger Robot
8ca3d852e5 Merge "Default fixed_rotation to off" into ub-launcher3-master 2020-03-24 18:39:29 +00:00
Sunny Goyal
062c84663a Enabling Least square velocity tracker algorithm
Bug: 139750033
Change-Id: I6b4e755f983ae23343a242f69b51f3fccd7a9fc5
2020-03-23 14:38:20 -07:00
Samuel Fufa
82bbdaceae Migrate hotseat items into a folder
If feature flag HOTSEAT_MIGRATE_TO_FOLDER is enabled, this moves hotseat
items into a folder in the workspace. If not, it moves the whole hotseat
to the first workspace page that can host the hotseat.

Bug: 151099421
Test: Manual
Change-Id: I49f6a22a0ada2c4cf237ca91a323a46346a11a59
2020-03-19 20:10:14 -07:00
Tracy Zhou
30fb3f1983 Merge "Enable USE_SURFACE_VIEW_FOR_GRID_PREVIEW flag" into ub-launcher3-master 2020-03-19 05:48:03 +00:00
Tracy Zhou
39467a9a27 Enable USE_SURFACE_VIEW_FOR_GRID_PREVIEW flag
This flag is behind grid_options flag, so it's safe

Fixes: 150224413
Test: N/A
Change-Id: Icebb4b8476d987a7f1697115183058a2345e6acc
2020-03-17 18:29:24 -07:00
Jon Miranda
c298078241 Add staggered workspace animation to keyguard unlock animation.
Added behind FeatureFlag.KEYGUARD_ANIMATION due to dependency on
Ie94ab8ecd35e9dcc28d0b8f7aaeb058e15b0f80b.

Added dynamic resource unlock_staggered_velocity_dp_per_s so that the
animation can be tuned.

Bug: 151238866
Change-Id: I4d349d32cc7d86be3cdc582c2a7c565be2931444
2020-03-17 14:27:35 -07:00
Vinit Nayak
28cb71ba18 Default fixed_rotation to off
Change-Id: I83f9f58acb1718ee4fc19530a3e8b25badefda0e
2020-03-17 14:15:32 -07:00
TreeHugger Robot
29082d894b Merge "Overview actions-adds feature flag for select mode" into ub-launcher3-master 2020-03-17 00:44:37 +00:00
Zak Cohen
56280a314e Overview actions-adds feature flag for select mode
Adds a feature flag for whether select mode is available or not.

Test: local
Change-Id: Ia3bc920b47083b238dd7be3dae6c1f0216bc61e5
2020-03-16 16:38:22 -07:00
Samuel Fufa
42c5f9b833 Hide hybrid hotseat for dp3
Bug:142753423
Change-Id: I3b1c89ccf81b6d199f8911b64b329f50582a1225
2020-03-16 15:23:51 -07:00
TreeHugger Robot
795a7a6de5 Merge "Enable APP_SEARCH_IMPROVEMENTS flag." into ub-launcher3-master 2020-03-16 18:56:16 +00:00
jayaprakashs
3113fd8833 Enable APP_SEARCH_IMPROVEMENTS flag.
Bug: 151196870

Change-Id: I0665be5d585f64f3d43d42201a6529fd88247ca4
2020-03-16 11:06:15 -07:00
Tracy Zhou
85f0c3b841 Use SurfaceView to render grid preview
Demo: https://drive.google.com/open?id=1wQ8dT5bfTxSh-NRQpNBwTCkKOtOOUMPj

Bug: 150224413
Test: Manual
Change-Id: I44e7baed1bcd15351e03dcbeb2b525bc1b325478
2020-03-12 23:06:36 -07:00
Vinit Nayak
b9ec9319c5 Add fixed_rotation_transform to home settings
This sets the feature flag on launcher side
and also updates the setting in Settings.Global
Launcher DOES NOT listen to the Settings.Global
change from adb anymore. This should take
preference over setting it from command line.

Also fix a related swipe to home animation bug
that happened w/ merge conflict.

Fixes: 150260456
Test: Set and unset, visually verified behavior.
Tested w/ autorotate on and off.
Checked Settings.Global value correctly updated
via "adb shell settings get global
fixed_rotation_transform"
TODO: Update tests to reflect this new
default-on fixed rotation behavior.

Change-Id: Id95f006eb1e92a59e24b05567298fd21b1409b13
2020-03-11 19:38:33 -07:00