Home
last modified time | relevance | path

Searched refs:mRealContext (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DCaCertsCurrentUserPreferenceControllerTest.java72 mRealContext.getResources().getQuantityString( in testNoInstalledCaCerts_preferenceDisabled()
87 mRealContext.getResources().getQuantityString( in testNoInstalledCaCerts_preferenceDisabled_zoneWrite()
102 mRealContext.getResources().getQuantityString( in testNoInstalledCaCerts_preferenceDisabled_zoneRead()
117 mRealContext.getResources().getQuantityString( in testNoInstalledCaCerts_preferenceDisabled_zoneHidden()
129 assertThat(mPreference.getSummary()).isEqualTo(mRealContext.getResources() in testInstalledCaCerts_preferenceEnabled()
142 assertThat(mPreference.getSummary()).isEqualTo(mRealContext.getResources() in testInstalledCaCerts_preferenceEnabled_zoneWrite()
156 assertThat(mPreference.getSummary()).isEqualTo(mRealContext.getResources() in testInstalledCaCerts_preferenceEnabled_zoneRead()
170 assertThat(mPreference.getSummary()).isEqualTo(mRealContext.getResources() in testInstalledCaCerts_preferenceEnabled_zoneHidden()
180 assertThat(mPreference.getTitle()).isEqualTo(mRealContext.getResources() in testNoCompMode_showsRegularTitle()
191 assertThat(mPreference.getTitle()).isEqualTo(mRealContext.getResources() in testCompMode_showsPersonalProfileTitle()
DDeviceAdminAddWarningPreferenceControllerTest.java48 mRealContext.getString(R.string.device_admin_warning, mAppName)); in testUpdateState_adminInactive()
58 mRealContext.getString(R.string.device_admin_status, mAppName)); in testUpdateState_adminActive()
68 mRealContext.getString(R.string.admin_profile_owner_user_message)); in testUpdateState_profileOwner()
78 mRealContext.getString(R.string.admin_device_owner_message)); in testUpdateState_deviceOwner()
89 mRealContext.getString(R.string.admin_financed_message)); in testUpdateState_deviceOwner_financialDevice()
DBaseEnterpriseTestCase.java66 protected final Context mRealContext = ApplicationProvider.getApplicationContext(); field in BaseEnterpriseTestCase
67 protected final Context mSpiedContext = spy(mRealContext);
69 protected final String mPackageName = mRealContext.getPackageName();
71 protected final PackageManager mRealPm = mRealContext.getPackageManager();
74 protected final String mAppName = mRealContext.getApplicationInfo().loadLabel(mRealPm)
123 mDefaultDeviceAdminInfo = new DeviceAdminInfo(mRealContext, defaultActivityInfo); in setFixtures()
129 mFancyDeviceAdminInfo = new DeviceAdminInfo(mRealContext, fancyActivityInfo); in setFixtures()
DManageDeviceAdminPreferenceControllerTest.java49 mRealContext.getString(R.string.number_of_device_admins_none)); in testUpdateState_noActiveAdminApps()
60 StringUtil.getIcuPluralsString(mRealContext, 1, R.string.number_of_device_admins)); in testUpdateState_singleActiveAdminApp()
72 StringUtil.getIcuPluralsString(mRealContext, 2, R.string.number_of_device_admins)); in testUpdateState_multipleActiveAdminApps()
DDeviceAdminActivatedAppsPreferenceControllerTest.java49 mRealContext.getString(R.string.device_admin_apps_list_empty)); in testUpdateState_noBroadcastReceivers()
61 mRealContext.getString(R.string.device_admin_apps_list_empty)); in testUpdateState_noActivatedAdminApp()
DDeviceAdminDeactivatedAppsPreferenceControllerTest.java49 mRealContext.getString(R.string.device_admin_apps_list_empty)); in testUpdateState_noBroadcastReceivers()
61 mRealContext.getString(R.string.device_admin_apps_list_empty)); in testUpdateState_noDeactivatedAdminApp()
DDeviceAdminAddFragmentTest.java78 private final Context mRealContext = ApplicationProvider.getApplicationContext(); field in DeviceAdminAddFragmentTest
132 XmlResourceParser parser = mRealContext.getResources().getXml(resId); in testGetPreferenceScreenResId()
375 mRealFragment.setUninstallButton(mRealContext, false); in testSetUninstallButton_showButtonFalse()
380 .isEqualTo(mRealContext.getString(R.string.deactivate_and_uninstall_device_admin)); in testSetUninstallButton_showButtonFalse()
387 mRealFragment.setUninstallButton(mRealContext, true); in testSetUninstallButton_showButtonTrue()
392 .isEqualTo(mRealContext.getString(R.string.deactivate_and_uninstall_device_admin)); in testSetUninstallButton_showButtonTrue()
DEnterpriseSetDefaultAppsListPreferenceControllerTest.java295 return mRealContext.getString(resId); in getSingleAppsTitle()
302 return mRealContext.getResources().getQuantityString(resId, numberApps); in getMultipleAppsTitle()
310 return mRealContext.getString(R.string.app_names_concatenation_template_2, in getSummary()
313 return mRealContext.getString(R.string.app_names_concatenation_template_3, in getSummary()
DEnterpriseDisclosurePreferenceControllerTest.java106 assertThat(mPreference.getSummary().toString()).isEqualTo(mRealContext.getString( in testOrganizationNameAbsent_genericDisclosure()
118 assertThat(mPreference.getSummary().toString()).isEqualTo(mRealContext.getString( in testOrganizationNamePresent_specificDisclosure()
DAlwaysOnVpnCurrentUserPreferenceControllerTest.java157 assertThat(mPreference.getTitle()).isEqualTo(mRealContext.getResources() in testNoCompMode_showsRegularTitle()
168 assertThat(mPreference.getTitle()).isEqualTo(mRealContext.getResources() in testCompMode_showsPersonalProfileTitle()
DEnterpriseSetDefaultAppsListFragmentTest.java46 XmlResourceParser parser = mRealContext.getResources().getXml(resId); in testGetPreferenceScreenResId()
DBugReportsPreferenceControllerTest.java61 String formattedDate = DateUtils.formatDateTime(mRealContext, now, in testUpdateState_withBugreport()
DNetworkLogsPreferenceControllerTest.java61 String formattedDate = DateUtils.formatDateTime(mRealContext, now, in testUpdateState_withLogs()
DSecurityLogsPreferenceControllerTest.java61 String formattedDate = DateUtils.formatDateTime(mRealContext, now, in testUpdateState_withLogs()
DEnterprisePrivacySettingsFragmentTest.java49 XmlResourceParser parser = mRealContext.getResources().getXml(resId); in testGetPreferenceScreenResId()
DActionDisabledByAdminActivityTest.java50 mockNullEnforcedAdmin(RESTRICTION_STRING, mRealContext.getUserId()); in setUp()
DFailedPasswordWipeCurrentUserPreferenceControllerTest.java121 String expectedSummary = mRealContext.getResources().getQuantityString( in testUpdateState_set()
DImePreferenceControllerTest.java132 String summary = mRealContext.getResources() in testUpdateState_set()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockPackageManager.java42 private final Context mRealContext; field in ContactsMockPackageManager
49 mRealContext = realContext; in ContactsMockPackageManager()
123 if (mRealContext.getPackageName().equals(appPackageName)) { in getResourcesForApplication()
124 return mRealContext.getResources(); in getResourcesForApplication()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/
DNotificationHelperTest.java80 private final Context mRealContext = InstrumentationRegistry.getInstrumentation() field in NotificationHelperTest
99 mSpiedContext = spy(mRealContext); in setup()
230 .isEqualTo(ComponentName.unflattenFromString(mRealContext.getString( in assertNotificationContents()
237 .isEqualTo(mRealContext.getString(R.string.new_user_managed_notification_title)); in assertNotificationContents()
240 .isEqualTo(ManagedDeviceTextView.getManagedDeviceText(mRealContext).toString()); in assertNotificationContents()
DNotificationHelperValidImportanceTest.java65 private final Context mRealContext = InstrumentationRegistry.getInstrumentation().getContext(); field in NotificationHelperValidImportanceTest
84 mSpiedContext = spy(mRealContext); in setContext()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DPowerUsageSummaryTest.java96 private Context mRealContext; field in PowerUsageSummaryTest
104 mRealContext = spy(RuntimeEnvironment.application); in setUp()
106 mFragment = spy(new TestFragment(mRealContext, mLoaderManager)); in setUp()
112 mFragment.mBatteryUtils = Mockito.spy(new BatteryUtils(mRealContext)); in setUp()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuardTest.java321 private Context mRealContext; field in EnterprisePolicyGuardTest.TestMockContext
328 mRealContext = realContext; in TestMockContext()
350 return mRealContext.getSystemServiceName(serviceClass); in getSystemServiceName()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/
DTcpSocketTrackerTest.java158 private final Context mRealContext = InstrumentationRegistry.getInstrumentation().getContext(); field in TcpSocketTrackerTest
352 assumeTrue(DeviceConfigUtils.isFeatureSupported(mRealContext, in testPollSocketsInfo_ignoreBlockedUid_featureDisabled_UOrAbove()
389 assumeTrue(DeviceConfigUtils.isFeatureSupported(mRealContext, in testPollSocketsInfo_ignoreBlockedUid_featureEnabled()
424 assumeTrue(DeviceConfigUtils.isFeatureSupported(mRealContext, in testPollSocketsInfo_ignoreBlockedUid_featureEnabled_dataSaver()
717 assumeTrue(DeviceConfigUtils.isFeatureSupported(mRealContext, in testTcpInfoParsingWithDozeMode_disabled()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settingslib/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java189 Settings.Secure.putString(mRealContext.getContentResolver(), in mockDefaultInputMehtodSettings()

12