Commit Graph

10334 Commits

Author SHA1 Message Date
Hyunyoung Song 8821ca9a6a WidgetTray performance improvement (less sorting): Part 1
- No longer return sorted list from the package manager since, the only
time the widget list requires to be sorted is when recycler view renders
them.
- Made getWidgetsAndShortcuts private to guarantee that widgets are
being loaded in the worker thread.

Change-Id: I2c35973c1226e831514380dd38fc2f88b1b91d02
2015-05-04 16:28:20 -07:00
Winson Chung cd99cd3ed6 Launcher-side changes to support prediction bar.
Change-Id: Ib9974ad8888ad87137c774f9f531fae9d56b899a
2015-05-04 14:45:54 -07:00
Sunny Goyal 3290ec4cc2 Preventing launcher crash because of invalid install shortcut intent
Change-Id: Ibede31c8f018b17da5f272aa505a31f40a1b76f3
2015-05-04 13:54:25 -07:00
Sunny Goyal 756a28aeec Adding workprofile shortcuts after the loader has completed
Change-Id: Id466d8e164feeac427d969d6bc0ed3ca7a218ac4
2015-05-04 10:52:26 -07:00
Sunny Goyal 0be752ca6b Merge "Handling managed profile creation in the model as the activity can get killed in the background." into ub-launcher3-burnaby 2015-05-02 00:08:50 +00:00
Hyunyoung Song fe46c29ca3 Merge "Set preloading for the WidgetTray recycler view. b/20339302" into ub-launcher3-burnaby 2015-05-01 21:24:20 +00:00
Hyunyoung Song e809332032 Set preloading for the WidgetTray recycler view.
b/20339302

Introduced a constant that we can use to tweak how much extra screen
space worth of widgets are preloaded.

Change-Id: I47f0fec134b4e268140482694a1903cf902731c6
2015-05-01 14:21:57 -07:00
Sunny Goyal 957c13f032 Handling managed profile creation in the model as the activity
can get killed in the background.

Change-Id: I95f62cf268fe642c9a2bb4975eb92bf8e12d23a9
2015-05-01 13:02:20 -07:00
Sunny Goyal 65832b6267 Merge "Updating fling to delete anim" into ub-launcher3-burnaby 2015-05-01 19:56:24 +00:00
Sunny Goyal c45d9247eb Merge "Various managed profile fixes" into ub-launcher3-burnaby 2015-05-01 19:53:51 +00:00
Sunny Goyal dfde999ccd Various managed profile fixes
> When matching existing shortcut, match the uri as intent doesn't implement equals
 > Fixing user matching when searching for apps in all-apps

