Home
last modified time | relevance | path

Searched refs:mInstrumentation (Results 1 – 2 of 2) sorted by relevance

/test/uiautomator/uiautomator/src/androidTest/java/androidx/test/uiautomator/
DUiDeviceTest.java66 private Instrumentation mInstrumentation; field in UiDeviceTest
75 mInstrumentation = spy(InstrumentationRegistry.getInstrumentation()); in setUp()
77 doReturn(mUiAutomation).when(mInstrumentation).getUiAutomation(anyInt()); in setUp()
78 mDevice = new UiDevice(mInstrumentation); in setUp()
190 verify(mInstrumentation, atLeastOnce()).getUiAutomation(eq(mDefaultFlags)); in testGetUiAutomation_withDefaultFlags()
200 verify(mInstrumentation, atLeastOnce()).getUiAutomation(eq(customFlags)); in testGetUiAutomation_withCustomFlags()
/test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/
DUiDevice.java95 private final Instrumentation mInstrumentation; field in UiDevice
116 mInstrumentation = instrumentation; in UiDevice()
303 if (sInstance == null || !instrumentation.equals(sInstance.mInstrumentation)) { in getInstance()
1197 dumpFile = mInstrumentation.getContext().getFileStreamPath(fileName); in dumpWindowHierarchy()
1342 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in getLauncherPackageName()
1446 return mInstrumentation; in getInstrumentation()
1455 context = Api31Impl.createWindowContext(mInstrumentation.getContext(), display); in getUiContext()
1459 context = mInstrumentation.getContext(); in getUiContext()
1462 context = mInstrumentation.getContext(); in getUiContext()