Commit Graph

34630 Commits

Author SHA1 Message Date
Automerger Merge Worker a7c7383800 Merge changes from topic "new-task-snapshots-rvc-dev" into rvc-dev am: 6a8d59d964 am: 2822c4da25
Change-Id: Ia26c78f1dc5490bf305c5581adc31299680cdd45
2020-02-25 18:48:13 +00:00
Automerger Merge Worker 43b5fba2f9 Add config to enable snapshot preloading am: ae11790d31 am: 55b6c6369d
Change-Id: I4ef9a72fd4a5fa2e5df01aa64d66bd4c78d32dc2
2020-02-25 18:48:12 +00:00
Automerger Merge Worker 2cea8c8086 Merge changes from topic "new-task-snapshots-rvc-dev" into rvc-dev am: 6a8d59d964 am: 2822c4da25
Change-Id: Ie7909209fb4679627c92f763aff100bd0ebb657f
2020-02-25 18:48:08 +00:00
Automerger Merge Worker 0f0ee72328 Add config to enable snapshot preloading am: ae11790d31 am: 55b6c6369d
Change-Id: I0365abf8b1ea32cb3664cf12d67a807a3c05be57
2020-02-25 18:48:07 +00:00
Automerger Merge Worker 13421dff38 Merge changes from topic "new-task-snapshots-rvc-dev" into rvc-dev am: 6a8d59d964
Change-Id: I6426d1bdae6ccd4b7febd01aadba901ce2348399
2020-02-25 18:34:44 +00:00
Automerger Merge Worker 561141da0d Add config to enable snapshot preloading am: ae11790d31
Change-Id: I5c5d578303f260cf65ed2816fb73e06f3160b5d0
2020-02-25 18:34:42 +00:00
Automerger Merge Worker 2822c4da25 Merge changes from topic "new-task-snapshots-rvc-dev" into rvc-dev am: 6a8d59d964
Change-Id: I17914b491cc3bc4b329fbbf231c9c44d5616a841
2020-02-25 18:33:46 +00:00
Automerger Merge Worker 55b6c6369d Add config to enable snapshot preloading am: ae11790d31
Change-Id: Iddbd0ef3c2db095ddc481da0883f00e3f61e7222
2020-02-25 18:33:44 +00:00
Peter Kalauskas 6a8d59d964 Merge changes from topic "new-task-snapshots-rvc-dev" into rvc-dev
* changes:
  Toggle loading state based on config_lowResTaskSnapshotScale
  Add config to enable snapshot preloading
2020-02-25 18:29:50 +00:00
TreeHugger Robot d71c3b185d Merge "Setting interpolator beforehand, instead of overriding it after the pending animaiton is created" into ub-launcher3-master 2020-02-25 18:23:19 +00:00
TreeHugger Robot 86430dd2d2 Merge "Performing a check for a crashed Launcher process for each UI test" into ub-launcher3-master 2020-02-25 18:20:39 +00:00
Vadim Caen e1aff29889 Fixed portrait orientation if fixed_rotation flag
Use SCREEN_ORIENTATION_PORTRAIT for the launcher if the fixed_rotation
is enabled

Test: manual, check that the launcher doesn't rotates when the flag is
enabled and we are coming from a landscape activity
Bug: 147469164
Bug: 146416687
Change-Id: I0fe0d16ec1fbfe096fbdfcf2c315e12fb3423cf8
2020-02-25 13:18:49 +01:00
Automerger Merge Worker baff6fa352 [automerger skipped] Merge "Indicate PiP animation type from Launcher to SysUI am: a1a91b0c50 am: fcc8994dd2" into rvc-d1-dev-plus-aosp am: b3e08f79cc -s ours am: 70627fe4d9 -s ours
am skip reason: Change-Id I617a17fd5f6049d9f1d49f9f834623a2bb49f6ca with SHA-1 a1a91b0c50 is in history

Change-Id: I3b14bf2900d044bfa1acd9b160272544b7e8e901
2020-02-25 04:04:34 +00:00
Automerger Merge Worker 3b283a3ae4 [automerger skipped] Indicate PiP animation type from Launcher to SysUI am: a1a91b0c50 am: 846b097b8e am: 0d44f24e47 am: d7fb8e9feb -s ours
am skip reason: Change-Id I617a17fd5f6049d9f1d49f9f834623a2bb49f6ca with SHA-1 a1a91b0c50 is in history

