Searched refs:callerContext (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerSpoofDetectionTest.java | 42 public void assertCallingPackageMismatch(String method, Context callerContext, Runnable r) { in assertCallingPackageMismatch() argument 44 "Caller=" + callerContext.getPackageName() + ", method=" + method, in assertCallingPackageMismatch() 46 () -> runWithCaller(callerContext, () -> r.run()) in assertCallingPackageMismatch()
|
D | ShortcutManagerFakingPublisherTest.java | 170 private void assertShortcutPackageMismatch(String method, Context callerContext, Runnable r) { in assertShortcutPackageMismatch() argument 172 "Caller=" + callerContext.getPackageName() + ", method=" + method, in assertShortcutPackageMismatch() 174 () -> runWithCaller(callerContext, () -> r.run()) in assertShortcutPackageMismatch()
|
D | ShortcutManagerCtsTestsBase.java | 257 protected void setCurrentCaller(Context callerContext) { in setCurrentCaller() argument 258 mCurrentCallerPackage = callerContext; in setCurrentCaller() 316 protected void runWithCaller(Context callerContext, Runnable r) { in runWithCaller() argument 319 setCurrentCaller(callerContext); in runWithCaller() 326 protected void runWithCallerWithStrictMode(Context callerContext, Runnable r) { in runWithCallerWithStrictMode() argument 327 runWithCaller(callerContext, () -> runWithStrictMode(r)); in runWithCallerWithStrictMode() 330 protected void runWithCallerWithNoStrictMode(Context callerContext, Runnable r) { in runWithCallerWithNoStrictMode() argument 331 runWithCaller(callerContext, () -> runWithNoStrictMode(r)); in runWithCallerWithNoStrictMode()
|