History log of /packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e24cb63b811e2885a69e7df794e9972cdf5a57b9 11-Sep-2017 Hyunyoung Song <hyunyoungs@google.com> WallpaperManagerCompat should target correct platform
Also replace Utilities.isAtLeastO() to static final constant.
Bug: 65544683

Change-Id: I39fbea66939d72c31702748716c4e65b4f9bee6a
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
bf3366f0d9d5f3c99907cc3f74d41b3ec628dcd4 12-Jun-2017 Rajeev Kumar <rajekumar@google.com> Fix synchronization on a non-final field 'sInstanceLock' by making
it final.

Bug: 62466540
Change-Id: I28a1c53435d761089b2ee7742d31a0cb482b8afd
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
22ca9ec137ec8eb70026f90591ae01af7669a3b7 19-May-2017 Sunny Goyal <sunnygoyal@google.com> Removing various reflection calls with final APIs

Change-Id: Ibf48d6015d808f86bc79ccf64e3077eb5b6ccaff
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
a2d1540c0e6051e670cabdb48976ee6da53f2c2f 03-May-2017 Tony Wickham <twickham@google.com> resolve merge conflicts of 82eb1f0ea to ub-launcher3-dorval-polish

Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ic1f6ace04ec2c11206276df76ef7a20df545d604
e3c59256794448c67e01333a9f5036559b1bd502 03-May-2017 Tony <twickham@google.com> Use source bounds/activity options for App Info System Shortcut

Bug: 37923215
Change-Id: I6c3e64b7a98223ab26fde80c0a86dd169200065f
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
6c300c89ecbac04c557a4695b1597ed35150f420 05-Apr-2017 Tony Wickham <twickham@google.com> resolve merge conflicts of 128b7e59a to ub-launcher3-master

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I927373593dfb1b67b504a76b1ad013357b363a6e
86222d23e28a09a7a26e7a0d4b4830ded2efb384 30-Mar-2017 Tony Wickham <twickham@google.com> Add support for getting widgets/shortucts for a particular package/user

Bug: 34940468
Bug: 33553066
Change-Id: I5d0131df206c6a13d4227ad28c5b094bbf1343df
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
67a25e6ff1d7a3cdfbd73a46b792b3eb7abb9d0e 31-Mar-2017 Sunny Goyal <sunnygoyal@google.com> Fixing broken build

Change-Id: I9ec4dea773d1ca53522a216028a99fc3ed147f54
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
8a39b42cc84ee8e1e17861692e0e562c714f3d72 31-Mar-2017 Sunny Goyal <sunnygoyal@google.com> Delay the PinItemRequest#accept() call until the drop animation is finished.

This prevents the caller app from taking over the focus while animation
it running.

Change-Id: I51b6673c59e848c263727502dee90504ed3a2162
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
ad2e91a216edae0f25bce83a2b058c81953981af 01-Mar-2017 Sunny Goyal <sunnygoyal@google.com> Fixing SDCard and package enabled state checks in PackageManagerHeler

Bug: 32365540
Change-Id: Iaac3e08ce55457ebbfb3633514ebc8ade6d200c5
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
3ff9047221820a01c6510503466f8c78b43fdc6d 15-Feb-2017 Charles He <qiurui@google.com> Launcher3: fix app shortcuts for suspended apps

This CL fixes app shortcuts for suspended packages.

1) When DO/PO suspends an app, its pinned shortcuts are instantly grayed
out, but this is not persisted after the launcher restarts (e.g. device
reboot). We now enforce the launcher to check the suspended state when
loading the workspace, and gray out pinned shortcut icons accordingly.

2) When DO/PO suspends an app, its app shortcut popup is still
available. We now temporarily disable the popup when the app is
suspended, and persist the state across restarts.

Bug: 32365540
Test: manual, by following the steps in the bug above
Test: manual, by restarting the launcher package
Change-Id: I983d7c17fa198beca23b66459b50bd67b447bdd2
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
dec3a908bfa395095e80e4a532cff98612b624de 26-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Updating the preview generation logic so that it aligns better with
the drag source image

> Using common code for pending item drag (WidgetContainerView and PinItemDragListener)
> Adding a shortcut-circuit in Workspace when a pendingItem can create a shortcut
directly. Previously the multi-window drop was routing through onActivityResult which
was causing some state information to be lost.

