Searched refs:runWithCaller (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerSpoofingTest.java | 45 runWithCaller(mPackageContext1, () -> { in testSpoofingPublisher() 49 runWithCaller(mPackageContext2, () -> { in testSpoofingPublisher() 53 runWithCaller(mPackageContext3, () -> { in testSpoofingPublisher() 58 runWithCaller(mPackageContext1, () -> { in testSpoofingPublisher() 65 runWithCaller(mPackageContext2, () -> { in testSpoofingPublisher() 72 runWithCaller(mPackageContext3, () -> { in testSpoofingPublisher() 87 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() 96 runWithCaller(mLauncherContext1, in testSpoofingLauncher() [all …]
|
D | ShortcutManagerLauncherCallbackTest.java | 150 runWithCaller(mLauncherContext1, () -> { in testCallbacks() 164 runWithCaller(mPackageContext1, () -> { in testCallbacks() 178 runWithCaller(mPackageContext1, () -> { in testCallbacks() 191 runWithCaller(mPackageContext1, () -> { in testCallbacks() 204 runWithCaller(mPackageContext1, () -> { in testCallbacks() 217 runWithCaller(mPackageContext1, () -> { in testCallbacks() 230 runWithCaller(mPackageContext1, () -> { in testCallbacks() 244 runWithCaller(mLauncherContext1, () -> { in testCallbacks() 250 runWithCaller(mLauncherContext2, () -> { in testCallbacks() 260 runWithCaller(mPackageContext1, () -> { in testCallbacks() [all …]
|
D | ShortcutManagerFakingPublisherTest.java | 74 runWithCaller(mPackageContext1, () -> { in testSpoofingPublisher() 97 runWithCaller(mPackageContext1, () -> { in testSpoofingPublisher() 120 runWithCaller(mPackageContext1, () -> { in testSpoofingPublisher() 143 runWithCaller(mPackageContext1, () -> { in testSpoofingPublisher() 153 runWithCaller(mPackageContext1, () -> { in testSpoofingPublisher() 174 () -> runWithCaller(callerContext, () -> r.run()) in assertShortcutPackageMismatch()
|
D | ShortcutManagerMultiLauncherTest.java | 40 runWithCaller(mPackageContext1, () -> { in testPinShortcuts() 63 runWithCaller(mPackageContext2, () -> { in testPinShortcuts() 88 runWithCaller(mLauncherContext1, () -> { in testPinShortcuts() 99 runWithCaller(mLauncherContext2, () -> { in testPinShortcuts() 108 runWithCaller(mPackageContext1, () -> { in testPinShortcuts() 142 runWithCaller(mPackageContext2, () -> { in testPinShortcuts() 177 runWithCaller(mLauncherContext1, () -> { in testPinShortcuts() 227 runWithCaller(mLauncherContext2, () -> { in testPinShortcuts()
|
D | ShortcutManagerRequestPinTest.java | 53 runWithCaller(mPackageContext1, () -> { in testIsRequestPinShortcutSupported() 60 runWithCaller(mPackageContext1, () -> { in testIsRequestPinShortcutSupported() 121 runWithCaller(mPackageContext1, () -> { in testRequestPinShortcut() 298 runWithCaller(mPackageContext1, () -> { in testRequestPinShortcut_multiLaunchers_withDynamic() 334 runWithCaller(mPackageContext1, () -> { in testRequestPinShortcut_noMainActivity()
|
D | ShortcutManagerNegativeTest.java | 138 runWithCaller(mPackageContext1, () -> { in testCommand() 148 runWithCaller(mPackageContext1, () -> { in testCommand()
|
D | ShortcutManagerSpoofDetectionTest.java | 46 () -> runWithCaller(callerContext, () -> r.run()) in assertCallingPackageMismatch()
|
D | ShortcutManagerCtsTestsBase.java | 249 runWithCaller(c, r); in withCallers() 316 protected void runWithCaller(Context callerContext, Runnable r) { in runWithCaller() method in ShortcutManagerCtsTestsBase 327 runWithCaller(callerContext, () -> runWithStrictMode(r)); in runWithCallerWithStrictMode() 331 runWithCaller(callerContext, () -> runWithNoStrictMode(r)); in runWithCallerWithNoStrictMode()
|