Commit Graph

22529 Commits

Author SHA1 Message Date
Hyunyoung Song 103e8e36aa ItemInfo null check inside BaseDraggingActivity
Bug: 153611516
Change-Id: I0b9fed9134a103e3f7162756fd91ea4ad89e09bb
2020-04-20 16:29:04 -07:00
TreeHugger Robot d59848e045 Merge "Don't show shelf bounce when there's no shelf in Overview" into ub-launcher3-rvc-dev am: e922b06cf4
Change-Id: Ie0db510b635d49228d155cbc3c838ad391c3fde1
2020-04-20 22:41:48 +00:00
TreeHugger Robot e922b06cf4 Merge "Don't show shelf bounce when there's no shelf in Overview" into ub-launcher3-rvc-dev 2020-04-20 22:30:40 +00:00
Sunny Goyal 34ff8cb3c1 Adding common code for instrumentation and robolectric tests
Change-Id: Ia338f0565868bb174ef5f6721924944792866be6
2020-04-20 14:42:30 -07:00
Winson Chung 441790c425 Merge "Dedupe non-perceptable depth updates" into ub-launcher3-rvc-dev am: f66e7c19bd
Change-Id: Id17c69166c72dccaf55ceacdc6e82f423db28cf0
2020-04-20 21:26:48 +00:00
TreeHugger Robot 3603a379df Merge "Dump nav mode with TIS" into ub-launcher3-rvc-dev am: 19b873d0bd
Change-Id: Id7109a94af59080205d0eb949cba064cab8b3841
2020-04-20 21:26:38 +00:00
Winson Chung f66e7c19bd Merge "Dedupe non-perceptable depth updates" into ub-launcher3-rvc-dev 2020-04-20 21:10:20 +00:00
TreeHugger Robot 19b873d0bd Merge "Dump nav mode with TIS" into ub-launcher3-rvc-dev 2020-04-20 21:10:08 +00:00
Tony Wickham 853ac99e47 Don't show shelf bounce when there's no shelf in Overview
Bug: 154513651
Change-Id: Ia31fd46dc174fcb6362b11e5970f92f4acff66ac
2020-04-20 21:05:19 +00:00
TreeHugger Robot 71c1f874a9 Merge "Using inbuild smooth scroller instead of custom fastscrolling logic" into ub-launcher3-rvc-dev am: bb74388420
Change-Id: Ia3b33a501d95077de26b3068fe22d5e669c652e3
2020-04-20 19:37:27 +00:00
TreeHugger Robot 7599021f96 Merge "Update predicted icon outline drawing" into ub-launcher3-rvc-dev am: f5a10fe9c2
Change-Id: I103d872e74704bf19db0c615597afed64f661d51
2020-04-20 19:37:16 +00:00
TreeHugger Robot bb74388420 Merge "Using inbuild smooth scroller instead of custom fastscrolling logic" into ub-launcher3-rvc-dev 2020-04-20 19:32:02 +00:00
TreeHugger Robot f5a10fe9c2 Merge "Update predicted icon outline drawing" into ub-launcher3-rvc-dev 2020-04-20 19:17:49 +00:00
TreeHugger Robot 6210381956 Merge "add FeatureFlag type to the dump / also sort them" into ub-launcher3-rvc-dev am: 5a5a39f084
Change-Id: Ia6e22b1c9edd9f68eb6397193b804de1bae052b5
2020-04-20 19:02:57 +00:00
TreeHugger Robot 5a5a39f084 Merge "add FeatureFlag type to the dump / also sort them" into ub-launcher3-rvc-dev 2020-04-20 18:45:12 +00:00
Samuel Fufa 28f1db6dfa Update predicted icon outline drawing
Video: b/153203071#comment2
Bug: 153203071
Test: Manual
Change-Id: I786300f953553c98c63c8b48e40354b1672e930c
2020-04-20 11:27:28 -07:00
Sunny Goyal 355e845851 Using inbuild smooth scroller instead of custom fastscrolling logic
Change-Id: I9208720c3bf164bd664e5bacd75b672573fe7601
2020-04-20 11:15:34 -07:00
TreeHugger Robot cbff8e9a8f Merge "Fixing actions view getting visible sometimes" into ub-launcher3-rvc-dev am: f01f25b579
Change-Id: I5867555fb6a17d7f52cccbcef730a321e9dc86f3
2020-04-20 18:11:53 +00:00
TreeHugger Robot f01f25b579 Merge "Fixing actions view getting visible sometimes" into ub-launcher3-rvc-dev 2020-04-20 17:52:03 +00:00
Sunny Goyal 01d8541f14 Fixing actions view getting visible sometimes
> Linking actions view to state flags
> Creating multiple visibility channels that can be controlled separately

