OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mTestContext
(Results
1 - 12
of
12
) sorted by null
/packages/apps/Email/tests/src/com/android/email/activity/setup/
AccountSettingsUtilsTests.java
36
private Context
mTestContext
;
41
mTestContext
= getInstrumentation().getContext();
54
assertEquals("foo.x.y.z", AccountSettingsUtils.inferServerName(
mTestContext
, "x.y.z",
56
assertEquals("Pop.y.z", AccountSettingsUtils.inferServerName(
mTestContext
, "Pop.y.z",
58
assertEquals("poP3.y.z", AccountSettingsUtils.inferServerName(
mTestContext
, "poP3.y.z",
60
assertEquals("iMAp.y.z", AccountSettingsUtils.inferServerName(
mTestContext
, "iMAp.y.z",
62
assertEquals("MaiL.y.z", AccountSettingsUtils.inferServerName(
mTestContext
, "MaiL.y.z",
65
assertEquals("bar.x.y.z", AccountSettingsUtils.inferServerName(
mTestContext
, "x.y.z",
67
assertEquals("bar.y.z", AccountSettingsUtils.inferServerName(
mTestContext
, "Pop.y.z",
69
assertEquals("bar.y.z", AccountSettingsUtils.inferServerName(
mTestContext
, "poP3.y.z"
[
all
...]
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
PartnerTest.java
44
private TestContext
mTestContext
;
49
mTestContext
= new TestContext(getInstrumentation().getTargetContext());
55
mTestContext
.partnerList = Arrays.asList(
60
Partner partner = Partner.get(
mTestContext
);
66
mTestContext
.partnerList = new ArrayList<>();
68
Partner partner = Partner.get(
mTestContext
);
74
mTestContext
.partnerList = Arrays.asList(
79
Partner partner = Partner.get(
mTestContext
);
85
mTestContext
.partnerList = Arrays.asList(
91
Partner.getResourceEntry(
mTestContext
, R.integer.suwTransitionDuration)
[
all
...]
/frameworks/base/core/java/android/test/
AndroidTestCase.java
42
private Context
mTestContext
;
77
mTestContext
= context;
84
return
mTestContext
;
/hardware/qcom/camera/QCamera2/HAL/test/
qcamera_test.cpp
[
all
...]
qcamera_test.h
290
TestContext *
mTestContext
;
/device/moto/shamu/camera/QCamera2/HAL/test/
qcamera_test.cpp
[
all
...]
qcamera_test.h
297
TestContext *
mTestContext
;
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
AbstractDownloadProviderFunctionalTest.java
66
protected TestContext
mTestContext
;
157
mTestContext
= new TestContext(realContext);
158
mResolver = (MockContentResolverWithNotify)
mTestContext
.getContentResolver();
165
provider.attachInfo(
mTestContext
, info);
169
setContext(
mTestContext
);
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
DeleteNonRequiredAppsTaskTest.java
69
private @Mock Context
mTestContext
;
88
when(
mTestContext
.getResources()).thenReturn(mResources);
89
when(
mTestContext
.getPackageManager()).thenReturn(mPackageManager);
90
when(
mTestContext
.getFilesDir()).thenReturn(getContext().getFilesDir());
282
// Now, we set a wrong value to
mTestContext
.getFilesDir. So it should not find the system apps
284
when(
mTestContext
.getFilesDir()).thenReturn(new File(""));
364
DeleteNonRequiredAppsTask task = new DeleteNonRequiredAppsTask(
mTestContext
,
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
JobStoreTest.java
32
Context
mTestContext
;
36
mTestContext
= new RenamingDelegatingContext(getContext(), TEST_PREFIX);
37
Log.d(TAG, "Saving tasks to '" +
mTestContext
.getFilesDir() + "'");
39
JobStore.initAndGetForTesting(
mTestContext
,
mTestContext
.getFilesDir());
/packages/apps/Email/tests/src/com/android/email/mail/store/
ImapStoreUnitTests.java
98
private Context
mTestContext
;
145
mTestContext
= new SecondaryMockContext(
148
MockVendorPolicy.inject(
mTestContext
);
150
TempDirectory.setTempDirectory(
mTestContext
);
159
mStore = (ImapStore) ImapStore.newInstance(testAccount,
mTestContext
);
251
String id = ImapStore.getImapId(
mTestContext
, "user-name", "host-name",
254
assertEquals(
mTestContext
.getPackageName(), map.get("name"));
294
MockVendorPolicy.inject(
mTestContext
);
302
String id = ImapStore.getImapId(
mTestContext
, "user-name", "host-name",
355
ImapStore testStore1A = (ImapStore) ImapStore.newInstance(testAccount,
mTestContext
);
[
all
...]
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
AccountManagerServiceTest.java
221
Context originalContext = ((MyMockContext)getContext()).
mTestContext
;
247
Context originalContext = ((MyMockContext) getContext()).
mTestContext
;
343
private Context
mTestContext
;
349
this.
mTestContext
= testContext;
400
return
mTestContext
.openOrCreateDatabase(file, mode, factory,errorHandler);
Completed in 351 milliseconds