Change-Id: I5d8ff10c1284f9da6f8108941bb8cd5b994dc039
2020-02-25 04:03:56 +00:00
Automerger Merge Worker 78803058c8 [automerger skipped] Indicate PiP animation type from Launcher to SysUI am: a1a91b0c50 am: 846b097b8e am: 1599d9f831 am: 2dbdfa252e -s ours
am skip reason: Change-Id I617a17fd5f6049d9f1d49f9f834623a2bb49f6ca with SHA-1 a93c2dcd56 is in history

Change-Id: I46b3720f070a1094a616432dcd30fdfa06fb988a
2020-02-25 04:03:28 +00:00
Automerger Merge Worker 70627fe4d9 [automerger skipped] Merge "Indicate PiP animation type from Launcher to SysUI am: a1a91b0c50 am: fcc8994dd2" into rvc-d1-dev-plus-aosp am: b3e08f79cc -s ours
am skip reason: Change-Id I617a17fd5f6049d9f1d49f9f834623a2bb49f6ca with SHA-1 a1a91b0c50 is in history

Change-Id: I42c8cbb04fcc1a9ca31c3ace8ee7655857c0fe65
2020-02-25 03:50:11 +00:00
Automerger Merge Worker d7fb8e9feb Indicate PiP animation type from Launcher to SysUI am: a1a91b0c50 am: 846b097b8e am: 0d44f24e47
Change-Id: I34c3cd66ebd1a750d424d0f669a923b1e27e08c9
2020-02-25 03:49:46 +00:00
Automerger Merge Worker 2dbdfa252e Indicate PiP animation type from Launcher to SysUI am: a1a91b0c50 am: 846b097b8e am: 1599d9f831
Change-Id: Ie12dfc41be474e0a36f6623efc42317d34b6e00a
2020-02-25 03:49:37 +00:00
Automerger Merge Worker b3e08f79cc Merge "Indicate PiP animation type from Launcher to SysUI am: a1a91b0c50 am: fcc8994dd2" into rvc-d1-dev-plus-aosp 2020-02-25 03:31:26 +00:00
Automerger Merge Worker 83ce34d50c Indicate PiP animation type from Launcher to SysUI am: a1a91b0c50 am: fcc8994dd2
Change-Id: I11709bc52c56b46308906323ab8816cb4ac2e119
2020-02-25 03:31:19 +00:00
Automerger Merge Worker 1599d9f831 Indicate PiP animation type from Launcher to SysUI am: a1a91b0c50 am: 846b097b8e
Change-Id: I1f9b2bc298cbfe91487c36aea508f479b730a68b
2020-02-25 03:31:16 +00:00
Automerger Merge Worker 0d44f24e47 Indicate PiP animation type from Launcher to SysUI am: a1a91b0c50 am: 846b097b8e
Change-Id: I82fd4e708b3ce34b7c24a9f578614b9b74450468
2020-02-25 03:31:09 +00:00
Automerger Merge Worker 846b097b8e Indicate PiP animation type from Launcher to SysUI am: a1a91b0c50
Change-Id: I11fb3e1bf20b3d4415d8e5a1df3c098200cff101
2020-02-25 03:21:25 +00:00
Automerger Merge Worker fcc8994dd2 Indicate PiP animation type from Launcher to SysUI am: a1a91b0c50
Change-Id: Ia784c5519f110afb29eada5eec89f162e8fbb433
2020-02-25 03:21:06 +00:00
vadimt 65ed9c3d9b Adding a failure investigator
Change-Id: Ie1c9820ecb7373a1f4428a24867c51332a84e65c
2020-02-24 19:10:50 -08:00
vadimt b79614cc93 Performing a check for a crashed Launcher process for each UI test 2020-02-25 02:28:32 +00:00
Tony Wickham 6382b39ff4 Add null check to sendCustomAccessibilityEvent()
ag/10273975 caused a regression where launcher crashes if RecentsView is
empty.

Change-Id: I1607627be0a9748fd552adc757296d7b6bbfd1e2
2020-02-24 17:44:38 -08:00
Tony Wickham e6981a606a Update mEndRect when closing ArrowPopup
Generally mEndRect is still correct from when we set it in
animateOpen(), but there are cases where it is no longer valid and
should be recomputed in animateClose(). For example, if you dismiss
notifications, the height of the popup changes between opening and
closing it.

Test: Long press an icon with a notification dot, dismiss all
notifications from the popup and then close the popup. The shadow
follows the outline of the popup, instead of extending well below it.

