Home
last modified time | relevance | path

Searched refs:getLauncherApps (Results 1 – 17 of 17) sorted by relevance

/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/
DShortcutManagerManagedUserTest.java43 getLauncherApps().getShortcuts(q, userManaged); in test01_managedProfileNotStarted()
76 assertWith(getLauncherApps().getShortcuts(q, userCurrent)) in test04_getAndLaunch_primary()
83 assertWith(getLauncherApps().getShortcuts(q, userOther)) in test04_getAndLaunch_primary()
92 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test04_getAndLaunch_primary()
96 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test04_getAndLaunch_primary()
112 assertWith(getLauncherApps().getShortcuts(q, userCurrent)) in test05_getAndLaunch_managed()
122 assertWith(getLauncherApps().getShortcuts(q, userOther)).isEmpty(); in test05_getAndLaunch_managed()
125 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test05_getAndLaunch_managed()
130 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test05_getAndLaunch_managed()
DShortcutManagerSecondaryUserTest.java52 final List<ShortcutInfo> list = getLauncherApps().getShortcuts(q, user); in testCreateAndStart()
63 getLauncherApps().getShortcutIconDrawable(s1, DisplayMetrics.DENSITY_DEFAULT); in testCreateAndStart()
64 getLauncherApps().getShortcutBadgedIconDrawable(s1, DisplayMetrics.DENSITY_DEFAULT); in testCreateAndStart()
69 getLauncherApps().startShortcut(s1, null, null); in testCreateAndStart()
83 getLauncherApps().getShortcuts(q, user0); in testDifferentUserNotAccessible()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerSpoofDetectionTest.java85 getLauncherApps().hasShortcutHostPermission(); in testLauncherSpoofing()
90 getLauncherApps().registerCallback(c, new Handler(Looper.getMainLooper())); in testLauncherSpoofing()
95 getLauncherApps().getShortcuts(q, getUserHandle()); in testLauncherSpoofing()
99 getLauncherApps().pinShortcuts( in testLauncherSpoofing()
104 getLauncherApps().startShortcut(makeShortcut("s"), null, null); in testLauncherSpoofing()
107 getLauncherApps().startShortcut(mPackageContext1.getPackageName(), "s1", in testLauncherSpoofing()
DShortcutManagerSpoofingTest.java87 runWithCaller(mLauncherContext1, () -> getLauncherApps().registerCallback(c0_1, h)); in testSpoofingLauncher()
88 runWithCaller(mLauncherContext2, () -> getLauncherApps().registerCallback(c0_2, h)); in testSpoofingLauncher()
89 runWithCaller(mLauncherContext3, () -> getLauncherApps().registerCallback(c0_3, h)); in testSpoofingLauncher()
97 () -> assertFalse(getLauncherApps().hasShortcutHostPermission())); in testSpoofingLauncher()
99 () -> assertTrue(getLauncherApps().hasShortcutHostPermission())); in testSpoofingLauncher()
101 () -> assertFalse(getLauncherApps().hasShortcutHostPermission())); in testSpoofingLauncher()
DShortcutManagerConfigActivityTest.java51 assertNotNull(getLauncherApps().getShortcutConfigActivityIntent(getConfigActivity())); in testGetShortcutConfigActivityList()
61 getLauncherApps().getShortcutConfigActivityIntent(getConfigActivity())); in testGetShortcutConfigActivityList()
77 assertNull(getLauncherApps().getShortcutConfigActivityIntent(lai)); in testIntentSenderNotCreatedForWrongActivity()
85 sender.set(getLauncherApps().getShortcutConfigActivityIntent(getConfigActivity()))); in testCorrectIntentSenderCreated()
148 PinItemRequest request = getLauncherApps().getPinItemRequest(intent); in getShortcutRequestForPackage1()
158 for (LauncherActivityInfo info : getLauncherApps().getShortcutConfigActivityList( in getConfigActivity()
DShortcutManagerLauncherCallbackTest.java136 getLauncherApps().registerCallback(c, handler); in testRegisterAndUnRegister()
137 getLauncherApps().unregisterCallback(c); in testRegisterAndUnRegister()
152 getLauncherApps().unregisterCallback(c); in testCallbacks()
156 getLauncherApps().registerCallback(c, handler); in testCallbacks()
245 getLauncherApps().pinShortcuts(mPackageContext1.getPackageName(), in testCallbacks()
251 getLauncherApps().pinShortcuts(mPackageContext1.getPackageName(), in testCallbacks()
349 getLauncherApps().unregisterCallback(c); in testCallbacks()
DShortcutManagerMultiLauncherTest.java89 getLauncherApps().pinShortcuts( in testPinShortcuts()
92 getLauncherApps().pinShortcuts( in testPinShortcuts()
100 getLauncherApps().pinShortcuts( in testPinShortcuts()
103 getLauncherApps().pinShortcuts( in testPinShortcuts()
DShortcutManagerStartShortcutTest.java64 getLauncherApps().startShortcut(client.getPackageName(), id, rect, options, in launchShortcutAndGetIntents()
86 getLauncherApps().startShortcut(client.getPackageName(), id, null, null, in assertShortcutCantStart()
239 getLauncherApps().pinShortcuts(mPackageContext1.getPackageName(), in testPinnedShortcut_sameLauncher()
264 getLauncherApps().pinShortcuts(mPackageContext1.getPackageName(), in testPinnedShortcut_differentLauncher()
DShortcutManagerRequestPinTest.java107 final List<ShortcutInfo> shortcuts = getLauncherApps().getShortcuts(query, in testRequestPinShortcut()
171 final List<ShortcutInfo> shortcuts = getLauncherApps().getShortcuts(query, in testRequestPinShortcut_multiLaunchers()
233 final List<ShortcutInfo> shortcuts = getLauncherApps().getShortcuts(query, in testRequestPinShortcut_multiLaunchers_withDynamic()
283 final List<ShortcutInfo> shortcuts = getLauncherApps().getShortcuts(query, in testRequestPinShortcut_multiLaunchers_withDynamic()
DShortcutManagerCtsTestsBase.java285 protected LauncherApps getLauncherApps() { in getLauncherApps() method in ShortcutManagerCtsTestsBase
541 final List<ShortcutInfo> found = getLauncherApps().getShortcuts(q, getUserHandle()); in getIconAsLauncher()
546 ret.set(getLauncherApps().getShortcutBadgedIconDrawable(found.get(0), 0)); in getIconAsLauncher()
548 ret.set(getLauncherApps().getShortcutIconDrawable(found.get(0), 0)); in getIconAsLauncher()
620 return getLauncherApps().getShortcuts(q, getUserHandle()); in getShortcutsAsLauncher()
DShortcutManagerLauncherApiTest.java88 getLauncherApps().pinShortcuts( in testPinShortcuts()
91 getLauncherApps().pinShortcuts( in testPinShortcuts()
DShortcutManagerClientApiTest.java594 getLauncherApps().pinShortcuts(mPackageContext1.getPackageName(), in testSetDynamicShortcuts_wasPinned()
915 getLauncherApps().pinShortcuts(mPackageContext1.getPackageName(), in testAddDynamicShortcuts_wasPinned()
948 getLauncherApps().pinShortcuts(mPackageContext1.getPackageName(), in testUpdateShortcut()
950 getLauncherApps().pinShortcuts(mPackageContext2.getPackageName(), in testUpdateShortcut()
1448 getLauncherApps().pinShortcuts(mPackageContext1.getPackageName(), in testDisableAndEnableShortcut()
1450 getLauncherApps().pinShortcuts(mPackageContext2.getPackageName(), in testDisableAndEnableShortcut()
1639 getLauncherApps().pinShortcuts(mPackageContext1.getPackageName(), in testImmutableShortcuts()
1867 getLauncherApps().pinShortcuts(mPackageContext1.getPackageName(), in testManifestDisabled()
1938 getLauncherApps().pinShortcuts(mPackageContext1.getPackageName(), in testGetShortcuts()
2110 getLauncherApps().pinShortcuts(mPackageContext1.getPackageName(), in testPushDynamicShortcut()
[all …]
/cts/hostsidetests/shortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/
DShortcutManagerPreBackupTest.java40 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s1", "ms1"), getUserHandle()); in testPreBackup()
41 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s1", "s2", "ms2"), getUserHandle()); in testPreBackup()
42 getLauncherApps().pinShortcuts(PUBLISHER3_PKG, list("s1", "s2", "ms1", "ms2"), in testPreBackup()
/cts/hostsidetests/shortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/
DShortcutManagerPreBackupTest.java40 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s3", "ms1", "ms2"), getUserHandle()); in testPreBackup()
41 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s1", "s3", "ms2"), getUserHandle()); in testPreBackup()
42 getLauncherApps().pinShortcuts(PUBLISHER3_PKG, list("s1", "s3", "ms1"), in testPreBackup()
/cts/hostsidetests/shortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/
DShortcutManagerPreBackupTest.java40 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s3", "ms2"), getUserHandle()); in testPreBackup()
41 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s2", "s3", "ms1"), getUserHandle()); in testPreBackup()
42 getLauncherApps().pinShortcuts(PUBLISHER3_PKG, list("s2", "s3", "ms1", "ms2"), in testPreBackup()
/cts/hostsidetests/shortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/
DShortcutManagerDeviceTestBase.java82 protected LauncherApps getLauncherApps() { in getLauncherApps() method in ShortcutManagerDeviceTestBase
102 final List<ShortcutInfo> found = getLauncherApps().getShortcuts(q, getUserHandle()); in getIconAsLauncher()
106 return getLauncherApps().getShortcutIconDrawable(found.get(0), 0); in getIconAsLauncher()
130 return getLauncherApps().getShortcuts(q, getUserHandle()); in getPackageShortcuts()
/cts/hostsidetests/shortcuts/deviceside/backup/launcher4old/src/android/content/pm/cts/shortcut/backup/launcher4/
DShortcutManagerPreBackupTest.java37 getLauncherApps().pinShortcuts(PUBLISHER4_PKG, list("s1", "s2", "ms1", "ms2"), in testPreBackup()