Bug: 153906903
Change-Id: I33d20f5fdc8bcdf0520dae3aac986548eb7e0058
2020-04-20 09:59:13 -07:00
jayaprakashs d53007a9d1 Add getScore() method to FolderNameInfo class. am: 12cf1e5440
Change-Id: Ie8bb736752776c33951432f5059818d5f18f054a
2020-04-20 03:29:45 +00:00
jayaprakashs 12cf1e5440 Add getScore() method to FolderNameInfo class.
getScore() is not used in launcher3 but exposed for testing purpose.

Change-Id: I22e674dabc3c24879c1c1b5881f9fc6005404998
2020-04-19 18:30:26 -07:00
TreeHugger Robot bc1e56a972 [automerger skipped] Merge "Import translations. DO NOT MERGE" into ub-launcher3-qt-future-dev am: 12d5e0ad92 -s ours
am skip reason: subject contains skip directive

Change-Id: Icbf0a51607c6ed44a4d3a6ded8f445ec509b41cf
2020-04-18 18:02:51 +00:00
TreeHugger Robot 12d5e0ad92 Merge "Import translations. DO NOT MERGE" into ub-launcher3-qt-future-dev 2020-04-18 17:49:43 +00:00
Bill Yi d6a3d42a42 [automerger skipped] Import translations. DO NOT MERGE am: 9b06717b11 -s ours am: 3eac3e9daa -s ours
am skip reason: subject contains skip directive

Change-Id: I81142de25eeb0c6d8059f07ba478116d2f213c49
2020-04-18 07:38:17 +00:00
Bill Yi 3eac3e9daa [automerger skipped] Import translations. DO NOT MERGE am: 9b06717b11 -s ours
am skip reason: subject contains skip directive

Change-Id: Ie18db4fee97b2913399da94ef43014753773a750
2020-04-18 07:16:25 +00:00
Bill Yi fc531359eb Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I967868ab6790858f32cdb27434e805a7273bacb6
2020-04-17 23:52:53 -07:00
Bill Yi 9b06717b11 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I4950659d6efd0d46bfc52d845f1fe29808f34d52
2020-04-17 23:49:46 -07:00
Vinit Nayak f489540430 Merge "Re-enable home screen rotation" into ub-launcher3-rvc-dev am: 8699bf5626
Change-Id: I5ca06b548dc137b14371deb8c8596938bf16596b
2020-04-18 05:48:19 +00:00
Vinit Nayak 8699bf5626 Merge "Re-enable home screen rotation" into ub-launcher3-rvc-dev 2020-04-18 05:22:26 +00:00
TreeHugger Robot d4313e1a7d Merge "Remove tracing for widgets scroll bug" into ub-launcher3-rvc-dev am: 3e54ddc010
Change-Id: I634bc88016c3170b8da8a07661789e7f2b64310f
2020-04-18 03:29:23 +00:00
TreeHugger Robot 3e54ddc010 Merge "Remove tracing for widgets scroll bug" into ub-launcher3-rvc-dev 2020-04-18 03:14:44 +00:00
vadimt 822efc9e82 Remove tracing for widgets scroll bug
Bug: 152354290
Change-Id: Iff56460f3f673f7089d647d08bb621c3965c7444
2020-04-17 19:04:41 -07:00
Adam Cohen d827abe83c Merge "Decouple the scaling / translation of widget views necessary in split-screen" into ub-launcher3-rvc-dev am: b212e28c62
Change-Id: Ic68b1ed0d8053968622af9eb3084b06a455a035b
2020-04-18 00:00:16 +00:00
Adam Cohen b212e28c62 Merge "Decouple the scaling / translation of widget views necessary in split-screen" into ub-launcher3-rvc-dev 2020-04-17 23:35:19 +00:00
Winson Chung 20aeddd853 Dedupe non-perceptable depth updates
Bug: 154304487
Change-Id: I6d96aca555932f4a51aed576d25f7150952bb562
2020-04-17 16:16:44 -07:00
Winson Chung e9edbabbe2 Dump nav mode with TIS
- Also skip logging touches when not handling gestures

