Commit Graph

21587 Commits

Author SHA1 Message Date
TreeHugger Robot d4d704e73c Merge "Adding a utility class to easily track bitmap creations during View.draw" into ub-launcher3-master 2020-01-31 22:01:40 +00:00
TreeHugger Robot 766a5d1337 Merge "Use original disabled icon for app animations with disabled icons." into ub-launcher3-master 2020-01-31 20:03:24 +00:00
Jonathan Miranda 75ee409b0a Merge "Track overview animation as atomic animation." into ub-launcher3-master 2020-01-31 18:53:58 +00:00
Sunny Goyal 3c43157405 Adding a utility class to easily track bitmap creations during View.draw
Change-Id: I8b85564aad475e823f345ae96e922b35eab06f8e
2020-01-31 18:13:54 +00:00
Jon Miranda 892667cdf5 Track overview animation as atomic animation.
This fixed the bug where user can't double swipe up to All Apps. This is
needed before All Apps spring can be enabled, because the spring makes it
easier to get into this state.

To repo bug:
1. Hold shelf up so that overview starts to peek
2. Release
3. Before overview peek animation finishes, swipe up again to go to All Apps.

Bug: 79878197
Change-Id: I8c87b742d7da31d23be4decb72b45e9f21788af9
2020-01-30 19:53:26 -08:00
vadimt 01372013d3 Recognizing another SystemUI failure
Also switching investigator to logs starting with the system reboot, as
SysUI crashes before the tests start.

Change-Id: Ifab835c1ab3c1ce3495f012c6a522fae6e44a9ff
2020-01-30 17:57:50 -08:00
TreeHugger Robot 102297262f Merge "Fix a couple issues related to drag and drop in Touch Exploration mode" into ub-launcher3-master 2020-01-31 01:17:27 +00:00
TreeHugger Robot ed6aa18992 Merge "Making setActiveOverlay and getCurrentOverlayPackage public" into ub-launcher3-master 2020-01-30 23:39:45 +00:00
Adam Cohen 732b1d46c5 Fix a couple issues related to drag and drop in Touch Exploration mode
=> The framework no longer sends touch events after double-click and hold, and instead only triggers a single long-press event
=> As a result of the above, there is some additional state that must be set for accessible drag and drop, and further, we no longer initiate a drag in response to long press when Touch Exploration is on.

Test: manual

issue b/148308758

Change-Id: I26ab90b807965f31c8de93d451130410169f2fb0
2020-01-30 23:38:59 +00:00
Jon Miranda 23a2bec581 Use original disabled icon for app animations with disabled icons.
Bug: 129328259
Change-Id: I7617d6d87e299a0bb0a963b5eec573dd372fd799
2020-01-30 11:29:07 -08:00
Sunny Goyal 9c2b96090b Adding SecondaryDisplayLauncher in Launcher using common listener
Bug: 141596722
Change-Id: I480bfadf592f7d0309f17c33a3fe14bb77fb5586
2020-01-30 08:27:27 +00:00
vadimt 4809121c02 Making setActiveOverlay and getCurrentOverlayPackage public
These will be used by memory tests

Bug: 139137636
Change-Id: I213966e8a0443b122412a4fd9fc6415870db2c05
2020-01-30 02:39:26 +00:00
TreeHugger Robot ae5e991f5e Merge "Not crashing tests when a test fails to deinitialize" into ub-launcher3-master 2020-01-29 21:46:27 +00:00
TreeHugger Robot 07ccd59adf Merge "Adding sysui crash diagnostic with a new fingerprint" into ub-launcher3-master 2020-01-29 19:07:16 +00:00
TreeHugger Robot 6f7f380dde Merge "Verifying the event for pressing square button" into ub-launcher3-master 2020-01-29 19:01:56 +00:00
TreeHugger Robot 89321dde65 Merge "Tracing for another "Launcher didn't initialize" failure" into ub-launcher3-master 2020-01-29 18:38:49 +00:00
TreeHugger Robot 657fa570da Merge "Fixing another reference to Launcher activity after its destruction" into ub-launcher3-master 2020-01-29 18:37:49 +00:00
Hyunyoung Song 1ae42423ca Load folder names during LoaderTask
Bug: 147359653

Change-Id: I4d1b53c3a72d0773d4bc8819ee8118fc719944ad
2020-01-28 22:06:05 -08:00
Samuel Fufa 4db9ceb80a Merge "Define disabled app icon alpha" into ub-launcher3-master 2020-01-29 03:18:28 +00:00
TreeHugger Robot 0618d689e8 Merge changes from topic "state-supplier" into ub-launcher3-master
* changes:
  Translate recents slightly while dragging after pausing
  Two-zone model: swipe up from nav bar vs above it
  Change LauncherState to Supplier<LauncherState> in tests
