Home
last modified time | relevance | path

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

/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerConfigActivityTest.java47 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testGetShortcutConfigActivityList() local
49 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testGetShortcutConfigActivityList()
57 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testGetShortcutConfigActivityList()
66 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testIntentSenderNotCreatedForWrongActivity() local
67 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testIntentSenderNotCreatedForWrongActivity()
82 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testCorrectIntentSenderCreated() local
84 runWithCallerWithStrictMode(mLauncherContext1, () -> in testCorrectIntentSenderCreated()
92 mLauncherContext1.startIntentSender(sender.get(), null, 0, 0, 0); in testCorrectIntentSenderCreated()
108 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testCreateShortcutResultIntent_defaultLauncher() local
110 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testCreateShortcutResultIntent_defaultLauncher()
[all …]
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.java85 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testPinShortcuts() local
87 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testPinShortcuts()
179 runWithCallerWithStrictMode(mLauncherContext1, () -> { in testGetShortcuts()
357 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testGetShortcutIcon() local
360 mLauncherContext1, mPackageContext1.getPackageName(), "s1", true)); in testGetShortcutIcon()
362 mLauncherContext1, mPackageContext1.getPackageName(), "s2", true)); in testGetShortcutIcon()
364 mLauncherContext1, mPackageContext1.getPackageName(), "s3", true)); in testGetShortcutIcon()
366 mLauncherContext1, mPackageContext1.getPackageName(), "s4", true)); in testGetShortcutIcon()
369 mLauncherContext1, mPackageContext1.getPackageName(), "ms21", true)); in testGetShortcutIcon()
372 mLauncherContext1, mPackageContext1.getPackageName(), "s1", false)); in testGetShortcutIcon()
[all …]
DShortcutManagerClientApiTest.java424 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
452 getIconAsLauncher(mLauncherContext1, mPackageContext1.getPackageName(), "s1")); in testSetDynamicShortcuts_details()
484 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
504 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
523 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
543 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
561 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
579 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
591 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testSetDynamicShortcuts_wasPinned() local
593 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.java88 protected Context mLauncherContext1; field in ShortcutManagerCtsTestsBase
142 mLauncherContext1 = new SpoofingContext(getTestContext(), in setUp()
151 mLauncherApps1 = new LauncherApps(mLauncherContext1); in setUp()
211 return list(mLauncherContext1, mLauncherContext2, mLauncherContext3); in getAllLaunchers()
217 mLauncherContext1, mLauncherContext2, mLauncherContext3, mLauncherContext4); in getAllCallers()