Commit Graph

33301 Commits

Author SHA1 Message Date
TreeHugger Robot c85ab32e88 Merge "Use same content description for Recent apps" into ub-launcher3-master 2020-01-10 17:08:54 +00:00
Samuel Fufa 3db240a134 Change hotseat edu strings
Bug: 142753423
Change-Id: I0de86073b75eb1866d827d9e3fc35236accc67a0
2020-01-10 08:34:49 -08:00
android-build-team Robot 3d31603daf Snap for 6123763 from 4769b211af to rvc-release
Change-Id: I6a1133f27c1b3868a9c816310801d36479a2c4ba
2020-01-10 04:06:39 +00:00
Sunny Goyal 4823b0c99b Merge "Disabling some repo checks for rebolectric files" into ub-launcher3-master 2020-01-09 23:57:31 +00:00
Tony Wickham 3f330429a3 Fix BaseSwipeDetector#setState() called inside another setState()
Clients of BaseSwipeDetector are required to call finishedScrolling(),
which calls setState(IDLE). An obvious place to call this is in
onDragEnd(), which itself is called from a setState(SETTLING). If the
client does this, then the SETTLING state actually clobbers the IDLE
state, leading to undefined behavior. The reason we don't see this in
practice is because we usually call finishedScrolling() after an
animation from onDragEnd() instead of calling it immediately.

To fix this, we add a simple queue such that any calls to setState()
while one is in progress have to wait and are executed in turn. This
ensures we get all the proper state callbacks and end in the correct
one.

Also fix an incorrect call in AbstractStateChangeTouchController which
was masked by this bug. We were calling setState(IDLE) in onDragStart(),
which only worked because the original setState(DRAGGING) incorrectly
clobbered this. Now we only setState(IDLE) (via finishedScrolling())
when we fully clear the state, i.e. when the interaction is finished.

Test: added testInterleavedSetState

Bug: 141939911
Change-Id: Iae630ee7101921b57a85d40646468cf19f59b674
2020-01-09 15:39:38 -08:00
Hyunyoung Song ced004fb71 Merge "Change the load logic of FolderNameProvider Work profile apps are suggested as "Work" folder name" into ub-launcher3-master 2020-01-09 17:38:37 +00:00
Sunny Goyal cf7a48b1de Disabling some repo checks for rebolectric files
Change-Id: I025db602f14f7696e7f3165357afbec0cfa8e713
2020-01-09 09:18:41 -08:00
Hyunyoung Song 97253ec3ab Change the load logic of FolderNameProvider
Work profile apps are suggested as "Work" folder name

Bug: 147359653
Bug: 147359733

Change-Id: Idb2438de9c71c85cfeca6a6b0e116174ea2f3b62
2020-01-08 23:31:58 -08:00
Automerger Merge Worker 4769b211af Merging from ub-launcher3-qt-future-dev @ build 6099678 am: b676092514 am: c398eed9fd
Change-Id: I6ecbc183f7f39c086ab73164077fd8dc237cd0ae
2020-01-09 06:03:51 +00:00
Automerger Merge Worker c398eed9fd Merging from ub-launcher3-qt-future-dev @ build 6099678 am: b676092514
Change-Id: Ifda89a7872f0873a5443fdfcf52220182bf90e6c
2020-01-09 05:51:58 +00:00
android-build-team Robot 2095204bbd Snap for 6121193 from 54dd3e6e44 to rvc-release
Change-Id: I9050e0283672aa81461b31b2ab50734d128349b7
2020-01-09 04:19:04 +00:00
TreeHugger Robot d068f1cf66 Merge "integration test for open settings menu from workspace." into ub-launcher3-master 2020-01-09 04:17:03 +00:00
vadimt 1eb46b85ec Recognizing running "prebuilt" launcher and manually built platform
In scenarios like: atest NexusLauncherOutOfProcTests against the
platform built from command line, and Launcher from the platform, we are
not failing now, and @Stability treats it as a PLATFORM_POSTSUBMIT run.

Change-Id: Ia504216d238e58b2786f3749b737dfb95a2ede96
2020-01-08 17:32:15 -08:00
Pinyao Ting 654adf657e integration test for open settings menu from workspace.
compare pid of launcher process after test execution to verify launcher isn't crashed when running in oop test.

Bug: 147235759
Change-Id: Id13c47f5c4e388cc8e95b19d099e94a2e540bf3f
Test: fun flake locally
2020-01-08 17:01:39 -08:00
Tracy Zhou 4d7b244f3f Render user's actual workspace in ThemePicker preview (Part 2)
With this change, we can also render folders in preview. It's built on top of part 1.

Test: Go to grid options, choose a different grid option, and see user's workspace rendered in the preview
Bug: 144052839
Change-Id: Iaf6d8af6b909ece4147ea250d95dec3d2c0019d3
2020-01-08 15:42:58 -08:00
TreeHugger Robot 290f2cb028 Merge "Fixes duplicate "TAP" launcher event when new smart folder is created by drag and drop event." into ub-launcher3-master 2020-01-08 23:14:53 +00:00
Vadim Tryshev 466bf5538d Merge "Using grantRuntimePermission()" into ub-launcher3-master 2020-01-08 22:27:30 +00:00
Tony Wickham b676092514 Merging from ub-launcher3-qt-future-dev @ build 6099678
Test: manual, presubmit on the source branch
http://x20/teams/android-launcher/merge/ub-launcher3-qt-future-dev_6099678.html