Bug: 20749743
Change-Id: I14f3e2134e774727176e865d74108ef79de874d6
2015-05-01 12:32:31 -07:00
Sunny Goyal 31abc291de Clearing drag state after the close animation is complete
Bug: 19350802
Change-Id: I048dfa2743692c6c7d56dcacab900ec2d17504ed
2015-05-01 10:43:25 -07:00
Sunny Goyal ddec73471e Updating fling to delete anim
Change-Id: I1c63e88b3e605113ea66afca9dcfbc30de1d4c8e
2015-04-30 16:02:36 -07:00
Hyunyoung Song 111c83579a Removes code that is incompatible with google3, Velvet build rules.
Change-Id: Ibce31b52f5ffc4a03bdd48c575521c774f17a353
2015-04-30 15:43:26 -07:00
Sunny Goyal 9aaef938c3 Removing debug log
Change-Id: Ifb6adc0826d744f2bbc654c37c2470754f364a2b
2015-04-30 10:32:25 -07:00
Sunny Goyal 9ae77771d7 Adding accessibility action to move item out of a folder
Change-Id: If67e3472793d6e0913adfbc9d78f64de7f751664
2015-04-29 18:15:36 -07:00
Sunny Goyal 65d076b2ff Merge "Enabling accessibility drag and drop in folder" into ub-launcher3-burnaby 2015-04-30 00:43:55 +00:00
Sunny Goyal a911672f45 Simplifying add to workspace by not going through the worker thread
Change-Id: I3260786bee257aea93ade49e6fa18008232addbe
2015-04-29 14:58:17 -07:00
Sunny Goyal 9b03205432 Merge "Enabling folder paged view to scroll itself with accessibility focus traversal" into ub-launcher3-burnaby 2015-04-29 18:44:20 +00:00
Sunny Goyal 29a627ed3a Merge "Animating dragview color change when dragging over ButtonDropTarget" into ub-launcher3-burnaby 2015-04-29 18:42:10 +00:00
Sunny Goyal e2f7268df9 Merge "Removing obsolete resources" into ub-launcher3-burnaby 2015-04-29 18:41:36 +00:00
Sunny Goyal fe0d1f2458 Animating dragview color change when dragging over ButtonDropTarget
Change-Id: I642438be681769812302dba0b6deca38f89f7a16
2015-04-29 11:25:16 -07:00
Sunny Goyal ca5719780b Merge "Updating drop target assets" into ub-launcher3-burnaby 2015-04-29 18:20:25 +00:00
Sunny Goyal c525d80dcd Removing obsolete resources
Change-Id: I9a8d3d23e772a3ffc161ac97a5f08808aab79d5b
2015-04-29 11:18:27 -07:00
Sunny Goyal 3a2698b308 Updating drop target assets
Change-Id: I33f7dc30b10a617ae4784f067491ab01b27b7733
2015-04-28 21:38:56 -07:00
Sunny Goyal db184fdc7b Enabling folder paged view to scroll itself with accessibility focus traversal
Change-Id: I9095d5bf2de8e2053e0aaa27fb385b158e493964
2015-04-28 20:43:07 -07:00
Sunny Goyal 73a22a58ce Using utility method for serializing bitmap
Change-Id: I066f40cf867326b0a116351f00b19350b4c26912
2015-04-28 16:51:29 -07:00
Sunny Goyal e9b651eef1 Enabling accessibility drag and drop in folder
> Moving DragAndDropAccessibilityDelegate to a separate class
> Using getFocusedVirtualView() instead of using DownX and downY
> Updating various accessibility strings

Bug: 19776741

Change-Id: I85c2551d4d6172c30702e68f41b114bb999655b6
2015-04-28 16:06:46 -07:00
Hyunyoung Song 559d90d0da WidgetPreviewLoader concurrency issue / Caching improvement
1) Concurrency issue: unused bitmap was not properly synchronized
which caused concurrency issue. Hence, leading current widget tray
implementation to not use it. (a.k.a. cancel(false)).
Issue fixed and now using the unused bitmap pool.

2) Caching improvement: LoadedBitmap cache was a legacy support system
for the old widget tray implementation. On our latest implementation,
cache and recycled view is completely being managed by the recycler view.
Hence removed.

Change-Id: I843e6a286b676f283172f2c1ef5cbeed0a9fb17f
2015-04-28 15:06:45 -07:00
Hyunyoung Song 341220b954 Merge "Widget tray alignment according to UX spec - Fixing an issue where widget preview is not loaded do to faulty canceling of loading async task when view is detached from the window." into ub-launcher3-burnaby 2015-04-28 00:13:27 +00:00
Hyunyoung Song f17a1c9ad9 Widget tray alignment according to UX spec
- Fixing an issue where widget preview is not loaded do to faulty
canceling of loading async task when view is detached from the window.

b/20338334

Change-Id: I1e3bd6b6cdafda8d1e0a7a0e87c8089100c341a7
2015-04-27 17:01:32 -07:00
Sunny Goyal d23cfce087 Merge "Making QSB alingment match with that of recents" into ub-launcher3-burnaby 2015-04-27 23:48:21 +00:00
Sunny Goyal 8167dc2dcf Goodbye folder sorting
> Removing all traces of folder sorting

Change-Id: Id77a7745564c869f5c5c1b3a560bf606fe08b107
2015-04-27 14:02:06 -07:00
Sunny Goyal f782fb5258 Merge "Removing some unused method params from CellLayout" into ub-launcher3-burnaby 2015-04-25 00:23:47 +00:00
Sunny Goyal f7a29e83f0 Removing some unused method params from CellLayout
> Replacing various distance calculations with Math.hypot
> Moving findVacantCell to Utilities

