Commit Graph

9586 Commits

Author SHA1 Message Date
Jonathan Miranda
1b4ed6dd9b Merge "Enable working springs. Move unstable springs to a seperate feature flag." into ub-launcher3-master 2020-01-08 21:17:49 +00:00
TreeHugger Robot
2e0b8e39c7 Merge "Revert "include integration test for open settings menu from workspace"" into ub-launcher3-master 2020-01-08 18:46:01 +00:00
Jonathan Miranda
2684dc5d78 Merge "Add LogConfig.DoodleLogging so doodle logs can be enabled via adb." into ub-launcher3-master 2020-01-08 16:36:00 +00:00
Pinyao Ting
cd1cc0efc1 Revert "include integration test for open settings menu from workspace"
This reverts commit e94baee999.

Reason for revert: Test failing

Change-Id: Icb5d27488618a9b70b83d7ab582082c396578700
2020-01-08 01:15:29 +00:00
Samuel Fufa
aed008de90 Hybrid hotseat user edu
Starts by showing a notification, which will open a dialog
with options for users to keep their hotseat layout or fully
migrate to hybrid hotseat

Bug:142753423
Test:Manual
Change-Id: I178de612837ec8551f6776fa7c6fb6111bc7431d
2020-01-07 12:02:26 -08:00
Jon Miranda
d1589d47d7 Add LogConfig.DoodleLogging so doodle logs can be enabled via adb.
To use: adb shell setprop log.tag.DoodleLogging VERBOSE

Bug: 143720134
Change-Id: I61742564c9451ba084e192f823dbf5264702b3a2
2020-01-07 11:45:18 -08:00
Jon Miranda
40f0eb2188 Enable working springs. Move unstable springs to a seperate feature flag.
Bug: 147302669
Change-Id: I7a1b9b0e68cc68ad943b5af2b8cf7f80b5680eaa
2020-01-07 11:25:22 -08:00
Samuel Fufa
f43a5d32bf Merge "Add dismiss option for hotseat items" into ub-launcher3-master 2020-01-07 18:22:11 +00:00
TreeHugger Robot
1db3be37e4 Merge "Removing tracing for a fixed flake" into ub-launcher3-master 2020-01-07 17:11:59 +00:00
TreeHugger Robot
2f4eff3fd6 Merge "Keep folder notification dot on rotation" into ub-launcher3-master 2020-01-07 17:11:56 +00:00
vadimt
675c877765 Removing tracing for a fixed flake
Presumably, the flake was fixed when I added waiting for model load
before the test body starts.

Bug: 138729456
Change-Id: Ie921ebd40e42a7d73884c19949ca5f0129afc96e
2020-01-06 18:35:37 -08:00
Tony Wickham
a538d2b97a Keep folder notification dot on rotation
FolderIcon#mDotInfo is stored per instance, but not kept up to date
when re-binding on rotation.

Bug: 144369875
Change-Id: Ia429e4b4039eb02fb4587f54e33a0717408e4ac2
2020-01-06 18:08:05 -08:00
Samuel Fufa
a18eb686d0 Add dismiss option for hotseat items
Bug: 145556909
Test:Manual
Change-Id: Ia40d22226b5cf9482f19f82ef08e399d294be6da
2020-01-06 16:40:24 -08:00
TreeHugger Robot
2f3d0566c9 Merge "log number of items deleted even when no item was deleted at all" into ub-launcher3-master 2020-01-07 00:01:32 +00:00
TreeHugger Robot
108cc51e03 Merge "include integration test for open settings menu from workspace" into ub-launcher3-master 2020-01-06 23:22:45 +00:00
Pinyao Ting
fb9b779e9d log number of items deleted even when no item was deleted at all
Bug: 137678815
Change-Id: I1cf23921f863a17433ba803158e489b54c1aa35d
2020-01-06 14:10:35 -08:00
Sunny Goyal
0fd48b51ba Merge "Updating Robolectric tests" into ub-launcher3-master 2020-01-06 20:12:16 +00:00
Pinyao Ting
3c79804f28 include error log to determine root cause of sql statement failure when
restoring work profile

Bug: 147114476
Change-Id: I25e57413faa569a30e27a0cde1fc47233ff8b603
2020-01-06 11:21:41 -08:00
Sunny Goyal
9ae9b60043 Updating Robolectric tests
> Adding multi-thread support
> Simulating actual loader loading flow
> Moving some android tests to robolectic

