Searched refs:getTargetContext (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/tests/FrameworkTest/tests/src/com/android/frameworktest/widget/
H A DListViewTest.java95 return getInstrumentation().getTargetContext().getResources();
100 return getInstrumentation().getTargetContext().getTheme();
106 return getInstrumentation().getTargetContext().getSystemService(name);
/frameworks/base/test-runner/android/test/
H A DSyncBaseInstrumentation.java39 mTargetContext = getInstrumentation().getTargetContext();
H A DProviderTestCase.java49 getInstrumentation().getTargetContext(), // The context that file methods are delegated to
H A DInstrumentationTestRunner.java271 {getTargetContext().getPackageCodePath(), getContext().getPackageCodePath()};
302 getTargetContext().getClassLoader());
331 mTestRunner.setContext(getTargetContext());
376 getTargetContext());
497 return getTargetContext().getFilesDir().getAbsolutePath() + File.separator +
H A DActivityUnitTestCase.java100 mActivityContext = getInstrumentation().getTargetContext();
190 * obtain a real Context, as a building block, use getInstrumentation().getTargetContext().
H A DInstrumentationCoreTestRunner.java66 File cacheDir = getTargetContext().getCacheDir();
/frameworks/base/tests/CoreTests/android/test/
H A DInstrumentationTestRunnerTest.java162 public Context getTargetContext() { method in class:InstrumentationTestRunnerTest.StubInstrumentationTestRunner
/frameworks/base/core/java/android/app/
H A DInstrumentation.java296 * See {@link #getTargetContext} to retrieve a Context for the target
301 * @see #getTargetContext
327 public Context getTargetContext() { method in class:Instrumentation
445 getTargetContext().getPackageManager(), 0);
467 getTargetContext().startActivity(intent);

Completed in 130 milliseconds