Commit Graph

27649 Commits

Author SHA1 Message Date
Alex Spradlin dfb73707c4 [automerger skipped] Revert "Set FLAG_IMMUTABLE flag on FirstScreenBroadcast PendingIntent. am: 6a7a7f6bad am: 3c3e3e0737 am: 5785789dc3" am: 1aa95b8400 -s ours
am skip reason: Merged-In I8d8e38a1aa6bdf13879d460cfa84cabe6c6bb1f2 with SHA-1 6a7a7f6bad is already in history. Merged-In was found from reverted change.

Reverted change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14923132

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14920673

Change-Id: I0b8bdf6cc00750811e041bcc864660fa2fa4ab8f
2021-06-09 19:58:39 +00:00
Jon Miranda d997f9957d Set FLAG_IMMUTABLE flag on FirstScreenBroadcast PendingIntent. am: 6a7a7f6bad am: 3c3e3e0737 am: 5785789dc3 am: 1d41f93c37
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14651127

Change-Id: I0b07eb2d2a7838d35f3b70e8059daa3d483bc267
2021-06-09 19:58:34 +00:00
Alex Spradlin 1aa95b8400 Revert "Set FLAG_IMMUTABLE flag on FirstScreenBroadcast PendingIntent. am: 6a7a7f6bad am: 3c3e3e0737 am: 5785789dc3"
This reverts commit 1d41f93c37.

Reason for revert: Accidental submission

Change-Id: I3adaefa202ccbd027083a8fe1b5df349172de9a6
2021-06-09 19:44:31 +00:00
Jon Miranda 1d41f93c37 Set FLAG_IMMUTABLE flag on FirstScreenBroadcast PendingIntent. am: 6a7a7f6bad am: 3c3e3e0737 am: 5785789dc3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14651127

Change-Id: I212eb6d6b35459087fe894fe057d6a4a4901f674
2021-06-09 19:36:09 +00:00
Jon Miranda 5785789dc3 Set FLAG_IMMUTABLE flag on FirstScreenBroadcast PendingIntent. am: 6a7a7f6bad am: 3c3e3e0737
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14651127

Change-Id: I309d1c1671abc7b2a035e69606d14e1f90c17f71
2021-06-09 18:43:10 +00:00
Jon Miranda 3c3e3e0737 Set FLAG_IMMUTABLE flag on FirstScreenBroadcast PendingIntent. am: 6a7a7f6bad
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14651127

Change-Id: I6416a7a9e9639a6881d54314a26fafa2c1ed4cfa
2021-06-09 17:57:36 +00:00
Jon Miranda 6a7a7f6bad Set FLAG_IMMUTABLE flag on FirstScreenBroadcast PendingIntent.
Bug: 179289753
Bug: 183927137
Test: restore phone and ensure broadcast is sent
Change-Id: I8d8e38a1aa6bdf13879d460cfa84cabe6c6bb1f2
(cherry picked from commit b62fba0d01)
Merged-In: I8d8e38a1aa6bdf13879d460cfa84cabe6c6bb1f2
2021-05-25 02:48:33 +00:00
Alex Johnston 18217e7f94 Block recent work profile apps content capture am: 8786016e85
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13989187

Change-Id: I0e39d019e358dd8e0016927a9c9b50717cf6eb93
2021-04-07 17:00:40 +00:00
Alex Johnston 8786016e85 Block recent work profile apps content capture
Stop data exposure of work profile by blocking
content capture of recents apps when the work
profile is locked.

Manual testing steps
* Set up work profile
* Set personal and work pattern
* Open work app, enter work pattern and
  verify content capture is possible
* Lock device
* Go to Recents and select already opened
  work app. Verify content capture is not
  possible until work pattern is entered.

