Commit Graph

33301 Commits

Author SHA1 Message Date
Tony 50876bfac7 FeatureFlag: quick scrub is now quick switch
- Scale down current task and translate it to the left
- Translate previous task in from the left
- This is a toggle; quick switch again returns to the first task

Currently this is implemented by repurposing onQuickScrub(progress) to update the positions
of the first two pages. This makes tracking velocity a bit difficult; if we want to go down
this path in the long run we should probably track velocity properly on MotionEvents.

Change-Id: I4445b5f08b6e88e71cbb5e30b1f1d45c5f1edc68
2018-11-01 17:26:31 -04:00
Rajeev Kumar e67e9b461f Merge "Create a deep shortcuts override." into ub-launcher3-master 2018-11-01 19:07:34 +00:00
Ryan Lothian 6699eaf74d Add robolectric tests for launcher
Bug: 117235618
Change-Id: Ia0441133a77069493b0a29a7a2d513a818dc7fe2
2018-10-31 19:32:10 -04:00
Sunny Goyal 7fbc503b9a Simplifying scrim drawable initialization.
Scrim drawable is initialized as null in certain cases in code, but it is also
initialized as null in sytle. Only using the style definition as source of
truth to avoid missing null checks

Bug: 118450709
Change-Id: I9dab18405932d1b5c0e697838738a1392f97021c
2018-10-31 14:42:29 -07:00
Vadim Tryshev 56e56095f7 Adding animation when opening app usage settings
Bug: 118319143
Test: manual test on a prototype
Change-Id: I33eab24f180daa60bba221df585469d141526b4b
2018-10-31 13:55:04 -07:00
Rajeev Kumar 51ca603ac4 Create a deep shortcuts override.
This change disables deep shortcuts on Android Go devices.
Bug: 112904271
Test: Manual test

Change-Id: I6150a3500f67d8a8412b51796cc442e3384c2cbb
2018-10-31 13:52:38 -07:00
TreeHugger Robot 51ffcae523 Merge "Rename go/src_flags directory as go/src" into ub-launcher3-master 2018-10-31 01:41:17 +00:00
Tracy Zhou 25c0539763 Merge "Finish LauncherLayoutListener when launcher transition animation ends." into ub-launcher3-master 2018-10-31 00:19:43 +00:00
Rajeev Kumar c00a259701 Rename go/src_flags directory as go/src
This CL is preparation work to implement Modular shortcuts component in launcher using  java/code swap.

Bug: 112904271
Test: Manual test
Change-Id: I35cf81e95fe487a384d4e9f17ea303093197318f
2018-10-30 17:16:25 -07:00
Winson Chung b3fe661860 Add kill-process call to TestCommandReceiver
Bug: 117888000
Test: On Nexus side
Change-Id: I4803a884ffe8ae6147fdbaf98e2f813934418b76
2018-10-30 13:52:19 -07:00
Tracy Zhou 470da4e3e4 Finish LauncherLayoutListener when launcher transition animation ends.
In QuickScrub mode, the right task gets clipped out at the end of the animation. This is because LauncherLayoutListener continues to clear out where CurrentRect is, while the app surface is not displaying. We want to finish the listener after the transition animation.

Bug: 111697218
Test: Manual test

Change-Id: I4dd5f5cbcec0574082fd1463e07c116a9e9305d3
2018-10-30 14:58:03 -04:00
android-build-team Robot 1d4f5be43d Snap for 5098750 from 1216ed9473 to qt-release
Change-Id: I23492b5e4e79c5ab7759c81897f8779c3252b3d8
2018-10-30 03:06:19 +00:00
Winson Chung 1216ed9473 Merge branch 'ub-launcher3-master' into launcher3merge2018-10-29
Test: Presubmit
Change-Id: Ib885ad03c7612747672ca1b2f4b1ea38910fdabc
2018-10-29 12:46:01 -07:00
Winson Chung f107c9ef6d Fixing regression in background task loading.
Bug: 117603579
Test: Take systrace, ensure that we aren't loading thumbnails on the UI
      thread

Change-Id: I4b522246a5ab12dc37c1dffdccd05232bbc1f6fe
2018-10-29 10:51:10 -07:00
android-build-team Robot fd1cb78bac Snap for 5096429 from 65c9da39e0 to qt-release
Change-Id: Ic1d204d5175ca8569a5a9c13babc0ccc36e914a5
2018-10-28 03:04:04 +00:00
Zak Cohen d4dc9545c3 Remove unused code from DeepShortcutView.
Change-Id: I4df34c71912bdd91c3e5ef37ae4af7b185fd369a
Tested: manual on pixel 3
2018-10-26 13:24:04 -07:00
Zak Cohen cc4c61472e DeepShortcut - show loading placeholder before content is available.
Sometimes the deep shortcuts can take time to load, show an initial loading
state before any text is set.