Change-Id: I205e6a8dc0042dd69d62c319c170b4bbed378c75
2020-01-08 14:15:16 -08:00
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
Thiru Ramasamy 652385d2ea Fixes duplicate "TAP" launcher event when new smart folder is created by drag and drop event.
Bug:147305113

Change-Id: I5d26df6a594b1d222e0db2e40c039c6661146d3a
2020-01-08 20:10:38 +00:00
vadimt aad54ab686 Using grantRuntimePermission()
"pm grant" is considered obsolete

Bug: 145686584
Change-Id: Ieeec76b2fdb666f89957a0a3039956bd69e9f315
2020-01-08 12:01:34 -08:00
TreeHugger Robot 3748443bfc Merge "Delete code that became dead after moving tests to robolectric" into ub-launcher3-master 2020-01-08 19:27:53 +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
Automerger Merge Worker 54dd3e6e44 [automerger skipped] Merge "DO NOT MERGE - Merge January 2020 Security Release into master" am: 12ec6e36e9 am: ec30d7851c am: 830ef55736 -s ours
am skip reason: subject contains skip directive

Change-Id: I14bdc8c4ba44a37eb8db43ce5ddb6f0103b642fc
2020-01-08 18:27:04 +00:00
Automerger Merge Worker fe249523c1 [automerger skipped] DO NOT MERGE - Merge January 2020 Security Release into master am: 445bd91eb0 am: 462df522ce am: 96e9ae15b5 -s ours
am skip reason: subject contains skip directive

Change-Id: I0e7fc670035da89ebc3fa710afe535e314e27ec3
2020-01-08 18:25:05 +00:00
Automerger Merge Worker 830ef55736 Merge "DO NOT MERGE - Merge January 2020 Security Release into master" am: 12ec6e36e9 am: ec30d7851c
Change-Id: I58734ad16e7b0661dedf8950b3520d9d8cc6cf22
2020-01-08 18:09:31 +00:00
Xin Li ec30d7851c Merge "DO NOT MERGE - Merge January 2020 Security Release into master"
am: 12ec6e36e9

Change-Id: I209fa70bf37a25f3ba8174d2c1a5845ef593bc7d
2020-01-08 10:09:05 -08:00
Automerger Merge Worker 96e9ae15b5 DO NOT MERGE - Merge January 2020 Security Release into master am: 445bd91eb0 am: 462df522ce
Change-Id: I7d5c36a4f77894037ec33fa6315f703d2c007a39
2020-01-08 18:08:50 +00:00
Xin Li 462df522ce DO NOT MERGE - Merge January 2020 Security Release into master
am: 445bd91eb0

Change-Id: I8492f3312caf7de0a5a7f051eec2688ba7f103e4
2020-01-08 09:47:15 -08:00
Xin Li 12ec6e36e9 Merge "DO NOT MERGE - Merge January 2020 Security Release into master" 2020-01-08 17:39:17 +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
TreeHugger Robot d6eed66f86 Merge "Not crash when UI objects disappear during visible objects verification" into ub-launcher3-master 2020-01-08 15:27:02 +00:00
Sunny Goyal 85cb1b65c2 Fixing widgets enabled ag/9375162
Change-Id: I2e7e731dacf3c617fc2abe4c5289519856d0c2a3
2020-01-07 20:32:40 -08:00
android-build-team Robot d952a88d2e Snap for 6118234 from c0f0694164 to rvc-release
Change-Id: I8d6890e5dd9ee211fa52d63cbb773b23328a4863
2020-01-08 04:20:00 +00:00
vadimt b856e48594 Not crash when UI objects disappear during visible objects verification
Bug: 146785144
Change-Id: I5ccac4871c683413c27753774adc432e5e654e27
2020-01-07 17:45:32 -08: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
Xin Li 445bd91eb0 DO NOT MERGE - Merge January 2020 Security Release into master
Bug: 147314974
Change-Id: Iae684da890fa24acf78dbd2d48cf5a9feb0506df
2020-01-07 15:25:25 -08:00
vadimt b5087c45aa Delete code that became dead after moving tests to robolectric
Change-Id: I454ba9d4c8d04aae192523322a2ee8c505da5ed5
2020-01-07 12:23:57 -08: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
vadimt 2c4e3187e7 TAPL: Tracing only changed part of the context for diags
Printing the whole context stack has proven to be harder to decipher.

Change-Id: Ic11981884491fc96b939f4736ec974a1640c0304
2020-01-07 11:16:54 -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
TreeHugger Robot defb0562c4 Merge "Tips Gesture Navigation Tutorial [Part 2]" into ub-launcher3-master 2020-01-07 17:04:57 +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
Pinyao Ting 72f9375ada Tips Gesture Navigation Tutorial [Part 2]
include actual implementation of gesture tutorial.

Bug: 146173041
Test: adb shell am start -a \
"com.android.quickstep.action.BACK_GESTURE_TUTORIAL"
Change-Id: Ic166f0a10d8efc22d9684f089142de164ca24c90
2020-01-06 16:33:55 -08:00