Home
last modified time | relevance | path

Searched refs:mLauncherContext1 (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerStartShortcutTest.java99 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testStartSingle() local
113 List<Intent> launched = launchShortcutAndGetIntents(mLauncherContext1, mPackageContext1, in testStartSingle()
128 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testStartMultiple() local
148 List<Intent> launched = launchShortcutAndGetIntents(mLauncherContext1, mPackageContext1, in testStartMultiple()
185 assertShortcutCantStart(mLauncherContext1, mPackageContext1, "s1", in testNonDefaultLauncherCantStart()
202 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testShortcutNoLongerExists() local
204 assertShortcutCantStart(mLauncherContext1, mPackageContext1, "s1", in testShortcutNoLongerExists()
221 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testShortcutWrongId() local
223 assertShortcutCantStart(mLauncherContext1, mPackageContext1, "s2", in testShortcutWrongId()
235 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testPinnedShortcut_sameLauncher() local
[all …]
DShortcutManagerLauncherApiTest.java84 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testPinShortcuts() local
86 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testPinShortcuts()
176 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testGetShortcuts()
329 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testGetShortcutIcon() local
332 mLauncherContext1, mPackageContext1.getPackageName(), "s1", true)); in testGetShortcutIcon()
334 mLauncherContext1, mPackageContext1.getPackageName(), "s2", true)); in testGetShortcutIcon()
336 mLauncherContext1, mPackageContext1.getPackageName(), "s3", true)); in testGetShortcutIcon()
338 mLauncherContext1, mPackageContext1.getPackageName(), "s4", true)); in testGetShortcutIcon()
341 mLauncherContext1, mPackageContext1.getPackageName(), "ms21", true)); in testGetShortcutIcon()
344 mLauncherContext1, mPackageContext1.getPackageName(), "s1", false)); in testGetShortcutIcon()
[all …]
DShortcutManagerConfigActivityTest.java43 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testGetShortcutConfigActivityList() local
45 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testGetShortcutConfigActivityList()
53 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testGetShortcutConfigActivityList()
62 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testCorrectIntentSenderCreated() local
64 runWithCallerWithStrictMode(mLauncherContext1, () -> in testCorrectIntentSenderCreated()
72 mLauncherContext1.startIntentSender(sender.get(), null, 0, 0, 0); in testCorrectIntentSenderCreated()
88 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testCreateShortcutResultIntent_defaultLauncher() local
90 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testCreateShortcutResultIntent_defaultLauncher()
97 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testCreateShortcutResultIntent_defaultChanges() local
102 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testCreateShortcutResultIntent_defaultChanges()
[all …]
DShortcutManagerClientApiTest.java404 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
432 getIconAsLauncher(mLauncherContext1, mPackageContext1.getPackageName(), "s1")); in testSetDynamicShortcuts_details()
464 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
484 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
503 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
523 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
541 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
559 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
571 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testSetDynamicShortcuts_wasPinned() local
573 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testSetDynamicShortcuts_wasPinned()
[all …]
DShortcutManagerRequestPinTest.java51 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testIsRequestPinShortcutSupported() local
71 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testRequestPinShortcut() local
99 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testRequestPinShortcut()
189 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testRequestPinShortcut_multiLaunchers_withDynamic() local
225 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testRequestPinShortcut_multiLaunchers_withDynamic()
315 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testRequestPinShortcut_noMainActivity() local
DShortcutManagerMultiLauncherTest.java86 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testPinShortcuts() local
88 runWithCaller(mLauncherContext1, () -> { in testPinShortcuts()
175 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testPinShortcuts() local
177 runWithCaller(mLauncherContext1, () -> { in testPinShortcuts()
DShortcutManagerLauncherCallbackTest.java143 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testCallbacks() local
150 runWithCaller(mLauncherContext1, () -> { in testCallbacks()
244 runWithCaller(mLauncherContext1, () -> { in testCallbacks()
255 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testCallbacks() local
347 runWithCaller(mLauncherContext1, () -> { in testCallbacks()
DShortcutManagerSpoofingTest.java87 runWithCaller(mLauncherContext1, () -> getLauncherApps().registerCallback(c0_1, h)); in testSpoofingLauncher()
96 runWithCaller(mLauncherContext1, in testSpoofingLauncher()
DShortcutManagerCtsTestsBase.java87 protected Context mLauncherContext1; field in ShortcutManagerCtsTestsBase
141 mLauncherContext1 = new SpoofingContext(getTestContext(), in setUp()
150 mLauncherApps1 = new LauncherApps(mLauncherContext1); in setUp()
210 return list(mLauncherContext1, mLauncherContext2, mLauncherContext3); in getAllLaunchers()
216 mLauncherContext1, mLauncherContext2, mLauncherContext3, mLauncherContext4); in getAllCallers()
DShortcutManagerMaxCountTest.java328 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testWithPinned() local
330 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testWithPinned()