Bug: 33584624
Change-Id: I0259870032185713caa9bff27092dbae6ce91199
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
782f0c9a896db58aeaa60d15f291831b8d7b4c93 19-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Adding support for new APIs in O related to configurable shortcuts

> Config activities can now return PinItemRequest which can be used to pin
deep shortcuts

Bug: 33584624
Change-Id: Ic0df436bd79e069615b9d60d24eb7594b824b2da
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
3e9be43b6ea75c8b82b57aa58508a0c3e8e1d721 06-Jan-2017 Sunny Goyal <sunnygoyal@google.com> No more LauncherActivityInfoCompat

Bug: 32745285
Change-Id: I00f13794d5dc0a2b1fe03ec74de36018f22eb386
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
a52ecb0390c85afb385371bb844bb496c59ddf87 17-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Removing all compatibility code below Lollipop

Bug: 32745285
Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
7c74e4ae641e76f73d74348e293c244a157f6585 16-Dec-2016 Sunny Goyal <sunnygoyal@google.com> No more UserHandleCompat

Bug: 32745285
Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
d3b87ef1963fb96177ca85bcd6a25879e27e419c 28-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Adding quiet mode support for shortcuts

> LauncherApps returns empty list when the user is locked. Not relying on
LauncherApps in this case
> When the user is locked, removing all dynamic shortcuts
> Loading shortcuts from DB when the user is locked
> Verifying the shortcuts again when the user is available

Bug: 30411561
Change-Id: Ib6eb372c5b009cadb86a8f6e781f3f3cbf787ceb
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
9994b2b171ab78d1d93e8a25086d6853f766e80f 23-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Making some shortcut manager calls protected by MR1 version check

Change-Id: Ifdfa95a58aa18a825c1838c61055928dbe0ea3be
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
bfbf7f9f4a0b300613f0ff27a4eb592d88c08325 19-May-2016 Tony Wickham <twickham@google.com> Add support for launcher shortcuts.

- This CL has no UI but provides the necessary backing for one.
- Adds new item type: ITEM_TYPE_DEEP_SHORTCUT, to distinguish from
ITEM_TYPE_SHORTCUT. We can reconsider these names.
- Adds ShortcutCache, using LruCache for up to 30 dynamic shortcuts
(pinned shortcuts are always cached in a HashMap).
- DeepShortcutManager queries for shortcuts and other things like
pin them. In a future CL it will use the cache, but for now it
simply makes an RPC for all queries.
- LauncherModel maintains counts for pinned shortcuts, pinning and
unpinning when counts reach 1 or 0, respectively.
- LauncherModel maintains a map of components to lists of shortcut ids,
which Launcher gets a copy of after it is changed in the background.
This will allow us to know how many shortcuts an app has immediately,
and query for details as the UI is animating.

Change-Id: Ic526f374dd10d72a261bae67f07f098fca8d8bca
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
d09c37052ef9a70d4dde53ece6619f04de5f97cb 07-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Removing dependency on getApplicationInfo method added in N

This method is goiing away. We don't need this method anyway
since LauncherActivityInfo already has the information

Change-Id: Ic6afa1df14958b894925d730e01a2e2d2a6fb98c
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
ac6e5d7956124ed807ace9aa92aae0b13d61bafd 04-Apr-2016 Rubin Xu <rubinxu@google.com> Listen on new broadcasts for profile changes.

The change is due to API review comments on the platform side.

Bug: 27532254
Change-Id: I44133fbb5c3ee13d0523a72b25d2e1c5d1eba6a0
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
ff05f4375dd47242d7e4864287e0d5af8ac8ba8f 22-Jan-2016 Kenny Guy <kennyguy@google.com> Respond to managed profile availabilty Intents.

Grey out applications when managed profile is
not available.

Change-Id: I9bb9442cd0b3d0d207062716bfd6b179e3ba8489
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
44cba696386b44f9115cad13ec9ecf67a0ac9119 21-Jan-2016 Kenny Guy <kennyguy@google.com> Grey out suspended applications.

Grey out application shortcuts and all apps entries
for packages that are suspended.

Bug: 22776761
Change-Id: I1b63da1816aca1de52b9f9bee62d1b162d0cdf4d
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
9fc953b94dbc6b99e6de08c9dcc80a0cb8e3e319 17-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Version code cleanup

