Commit Graph

21576 Commits

Author SHA1 Message Date
Sunny Goyal 9c2b96090b Adding SecondaryDisplayLauncher in Launcher using common listener
Bug: 141596722
Change-Id: I480bfadf592f7d0309f17c33a3fe14bb77fb5586
2020-01-30 08:27:27 +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
TreeHugger Robot 8f76378bf5 Merge "Adding events checking for Launcher starting apps" into ub-launcher3-master 2020-01-24 20:23:39 +00:00
Hyunyoung Song 3fc86f4055 Remove FeatureFlag dependency from FolderNameProvider
Change-Id: If4ed2c953975f76947442959a2820ee72f1bd0ec
2020-01-24 11:23:15 -08:00
TreeHugger Robot 696e5dad0f Merge "Logging the time that we use for the current events range" into ub-launcher3-master 2020-01-24 16:41:49 +00:00
vadimt 6098a8c8c0 Adding events checking for Launcher starting apps
Change-Id: Id651397f643280a9f99a470df029479bd1b41e5c
2020-01-23 19:12:19 -08:00
vadimt 8bcabc02c3 Logging the time that we use for the current events range
It appears that sometimes logcat -d returns events that are earlier than
that time, but we need to be sure.

Example:
ACTION_UP from the previous TAPL method:
https://sponge.corp.google.com/target?show=FAILED&sortBy=STATUS&id=1aceab23-6d2a-4b2d-9630-47a74cafe7b9&target=com.google.android.apps.nexuslauncher.tests

Change-Id: Ib83e1cc01402ef638f8ac8a0862e16c5773b82cd
2020-01-23 17:44:38 -08:00
Samuel Fufa 93d7917f39 Merge "Log App Predictions from AiAi" into ub-launcher3-master 2020-01-24 01:28:20 +00:00
Samuel Fufa 68c57419c0 Log App Predictions from AiAi
+ Update edu screen strings

Bug:142753423
Test:Manual
Change-Id: If2424d134a5f9d2cafa248949a249ee2c7296276
2020-01-23 16:42:31 -08:00
TreeHugger Robot 3c7f820e2b Merge "More readable formatting for events mismatch message" into ub-launcher3-master 2020-01-24 00:19:24 +00:00
vadimt daed318930 Recognizing a Launcher ANR
Change-Id: Ib26df7b6e9f9e6b85f93d2aa2a4a0204430e304f
2020-01-23 15:19:46 -08:00
vadimt ff7cd03d43 More readable formatting for events mismatch message
This helps for longer event lists.

Change-Id: Ie3565d2ccdde27d23770d01b4f9d4680bd8e229b
2020-01-23 13:40:54 -08:00
Vadim Tryshev 8cf7b03cad Merge "Adding auto-investigation of one more flake" into ub-launcher3-master 2020-01-23 20:17:33 +00:00