OSDN Git Service

Launcher3 multi-profile support
authorKenny Guy <kennyguy@google.com>
Wed, 30 Apr 2014 02:02:21 +0000 (03:02 +0100)
committerKenny Guy <kennyguy@google.com>
Wed, 30 Apr 2014 22:43:00 +0000 (23:43 +0100)
commited13187a745866483139e2878037e1f8427ce567
treea60e4ab78d5365095fe90026df4dfa4e98e80d46
parent70c3d1da65fcdaf32b860a5582b211c1f0ae8718
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
28 files changed:
src/com/android/launcher3/AllAppsList.java
src/com/android/launcher3/AppInfo.java
src/com/android/launcher3/AppsCustomizePagedView.java
src/com/android/launcher3/DeleteDropTarget.java
src/com/android/launcher3/FolderInfo.java
src/com/android/launcher3/IconCache.java
src/com/android/launcher3/ItemInfo.java
src/com/android/launcher3/Launcher.java
src/com/android/launcher3/LauncherAppState.java
src/com/android/launcher3/LauncherAppWidgetInfo.java
src/com/android/launcher3/LauncherBackupHelper.java
src/com/android/launcher3/LauncherModel.java
src/com/android/launcher3/LauncherProvider.java
src/com/android/launcher3/LauncherSettings.java
src/com/android/launcher3/ShortcutInfo.java
src/com/android/launcher3/Workspace.java
src/com/android/launcher3/compat/LauncherActivityInfoCompat.java [new file with mode: 0644]
src/com/android/launcher3/compat/LauncherActivityInfoCompatV16.java [new file with mode: 0644]
src/com/android/launcher3/compat/LauncherActivityInfoCompatVL.java [new file with mode: 0644]
src/com/android/launcher3/compat/LauncherAppsCompat.java [new file with mode: 0644]
src/com/android/launcher3/compat/LauncherAppsCompatV16.java [new file with mode: 0644]
src/com/android/launcher3/compat/LauncherAppsCompatVL.java [new file with mode: 0644]
src/com/android/launcher3/compat/ReflectUtils.java [new file with mode: 0644]
src/com/android/launcher3/compat/UserHandleCompat.java [new file with mode: 0644]
src/com/android/launcher3/compat/UserManagerCompat.java [new file with mode: 0644]
src/com/android/launcher3/compat/UserManagerCompatV16.java [new file with mode: 0644]
src/com/android/launcher3/compat/UserManagerCompatV17.java [new file with mode: 0644]
src/com/android/launcher3/compat/UserManagerCompatVL.java [new file with mode: 0644]