Home
last modified time | relevance | path

Searched refs:getInstrumentation (Results 1 – 23 of 23) sorted by relevance

/external/libtextclassifier/notification/tests/src/com/android/textclassifier/notification/
DCopyCodeActivityTest.java53 InstrumentationRegistry.getInstrumentation().getUiAutomation().adoptShellPermissionIdentity(); in onCreate_emptyCode()
61 InstrumentationRegistry.getInstrumentation().getUiAutomation().dropShellPermissionIdentity(); in onCreate_emptyCode()
70 InstrumentationRegistry.getInstrumentation().getUiAutomation().adoptShellPermissionIdentity(); in onCreate_codeCopied()
81 InstrumentationRegistry.getInstrumentation().getUiAutomation().dropShellPermissionIdentity(); in onCreate_codeCopied()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/
DActivityController.java69 shadowMainLooper.runPaused(() -> getInstrumentation().callActivityOnCreate(component, bundle)); in create()
102 () -> getInstrumentation().callActivityOnRestoreInstanceState(component, bundle)); in restoreInstanceState()
170 shadowMainLooper.runPaused(() -> getInstrumentation().callActivityOnUserLeaving(component)); in userLeaving()
175 shadowMainLooper.runPaused(() -> getInstrumentation().callActivityOnPause(component)); in pause()
181 () -> getInstrumentation().callActivityOnSaveInstanceState(component, outState)); in saveInstanceState()
200 shadowMainLooper.runPaused(() -> getInstrumentation().callActivityOnDestroy(component)); in destroy()
395 private static Instrumentation getInstrumentation() { in getInstrumentation() method in ActivityController
396 return ((ActivityThread) RuntimeEnvironment.getActivityThread()).getInstrumentation(); in getInstrumentation()
/external/dagger2/java/dagger/hilt/android/example/gradle/simple/app/src/sharedTest/java/dagger/hilt/android/example/gradle/simple/
DBroadcastReceiverTest.java49 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in verifyReceiverInjectedValue()
65 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in verifyBaseReceiverInjectedValue()
81 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in verifyBaseReceiverIsNotDoubleInjected()
98 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in verifyComplexReceiverInjectedValue()
/external/dagger2/javatests/artifacts/hilt-android/simpleKotlin/app/src/sharedTest/java/dagger/hilt/android/simpleKotlin/
DTransitiveDependenciesTest.kt41 InstrumentationRegistry.getInstrumentation().targetContext.applicationContext in testEntryPointFromAndroidLib()
48 InstrumentationRegistry.getInstrumentation().targetContext.applicationContext in testEntryPointFromKotlinLib()
/external/downloader/src/test/java/com/google/android/downloader/
DCronetUrlEngineTest.java17 import static androidx.test.InstrumentationRegistry.getInstrumentation;
52 new CronetEngine.Builder(getInstrumentation().getTargetContext()).build(); in setUp()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/
DTextClassifierSettingsTest.java43 InstrumentationRegistry.getInstrumentation() in setup()
50 InstrumentationRegistry.getInstrumentation().getUiAutomation().dropShellPermissionIdentity(); in tearDown()
/external/dagger2/javatests/artifacts/hilt-android/simple/app/src/sharedTest/java/dagger/hilt/android/simple/
DTransitiveDependenciesTest.java41 InstrumentationRegistry.getInstrumentation().getTargetContext().getApplicationContext()); in testEntryPoint()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DLocalPermissionGranter.java25 (Application) InstrumentationRegistry.getInstrumentation().getTargetContext(); in requestPermissions()
/external/deqp-deps/amber/android_gradle/app/src/androidTest/java/com/google/amber/
DAmberLauncher.java34 Context app_context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in LaunchAmber()
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/
DScreenshotOnFailureStatement.java57 uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in takeScreenshot()
DBaseJUnit4ClassRunner.java88 new AndroidRunnerParams(InstrumentationRegistry.getInstrumentation(), in BaseJUnit4ClassRunner()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/
DTextClassifierApiTest.java161 UiAutomation uiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in before()
181 UiAutomation uiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in after()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowContextWrapper.java114 return Shadow.extract(activityThread.getInstrumentation()); in getShadowInstrumentation()
DShadowActivity.java98 ((ActivityThread) RuntimeEnvironment.getActivityThread()).getInstrumentation(); in callAttach()
499 … ShadowInstrumentation shadowInstrumentation = Shadow.extract(activityThread.getInstrumentation()); in getNextStartedActivityForResult()
512 … ShadowInstrumentation shadowInstrumentation = Shadow.extract(activityThread.getInstrumentation()); in peekNextStartedActivityForResult()
603 … ShadowInstrumentation shadowInstrumentation = Shadow.extract(activityThread.getInstrumentation()); in receiveResult()
DShadowApplication.java226 Shadow.extract(activityThread.getInstrumentation()); in checkActivities()
DShadowInstrumentation.java777 public static Instrumentation getInstrumentation() {
779 return activityThread.getInstrumentation();
DShadowContextImpl.java377 return Shadow.extract(activityThread.getInstrumentation()); in getShadowInstrumentation()
DShadowPendingIntent.java166 … ShadowInstrumentation shadowInstrumentation = Shadow.extract(activityThread.getInstrumentation()); in send()
/external/libchrome/base/android/javatests/src/org/chromium/base/
DAdvancedMockContextTest.java54 Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testComponentCallbacksForTargetContext()
DApiCompatibilityUtilsTest.java55 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testFinishAndRemoveTask()
/external/connectedappssdk/testing/sdk/src/main/java/com/google/android/enterprise/connectedapps/testing/
DInstrumentedTestUtilities.java278 return InstrumentationRegistry.getInstrumentation() in runCommand()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/statsd/
DStatsdTestUtils.java109 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in runShellCommand()
/external/connectedappssdk/tests/instrumented/src/main/java/com/google/android/enterprise/connectedapps/instrumented/utils/
DInstrumentedTestUtilities.java384 return InstrumentationRegistry.getInstrumentation() in runCommand()