Note: changed singleLine to lines=1 as the former causes issues with RTL
layout and is deprecated.

Bug: 78620208
Tested: manual test on pixel 3

Change-Id: I782addb8d64425a1a95cee4f104fc0bd44809815
2018-10-26 11:25:58 -07:00
TreeHugger Robot 2c89278895 Merge "Adding test methods" into ub-launcher3-master 2018-10-25 23:07:06 +00:00
TreeHugger Robot a96f916504 Merge "Moving Plugin and feature flags UI to androidX" into ub-launcher3-master 2018-10-25 20:25:09 +00:00
Sunny Goyal eae0514f1a Moving Plugin and feature flags UI to androidX
> Combining both preference into a single screen
> Adding plugin preference screen so quickstep build

Change-Id: I3d2ff3ebdac3c774659e79ecb81be6f75f765eb0
2018-10-25 13:07:42 -07:00
Vadim Tryshev f908a2e50e Adding test methods
Bug: 117888000
Test: Running new Nexus tests
Change-Id: I52a1f89add36dd38bbae8db262dd2e82280db130
2018-10-25 11:43:59 -07:00
Rajeev Kumar 2f586e4aa4 Merge "Update gradle version and buildToolsVersion in Launcher3 build.gradle file." into ub-launcher3-master 2018-10-25 18:04:47 +00:00
Bill Yi 934a1cb6f4 Import translations. DO NOT MERGE
Change-Id: I598aeef629ca1a842172b6108c64f29aadb9f06a
Auto-generated-cl: translation import
2018-10-25 06:26:36 -07:00
android-build-team Robot bf018307df Snap for 5090430 from 2e2ddafebf to qt-release
Change-Id: Ibcdcd624ad347c074224e3d478e74bfd46bc20d3
2018-10-25 03:02:56 +00:00
Bill Yi 65c9da39e0 [automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am: f880549235 -s ours am: a32302773a -s ours
am: 11e370d608  -s ours

Change-Id: I9c1edd823959a6ed0ce885b0664686b0653c983f
2018-10-24 19:23:48 -07:00
Bill Yi 11e370d608 [automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am: f880549235 -s ours
am: a32302773a  -s ours

Change-Id: Iaca2b9bb4253774e9d862cf2da3540a209d3dccc
2018-10-24 18:51:39 -07:00
Tracy Zhou 8deb4c667e Merge "Support Live Tile in Quickstep (Pt1) - Z ordering" into ub-launcher3-master 2018-10-25 00:55:17 +00:00
Rajeev Kumar eaa010a130 Update gradle version and buildToolsVersion in Launcher3 build.gradle file.
Test: Gradle build of Launcher3 completed successully in Android Studio
3.2.1

Change-Id: If53639985613cde15a125b58e2c527ff864277ea
2018-10-24 16:35:51 -07:00
Bill Yi a32302773a [automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE
am: f880549235  -s ours

Change-Id: Ib969d0b34a977a0b9047c522429f2d5fa40db1f4
2018-10-24 15:49:26 -07:00
Vadim Tryshev e10fedb5f3 Merge "Adding code to open DWP settings of a recent task" into ub-launcher3-master 2018-10-24 21:56:23 +00:00
Bill Yi f880549235 Merge pie-platform-release to aosp-master - DO NOT MERGE
Change-Id: If5698c0fe3623a933d66fcb6b5919d8e40f74e7c
2018-10-24 14:47:24 -07:00
Tracy Zhou d43e7c2fd4 Support Live Tile in Quickstep (Pt1) - Z ordering
- Place Launcher above app surface.
- Use LauncherLayoutListener to clear the area where the current task is in order to punch a hole and reveal the app view underneath

Bug: 111697218
Test: Manual test

Change-Id: I4d4e0f1113a8e60566257c030ae9b591789eb3b3
2018-10-24 14:24:54 -07:00
Vadim Tryshev 3514a22313 Adding code to open DWP settings of a recent task
Will transition to an API for opening settings if this CL lands:
ag/5338673.

Bug: 118319143
Test: manual test on a prototype
Change-Id: Ia40576e0cd6196bfb0a0e8657916bbadff4c0b59
2018-10-24 13:30:33 -07:00
Hyunyoung Song e3f664db79 Merge "Increase the touch slop for noti shade pull down. Bug: 116879058" into ub-launcher3-master 2018-10-24 20:01:20 +00:00
Bill Yi 2e2ddafebf [automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE am: 7708c80e34 -s ours
am: d3059d1230  -s ours

Change-Id: Ied90025357516105f6aecae1bcdb329e2ad2be89
2018-10-24 10:36:17 -07:00
Bill Yi d3059d1230 [automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE
am: 7708c80e34  -s ours

Change-Id: I60f8f9182ff0b2eb69dcd1e4029801efbc6f2d76
2018-10-24 10:25:08 -07:00
Hyunyoung Song 0638949fe9 Increase the touch slop for noti shade pull down.
Bug: 116879058

Change-Id: I3ff0491292e5238cd74bb6d97c0ab79711ad3af1
2018-10-24 10:18:00 -07:00
Bill Yi 7708c80e34 Merge pi-platform-release to stage-aosp-master - DO NOT MERGE
Change-Id: I911ffeb6515d88891d1ce61b99c4df0812a0aaae
2018-10-24 09:07:10 -07:00
Brett Chabot d7d692c2f9 Replace use of deprecated target androidx-test
Test: make Launcher3Tests
Change-Id: Ib14fd9da1df3c022d39efb69660ff59b8a47db5d
2018-10-23 21:17:58 -07:00
android-build-team Robot 6ab4fb43ce Snap for 5087535 from 5ee074a11b to qt-release
Change-Id: I3c1f1db58c259b7e9442962eeb376aa7244f627a
2018-10-24 03:00:45 +00:00
Winson Chung 0d9275deba Updating shared lib from package & class rename.
Change-Id: If3003c6e454ea60f30372f985fa7f34c9b6ed46d
2018-10-23 15:42:41 -07:00
Winson Chung ad6fd393f8 Don't assume there will be a running task
- During tests, if apps and launcher are killed, then there may be no
  running task

Change-Id: Iaef1c4ad0b31cec3c8da7d868e3e7b49d3b09faa
2018-10-23 15:11:42 -07:00
Winson Chung 445ab9d8cd Merge "Caching clean up, remove dependency on old shared lib loading/caching logic" into ub-launcher3-master 2018-10-23 19:59:21 +00:00
Winson Chung 02b83db128 Merge "Updating shared lib" into ub-launcher3-master 2018-10-23 19:59:21 +00:00
TreeHugger Robot dcaa2d2ae7 Merge "Handling configuration changes at runtime instead of killing the process" into ub-launcher3-master 2018-10-23 19:46:11 +00:00
Winson Chung fd61e04424 Updating shared lib
Bug: 117603579
Change-Id: Ie4fbb962bc1ae3d13bfa7778aa505e1ad7ea8853
2018-10-23 11:44:36 -07:00
Hyunyoung Song 60d75850f6 Merge "Remove shape detection logic for icon legacy treatment Bug: 117991192" into ub-launcher3-master 2018-10-23 11:08:01 +00:00
android-build-team Robot 556884362d Snap for 5085055 from 17170c698c to qt-release
Change-Id: I0602e34b126f1d0862e44582a303776845d639bc
2018-10-23 03:12:24 +00:00
Winson Chung cc8dbf31db Caching clean up, remove dependency on old shared lib loading/caching logic
- Clarify caching policy, we only cache the last N task snapshots
- Pull out necessary logic from RecentsTaskLoadPlan (deprecated) into
  launcher class RecentTasksList which also manages the invalidation of
  the last loaded list
- Pull out logic from task loading logic in the shared lib into separate
  classes TaskThumbnailCache and TaskIconCache, and have each task view
  manage the load request for data

Bug: 117603579
Test: Thumbnails still load

Change-Id: I938e4dea19e7f5d24724c32194d254ca003e89aa
2018-10-23 00:01:07 +00:00
Winson Chung 5ee074a11b Caching clean up, remove dependency on old shared lib loading/caching logic
- Clarify caching policy, we only cache the last N task snapshots
- Pull out necessary logic from RecentsTaskLoadPlan (deprecated) into
  launcher class RecentTasksList which also manages the invalidation of
  the last loaded list
- Pull out logic from task loading logic in the shared lib into separate
  classes TaskThumbnailCache and TaskIconCache, and have each task view
  manage the load request for data

Bug: 117603579
Test: Thumbnails still load

Change-Id: I938e4dea19e7f5d24724c32194d254ca003e89aa
2018-10-22 17:00:28 -07:00