> Renaming Lmp to Lollipop
> Lollipop_MR1 instead of directly using 22
> Using M APIs directly instead of reflection

Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
1a745e8f18e54aff152ff51743ae7595adde6927 03-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Keeping icons in disabled state when SD-card is unmounted

> changing shortcutInfo.isDisabled to be a flag based variable
> on received OnPackageUnavailable, icons are disabled from desktop
instead of being removed. Icons in all apps are removed

Bug: 15852084
Bug: 16238283
Change-Id: I126d23c709682a917d4bbb84de71032593dce8f9
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
d794a3f46521b972fa02826d379d1efa112793d2 16-Sep-2014 Kenny Guy <kennyguy@google.com> Update calls now we have an L API version.

Bug: 17543647
Change-Id: I92c652a4ced5a5e783b24e42f9da4d9dfe1118ba
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
cf5d24b21aaff1b6b524874f4609e0c7ebd48458 15-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Using ApplicationContext in static objects

Bug: 17507543
Change-Id: I1651b694acabaf62188dd4ba42739b64a60194c3
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
4da9efa5183c86966946d90f41be435cd1dcbaf4 26-Aug-2014 Kenny Guy <kennyguy@google.com> Updated calls for LauncherApps renaming.

Bug: 17008230
Change-Id: Id851d0b40756973be48c5ce370dd64c1dd6a3c1d
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
f07af7b77de0319355e228e8630824d924522d78 31-Jul-2014 Kenny Guy <kennyguy@google.com> Launch app details for correct profile.

Support showing app details for apps in other
profiles.

Bug: 16371359

Change-Id: I1cabcd9f74f2a6ea6c4202a7d58af3ff3b458fd2
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
e755d469d40b95e763a9dcb67d0e4f511d1948dd 22-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Implementing a package install progress listener for L

issue: 15835307

Change-Id: I71aaea087963f2e0e1206447190cbe23c174057d
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
c2bd8101b8e26b9ebb2c079ae6867229dad3f196 30-Jun-2014 Kenny Guy <kennyguy@google.com> Revert "Revert Cls stopping now-master running on googlefood"

This reverts commit 7bc272a11b701a32d2ed91277341c382cbd84aeb.

Conflicts:
src/com/android/launcher3/BubbleTextView.java

Change-Id: Id1fb2e1249e72658ce5477165c9bcacba9de2b04
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
7bc272a11b701a32d2ed91277341c382cbd84aeb 24-Jun-2014 Kenny Guy <kennyguy@google.com> Revert Cls stopping now-master running on googlefood

This reverts commits 01453e855fa87ee19f61223b2b1a6965071ee95a.
and 242bbe1b72e4978dde8a662d164cd186305e14a7.
"Add content description to bagded icons."
"Remove reflection now we are building against L"

Bug: 15833449
Change-Id: I81a5316f5619a9cd3b6ab9fd03b2ba96657b7f68
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
242bbe1b72e4978dde8a662d164cd186305e14a7 12-Jun-2014 Kenny Guy <kennyguy@google.com> Remove reflection now we are building against L

Remove reflection and update changed renamed L APIs
now that branch has L sdk.

Change-Id: I223c6528487110eb328e2e229bbcbefb701e0c20
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
6cc806d678c8a44478308119c087ac9adde73b66 02-May-2014 Amith Yamasani <yamasani@google.com> Watch for profile events and reload

Reload the workspace and all-apps list when a managed profile
is added or removed.

Bug: 14484845
Change-Id: I69210c22e568f2a561266ef2846ddf8f6d659070
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java
ed13187a745866483139e2878037e1f8427ce567 30-Apr-2014 Kenny Guy <kennyguy@google.com> Launcher3 multi-profile support

Use LauncherApps API and badging APIs instead of PackageManager.
With compatability layer that uses PackageManager pre L.

Adds support to show apps from current user and any managed profiles.

Background: Managed profiles are user sandboxes that are visible from
the primary user and can be launched as if they are a part of this user.
A launcher should now be capable of listing apps from this user as well
as related profiles of this user.

Launching of activities is now via the LauncherApps interface, to allow
for cross-profile app launching. Only activities with category LAUNCHER
can be added as a shortcut on the workspace for a managed profile.

Widgets and non-application shortcuts are only supported for the
current profile. Widgets from the managed profile are not available.

Change-Id: I5f396b1bf7f91ad91a5710ea4a0fd14573972eb9
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompat.java