/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/ |
D | CaCertsCurrentUserPreferenceControllerTest.java | 72 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()
|
D | DeviceAdminAddWarningPreferenceControllerTest.java | 48 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()
|
D | BaseEnterpriseTestCase.java | 66 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()
|
D | ManageDeviceAdminPreferenceControllerTest.java | 49 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()
|
D | DeviceAdminActivatedAppsPreferenceControllerTest.java | 49 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()
|
D | DeviceAdminDeactivatedAppsPreferenceControllerTest.java | 49 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()
|
D | DeviceAdminAddFragmentTest.java | 78 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()
|
D | EnterpriseSetDefaultAppsListPreferenceControllerTest.java | 295 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()
|
D | EnterpriseDisclosurePreferenceControllerTest.java | 106 assertThat(mPreference.getSummary().toString()).isEqualTo(mRealContext.getString( in testOrganizationNameAbsent_genericDisclosure() 118 assertThat(mPreference.getSummary().toString()).isEqualTo(mRealContext.getString( in testOrganizationNamePresent_specificDisclosure()
|
D | AlwaysOnVpnCurrentUserPreferenceControllerTest.java | 157 assertThat(mPreference.getTitle()).isEqualTo(mRealContext.getResources() in testNoCompMode_showsRegularTitle() 168 assertThat(mPreference.getTitle()).isEqualTo(mRealContext.getResources() in testCompMode_showsPersonalProfileTitle()
|
D | EnterpriseSetDefaultAppsListFragmentTest.java | 46 XmlResourceParser parser = mRealContext.getResources().getXml(resId); in testGetPreferenceScreenResId()
|
D | BugReportsPreferenceControllerTest.java | 61 String formattedDate = DateUtils.formatDateTime(mRealContext, now, in testUpdateState_withBugreport()
|
D | NetworkLogsPreferenceControllerTest.java | 61 String formattedDate = DateUtils.formatDateTime(mRealContext, now, in testUpdateState_withLogs()
|
D | SecurityLogsPreferenceControllerTest.java | 61 String formattedDate = DateUtils.formatDateTime(mRealContext, now, in testUpdateState_withLogs()
|
D | EnterprisePrivacySettingsFragmentTest.java | 49 XmlResourceParser parser = mRealContext.getResources().getXml(resId); in testGetPreferenceScreenResId()
|
D | ActionDisabledByAdminActivityTest.java | 50 mockNullEnforcedAdmin(RESTRICTION_STRING, mRealContext.getUserId()); in setUp()
|
D | FailedPasswordWipeCurrentUserPreferenceControllerTest.java | 121 String expectedSummary = mRealContext.getResources().getQuantityString( in testUpdateState_set()
|
D | ImePreferenceControllerTest.java | 132 String summary = mRealContext.getResources() in testUpdateState_set()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsMockPackageManager.java | 42 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/ |
D | NotificationHelperTest.java | 80 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()
|
D | NotificationHelperValidImportanceTest.java | 65 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/ |
D | PowerUsageSummaryTest.java | 96 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/ |
D | EnterprisePolicyGuardTest.java | 321 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/ |
D | TcpSocketTrackerTest.java | 158 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/ |
D | EnterprisePrivacyFeatureProviderImplTest.java | 189 Settings.Secure.putString(mRealContext.getContentResolver(), in mockDefaultInputMehtodSettings()
|