Change-Id: Ie25f28fe62594f22ebe73f276ccef628b7f8e734
2020-04-17 16:16:14 -07:00
Jon Miranda ae3efb2232 Fix NPE when closing folder. am: a28e0f474a
Change-Id: I9361391fab78e10e727635c7b27aca97b5698038
2020-04-17 23:15:20 +00:00
Adam Cohen d916206271 Decouple the scaling / translation of widget views necessary in split-screen
=> We pull apart the scale and translation that are set in a fairly
   static way due to split-screen vs. the general translation and scale
   properties that might be used more dynamically, in this case
   for re-order animations
=> This allows removal of some code that breaks reorder animations
   due to the accrual of translations / scales in certain edge cases.
=> TODO in future CL: address other translation cases and make the throw
   case for calling base setTranslationX/Y for Workspace Items unconditional

issue 149438360

test: manual
Change-Id: Ic3fde172f669e215cd25db0fcd4e1c3c873d314f
2020-04-17 15:36:44 -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
Jon Miranda a28e0f474a Fix NPE when closing folder.
There is a race condition where Folder is closing, it unbinds, and then
another call to AbstractFloatingView.closeAllOpenViews tries to close the
Folder again. But since the contents are unbound and removed from the folder,
it produces a NPE.

Bug: 153625271
Change-Id: Ia6c55f15cf7517e26af8f499bc0c1a4828737480
2020-04-17 15:03:33 -07:00
Vinit Nayak 326d93bd56 Re-enable home screen rotation
Launcher home screen rotation now works with fixed
transform. When using Quickstep while holding
the phone from an orientation different than
the orientation of the touch, the overview
shown will be that of the phone orientation,
not the touch orientation.
Easier to see this be quickswitching from
portrait to landscape app, turning phone, then
going to overview from the original region you
swiped.

Fixes: 150214193
Test: Created test apps and fixed them
to various rotations to test.

Change-Id: Ic6565cd0ed33c951f45ccb97278045c6070e438e
2020-04-17 14:38:12 -07:00
Tony Wickham c6b6432f92 Merge "Remove mPendingCallback from ActivityTracker" into ub-launcher3-rvc-dev am: c09e8fbe9d
Change-Id: Ib2cdfc1fa20b7e71fcacbd6afb655ba76717b52c
2020-04-17 19:55:49 +00:00
Tony Wickham c09e8fbe9d Merge "Remove mPendingCallback from ActivityTracker" into ub-launcher3-rvc-dev 2020-04-17 19:35:49 +00:00
TreeHugger Robot 307d37c0d9 Merge "When dragging down on task, base end displacement on thumbnail" into ub-launcher3-rvc-dev am: e0f58a0f79
Change-Id: I1b79ae998ec8be9005a3af97820d354f434f90a7
2020-04-17 16:49:08 +00:00
TreeHugger Robot e0f58a0f79 Merge "When dragging down on task, base end displacement on thumbnail" into ub-launcher3-rvc-dev 2020-04-17 16:30:32 +00:00
Tony Wickham 0bbdf3a9fd When dragging down on task, base end displacement on thumbnail
TaskView height has a lot of other factors such as icon margin
and actions. Since the thumbnail is what we are dragging to fill
the screen, use its height to determine the progress factor.

Test: swipe down on a task in portrait, landscape, and seascape,
and verify that it follows your finger to the bottom of the
screen. Swiping up also follows your finger for dimiss.

Bug: 151770407
Change-Id: I114a261a06b11f550822178945266cc4a6fd54fe
2020-04-17 10:27:40 -05:00
TreeHugger Robot 88ab1fd87d Merge "Use 87% black instead of 54% for widget text" into ub-launcher3-rvc-dev am: c9fa578444
Change-Id: If5861b21b1ddde7723bdbfda064bd15c6721ee08
2020-04-17 01:08:34 +00:00
Sunny Goyal fd04f702d9 Fixing crash when emptyView gets added twice
Bug: 152129003
Change-Id: Id86279ace164453d0126773af89e3c9309d40202
2020-04-16 18:06:50 -07:00
TreeHugger Robot c9fa578444 Merge "Use 87% black instead of 54% for widget text" into ub-launcher3-rvc-dev 2020-04-17 00:31:01 +00:00