summaryrefslogtreecommitdiffstats
path: root/src_ui_overrides
Commit message (Collapse)AuthorAgeFilesLines
* When DeviceConfig/FeatureFlag value is different than the previousHyunyoung Song2019-09-111-1/+5
| | | | | | | | | | | | | | | value, refresh icon cache Bug: 135638690 Bug: 138964490 Test: manually toggled feature flag UI on/off $ adb shell device_config put launcher APP_SEARCH_IMPROVEMENTS [true|false] when launcher is in foreground and also when it is in the background Afterwards, saw if "bank" would show BofA app or not Change-Id: I98b62bd07b14a225168217d7eb9bfdfc7f74435d
* Merge "Make TogglableFlag backed by DeviceConfig for e2e testing" into ↵Hyunyoung Song2019-08-151-0/+31
|\ | | | | | | ub-launcher3-qt-qpr1-dev
| * Make TogglableFlag backed by DeviceConfig for e2e testingHyunyoung Song2019-08-151-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 138964490 TL;DR;; need this to be part of QQ1 or QD1 to verify if DeviceConfig can be supported for launcher toggleableFlags. Not handled in this CL: - When flag is locally modified, that will override the flag value How that scenario is handled should be discussed separately and is not within scope of this CL. Change-Id: I2e6694a40bee9202ed0b0d559e3b5607634071bf
* | show dot in deep shortcuts when notification contains exactly identicalPinyao Ting2019-08-051-0/+6
| | | | | | | | | | | | | | | | set of person Bug: 132336512 Change-Id: I975524e28168c10a186cdc24b188c161faf433cf Merged-In: I975524e28168c10a186cdc24b188c161faf433cf
* | Fill the log container as hotseat or workspace based on position.Becky Qiu2019-08-011-1/+1
|/ | | | | | | | | | | | | | | | | | | Test: manual Bug: 137953006 Swipe from workspace: 07-30 15:15:44.031 9779 9779 D UserEvent: action:FLING direction=UP direction=UP 07-30 15:15:44.031 9779 9779 D UserEvent: Source child:WORKSPACE id=0 span(951,1313) parent:WORKSPACE id=0 07-30 15:15:44.031 9779 9779 D UserEvent: Destination child:ALLAPPS 07-30 15:15:44.031 9779 9779 D UserEvent: Elapsed container 826 ms, session 9361 ms, action 0 ms Swipe from hotseat: 07-30 15:15:46.010 9779 9779 D UserEvent: action:FLING direction=UP direction=UP 07-30 15:15:46.010 9779 9779 D UserEvent: Source child:HOTSEAT id=0 span(786,1908) parent:WORKSPACE id=0 07-30 15:15:46.010 9779 9779 D UserEvent: Destination child:ALLAPPS 07-30 15:15:46.010 9779 9779 D UserEvent: Elapsed container 1139 ms, session 11339 ms, action 0 ms Change-Id: I959528889fda778efc569bb59e7f44d3bd5b81bc
* Finish recents animation when starting a new activityWinson Chung2019-06-261-0/+2
| | | | | | | | | - Defer starting the activity when an activity is paused, and finish the current animation to trigger launcher to be resumed Bug: 132811175 Test: Swipe up and launch a new app Change-Id: I78b76800052512eb93f69ccf0523f4d752a82ece
* Some improvements to home to overview transition for 0 button modeTony Wickham2019-06-191-2/+0
| | | | | | | | | | | - Peek in overview further, and with more overshoot - Fade out and scale down workspace faster while swiping up - Scale and translate workspace slower when letting go to enter overview (so it doesn't zoom out at warp speed) - Fade in all apps shelf sooner Bug: 132455160 Change-Id: Ieafad0ccf9bb587889bc35d536627661db10e358
* Disable seamless rotation for 3 and 2 button modeSunny Goyal2019-06-061-2/+1
| | | | | Bug: 134095068 Change-Id: I8603e49a85b5524a02c9085485a180b022e3f91e
* Using a proxy activity for startActivityForResultSunny Goyal2019-05-151-0/+17
| | | | | | | This ensures that the home task is never blocked by a different task Bug: 74500048 Change-Id: I01fd26f1d6242e39b2d8fabac5e064b748aebe62
* Implement 3 shades of folder icon/container fill colorHyunyoung Song2019-05-141-0/+8
| | | | | | Bug: 130451254 Change-Id: I36d885a2b0247f1bb84cb98073459853ae723331
* Fixing insets mapping in 3-button and 2-button modeSunny Goyal2019-05-131-0/+6
| | | | | Bug: 131360075 Change-Id: If6e3a4fbb011fc313efeb91686a9d787761862c5
* Removing SWIPE_HOME flag and using sysUI mode insteadSunny Goyal2019-04-031-0/+6
| | | | | Bug: 129873705 Change-Id: Ieaa7d7928427daed98538c616bdf58b28d295829
* Making navigation mode listener a singleton so that the change is dispatchedSunny Goyal2019-03-291-1/+4
| | | | | | everywhere synchronously. Change-Id: Iee8c5957d78dfad3fb03e814de0367adcaa0c98b
* Add QuickSwitchTouchController on homeTony2019-03-281-0/+4
| | | | | | | | | - Added QuickSwitchState, which we animate to when swiping right on the nav bar from NORMAL state - Task launches when the state transition to QuickSwitchState ends Bug: 126596417 Change-Id: Id66650401d817703fc6d044fb26a25cccbc07e11
* Move some classes to packagesTony2019-03-273-28/+2
| | | | | | Added states/ and touchcontrollers/ packages Change-Id: I8d59c47770c24c9edd1b7ce879e6a80ca8b88c71
* Peek overview on motion pause, then animate fully on touch upTony2019-03-271-0/+8
| | | | | | | | | | | | | | Add AnimationComponents.ATOMIC_OVERVIEW_PEEK_COMPONENT, and rename previous ATOMIC_COMPONENT to ATOMIC_OVERVIEW_SCALE_COMPONENT. When SWIPE_HOME is enabled: - Overview lives to the left of Workspace, which is encoded in LauncherState.NORMAL.getOverviewScaleAndTranslation(). - Create atomic animation based on ATOMIC_OVERVIEW_PEEK_COMPONENT and OVERVIEW_PEEK state when swiping and holding from home screen. Bug: 111926330 Change-Id: Iab6dbef7238dae15b3036d4b2a026b781eee6b4b
* Add translationX to overview stateTony2019-03-271-3/+3
| | | | | | | | States return ScaleAndTranslation instead of float[]. Also separate overview translate interpolator from overview scale interpolator. Change-Id: I5e65dde3f436055ff5e7f5736f1a4b712377b9cb
* Deleting Quickscrub related logicSunny Goyal2019-02-141-26/+0
| | | | | Bug: 124255113 Change-Id: Ic5f2338f1e3ae0a0cfb08f822dee0e01ae54a7b0
* Changing min sdk to 25Sunny Goyal2019-01-291-25/+21
| | | | Change-Id: I0d28069967854357ca755bf25dec19d4979bdecf
* Moving Plugin and feature flags UI to androidXSunny Goyal2018-10-251-1/+25
| | | | | | | > Combining both preference into a single screen > Adding plugin preference screen so quickstep build Change-Id: I3d2ff3ebdac3c774659e79ecb81be6f75f765eb0
* Add AllAppsRow plugin interfaceTony Wickham2018-10-161-0/+4
| | | | | Bug: 115877296 Change-Id: I750941f220d08ca9ee14067253253f6d81417101
* Add plugin supportTony Wickham2018-10-101-0/+36
| | | | | | | | | | | | | | | - Add libs/plugin_core.jar - Include plugin_core in Launcher3 build (it is already present other builds as part of the updated shared lib) - Add PluginEnablerImpl that uses SharedPrefs to enable/disable plugin components - Add src_plugins, where plugin interfaces will live. It has a build rule to create a jar that plugin projects will depend on. - Copy PluginPreferencesFragment from sysui but using our implementation for PluginEnabler Bug: 115877296 Change-Id: I3db54677eaceb10f92018c0f9d18920ad9ffac39
* Move IconNormalizer/ShadowGenerator/LauncherIcons to icons packageHyunyoung Song2018-09-261-1/+1
| | | | | | | | | Bug: 115891474 Sending out the package name changing CL first before I make LauncherIconsHandler and tests around it. Change-Id: Ic10479a06333e1435b392a7072cd08782e710cbd
* Creating a separate state for launcehr as background appSunny Goyal2018-09-051-0/+26
| | | | | | | | | | This makes is simpler to control the swipe to overview UI, and ties the transition with the state machine Bug: 113287120 Bug: 79755195 Bug: 112203163 Change-Id: I3041dbb659b46ccea6284855addc91e370815be6
* Migrating to android-xSunny Goyal2018-08-144-6/+10
| | | | Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
* Skip logic to find the dominant color when loading recent task iconsWinson Chung2018-08-141-2/+5
| | | | | | | | - Also move some allocations in ColorExtractor into thread locals to reduce allocations Bug: 78777731 Change-Id: I8819106d476a9af02e864135a2f44b55fe9219cd
* [automerger] Defer starting the high-res thumbnail loader until quick ↵Android Build Merger (Role)2018-07-181-0/+2
|\ | | | | | | | | | | step/scrub am: 8eb49e079e Change-Id: I3b69862c42175d7680fd6a4878247c3cf7c0081f
| * Defer starting the high-res thumbnail loader until quick step/scrubWinson Chung2018-07-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | - When hitting the home button, we may be loading high-res thumbnails unnecessarily since the high-res loader is already enabled when Launcher is started. Bug: 111515602 Bug: 111156069 Change-Id: I367993b4ddf653b816355df005c745caed5e794a
* | Cleaning up build rules to simplify customizing derivative projectsSunny Goyal2018-07-022-8/+1
|/ | | | | | | | | > Using {packageName} instead of hardcoding com.android.launcher3 in AndroidManifest.xml for strings which are dependent on packageName > Adding proguard rule to prevent obfuscating any overridable class > Making it easier to extend SettingsActivity by overriding the fragment class Change-Id: I5668c3f33b4cf20ad01d7f54b3d79cc0d268d391
* Fixing launcher going to a different state when dragging an icon from ↵Sunny Goyal2018-05-251-0/+4
| | | | | | | different activity Bug: 80191074 Change-Id: I45ea646dc2bd21627e8b724dac9c9fc23c18797d
* Fixing keyboard navigation when Overview list is emptyVadim Tryshev2018-05-241-7/+0
| | | | | | Bug: 80155387 Change-Id: Ife86fe4b718ef01291a04b21020155110d75fa7b Testing: Manual
* Fade back button in and out tied with the overview/shelf (2/3)Matthew Ng2018-05-181-0/+2
| | | | | | | | | | | | | | Back button changes opacity when moving the shelf during swipe up between home screen and overview. The alpha changes depending on the progress of the swipe up animation. When going from app to home and vice versa, the fade animation does not tie with the swipe up progress. The fade animation also masks the back button drawable when ime visibility changes. Change-Id: I51e42930640ba711e81880b385bb722d7ee8ad33 Fixes: 74581837 Fixes: 76900236 Test: swipe up from home screen to overview
* Update interpolators and durations for state animationsTony Wickham2018-05-161-0/+1
| | | | | | | | | | | | | | | | | | | When we enter overview (overview appears, workspace disappears): - Workspace scales down from 1f to .8f with OvershootInterpolator(1.2f) at 200 ms - Workspace fades from 1f to 0 with OvershootInterpolator(1.2f) at 200 ms - Overview scales down from 1.33f to 1f with OvershootInterpolator(1.2f) at 200 ms - Overview fades from 0 to 1f with OvershootInterpolator(1.2f) at 200 ms When we exit overview (overview disappears, workspace appears): - Workspace scales up from .92f to .1f with DecelerateInterpolator() at 200 ms - Workspace fades from 0 to 1f with AccelerateInterpolator() at 200 ms - Overview scales up from 1f to 1.1f with AccelerateInterpolator() at 180ms - Overview fades from 1f to 0 with DecelerateInterpolator(1.7f) at 200 ms Parallax while the finger moves: Workspace translates half the distance as the shelf Bug: 79776746 Change-Id: I319d982cf202bcd6dbbcd68ffc5c0c7853629c7e
* Fixing wrong accessibility focus when opening a floating viewSunny Goyal2018-05-161-1/+1
| | | | | | | | > Using common logic for announcing a floating view for widgets and folders Bug: 79091095 Bug: 79748886 Change-Id: Ibb3fe48e68e724f50d69f51a03d3b35ad0baf625
* Dumping the excoded view hierarchy instead of the default activity dumpSunny Goyal2018-05-161-0/+8
| | | | | | | > Encoded hierarchy is smaller is size and has a lot more information about the views Bug: 79861035 Change-Id: I84316b1b0031282b0579f3aaac22d8d8f00d8bcb
* Add atomic recents animation while swiping upTony Wickham2018-05-091-2/+3
| | | | | | | | | | | | | | | | | | | | | State handlers can now specify atomic and non-atomic components of their animations to states, which can be specified when creating a new animation. There is now one atomic animation, when going from NORMAL to OVERVIEW (and in reverse): - RecentsViewStateController's animation (scale/alpha) is all atomic - WorkspaceStateTransitionAnimation has atomic and non-atomic: - Hotseat and workspace alpha is atomic, as is workspace scale - Everything else (scrim, translation, qsb and drag handle alpha) is non-atomic - All apps progress is non-atomic Also simplified dragging through overview; no longer pulls against you, so we use an OvershootInterpolator when flinging instead of our custom interpolator for the spring effect. Bug: 76449024 Bug: 78089840 Change-Id: Iafac84d0c2b99ee9cf9dd5b30e2218286713b449
* Merge "Using surface rotation instead of insets to determine seascape ↵android-build-team Robot2018-05-091-0/+37
|\ | | | | | | configuration" into ub-launcher3-edmonton
| * Using surface rotation instead of insets to determine seascape configurationSunny Goyal2018-05-071-0/+37
| | | | | | | | | | | | | | | | Insets may not correctly indicate seascape configuration in multi-window or when the presence of device-cutouts Bug: 79376298 Change-Id: I8268efca0001fe527a0ffefe48cc71e774fad01c
* | Chaniging all-apps scrimSunny Goyal2018-05-082-40/+1
|/ | | | | | | | | | | > Converting the scrim to View, to better avoid overdraw > Overview and Spring loaded state have different scrim alpha > When going from overview to all-apps, there is a color scrim drawn over the overview panel. The slef color is merged with this color to prevent overdraw, and the remaining screen is drawn with a cut-out round rect path Bug: 79111591 Change-Id: I26801fde13dd6adb4b06110bbe8087e35cc31847
* Using the system color extraction logic instead of inbuild logicSunny Goyal2018-05-046-0/+1399
| | | | | | | > Moving the inbuild color extraction logic to the aosp flavor Bug: 79111591 Change-Id: I766b0397da7224b424cd5f309cedf635d60a5e0f
* Merge "Only detect swipe directions that lead to new states" into ↵Tony Wickham2018-05-031-12/+11
|\ | | | | | | ub-launcher3-edmonton
| * Only detect swipe directions that lead to new statesTony Wickham2018-05-031-12/+11
| | | | | | | | | | | | | | | | | | | | This cleans up the code and ensures that the current state animation is always initialized when we get drag events. Also log when we pass through states. Bug: 78017680 Change-Id: I54ab42923ed539940ea708973ad65f5793669c11
* | Merge "Quickstep onboarding backward compatibility for devices release with ↵android-build-team Robot2018-05-021-0/+2
|\ \ | |/ |/| | | Android N & O." into ub-launcher3-edmonton
| * Quickstep onboarding backward compatibility for devices release with Android ↵Tracy Zhou2018-05-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | N & O. Quickstep introduces swipe up gesture to open Overview and removes the Recents button. We still want to show shelf bounce animation for Android N & O users with Recents button because Overview is updated and swiping up from there takes users to All Apps. Test: manual test Change-Id: I917c91564c47c78d2dc3883b8a7bf7824b5f5bc8 Fixes: 78647939
* | Adding a round rect background for the self in OverviewSunny Goyal2018-04-301-0/+39
|/ | | | | Bug: 78771910 Change-Id: I71460a284ed185e82d66fe65104402fb99d6b312
* Implement all apps discovery bounce.Tracy Zhou2018-04-231-3/+3
| | | | | | | | | | Mock: https://docs.google.com/presentation/d/1TCp1mREgsFAWq4hCnUaSRCpaqvDbzCVkN1mJuRMylIg/edit#slide=id.g36a3e190fb_0_6 Demo video: go/shelf_bounce_animation Fixes: 70180942 Test: manual test Change-Id: I6ecceb63612dd63cea62f2e6cb19d7522f3d76e0
* Listen for cases where touch controllers change, and update themTony Wickham2018-04-111-0/+4
| | | | | | | | Otherwise we'd be stuck using the old touch controllers until DragLayer is setup again (e.g. launcher is killed). Bug: 77921826 Change-Id: I8aac6fc453839902cb2d99279a6bd1549ee17d79
* When dragging past first or last state, don't reinit targetTony Wickham2018-04-061-1/+6
| | | | | | | | | | | | | | | | Example bug: 1. Swipe up to overview and let go 2. Swipe all the way to the top of the screen, past where all apps stops 3. Swipe down Before this change, you get reset in NORMAL state instead of OVERVIEW. By ensuring that getTargetState() checks the drag direction before returning a new state, we guarantee we only re-init in the case that the state is actually changing. Otherwise it's possible to change the state to one that is impossible, such as NORMAL when swiping up from ALL APPS. Change-Id: I19913dded9c94228d06289780b6400e99403f378
* Support swiping between statesTony Wickham2018-04-031-4/+6
| | | | | | | | - Swiping down on hotseat from overview goes to workspace - Can swipe up through overview to get to all apps Bug: 76449024 Change-Id: I7f76d92da976e268cc2a97e55746cca4603e6620
* Merge "Move default pip position to right above the shelf (Pt. Launcher)" ↵Tracy Zhou2018-03-281-0/+2
|\ | | | | | | into ub-launcher3-master