Bug: 168802517
Test: manual testing
Change-Id: I3e6ba1d8645335785e8e26cdc895ea9c0017a0fd
Merged-In: I3e6ba1d8645335785e8e26cdc895ea9c0017a0fd
2021-03-29 18:12:00 +00:00
Ice Chang 602da1840d [automerger skipped] Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-dev am: 57874e6b39 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12793279

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I34277e6b1a967cef0d29e9b3137d38f61fae8c42
2021-01-06 05:19:51 +00:00
Ice Chang 57874e6b39 Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-dev 2021-01-06 04:59:03 +00:00
icechang a824fea099 [DO NOT MERGE ANYWHERE] Add swipes left method in Background.java
Bug: 153276032
Test: TF_GLOBAL_CONFIG=/google/src/cloud/<ldap>/<workspace>/google3/wireless/android/test_tools/forrest/configs/local-host-config.xml \
pts-tradefed run commandAndExit cuj/<testname> \
--primary-abi-only \
--log-level verbose --log-level-display verbose \
--wifi-network GoogleGuest

Change-Id: Ib1cbc609f47a547f173e8170f00af9e8bdfa77bb
2020-11-02 07:17:35 +00:00
TreeHugger Robot 4afd6dcc03 Merge "Calculate all apps cell height based on actual sizes." into rvc-dev am: 8127f13231
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12152234

Change-Id: I431b916ab8eaca68908a990701dea49e31b4cf72
2020-07-15 23:47:29 +00:00
TreeHugger Robot 8127f13231 Merge "Calculate all apps cell height based on actual sizes." into rvc-dev 2020-07-15 23:32:58 +00:00
Jon Miranda f06e1b8b93 Calculate all apps cell height based on actual sizes.
This ensures that the cell contents always fit.

Bug: 160716074
Change-Id: I3d85adec3e7e3652fe4a258bd659382a3e696211
Merged-In: I3d85adec3e7e3652fe4a258bd659382a3e696211
(cherry picked from commit 3535944395)
2020-07-15 20:43:28 +00:00
Sunny Goyal ae9c7a6763 Fixing swiping up on home interrupting animation am: d481c5c58c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12152002

Change-Id: Ic2d874736c23106dc7b0fb5fd7d0f01e0cf693f7
2020-07-15 19:56:40 +00:00
Sunny Goyal d481c5c58c Fixing swiping up on home interrupting animation
Bug: 161180005
Change-Id: Ida59b87b2fb5905d98b0090630a6ce32fc9c36c8
Merged-In: Ida59b87b2fb5905d98b0090630a6ce32fc9c36c8
(cherry picked from commit 93188d61da)
2020-07-15 07:11:30 +00:00
Sunny Goyal f86ca319c1 Preventing disambiguation screen when swiping up am: f130c29882
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12141303

Change-Id: I2431fadcc0365cb60e8b2b106b5488654377f725
2020-07-13 21:38:01 +00:00
Sunny Goyal f130c29882 Preventing disambiguation screen when swiping up
Bug: 161052537
Change-Id: Ibeeba0841963dc5eb1b5a09847cafc26eb6e4adc
2020-07-13 19:03:56 +00:00
Sunny Goyal e7975caf82 [automerger skipped] Import translations. DO NOT MERGE am: e9bf882158 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12130183

Change-Id: Id9b8799d475f27034ec04ef247bcf072b0c879a5
2020-07-11 04:54:03 +00:00
Sunny Goyal e9bf882158 Import translations. DO NOT MERGE
Force snapping translations from unbundled branch
Bug: 159176821

Test: N/A
Change-Id: I2406edf7eef6aa683f99b2b5f897d16b8968a28d
2020-07-10 12:07:45 -07:00
TreeHugger Robot c3f0dedaa4 Merge "Persist prediction cache on every update" into rvc-dev am: 7f1f8030db
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12077951

Change-Id: I0c8e2736b9c4b60e2d08e15a09a9ac897915a1c9
2020-07-08 18:46:25 +00:00
TreeHugger Robot 7f1f8030db Merge "Persist prediction cache on every update" into rvc-dev 2020-07-08 18:35:26 +00:00
Sunny Goyal 109825547f Fixing recents orientation (when home rotation is allowed) during swipe-up am: 52f2392405
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12102312