Change-Id: Ic5d6ad2807ea1ec8aff5e3d6ce8abaa11ce5d33c
2020-02-24 17:33:20 -08:00
Sunny Goyal 93c4de7413 Setting interpolator beforehand, instead of overriding it after the pending
animaiton is created

Change-Id: I7caec2eeb86084591fa627518d064b7ebb895d65
2020-02-24 16:45:11 -08:00
Amos Bianchi 20cc7a3b5b Update proguard flags.
Fully R8 optimized variants may crash with:
java.lang.AbstractMethodError exception.

Test: build, manual test on device.
Change-Id: I18a7b011ddd3536e3d33b991954a52e5fc5c7d56
2020-02-24 15:35:49 -08:00
Hongwei Wang a1a91b0c50 Indicate PiP animation type from Launcher to SysUI
Also, need callback from SysUI to Launcher once the pip animation is
started to keep back compatibility.

Bug: 146594635
Test: manually
Merged-In: I617a17fd5f6049d9f1d49f9f834623a2bb49f6ca
Change-Id: I617a17fd5f6049d9f1d49f9f834623a2bb49f6ca
2020-02-24 21:16:40 +00:00
Peter Kalauskas 7cd0e178af Toggle loading state based on config_lowResTaskSnapshotScale
Change high res loading state implementation to toggle on/off based on
config_lowResTaskSnapshotScale!=0 instead of ro.config.low_ram=true

Test: TaskSnapshotCacheTest
Test: TaskSnapshotControllerTest
Test: TaskSnapshotPersisterLoaderTest
Test: TaskSnapshotSurfaceTest
Bug: 148099851
Change-Id: I316e553a8a13fe38f1224c38f7aa717a0f628f57
2020-02-24 21:03:45 +00:00
Peter Kalauskas ae11790d31 Add config to enable snapshot preloading
Enable preloading if config_enableTaskSnapshotPreloading instead of
assuming it should be off for all low ram devices. This allows it to be
configured via an overlay.

Test: TaskSnapshotCacheTest
Test: TaskSnapshotControllerTest
Test: TaskSnapshotPersisterLoaderTest
Test: TaskSnapshotSurfaceTest
Bug: 148099851
Change-Id: I9e3320dcff5b710e110cc7199c41c5a004991592
2020-02-24 21:03:26 +00:00
Tracy Zhou 4365734017 Merge "Render user's actual workspace in ThemePicker preview (Part 3)" into ub-launcher3-master 2020-02-24 20:01:58 +00:00
Andy Wickham 6b7fbd22dd Merge "Makes all ArrowPopups AccessibilityTargets." into ub-launcher3-master 2020-02-24 18:49:12 +00:00
Sunny Goyal d2c56525bb Merge "Using LeastSquaresVelocityTrackerStrategy for calculating velocity when detecting motion pause events. This is the same logic used by the platform implementation VelocityTracker" into ub-launcher3-master 2020-02-24 18:30:13 +00:00
TreeHugger Robot 7fa947cb31 Merge "Fix NPE on app launch log" into ub-launcher3-master 2020-02-24 18:24:22 +00:00
Samuel Fufa 5a93eb3baf Fix NPE on app launch log
Bug: 149969889
Change-Id: I60fd283ac082fab1ebf6ea90568e054525c414cc
2020-02-21 18:52:30 -08:00
Sreyas Rangaraju bc50563915 Merge "OverviewActions: Creating parent view to house RecentsView and Overview Actions." into ub-launcher3-master 2020-02-22 01:11:47 +00:00
TreeHugger Robot 218f5276a3 Merge "Fixes incorrect FromFolderLabelState in clearcut log when updating folder label." into ub-launcher3-master 2020-02-22 00:55:55 +00:00
Tony Wickham 3310b76a27 Merge "Remove mSourceWindowClipInsetsForLiveTile" into ub-launcher3-master 2020-02-22 00:34:09 +00:00
thiruram 15d79a9b85 Fixes incorrect FromFolderLabelState in clearcut log when updating folder label.
Bug description: When folder label is updated from a suggested label to a custom label,
EditFolderLabelEvent log expected to have FromFolderLabelState = FROM_SUGGESTED.
Currently FromFolderLabelState is logged as FROM_CUSTOM in such scenarios.

