Commit Graph

17582 Commits

Author SHA1 Message Date
TreeHugger Robot 5bd44153fd Merge "Remove duplicate test" into ub-launcher3-master 2018-11-06 16:14:31 +00:00
Ryan Lothian bb80025ef4 Remove duplicate test
I cloned the existing Instrumentation-based IntSetTest class
to be our first Robolectric test. Now Robolectric is working,
we can delete the Instrumentation test version.

Change-Id: I3adcfc451988a908c002b769b398348cb1782f1d
2018-11-06 10:57:17 -05:00
Sunny Goyal 3ebe28a82b Fixing wrong directory pack for icon lib classes
Change-Id: Ic3690198b1c6204e322ba7b0f46ccef5dfa97181
2018-11-05 22:27:55 -08:00
Rajeev Kumar 97fab14d8f Get rid of unused resources from Launcher3 running on Android Go devices.
Bug: 112904271
Test: Manual test
Change-Id: Ia19e92801f4d1a47b0dab47185d23b10e2412328
2018-11-05 18:27:07 -08:00
TreeHugger Robot ea14a7ac3a Merge "Removing UserManagerCompat wrapper for getting baded label" into ub-launcher3-master 2018-11-06 01:46:37 +00:00
TreeHugger Robot 9b5b417e64 Merge "Disable Shortcuts menu item for Android Go devices." into ub-launcher3-master 2018-11-06 01:41:59 +00:00
Sunny Goyal d7239fcc52 Removing UserManagerCompat wrapper for getting baded label
This removes some crass dependency on Launcher compat implementation
making it easier to move iconCache to a separate library

Change-Id: If5fab0c82d98089cde6f54b6a374fb7bb2db5ae8
2018-11-05 17:33:15 -08:00
Rajeev Kumar 9ed67ddc50 Disable Shortcuts menu item for Android Go devices.
Bug: 112904271
Test: Manual test
Change-Id: I423afd62063babcda52d3907bbd608049238f065
2018-11-05 17:32:16 -08:00
TreeHugger Robot 06bca75d01 Merge "Removing some launcher cross dependency in BaseIconCache so that it can eventually be moved to icon library" into ub-launcher3-master 2018-11-06 01:31:24 +00:00
Sunny Goyal 678f47c0c9 Removing some launcher cross dependency in BaseIconCache
so that it can eventually be moved to icon library

Change-Id: I65e3ad34322a10695c1ba114f5e60c4418747f05
2018-11-05 17:22:09 -08:00
TreeHugger Robot 8ac8d73530 Merge "Split out launcherProtos from sysui_shared.jar" into ub-launcher3-master 2018-11-06 01:14:56 +00:00
Hyunyoung Song 0ae3888ad1 Split out launcherProtos from sysui_shared.jar
Bug: 113043444
Change-Id: I3115cdc7871b0f77601e399df01cdde0dde87c6e
2018-11-05 17:01:54 -08:00
TreeHugger Robot 71170d7b16 Merge "Create a launcher LoaderResults override." into ub-launcher3-master 2018-11-05 23:55:37 +00:00
Rajeev Kumar 1baf8a78c6 Create a launcher LoaderResults override.
This change disables shortcuts/widgets binding on Android Go devices.
Bug: 112904271
Test: Manual test

Change-Id: I3dbcd23dc448ff9ca5fe6c32958dcffb51c4bcf5
2018-11-05 15:43:53 -08:00
Jon Miranda dad8d4434d Remove scrim fade animation when returning to launcher.
Since the DragLayer translates downwards, we no longer need the scrim fade
animation to avoid the hard scrim line.

Bug: 117677608
Change-Id: I4cd524d798579289d61bfe296f6de42bd22b0cb7
2018-11-05 15:09:09 -08:00
Sunny Goyal 876e462ffa Removing separate hotseat widget, instead using a QSB acroll all UI.
The QSB is responsible for updating its UI according to various states.

Bug: 109828640
Change-Id: Ic8cbf3d404d5870de0f6b8fe25a332b8d21bae20
2018-11-05 13:36:41 -08:00
Hyunyoung Song 08584e18d6 Merge "Add StatsLog*Manager for logging. Bug: 113043444" into ub-launcher3-master 2018-11-05 20:04:59 +00:00
Hyunyoung Song fc00747909 Add StatsLog*Manager for logging.
Bug: 113043444

Verification: (19) is our event classifier number
11-05 11:24:28.188   932   994 I statsd  : { 1541445868000000000 766293363001 (19)0x10000->1[I] 0x20000->0[I] 0x30000->0[I] 0x40000->[S] 0x50000->1[I]  }

Change-Id: I75403837f9fa8e51efa012fb708bce7efc9c4488
2018-11-05 11:41:38 -08:00
Vadim Tryshev af2adc1cf3 Merge "Adding dummy app apk for tests" into ub-launcher3-master 2018-11-05 18:53:44 +00:00
TreeHugger Robot 631151cda6 Merge "Convert more tests to TAPL" into ub-launcher3-master 2018-11-05 18:42:50 +00:00
Vadim Tryshev 1b4560cf2a Adding dummy app apk for tests
Bug: 117888000
Test: In Nexus code
Change-Id: Ibf0b803c9db6b344ffbe5b7761efb2a2d86867c6
2018-11-05 10:36:21 -08:00
Vadim Tryshev fdd1905e27 Convert more tests to TAPL
Bug: 110103162
Test: running these tests
Change-Id: I76b145eb4d16aca20ce30a5abca8f4568e3297e4
2018-11-05 10:32:01 -08:00
TreeHugger Robot a47ab8b425 Merge "Make FileLogTest use robolectric" into ub-launcher3-master 2018-11-05 16:59:09 +00:00
Ryan Lothian 499a0c932e Make FileLogTest use robolectric
This allows it to run fast locally on the JVM without an
emulator or physical device.

Change-Id: Idb9c94e6f3fce94a86978ea0709eadd72280432c
2018-11-05 11:44:33 -05:00
TreeHugger Robot 0ef4c4fcb3 Merge "Migrate GridOccupancyTest to Robolectric" into ub-launcher3-master 2018-11-05 16:35:19 +00:00
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
TreeHugger Robot ccda30d4b6 Merge "Create a launcher model override." into ub-launcher3-master 2018-11-02 22:39:56 +00:00
Rajeev Kumar 0a926c1d67 Create a launcher model override.
This change disables shortcuts/widgets loading on Android Go devices.
Bug: 112904271
Test: Manual test

Change-Id: I2c40f87a8f5d752525c99d254693a4e0a9eeeb2b
2018-11-02 15:25:25 -07:00
Hyunyoung Song 719eee2be2 Create iconloader library
Bug: 115891474
Test: Builds everything

Change-Id: I1d75702d4e5a10d694eeb839784a629de2f74dd2
2018-11-02 14:18:45 -07: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