Searched defs:getInstrumentation (Results 1 - 9 of 9) sorted by path

/frameworks/base/core/java/android/app/
H A DActivityThread.java2127 public Instrumentation getInstrumentation() method in class:ActivityThread
2711 activity.attach(appContext, this, getInstrumentation(), r.token,
/frameworks/base/core/tests/coretests/src/android/print/
H A DBasePrintTest.java118 protected static Instrumentation getInstrumentation() { method in class:BasePrintTest
124 sInstrumentation = InstrumentationRegistry.getInstrumentation();
135 System.setProperty("dexmaker.dexcache", getInstrumentation()
156 getInstrumentation().runOnMainSync(() -> {
210 runShellCommand(getInstrumentation(), String.format(
/frameworks/base/legacy-test/src/android/test/
H A DInstrumentationTestCase.java74 public Instrumentation getInstrumentation() { method in class:InstrumentationTestCase
125 T activity = (T) getInstrumentation().startActivitySync(intent);
126 getInstrumentation().waitForIdleSync();
141 getInstrumentation().runOnMainSync(new Runnable() {
192 getInstrumentation().runOnMainSync(new Runnable() {
234 getInstrumentation().sendStatus(2, iterations);
257 final Instrumentation instrumentation = getInstrumentation();
307 final Instrumentation instrumentation = getInstrumentation();
336 final Instrumentation instrumentation = getInstrumentation();
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
H A DMtpManagerTest.java48 mUsbDevice = TestUtil.setupMtpDevice(getInstrumentation(), mUsbManager, mManager);
57 public TestResultInstrumentation getInstrumentation() { method in class:MtpManagerTest
58 return (TestResultInstrumentation) super.getInstrumentation();
87 getInstrumentation().show(Arrays.toString(records[0].operationsSupported));
94 getInstrumentation().show(Arrays.toString(records[0].eventsSupported));
101 getInstrumentation().show("deviceKey: " + records[0].deviceKey);
106 getInstrumentation().show("Please take a photo by using connected MTP device.");
162 return getInstrumentation().getContext();
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/
H A DBasePrintTest.java81 protected static Instrumentation getInstrumentation() { method in class:BasePrintTest
87 sInstrumentation = InstrumentationRegistry.getInstrumentation();
98 System.setProperty("dexmaker.dexcache", getInstrumentation()
112 getInstrumentation().runOnMainSync(() -> {
141 runShellCommand(getInstrumentation(), String.format(
/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DBugreportReceiverTest.java173 Instrumentation instrumentation = getInstrumentation();
975 UiDevice.getInstance(getInstrumentation()).executeShellCommand(cmd);
1063 private Instrumentation getInstrumentation() { method in class:BugreportReceiverTest
1064 return InstrumentationRegistry.getInstrumentation();
/frameworks/support/lifecycle/extensions/src/androidTest/java/android/arch/lifecycle/
H A DFragmentLifecycleInActivityTest.java70 public void getInstrumentation() { method in class:FragmentLifecycleInActivityTest
71 mInstrumentation = InstrumentationRegistry.getInstrumentation();
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseRecyclerViewInstrumentationTest.java137 getUIAutomation.invoke(InstrumentationRegistry.getInstrumentation());
216 public Instrumentation getInstrumentation() { method in class:BaseRecyclerViewInstrumentationTest
217 return InstrumentationRegistry.getInstrumentation();
229 getInstrumentation().waitForIdleSync();
254 getInstrumentation().waitForIdleSync();
430 getInstrumentation().waitForIdleSync();
484 getInstrumentation().waitForIdleSync();
500 getInstrumentation().waitForIdleSync();
571 getInstrumentation().runOnMainSync(new Runnable() {
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/
H A DRecyclerViewTest.java74 getInstrumentation().waitForIdleSync();
146 private Instrumentation getInstrumentation() { method in class:RecyclerViewTest
147 return InstrumentationRegistry.getInstrumentation();

Completed in 1970 milliseconds