Searched refs:testContext (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
H A DModelBackedDocumentsAdapterTest.java53 final Context testContext = TestContext.createStorageTestContext(getContext(), AUTHORITY);
57 DocumentsAdapter.Environment env = new TestEnvironment(testContext);
60 env, new IconHelper(testContext, State.MODE_GRID));
77 private final Context testContext; field in class:ModelBackedDocumentsAdapterTest.TestEnvironment
79 private TestEnvironment(Context testContext) { argument
80 this.testContext = testContext;
108 return testContext;
H A DSectionBreakDocumentsAdapterWrapperTest.java54 final Context testContext = TestContext.createStorageTestContext(getContext(), AUTHORITY);
55 DocumentsAdapter.Environment env = new TestEnvironment(testContext);
61 env, new IconHelper(testContext, State.MODE_GRID)));
112 private final Context testContext; field in class:SectionBreakDocumentsAdapterWrapperTest.TestEnvironment
114 private TestEnvironment(Context testContext) { argument
115 this.testContext = testContext;
143 return testContext;
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DAutoContextTest.java30 public void testContext() throws Throwable { method in class:AutoContextTest
H A DDuplicateContextTest.java30 public void testContext() throws Throwable { method in class:DuplicateContextTest
/frameworks/base/libs/hwui/tests/macrobench/
H A DTestSceneRunner.cpp71 TestContext testContext; local
76 sp<Surface> surface = testContext.surface();
95 testContext.waitForVsync();
107 testContext.waitForVsync();
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
H A DSyncStorageEngineTest.java153 final TestContext testContext = new TestContext(mockResolver, getContext());
162 SyncStorageEngine engine = SyncStorageEngine.newTestInstance(testContext);
182 final TestContext testContext = new TestContext(mockResolver, getContext());
198 File syncDir = new File(new File(testContext.getFilesDir(), "system"), "sync");
205 SyncStorageEngine engine = SyncStorageEngine.newTestInstance(testContext);
226 final TestContext testContext = new TestContext(mockResolver, getContext());
238 File syncDir = new File(new File(testContext.getFilesDir(), "system"), "sync");
245 SyncStorageEngine engine = SyncStorageEngine.newTestInstance(testContext);
/frameworks/base/test-runner/src/android/test/
H A DAndroidTestRunner.java193 Context testContext = mInstrumentation == null ? mContext : mInstrumentation.getContext();
195 setContextIfAndroidTestCase(testCase, mContext, testContext);
202 private void setContextIfAndroidTestCase(Test test, Context context, Context testContext) { argument
205 ((AndroidTestCase) test).setTestContext(testContext);
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
H A DPartnerTest.java172 public TestPackageManager(Context testContext) { argument
173 mTestContext = testContext;
/frameworks/base/libs/hwui/tests/microbench/
H A DFrameBuilderBench.cpp97 TestContext testContext; local
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DAccountManagerServiceTest.java348 public MyMockContext(Context testContext) { argument
349 this.mTestContext = testContext;

Completed in 339 milliseconds