2020-01-29 03:06:04 +00:00
Tony Wickham fd239cafbe Translate recents slightly while dragging after pausing
There's a lot of resistance, but feels better than nothing
responding to your movement.

Bug: 143361609
Change-Id: I9d7e06279ebdbaa0317909ce96d6f001dbe9699a
2020-01-28 18:31:14 -08:00
Tony Wickham 4fdba14cfb Two-zone model: swipe up from nav bar vs above it
When ENABLE_OVERVIEW_ACTIONS flag is enabled, swiping up from the nav
bar goes to overview if you hold, or the first home screen if you don't.

- Added NoButtonNavBarToOverviewTouchController, which extends
  FlingAndHoldTouchController but only works if you start from the nav
  bar. Otherwise it falls back to PortraitStatesTouchController to
  handle normal state transition to all apps.
- Added HintState. This is where the workspace/hotseat/qsb scale down
  when you swipe up from the nav bar, to hint that you're about to
  either go to overview or the first home screen.
  - Added getQsbScaleAndTranslation() to allow Overview and Hint states
    to treat it as part of the hotseat.
  - Since Overview needs to show above the QSB as it's animating, bring
    Overview to the front and update OverviewScrim to handle the case
    where there's no view above Overview to draw the scrim beneath.
- ENABLE_OVERVIEW_ACTIONS is always false in 2-button mode, since the
  shelf is crucial to that mode.

Bug: 143361609
Change-Id: I743481bb239dc77f7024dc98ba68a43534da2637
2020-01-28 18:31:10 -08:00
vadimt 8196e7984a Verifying the event for pressing square button
Change-Id: If7e3cf29e3a069a295f2612800ddbbfc27653c32
2020-01-28 18:23:05 -08:00
Tony Wickham 8a054061ef Change LauncherState to Supplier<LauncherState> in tests
This prevents the test from statically initializing LauncherState and
all its static dependencies, which might lead to runtime exceptions in
out-of-proc tests.

Change-Id: I0e4e09dfb31a8b256c2c0c0b3d1d2ecd0cc92230
2020-01-28 18:07:33 -08:00
vadimt a931e1981d Fixing another reference to Launcher activity after its destruction
Bug: 139137636
Change-Id: Id7a3a3d8c49d28dae964852661dfa330a8535375
2020-01-28 15:14:59 -08:00
Pinyao Ting 5f8a1ab718 include reboelctric test for restore
Bug: 141472083
Change-Id: Ibee123b01c74316d493d3aa229acf4a4f815f60b
2020-01-28 15:02:39 -08:00
Sunny Goyal 09b03c55df Optimizing some slow calls on the main thread
Change-Id: I4eed5f7e5bf1316556d6985a610918fc709a7471
2020-01-28 22:18:14 +00:00
Sunny Goyal fc86a9c75c Removing unnecessary method from tests
Change-Id: I28b180b0e63b277b1bf2b206a848fc6ff14a2722
2020-01-28 10:45:48 -08:00
vadimt 053cb7a6e6 Not crashing tests when a test fails to deinitialize
This causes nondescript diags "Test failed to run to completion.
Reason: 'Instrumentation run failed due to 'Process crashed.''. Check
device logcat for details"

Now quietly skipping all consequent tests after such failure.

Change-Id: I3747cda1a3094bfe82e27eae39ba9e9dfd4af9b6
2020-01-27 19:26:00 -08:00
vadimt 95241ae0f7 Adding sysui crash diagnostic with a new fingerprint
Change-Id: I998e107c05a1993367818db604d4c1666be9b2c6
2020-01-27 18:43:23 -08:00
vadimt c8b09709ff Tracing for another "Launcher didn't initialize" failure
This simply restored logging used for one of earlier investigations

Bug: 148313079
Change-Id: Idafed13208dc5610d577986fc487d1d44bc0ef5e
2020-01-27 17:48:49 -08:00
Samuel Fufa 61d3964488 Define disabled app icon alpha
Bug:141289979
Test: Manual
Change-Id: I28584ccffd99510715e8416b7c47d5fc773b3b5e
2020-01-27 17:11:04 -08:00
Zak Cohen 4b26b21424 Merge "Revert "Revert "Use autogenerated SysUiStatsLog for statsd logging""" into ub-launcher3-master 2020-01-27 23:49:50 +00:00
Zak Cohen ef01e6e86b Revert "Revert "Use autogenerated SysUiStatsLog for statsd logging""
This reverts commit 3b7209d0d6.

