OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mLauncherApps
(Results
1 - 10
of
10
) sorted by null
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
AppListFragment.java
33
return
mLauncherApps
.getActivityList(null, user);
40
&&
mLauncherApps
.hasShortcutHostPermission()) {
48
if (
mLauncherApps
.getShortcuts(mQuery, ai.getUser()).size() > 0) {
61
mLauncherApps
.startMainActivity(ai.getComponentName(), ai.getUser(), null, null);
ShortcutTemplateListFragment.java
35
return
mLauncherApps
.getShortcutConfigActivityList(null, user);
40
final IntentSender is =
mLauncherApps
.getShortcutConfigActivityIntent(ai);
56
final PinItemRequest req =
mLauncherApps
.getPinItemRequest(data);
PinShortcutConfirm.java
32
protected LauncherApps
mLauncherApps
;
43
mLauncherApps
= getSystemService(LauncherApps.class);
57
final Drawable icon =
mLauncherApps
.getShortcutIconDrawable(mShortcutInfo, 0);
ShortcutListFragment.java
71
mLauncherApps
= getActivity().getSystemService(LauncherApps.class);
76
if (!
mLauncherApps
.hasShortcutHostPermission()) {
104
for (ShortcutInfo si :
mLauncherApps
.getShortcuts(q, user)) {
112
mLauncherApps
.pinShortcuts(packageName, pinned, selected.getUserHandle());
120
mLauncherApps
.startShortcut(si.getPackage(), si.getId(), null, null,
131
if (!
mLauncherApps
.hasShortcutHostPermission()) {
150
final int numShortcuts =
mLauncherApps
.getShortcuts(mQuery, user).size();
165
list.addAll(
mLauncherApps
.getShortcuts(mQuery, user));
MyBaseListFragment.java
41
protected LauncherApps
mLauncherApps
;
69
mLauncherApps
= getActivity().getSystemService(LauncherApps.class);
70
mLauncherApps
.registerCallback(mLauncherCallback);
95
mLauncherApps
.unregisterCallback(mLauncherCallback);
101
if (!
mLauncherApps
.hasShortcutHostPermission()) {
BaseActivityListFragment.java
98
mLauncherApps
= mContext.getSystemService(LauncherApps.class);
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/
LauncherAppsTests.java
81
private LauncherApps
mLauncherApps
;
97
mLauncherApps
= (LauncherApps) mInstrumentation.getContext().getSystemService(
112
expectSecurityException(() ->
mLauncherApps
.getActivityList(null, mUser),
118
mLauncherApps
.getActivityList(null, mUser);
132
mLauncherApps
.getApplicationInfo(SIMPLE_APP_PACKAGE, /* flags= */ 0, mUser);
138
assertTrue(
mLauncherApps
.getActivityList(null, mUser).isEmpty());
141
() ->
mLauncherApps
.getApplicationInfo(SIMPLE_APP_PACKAGE, /* flags= */ 0, mUser),
143
assertFalse(
mLauncherApps
.isPackageEnabled(SIMPLE_APP_PACKAGE, mUser));
146
assertNull(
mLauncherApps
.resolveActivity(intent, mUser));
150
final List<UserHandle> profiles =
mLauncherApps
.getProfiles()
[
all
...]
/cts/tests/tests/content/src/android/content/pm/cts/
LauncherAppsTest.java
53
private LauncherApps
mLauncherApps
;
70
mLauncherApps
= (LauncherApps) mContext.getSystemService(Context.LAUNCHER_APPS_SERVICE);
83
final LauncherApps.AppUsageLimit limit =
mLauncherApps
.getAppUsageLimit(
93
final LauncherApps.AppUsageLimit limit =
mLauncherApps
.getAppUsageLimit(
104
final LauncherApps.AppUsageLimit limit =
mLauncherApps
.getAppUsageLimit(
114
final LauncherApps.AppUsageLimit limit =
mLauncherApps
.getAppUsageLimit(
125
final LauncherApps.AppUsageLimit limit =
mLauncherApps
.getAppUsageLimit(
137
final LauncherApps.AppUsageLimit limit =
mLauncherApps
.getAppUsageLimit(
152
final LauncherApps.AppUsageLimit limit =
mLauncherApps
.getAppUsageLimit(
/cts/hostsidetests/shortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/
ShortcutManagerDeviceTestBase.java
45
private LauncherApps
mLauncherApps
;
63
mLauncherApps
= getContext().getSystemService(LauncherApps.class);
83
return
mLauncherApps
;
/development/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/
ShortcutAdapter.java
47
private LauncherApps
mLauncherApps
;
55
mLauncherApps
= mContext.getSystemService(LauncherApps.class);
182
if (!
mLauncherApps
.hasShortcutHostPermission()) {
186
image.setImageDrawable(
mLauncherApps
.getShortcutBadgedIconDrawable(si,
Completed in 169 milliseconds