Commit Graph

17554 Commits

Author SHA1 Message Date
Ryan Lothian f4c42bc79a Migrate GridOccupancyTest to Robolectric
This allows it to run fast locally on the JVM without an
emulator or physical device.

Change-Id: I416877d7c335a7b9c8dc7a216ecfeb1013f66891
2018-11-05 10:52:40 -05:00
Sunny Goyal b1513bd811 Merge "Simplifying scrim drawable initialization." into ub-launcher3-master 2018-11-02 18:00:04 +00:00
Hyunyoung Song 472e17bbb2 Merge "Converting ShortcutsLaunchTest gesture-stable" into ub-launcher3-master 2018-11-02 17:05:20 +00:00
Vadim Tryshev ba8957b3c2 Converting ShortcutsLaunchTest gesture-stable
By converting to TAPL.

Bug: 110103162
Test; TaplTests

Change-Id: I788405f2e52cc0e29ebf69e58feda46b408e9eb9
2018-11-01 17:45:59 -07:00
TreeHugger Robot dd44c8cd08 Merge "FeatureFlag: quick scrub is now quick switch" into ub-launcher3-master 2018-11-01 21:39:04 +00:00
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
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
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
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
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
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
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
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
Brett Chabot d7d692c2f9 Replace use of deprecated target androidx-test
Test: make Launcher3Tests
Change-Id: Ib14fd9da1df3c022d39efb69660ff59b8a47db5d
2018-10-23 21:17:58 -07: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
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
Hyunyoung Song 848d86ad32 Remove shape detection logic for icon legacy treatment
Bug: 117991192

Change-Id: Ife2047e7b36099daa4526c471e5c70554f068de1
2018-10-22 15:08:50 -07:00
Vadim Tryshev b92656af19 Passing package name to a remote action
Bug: 117888000
Test: manual test with a prototype
Change-Id: Ieea91c443186ccd653ae04fe76baff14e78021a0
2018-10-22 14:43:08 -07:00
TreeHugger Robot d6e4cdcdb5 Merge "Only show flags UI if developer options is enabled" into ub-launcher3-master 2018-10-22 21:20:07 +00:00
TreeHugger Robot e3617a01ef Merge "Enable creating task shortcuts without inheriting" into ub-launcher3-master 2018-10-22 21:19:00 +00:00
Ryan Lothian 904dbcdf9d Only show flags UI if developer options is enabled
Change-Id: I69005e623dab9f1f2f0682b61311836b62337835
2018-10-22 17:06:47 -04:00
Tony Wickham 2f7110d614 Merge "Add FirstScreenWidget plugin interface" into ub-launcher3-master 2018-10-22 20:36:10 +00:00
Tony Wickham 6ec45c76cf Add FirstScreenWidget plugin interface
Bug: 115877296
Change-Id: I974300a6460677758cbe99cab3bb71339eb2928b
2018-10-22 13:20:34 -07:00
Zak Cohen 8d21fd69f1 Merge "Deepshortcuts - only keep the per package shortcut count in memory." into ub-launcher3-master 2018-10-22 18:56:17 +00:00
TreeHugger Robot 76fea5fdd0 Merge "Adding dark theme for AddItemActivity" into ub-launcher3-master 2018-10-22 18:48:44 +00:00
Zak Cohen 658c67a609 Deepshortcuts - only keep the per package shortcut count in memory.
Change to only keep the per Activity shortcut count in memory, not
the list of ids.
The full shortcuts are loaded at long press time so saves memory.

Bug:117239104
Test:Manual and ran instrumentation tests
Change-Id: Iee974ecba2c977216be4f078396ceed22b931f5d
2018-10-22 11:38:09 -07:00