Change-Id: I0cb194b603e52b3bb2b29a095bb4da2bb408ab13
2015-04-24 15:28:20 -07:00
Adam Cohen d47d90224a Merge "Add override method to fix building against master support lib." into ub-launcher3-burnaby 2015-04-24 21:28:07 +00:00
Winson Chung ba17ad75f0 Add override method to fix building against master support lib. 2015-04-24 13:59:17 -07:00
Hyunyoung Song f196394dee Merge "Add drop animation / Toast to widgettray" into ub-launcher3-burnaby 2015-04-24 19:48:52 +00:00
Sunny Goyal e2df0620c1 Adding LongArrayMap as a replacement for HashMap<Long, E>
Change-Id: I4710e6db69abcdbd897a8401fc8b980c09e2ffef
2015-04-24 12:35:29 -07:00
Sunny Goyal 1a70cef988 Accessibility fixes
> Enabling top bar buttons in accessibility drag-drop
> Unifying logic to show delete/uninstall/app-info targets
> Announcing cell loction as 1-index instead of 0-index

Change-Id: Ibc7801f77e938b2646f0655462cbe9b7f781818b
2015-04-24 10:47:56 -07:00
Sunny Goyal ad4ba81384 Merge "Clearing all pending runnables when Launcher is destroyed." into ub-launcher3-burnaby 2015-04-24 17:31:28 +00:00
Sunny Goyal b8c663c492 Moving item to its old position in folder if DnD is cancelled
Change-Id: I6362ef23b346409e8517a03e63dee974294a3a18
2015-04-23 16:32:10 -07:00
Sunny Goyal d33860f2cc Clearing all pending runnables when Launcher is destroyed.
Change-Id: I00596c11116b5579c1f013b268b6c0b5239f0aa7
2015-04-23 16:18:40 -07:00
Hyunyoung Song b99ff3e832 Add drop animation / Toast to widgettray
- show instruction toast on clicking the widget
- Add animation when widget drops on the workspace.
Added WidgetHostViewLoader to handle short press and assign widget
host view to enable animation

b/19897708

Change-Id: Iec36d72cb21bf09343d0beeb31a09bf8b0cb5e0d
2015-04-23 15:17:50 -07:00
Sunny Goyal d9cc780fad Making QSB alingment match with that of recents
Change-Id: I6be59c721cbd163641013ca6c5e1776cf2162a0d
2015-04-23 14:48:04 -07:00
Sunny Goyal 756adbc3e4 Fixing missing updates in package install sessions
> Ensure icon cache never returns null icon
> Enabling install shortuct receiver only after workspace has finished binding
> Making all the model changes for package installs on worker thread and only
posting the updaes on the UI
> Making shortcut exists check on the loaded items and not on the DB
> Explicitely using worker thread for PckageInstallListener
> Removing backward compatibility support from PackageInstallerCompat

Change-Id: I9592771b9670c1c1c84c8208cae8dafa7b393e65
2015-04-22 10:08:14 -07:00
Sunny Goyal 7372fc659e Merge "Using a different userManager class as getUserForSerialNumber gives a valid userHandle for deleted user." into ub-launcher3-burnaby 2015-04-22 01:44:56 +00:00
Winson Chung 9fcedccf5e Merge "Refactoring to single path for overview mode." into ub-launcher3-burnaby 2015-04-21 23:52:08 +00:00
Hyunyoung Song d4af148444 Remove duplicate calls to getSortedWidgetsAndShortcuts
Note: this is a manual CP of the CL that was submitted to ub-launcher3-almonte

b/19904873

Change-Id: I2e56bc0c7524caa2ef3c5fb00f35cb032cd1860b
2015-04-21 16:07:30 -07:00
Winson Chung dc61c4d414 Refactoring to single path for overview mode.
Change-Id: I590a813c6f031342d75c3a6c3e9c9afda1808f2e
2015-04-21 15:54:22 -07:00