Change-Id: Ie17a448f20e8a4b1f18ecc33d22054bbf9e18729
2020-01-06 11:05:42 -08:00
TreeHugger Robot
f10903e601 Merge "Removing static reference of deep shortcut manager" into ub-launcher3-master 2020-01-02 20:54:05 +00:00
TreeHugger Robot
1ff53859a1 Merge "Move the cursor to the end after accepting gboard selection Bug: 146909183" into ub-launcher3-master 2020-01-02 20:19:56 +00:00
Sunny Goyal
fa39536570 Removing static reference of deep shortcut manager
Bug: 141376165
Change-Id: Ie60b82be63a8926825598c681d8b2a1b2ace6413
2020-01-02 20:13:12 +00:00
Hyunyoung Song
9153ff7eed Move the cursor to the end after accepting gboard selection
Bug: 146909183

Change-Id: Ic7868d6d98f0b5a1798178cbaf512be1d347a962
2019-12-27 06:16:26 -08:00
James O'Leary
027cb32a96 Merge "Compose overscroll gesture updates" into ub-launcher3-master 2019-12-26 17:27:24 +00:00
Tony Wickham
74b492cc37 Merge "Increase drag distance threshold when drag starts from deep press" into ub-launcher3-master 2019-12-23 23:00:21 +00:00
Tony Wickham
a7704c09c7 Increase drag distance threshold when drag starts from deep press
Also don't update distance dragged until drag actually starts
(otherwise we add a lot of motion before deep press triggers).

Bug: 146146413
Change-Id: I28bd23707a9be53c709d7a4e779e84b9a0be9ce2
2019-12-23 13:28:58 -08:00
James O'Leary
a9156a05c4 Compose overscroll gesture updates
Two changes for the latest Compose prototype:
1. Pass the identity of the underlying app to the Overscroll plugin.
2. Enable the Compose gesture over an app when there's a Recents extra
card plugin active (otherwise the current app won't count as the
rightmost one).

Some changes to the gesture:
- Angle decreased from 35° to 25° to remove overlap with
Assistant gesture
- Distance increased from 8 to 110 dp. 110 dp is 2x the Assistant
gesture and roughly the same as scrubbing into an app from Home.
- Fling detection added; uses same distance threshold, 110 dp.
- If a touch was recognized as another gesture, the touch will not be
reinterpreted as a Compose gesture, no matter what touch movement occurs
- Fixes issue where Assistant + Compose could both be triggered
- Fixes issue where scrubbing apps to the left, then back to the right,
would bring in Compose. i.e. if a touch down + touch movement starts
bringing in Assistant UI elements, then, the user moves their touch
below the Assistant angle, the Compose gesture will not start
being recognized
- Gesture length required for fling lowered from 110 dp to 40 dp, per
tuning with PM.

Bug: b/146508473
Change-Id: I414573d1a92684d1d992837a5f1df522346ec211
2019-12-23 10:59:30 -05:00
TreeHugger Robot
2f285996dd Merge "Collect app usage data for hybrid hotseat feedback" into ub-launcher3-master 2019-12-21 01:35:21 +00:00
Pinyao Ting
e94baee999 include integration test for open settings menu from workspace
Bug: 146432215
Change-Id: I2d42984dd77506385230744361ae74944cc9b3bd
2019-12-20 15:37:36 -08:00
Becky Qiu
28a287624f [Overview chips] Turn overview chips off.
Change-Id: Ic200fa5e570abae6c41a12eb22bb3b853d02d504
2019-12-20 13:31:09 -08:00
Samuel Fufa
89d100197a Collect app usage data for hybrid hotseat feedback
Bug:145858435
Test:Manual
Change-Id: Ib9cbe0cb87a152a751e6253db42d58d2d0625c52
2019-12-19 15:08:23 -08:00
TreeHugger Robot
c7d601e923 Merge "TAPL: logging incoming intents" into ub-launcher3-master 2019-12-18 02:58:28 +00:00
Automerger Merge Worker
30f232de4c Fix shortcut componentname in workspace layout logging am: b9ba427576
Change-Id: I6ffef9cc9dabb32e1d6b1a16e7011d3c9b6b9c3b
2019-12-17 23:31:48 +00:00
Hyunyoung Song
b9ba427576 Fix shortcut componentname in workspace layout logging
Bug: 146172747
Test: $ adb shell dumpsys activity provider com.google.android.apps.nexuslauncher/com.android.launcher3.LauncherProvider --proto --debug
SHORTCUT, package=com.android.vending, component=VIEW_MY_DOWNLOADS, grid(3,4), span(1,1), pageIdx=0 user=0