Root cause: Folder label state is decided based on whether IME has entered into compose mode while editing.
This works fine for initial folder creation and also updated to non-empty label(to both custom or suggested).
But when folder is edited from suggested to empty label, its internal state changes from SUGGESTED to CUSTOM as expected.
Later when empty label is updated to suggested again, its internal state remains custom forever.

Fix: Instead of setting folder's internal state based on IME's compose mode, comparing actual folder label with suggestions
and set it to SUGGESTED if any suggestion matches else CUSTOM.

Change-Id: Ieea572ee93fd5567e3128c9bbcea3b670f0f01d9
2020-02-21 16:24:21 -08:00
Sreyas a241df66df OverviewActions: Creating parent view to house RecentsView and Overview Actions.
Creating RecentsViewHolder to be contain LauncherRecentsView in OverviewPanel so Overview Actions View can be created only once.

Change-Id: I111f88903d2ff80275cc2e07b761577260073c17
2020-02-21 16:14:51 -08:00
Tracy Zhou be13d109b7 Render user's actual workspace in ThemePicker preview (Part 3)
go/grid-migration-preview

With this change, we can see actual grid migration in wallpaper preview.

The approach here: we use a tmp table (favorites_preview) here specifically for this preview (to write off the migration results), and load from this tmp table workspace items if migration is necessary and successful. Otherwise, we load from the current workspace.

UPDATED: this change should be completely compatible with the new multi-db grid migration algorithm. Here is why
1. In LauncherPreviewRender#renderScreenShot, I added a check to decide which grid migration preview method we should call. Once v2 preview method is implemented, it should be integrated with other parts of this change perfectly (the reason will be mentioned below).
2. While we have multiple DBs, mOpenHelper in LauncherProvider always points to the current db we are using. Queries using CONTENT_URI is routed to whatever DB mOpenHelper points to, so it works perfectly to directly operate on CONTENT_URI even when we use multi-db underneath the hood.
3. With 1 and 2 mentioned, I believe in order for this preview change to support multi-db, we only need to implement the V2 grid migration algorithm. Because most of what we are doing in this change is wrapped in GridSizeMigrationTask, it's perfectly safeguarded.

Bug: 144052839
Change-Id: Ie6d6048d77326f96546c8a180a7cd8f15b47e4c4
2020-02-21 15:49:00 -08:00
Peter Kalauskas 5bb63c916e Toggle loading state based on config_lowResTaskSnapshotScale
Change high res loading state implementation to toggle on/off based on
config_lowResTaskSnapshotScale!=0 instead of ro.config.low_ram=true

Test: TaskSnapshotCacheTest
Test: TaskSnapshotControllerTest
Test: TaskSnapshotPersisterLoaderTest
Test: TaskSnapshotSurfaceTest
Bug: 148099851
Change-Id: I316e553a8a13fe38f1224c38f7aa717a0f628f57
2020-02-21 23:36:58 +00:00
Hyunyoung Song 6b029c30b1 Merge "Convert LauncherPluginLib to soong" into ub-launcher3-master 2020-02-21 23:36:29 +00:00
Peter Kalauskas 03c8f296cd Add config to enable snapshot preloading
Enable preloading if config_enableTaskSnapshotPreloading instead of
assuming it should be off for all low ram devices. This allows it to be
configured via an overlay.

Test: TaskSnapshotCacheTest
Test: TaskSnapshotControllerTest
Test: TaskSnapshotPersisterLoaderTest
Test: TaskSnapshotSurfaceTest
Bug: 148099851
Change-Id: I9e3320dcff5b710e110cc7199c41c5a004991592
2020-02-21 23:35:37 +00:00
Sunny Goyal a173193afa Using LeastSquaresVelocityTrackerStrategy for calculating velocity
when detecting motion pause events. This is the same logic used by
the platform implementation VelocityTracker

Bug: 139750033
Change-Id: I87aabd46e58a5caa1395be3a63fd38d0ee75e355
2020-02-21 15:28:06 -08:00
Hyunyoung Song 8605be3162 Convert LauncherPluginLib to soong
Bug: 148896221
Change-Id: I0c09ba2994cf2a8e230aebc51eb52a8acadf8686
2020-02-21 14:56:40 -08:00
Hongwei Wang a93c2dcd56 Indicate PiP animation type from Launcher to SysUI
Also, need callback from SysUI to Launcher once the pip animation is
started to keep back compatibility.

Bug: 146594635
Test: manually
Change-Id: I617a17fd5f6049d9f1d49f9f834623a2bb49f6ca
2020-02-21 14:04:16 -08:00