Home
last modified time | relevance | path

Searched refs:mTestContext (Results 1 – 4 of 4) sorted by relevance

/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DPartnerTest.java44 private TestContext mTestContext; field in PartnerTest
49 mTestContext = new TestContext(getInstrumentation().getTargetContext()); in setUp()
55 mTestContext.partnerList = Arrays.asList( in testLoadPartner()
60 Partner partner = Partner.get(mTestContext); in testLoadPartner()
66 mTestContext.partnerList = new ArrayList<>(); in testLoadNoPartner()
68 Partner partner = Partner.get(mTestContext); in testLoadNoPartner()
74 mTestContext.partnerList = Arrays.asList( in testLoadNonSystemPartner()
79 Partner partner = Partner.get(mTestContext); in testLoadNonSystemPartner()
85 mTestContext.partnerList = Arrays.asList( in testLoadPartnerValue()
91 Partner.getResourceEntry(mTestContext, R.integer.suwTransitionDuration); in testLoadPartnerValue()
[all …]
/frameworks/base/core/java/android/test/
DAndroidTestCase.java42 private Context mTestContext; field in AndroidTestCase
77 mTestContext = context; in setTestContext()
84 return mTestContext; in getTestContext()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java32 Context mTestContext; field in JobStoreTest
36 mTestContext = new RenamingDelegatingContext(getContext(), TEST_PREFIX); in setUp()
37 Log.d(TAG, "Saving tasks to '" + mTestContext.getFilesDir() + "'"); in setUp()
39 JobStore.initAndGetForTesting(mTestContext, mTestContext.getFilesDir()); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java221 Context originalContext = ((MyMockContext)getContext()).mTestContext; in testRemovedAccountSync()
247 Context originalContext = ((MyMockContext) getContext()).mTestContext; in testPreNDatabaseMigration()
343 private Context mTestContext; field in AccountManagerServiceTest.MyMockContext
349 this.mTestContext = testContext; in MyMockContext()
400 return mTestContext.openOrCreateDatabase(file, mode, factory,errorHandler); in openOrCreateDatabase()