Searched refs:mLauncherApps (Results 1 – 7 of 7) sorted by relevance
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/ |
D | AppListFragment.java | 33 return mLauncherApps.getActivityList(null, user); in getActivities() 40 && mLauncherApps.hasShortcutHostPermission()) { in onBindAction2() 48 if (mLauncherApps.getShortcuts(mQuery, ai.getUser()).size() > 0) { in onBindAction2() 61 mLauncherApps.startMainActivity(ai.getComponentName(), ai.getUser(), null, null); in onLaunch()
|
D | ShortcutTemplateListFragment.java | 35 return mLauncherApps.getShortcutConfigActivityList(null, user); in getActivities() 40 final IntentSender is = mLauncherApps.getShortcutConfigActivityIntent(ai); in onLaunch() 56 final PinItemRequest req = mLauncherApps.getPinItemRequest(data); in onActivityResult()
|
D | ShortcutListFragment.java | 71 mLauncherApps = getActivity().getSystemService(LauncherApps.class); in onCreate() 76 if (!mLauncherApps.hasShortcutHostPermission()) { in onCreate() 104 for (ShortcutInfo si : mLauncherApps.getShortcuts(q, user)) { in togglePin() 112 mLauncherApps.pinShortcuts(packageName, pinned, selected.getUserHandle()); in togglePin() 120 mLauncherApps.startShortcut(si.getPackage(), si.getId(), null, null, in launch() 131 if (!mLauncherApps.hasShortcutHostPermission()) { in refreshList() 150 final int numShortcuts = mLauncherApps.getShortcuts(mQuery, user).size(); in refreshList() 165 list.addAll(mLauncherApps.getShortcuts(mQuery, user)); in refreshList()
|
D | PinShortcutConfirm.java | 32 protected LauncherApps mLauncherApps; field in PinShortcutConfirm 43 mLauncherApps = getSystemService(LauncherApps.class); in onCreate() 57 final Drawable icon = mLauncherApps.getShortcutIconDrawable(mShortcutInfo, 0); in onCreate()
|
D | MyBaseListFragment.java | 41 protected LauncherApps mLauncherApps; field in MyBaseListFragment 69 mLauncherApps = getActivity().getSystemService(LauncherApps.class); in onCreate() 70 mLauncherApps.registerCallback(mLauncherCallback); in onCreate() 95 mLauncherApps.unregisterCallback(mLauncherCallback); in onDestroy() 101 if (!mLauncherApps.hasShortcutHostPermission()) { in showPermissionWarningToastWhenNeeded()
|
D | BaseActivityListFragment.java | 98 mLauncherApps = mContext.getSystemService(LauncherApps.class); in AppAdapter()
|
/development/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/ |
D | ShortcutAdapter.java | 47 private LauncherApps mLauncherApps; field in ShortcutAdapter 55 mLauncherApps = mContext.getSystemService(LauncherApps.class); in ShortcutAdapter() 182 if (!mLauncherApps.hasShortcutHostPermission()) { in bindView() 186 image.setImageDrawable(mLauncherApps.getShortcutBadgedIconDrawable(si, in bindView()
|