Change-Id: Ic8537d499d66675fbe190f137b50fb693d6c21d5
2019-12-17 05:25:35 +00:00
vadimt
baf5fbbe58 TAPL: logging incoming intents
Even though ActivityTaskManager already logs intents, logging this will
simplify flake/error investigations that are considered to be too
time-consuming.

Also, this will make it possible in future to programmatically detect
whether the bug is introduced by the system or Launcher.

Bug: 133010698
Change-Id: I7dcadd95baa23f29bb661d6b42280bd2a2f0e099
2019-12-16 18:56:09 -08:00
TreeHugger Robot
c16667032a Merge "Logging state change events when in test to simplify diagnosing" into ub-launcher3-master 2019-12-16 23:40:40 +00:00
TreeHugger Robot
bdfa251d67 Merge "Add boolean to differentiate icons from workprofile" into ub-launcher3-master 2019-12-16 20:31:33 +00:00
TreeHugger Robot
03b14a6d44 Merge "Generating state-changed-to-home event for Widgets->Home transition" into ub-launcher3-master 2019-12-14 03:21:09 +00:00
vadimt
f0c80528ab Starting swipe-to-all-apps outside of areas triggering long-press
I suspect that some tests using TAPL run under pressure (mem or CPU,
created either intentionally or as a result of a leak somewhere)
where test process may generate a pause between DOWN and MOVE events
enough to be recognized as a long tap, which opens a context menu
instead of swiping.

While the clean solution is b/140252325, this is a workaround.

Bug: 144853809
Change-Id: I135eaee608270b7e60bb072cb360632763cbe5c5
2019-12-12 16:27:25 -08:00
vadimt
5995e60d90 Logging state change events when in test to simplify diagnosing
Change-Id: I48f741802696f7ef1764a5745ae6243c407a19cc
2019-12-11 17:53:03 -08:00
vadimt
9f48a8ec3b Generating state-changed-to-home event for Widgets->Home transition
This event is required by TAPL is is not currently generated by
Launcher3.

Change-Id: Ibf38b6779cc8d0d6a62d415d07c874d00956435a
2019-12-11 17:24:59 -08:00
TreeHugger Robot
98833d525c Merge "Updating some non-final static objects" into ub-launcher3-master 2019-12-11 22:07:53 +00:00
TreeHugger Robot
41dd48a718 Merge "Diagnosing the reason for opening context menu" into ub-launcher3-master 2019-12-11 21:29:38 +00:00
Sunny Goyal
73b5a27b14 Updating some non-final static objects
Updating various static objects to use a standard pattern so that
it is easier to track and cleanup those objects

Bug: 141376165
Change-Id: Ia539cbfa338d544dddad771c5027b6748762768b
2019-12-11 13:22:58 -08:00
TreeHugger Robot
4f37a5e268 Merge "Removing static instances of UserManagerCompat and AppWidgetManager" into ub-launcher3-master 2019-12-11 18:41:04 +00:00
Sunny Goyal
337c81f664 Removing static instances of UserManagerCompat and AppWidgetManager
> Changing the lifecycle to follow other static objects in Launcher
> Removing compat interface and inlining everything to helpers

Bug: 141376165
Change-Id: I82bd5db1969101de9a7eac77f32728d70195bb35
2019-12-11 10:03:19 -08:00
Samuel Fufa
78e7e5fcaa Add boolean to differentiate icons from workprofile
Bug:145825382
Test:Manual
Change-Id: I95e0cfe48b4a397eb54455374f11c7ea14c028f6
2019-12-10 13:33:37 -08:00
Pinyao Ting
9c592e210e perform accessbility focus when the recyclerview doesn't gain focus
after fragment replacement in SettingsActivity

Bug: 145475911
Test: Settings -> App & Notifications -> Default Apps -> Enable Talkback
-> Gear Button next to Home app -> About -> Verify Talkback reads the
first item in the page

Change-Id: I100e646ad2aba0081b48b86ec408ce8e76a80713
Merged-In: I100e646ad2aba0081b48b86ec408ce8e76a80713
(cherry picked from commit 865dc9b3b1)
2019-12-10 11:28:50 -08:00
Zak Cohen
e895869f47 Overview actions - adds feature flag and base class for Overview Actions.
Adds ENABLE_OVERVIEW_ACTIONS feature flag and base factory. Requires an
implementation in overlay to show any actions.

Test: run locally with flag on and off.
Bug: 145628186

Change-Id: I1c36330464cc01e1e987ebfea1a9f451067598a5
2019-12-09 16:43:54 -08:00
TreeHugger Robot
0aa4bfebcf Merge "fix app crash on settings for launcher" into ub-launcher3-master 2019-12-09 23:26:28 +00:00