Change-Id: Ib57a41296b92d13eaa9b43f03db9eb37b11d17ad
2020-07-08 05:11:49 +00:00
Sunny Goyal 52f2392405 Fixing recents orientation (when home rotation is allowed) during swipe-up
Bug: 158781568
Bug: 160149607
Change-Id: I27be09febcdb6f19687469db34b002ce682aa0cb
Merged-In: I27be09febcdb6f19687469db34b002ce682aa0cb
(cherry picked from commit 141c231d2f)
2020-07-08 00:24:29 +00:00
Sunny Goyal f16456f686 Persist prediction cache on every update
Test: Manual
Bug: 160058750
Change-Id: Icb0b7322b7f9754d3f1c3012e1c98a760f83c787
2020-07-07 18:22:37 +00:00
Greg Kaiser 3797bf8db6 Go Launcher: Fix icon placement retention am: 8f490e21c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12094432

Change-Id: I9268664a2300171bc43f87cae223d6d6c5a81e46
2020-07-07 16:45:34 +00:00
Greg Kaiser 8f490e21c9 Go Launcher: Fix icon placement retention
We need dbFile set when MULTI_DB_GRID_MIRATION_ALGO is in
use.  This was set for other launchers, but not the Go launcher.

Bug: 157557047
Test: Built, flashed, moved icons on home screen, rebooted, and confirmed icons retained their position.
Change-Id: Icfcb56e00a8ac2f74e5f7a1957fd46cee5cb8b5b
2020-07-07 04:58:57 +00:00
Thiru Ramasamy 5a695b5b5a Merge "Fixes NPE with system shortcuts." into rvc-dev am: 6f5d4bb8ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12035575

Change-Id: I75738a78334c20f7e1bc167ed269ca1ee121f7d9
2020-06-29 23:52:09 +00:00
Thiru Ramasamy 6f5d4bb8ab Merge "Fixes NPE with system shortcuts." into rvc-dev 2020-06-29 23:35:59 +00:00
Zak Cohen 9fd2aa3b10 Thumbnail Cache - check canceled status on the right thread. am: 19797b419b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12029198

Change-Id: Icad59a9d583131d57cc69dbe7c72ebb0364649c9
2020-06-29 22:22:39 +00:00
thiruram 43bf883841 Fixes NPE with system shortcuts.
Bug: 160109140
Change-Id: I35c00fc1792fcf11fc61e1876f9184bd5fb309ce
(cherry picked from commit 53925ff9c6)
2020-06-29 19:44:28 +00:00
Zak Cohen 19797b419b Thumbnail Cache - check canceled status on the right thread.
The cache was checking the canceled status on the background
thread, but the cancel call was being made on the main thread.
This was leading to canceled requests still delivering this thumbnail
in some cases.

Bug: 159840851
Test: local build and non-repo of bug
Change-Id: I9a3556f6570eee1db39ebec202c115d58010d7f8
2020-06-29 04:11:04 +00:00
TreeHugger Robot e55acad812 Merge "During accessible drag, hover events were not properly getting dispatched to the DragAndDropAccessibilityDelegate" into rvc-dev am: 0538863c58
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12010483

Change-Id: Id0c50d7e67452dcee46a43f8c6656f0b7ae54947
2020-06-26 22:14:49 +00:00
TreeHugger Robot 0538863c58 Merge "During accessible drag, hover events were not properly getting dispatched to the DragAndDropAccessibilityDelegate" into rvc-dev 2020-06-26 21:59:15 +00:00
TreeHugger Robot fdee930dbf Merge "Add NPE check for prediction controller" into rvc-dev am: f8e12b78bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12001481

Change-Id: I3ef055351d959da2c35474929ad0a7d946ca52f7
2020-06-26 19:54:10 +00:00
TreeHugger Robot f8e12b78bf Merge "Add NPE check for prediction controller" into rvc-dev 2020-06-26 19:39:34 +00:00
thiruram c629ed24f0 Fixes missing folder label after launcher restarts. am: e148652075
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12003751

Change-Id: I0220d973bcbdcaef7354d43a4454ce87952b32c1
2020-06-26 18:29:23 +00:00
Adam Cohen 9e3aebd8dd During accessible drag, hover events were not properly getting dispatched to the DragAndDropAccessibilityDelegate
=> regressed in ag/10634216 which attemped to use onHoverListener
=> the problem is that onHoverListener is only triggered when the event is passed to the CellLayout, however, as with all dispatching, these events are handled depth first, and so in cases where a child handled the event, it would never bubble back up to the parent.
=> instead we have to continue to override dispatchHover event to always give presecedence to the delegate when it exists