Reason for revert: replacing after the lib drop

Change-Id: Ide0a88da611d4a9dfe0c7ba980fabdc14ac96b31
2020-01-27 23:49:12 +00:00
Zak Cohen 7db9e7b92c SystemUiProxy - add screenshot method.
Test: build, manual integration
Bug: 145297320
Change-Id: Ia19e4b88a669c4f8d4d29a2e8e61207fee279ac3
2020-01-27 15:38:36 -08:00
Vadim Tryshev 23cc769eb1 Merge "Adding autodiagnostics for setup wizard being active when tests start" into ub-launcher3-master 2020-01-27 21:36:05 +00:00
Samuel Fufa ad1e5468f0 Merge "Work profile edu" into ub-launcher3-master 2020-01-27 18:55:15 +00:00
Hyunyoung Song 7ee643aeb9 Merge "Introduce folder name type (auto vs manual)." into ub-launcher3-master 2020-01-27 18:16:28 +00:00
TreeHugger Robot 97e5c4c111 Merge "Additionally filtering events by time" into ub-launcher3-master 2020-01-27 18:14:23 +00:00
Samuel Fufa 4bbed19012 Work profile edu
+ Move bottom sheet edu resources to launcher3

Bug: 140099753
Test: Manual
Change-Id: I933acea2b503c0f98362322d24a067c33a1bb2a7
2020-01-27 10:09:04 -08:00
Hyunyoung Song 48e6489871 Introduce folder name type (auto vs manual).
Bug: 147769158

- Use both InputConnectionWrapper and TextWatcher to detect
manual input
- Also fix a bug in FolderNameProvider

Change-Id: I7bc0f380c6641481d934a53e9feb77caa19c674a
2020-01-26 22:34:31 -08:00
Becky Qiu 01f0964129 Merge "[Overview Actions] Let RecentsView child match system LTR setting." into ub-launcher3-master 2020-01-25 23:00:12 +00:00
Hyunyoung Song ce67572ec8 Merge "Revert "Use autogenerated SysUiStatsLog for statsd logging"" into ub-launcher3-master 2020-01-25 02:20:56 +00:00
Hyunyoung Song 3b7209d0d6 Revert "Use autogenerated SysUiStatsLog for statsd logging"
This reverts commit a315ec5f17.

Reason for revert: This CL should've been in the same topic as the sharedlib. Currently sharedlib is reverted, hence without this change ub-launcher3-master build is broken.

Change-Id: I80d529c1facb3245ad81f2a63f472337a2e1d9fa
2020-01-25 02:19:25 +00:00
TreeHugger Robot 39ac994e12 Merge "Avoid confusing errors "Launcher pid should be 0" when test setup fails" into ub-launcher3-master 2020-01-25 01:46:20 +00:00
Becky Qiu 4c31c860b4 [Overview Actions] Let RecentsView child match system LTR setting.
Test:local

Change-Id: I0342701d76e2115e249b6d51d0f4a224a0f022e4
2020-01-24 16:52:41 -08:00
vadimt fd679b78ef Adding autodiagnostics for setup wizard being active when tests start
Change-Id: I78318897b36ee5c94e5ea55e7d1d8cb036fda33b
2020-01-24 14:43:23 -08:00
vadimt fcaab044a3 Avoid confusing errors "Launcher pid should be 0" when test setup fails
Change-Id: Ic5e8114a0f86d1a08738785c4098645e59a24975
2020-01-24 14:30:40 -08:00
vadimt 0fad650610 Additionally filtering events by time
Logcat may return records before the time requested via -t.
Filtering them out.

Also using year in date, to avoid failing during new year night.

Change-Id: I3c84d5fdf7882b3f551a1d430aa906fe1ae67aa7
2020-01-24 14:20:46 -08:00
Muhammad Qureshi a315ec5f17 Use autogenerated SysUiStatsLog for statsd logging
StatsLogCompat is not needed because we can autogenerate StatsLog write
calls that are public. This CL switches uses of StatsLogCompat to using
SysUiStatsLog from SystemUI.

Bug: 145952197
Test: m
Test: fastboot flashall
Test: adb shell cmd stats print-logs && adb logcat "*:S statsd:*" and
inspect LAUNCHER_EVENT logging

Change-Id: Ib4f90a79f436cdd7e058fdb7027c09a5a59cc4f9
(cherry picked from commit 33ec1e182e)
2020-01-24 21:57:31 +00:00