Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/unit/src/com/android/settings/applications/appcompat/
DUserAspectRatioManagerTest.java251 final String appDefault = ResourcesUtils.getResourcesString(context, in testGetUserMinAspectRatioEntry()
260 mPackageName)).isEqualTo(ResourcesUtils.getResourcesString(context, in testGetUserMinAspectRatioEntry()
264 mPackageName)).isEqualTo(ResourcesUtils.getResourcesString(context, in testGetUserMinAspectRatioEntry()
268 .isEqualTo(ResourcesUtils.getResourcesString(context, "user_aspect_ratio_16_9")); in testGetUserMinAspectRatioEntry()
271 .isEqualTo(ResourcesUtils.getResourcesString(context, "user_aspect_ratio_4_3")); in testGetUserMinAspectRatioEntry()
274 .isEqualTo(ResourcesUtils.getResourcesString(context, "user_aspect_ratio_3_2")); in testGetUserMinAspectRatioEntry()
277 mPackageName)).isEqualTo(ResourcesUtils.getResourcesString(context, in testGetUserMinAspectRatioEntry()
285 mPackageName)).isEqualTo(ResourcesUtils.getResourcesString( in testGetUserMinAspectRatioEntry_fullscreenDisabled_shouldReturnDefault()
339 .isEqualTo(ResourcesUtils.getResourcesString( in testGetUserMinAspectRatioEntry_enabledFullscreenOverride_returnsFullscreen()
345 .isEqualTo(ResourcesUtils.getResourcesString( in testGetUserMinAspectRatioEntry_enabledFullscreenOverride_returnsFullscreen()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/security/
DSecurityAdvancedSettingsControllerTest.java70 .isEqualTo(getResourcesString(NO_WORK_PROFILE_SUMMARY_RESOURCE_NAME)); in getSummary_withoutWorkProfile()
80 .isEqualTo(getResourcesString(WORK_PROFILE_SUMMARY_RESOURCE_NAME)); in getSummary_withWorkProfile()
83 private String getResourcesString(String resName) { in getResourcesString() method in SecurityAdvancedSettingsControllerTest
84 return ResourcesUtils.getResourcesString(mContext, resName); in getResourcesString()
/packages/apps/Settings/tests/unit/src/com/android/settings/regionalpreferences/
DFirstDayOfWeekControllerTest.java62 assertEquals(ResourcesUtils.getResourcesString( in getSummary_hasProviderValue_resultIsWed()
72 assertEquals(ResourcesUtils.getResourcesString( in getSummary_hasProviderValue_resultIsSat()
83 assertEquals(ResourcesUtils.getResourcesString( in getSummary_noProviderValueButHasDefaultLocaleWithSubtag_resultIsSat()
94 assertEquals(ResourcesUtils.getResourcesString( in getSummary_noProviderValueAndDefaultLocaleWithoutSubtag_resultIsdefault()
DTemperatureUnitControllerTest.java63 assertEquals(ResourcesUtils.getResourcesString( in getSummary_hasProviderValue_resultIsCelsius()
74 assertEquals(ResourcesUtils.getResourcesString( in getSummary_hasProviderValue_resultIsFahrenheit()
85 assertEquals(ResourcesUtils.getResourcesString( in getSummary_noProviderValueButHasDefaultLocaleWithSubtag_resultIsFahrenheit()
96 assertEquals(ResourcesUtils.getResourcesString( in getSummary_noProviderValueAndDefaultLocaleWithoutSubtag_resultIsDefault()
DRegionalPreferencesDataUtilsTest.java125 assertEquals(ResourcesUtils.getResourcesString( in temperatureUnitsConverter_inputFahrenheit_resultIsFahrenheitString()
134 assertEquals(ResourcesUtils.getResourcesString( in temperatureUnitsConverter_inputDefault_resultIsDefaultString()
143 assertEquals(ResourcesUtils.getResourcesString( in dayConverter_inputWed_resultIsWedString()
152 assertEquals(ResourcesUtils.getResourcesString( in dayConverter_inputDefault_resultIsDefaultString()
161 assertEquals(ResourcesUtils.getResourcesString( in calendarConverter_inputDefault_resultIsDefaultString()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/
DPhoneNumberPreferenceControllerTest.java115 verify(mPreference).setTitle(ResourcesUtils.getResourcesString(mContext, "status_number")); in updateState_singleSim_shouldUpdateTitleAndPhoneNumber()
129 verify(mPreference).setTitle(ResourcesUtils.getResourcesString( in updateState_multiSim_shouldUpdateTitleAndPhoneNumberOfMultiplePreferences()
132 verify(mSecondPreference).setTitle(ResourcesUtils.getResourcesString( in updateState_multiSim_shouldUpdateTitleAndPhoneNumberOfMultiplePreferences()
144 verify(mPreference).setSummary(ResourcesUtils.getResourcesString( in getSummary_cannotGetActiveSubscriptionInfo_shouldShowUnknown()
156 verify(mPreference).setSummary(ResourcesUtils.getResourcesString( in getSummary_getEmptySubscriptionInfo_shouldShowUnknown()
DTopLevelStoragePreferenceControllerTest.java105 assertThat(preference.getSummary()).isEqualTo(ResourcesUtils.getResourcesString( in updateSummary_shouldDisplayUsedPercentAndFreeSpace()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogControllerTest.java185 final String inServiceText = ResourcesUtils.getResourcesString( in initialize_updateServiceStateWithInService_shouldUpdateTextToBeCInService()
197 final String offServiceText = ResourcesUtils.getResourcesString( in initialize_updateServiceStateWithPowerOff_shouldUpdateText()
211 final String offServiceText = ResourcesUtils.getResourcesString( in initialize_updateVoiceDataOutOfService_shouldUpdateSetting()
223 final String inServiceText = ResourcesUtils.getResourcesString( in initialize_updateVoiceOutOfServiceDataInService_shouldUpdateTextToBeInService()
256 final String roamingOnString = ResourcesUtils.getResourcesString( in initialize_updateRoamingStatusIsRoaming_shouldSetSettingToRoaming()
267 final String roamingOffString = ResourcesUtils.getResourcesString( in initialize_updateRoamingStatusNotRoaming_shouldSetSettingToRoamingOff()
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DResourcesUtils.java43 public static String getResourcesString(Context context, String name) { in getResourcesString() method in ResourcesUtils
57 public static String getResourcesString(Context context, String name, Object... value) { in getResourcesString() method in ResourcesUtils
/packages/apps/Settings/tests/unit/src/com/android/settings/localepicker/
DLocaleDialogFragmentTest.java85 assertEquals(ResourcesUtils.getResourcesString( in getDialogContent_confirmSystemDefault_has2ButtonText()
88 assertEquals(ResourcesUtils.getResourcesString(mContext, "cancel"), in getDialogContent_confirmSystemDefault_has2ButtonText()
102 assertEquals(ResourcesUtils.getResourcesString(mContext, "okay"), in getDialogContent_unavailableLocale_has1ButtonText()
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/
DManageablePreferenceTest.java55 final String alwaysOnString = ResourcesUtils.getResourcesString( in setAlwaysOnVpn_summaryUpdatedCorrectly()
64 final String insecureString = ResourcesUtils.getResourcesString( in setInsecure_summaryUpdatedCorrectly()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/combination/
DCombinedBiometricStatusUtilsTest.java219 .isEqualTo(ResourcesUtils.getResourcesString( in getSummary_whenFaceEnrolled_whenMultipleFingerprints_returnsBothFpMultiple()
231 .isEqualTo(ResourcesUtils.getResourcesString( in getSummary_whenFaceEnrolled_whenSingleFingerprint_returnsBothFpSingle()
243 .isEqualTo(ResourcesUtils.getResourcesString( in getSummary_whenFaceEnrolled_whenNoFingerprints_returnsFace()
287 .isEqualTo(ResourcesUtils.getResourcesString( in getSummary_whenNoFaceEnrolled_whenNoFingerprints_returnsNoneEnrolled()
/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/
DLockScreenSafetySourceTest.java155 ResourcesUtils.getResourcesString( in setSafetySourceData_whenScreenLockIsEnabled_setData()
313 ResourcesUtils.getResourcesString( in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setsIssue()
317 ResourcesUtils.getResourcesString( in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setsIssue()
329 ResourcesUtils.getResourcesString( in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setsIssue()
406 ResourcesUtils.getResourcesString( in setSafetySourceData_whenPasswordQualityIsManaged_setDisabled()
DBiometricsSafetySourceTest.java645 ResourcesUtils.getResourcesString(mApplicationContext, expectedTitleResName), in assertSafetySourceDisabledDataSetWithSingularSummary()
646 ResourcesUtils.getResourcesString(mApplicationContext, expectedSummaryResName)); in assertSafetySourceDisabledDataSetWithSingularSummary()
654 ResourcesUtils.getResourcesString(mApplicationContext, expectedTitleResName), in assertSafetySourceEnabledDataSetWithSingularSummary()
655 ResourcesUtils.getResourcesString(mApplicationContext, expectedSummaryResName), in assertSafetySourceEnabledDataSetWithSingularSummary()
669 ResourcesUtils.getResourcesString(mApplicationContext, expectedTitleResName), in assertSafetySourceDisabledDataSetWithPluralSummary()
685 ResourcesUtils.getResourcesString(mApplicationContext, expectedTitleResName), in assertSafetySourceEnabledDataSetWithPluralSummary()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DProviderModelSliceHelperTest.java186 String connectedText = ResourcesUtils.getResourcesString(mContext, in createCarrierRow_wifiOnhasDdsAndActiveNetworkIsCellular_verifyTitleAndSummary()
188 CharSequence expectedSubtitle = ResourcesUtils.getResourcesString(mContext, in createCarrierRow_wifiOnhasDdsAndActiveNetworkIsCellular_verifyTitleAndSummary()
205 ResourcesUtils.getResourcesString(mContext, "mobile_data_no_connection"); in createCarrierRow_noNetworkAvailable_verifyTitleAndSummary()
DNetworkProviderSimListControllerTest.java152 return ResourcesUtils.getResourcesString(mContext, resName, value); in setSummaryResId()
156 return ResourcesUtils.getResourcesString(mContext, resName); in setSummaryResId()
DProviderModelSliceTest.java224 ResourcesUtils.getResourcesString(mContext, "wifi_settings")); in getSlice_airplaneModeIsOn_oneWifiToggle()
390 ResourcesUtils.getResourcesString(mContext, "summary_placeholder")); in getPrimarySliceAction()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/face/
DFaceStatusUtilsTest.java154 .isEqualTo(ResourcesUtils.getResourcesString( in getSummary_whenNotEnrolled_returnsSummaryNone()
164 .isEqualTo(ResourcesUtils.getResourcesString( in getSummary_whenEnrolled_returnsSummary()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DWifiTetherMaximizeCompatibilityPreferenceControllerTest.java116 assertThat(mPreference.getSummary()).isEqualTo(ResourcesUtils.getResourcesString(mContext, in updateDisplay_notSupportedBridgedApConcurrency_setSingleApSummary()
126 assertThat(mPreference.getSummary()).isEqualTo(ResourcesUtils.getResourcesString(mContext, in updateDisplay_supportedBridgedApConcurrency_setDualApSummary()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DMobileDataPreferenceControllerTest.java229 ResourcesUtils.getResourcesString(mContext, in updateState_opportunistic_disabled()
241 ResourcesUtils.getResourcesString(mContext, "mobile_data_settings_summary")); in updateState_notOpportunistic_enabled()
DEnhanced4gLteSliceHelperTest.java207 ResourcesUtils.getResourcesString(mContext, "enhanced_4g_lte_mode_title")); in testEnhanced4gLteSettingsUnavailableSlice()
233 ResourcesUtils.getResourcesString(mContext, "enhanced_4g_lte_mode_title")); in testEnhanced4gLteSettingsToggleSlice()
DPreferredNetworkModePreferenceControllerTest.java143 ResourcesUtils.getResourcesString(mContext, in updateState_updateByNetworkMode()
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java226 ResourcesUtils.getResourcesString( in testSetUsageInfo_cycleRemainingTimeIsLessOneDay()
239 ResourcesUtils.getResourcesString(mContext, "billing_cycle_none_left")); in testSetUsageInfo_cycleRemainingTimeNegativeDaysLeft_shouldDisplayNoneLeft()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/fingerprint/
DFingerprintStatusUtilsTest.java160 .isEqualTo(ResourcesUtils.getResourcesString( in getSummary_whenNotEnrolled_returnsSummaryNone()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DUserCredentialsSettingsTest.java193 return ResourcesUtils.getResourcesString(ApplicationProvider.getApplicationContext(), name); in getResString()

12