Bug: 155956518

Change-Id: Ic3ecf1b422c1821456328035a66a2fc1277e6746
(cherry picked from commit 6e7c37a205)
2020-06-26 17:15:03 +00:00
thiruram e148652075 Fixes missing folder label after launcher restarts.
Rootcause: FolderInfo was persisted into DB only when folder options are updated. Hence when folder was created (Folder option remains suggested) its title was not persisted into DB.

Fix: Persists folderInfo into DB always whenever title is updated

Bug: 159904890
Change-Id: If0d20b0d7fa6966dd7bb40a2c07bcb22bd0893e0
(cherry picked from commit 6ab4da8aa0)
2020-06-26 16:30:31 +00:00
Tracy Zhou 217b39c7d7 Do preview grid migration in a worker thread am: 6b79a3767d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12002728

Change-Id: I8736505220ced22211f821c54a3c4360166df7c5
2020-06-26 07:48:04 +00:00
Tracy Zhou 6b79a3767d Do preview grid migration in a worker thread
Also remove USE_SURFACE_VIEW_FOR_PREVIEW flag

Fixes: 159755324
Test: manual
Change-Id: I6517c34911e217a69063226b01e4583194902f9c
(cherry picked from commit 633a4bdf57)
2020-06-25 21:05:04 +00:00
Samuel Fufa 0036b2b67a Add NPE check for prediction controller
Bug: 159835714
Test: Manual
Change-Id: I9cc03f6491f4e14462be6c01edf3ed4ca1d82136
2020-06-25 20:10:01 +00:00
TreeHugger Robot 670c17c48f Merge "Pass isLikelyToStartNewTask to onGestureStarted()" into rvc-dev am: ccf588d36b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11994586

Change-Id: Ic189d580a0b86481eb002eb0c1d2c8f8668f87ba
2020-06-25 16:49:42 +00:00
TreeHugger Robot ccf588d36b Merge "Pass isLikelyToStartNewTask to onGestureStarted()" into rvc-dev 2020-06-25 16:38:47 +00:00
Andy Wickham fafff26524 Updates Assistant gesture regions when no longer tracking multiple. am: d2731957ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11992046

Change-Id: Idbc9f144081d65d62665a91194252efb046d98c2
2020-06-25 02:39:46 +00:00
Tony Wickham 9e84745e4b Pass isLikelyToStartNewTask to onGestureStarted()
This ensures we immediately setRecentsAttachedToAppWindow(). As
mentioned in the bug, there was an edge case where we would animate
the attached state if the first move event passed the touch slop,
causing the adjacent task view to lag behind during the gesture.

Fixes: 159742520
Change-Id: Ie47bb84fdd3dbd69e3b74ca504d487fb9aedb551
(cherry picked from commit c6a56ef7a2)
2020-06-25 02:11:04 +00:00
Andy Wickham d2731957ea Updates Assistant gesture regions when no longer tracking multiple.
This should prevent states where Assistant triggers from
the vertical-center of the screen in portrait (see bug).

Also fleshes out OrientationTouchTransformerTests and
adds some new ones that fail without this change:
 - enableMultipleRegions_assistantTriggersInMostRecent
 - enableMultipleRegions_assistantTriggersInCurrentOrientationAfterDisable

Fixes: 158686674
Change-Id: I6d045a485f62e4010e9e3d00805a50fdd953a2fc
(cherry picked from commit 4b531b972d)
2020-06-24 22:32:14 +00:00
TreeHugger Robot 975d792bf7 Merge "Fixing NPE befre ActionsView first initialized." into rvc-dev am: ca493d1426
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11978215

Change-Id: I3683422e2b0be0dd3763607d9b827ca42ac54929
2020-06-24 07:10:29 +00:00
TreeHugger Robot ca493d1426 Merge "Fixing NPE befre ActionsView first initialized." into rvc-dev 2020-06-24 06:52:16 +00:00