Home
last modified time | relevance | path

Searched refs:ResourcesUtils (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Settings/tests/unit/src/com/android/settings/applications/appcompat/
DUserAspectRatioManagerTest.java65 import com.android.settings.testutils.ResourcesUtils;
251 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()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/
DVpnInfoPreferenceTest.java34 import com.android.settings.testutils.ResourcesUtils;
56 final int helpUrlId = ResourcesUtils.getResourcesId( in setUp()
64 final int layoutId = ResourcesUtils.getResourcesId( in setUp()
70 final int warningButtonId = ResourcesUtils.getResourcesId( in setUp()
89 final int helpUrlId = ResourcesUtils.getResourcesId( in onBindViewHolder_emptyUrl_iconInvisible()
116 final int dividerId = ResourcesUtils.getResourcesId(mContext, "id", "two_target_divider"); in onBindViewHolder_dividerInvisible()
DManageablePreferenceTest.java27 import com.android.settings.testutils.ResourcesUtils;
55 final String alwaysOnString = ResourcesUtils.getResourcesString( in setAlwaysOnVpn_summaryUpdatedCorrectly()
64 final String insecureString = ResourcesUtils.getResourcesString( in setInsecure_summaryUpdatedCorrectly()
81 int id = ResourcesUtils.getResourcesId(mContext, "array", "vpn_states"); in setState_summaryUpdatedCorrectly()
/packages/apps/Settings/tests/unit/src/com/android/settings/regionalpreferences/
DFirstDayOfWeekControllerTest.java26 import com.android.settings.testutils.ResourcesUtils;
62 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.java26 import com.android.settings.testutils.ResourcesUtils;
63 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.java29 import com.android.settings.testutils.ResourcesUtils;
125 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.java40 import com.android.settings.testutils.ResourcesUtils;
115 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()
DBrandedAccountPreferenceControllerTest.java35 import com.android.settings.testutils.ResourcesUtils;
66 final int boolId = ResourcesUtils.getResourcesId( in isAvailable_configOn_noAccount_off()
79 final int boolId = ResourcesUtils.getResourcesId( in isAvailable_accountIsAvailable_on()
95 final int boolId = ResourcesUtils.getResourcesId( in isAvailable_configOff_hasAccount_off()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/combination/
DCombinedBiometricStatusUtilsTest.java43 import com.android.settings.testutils.ResourcesUtils;
219 .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()
251 final int stringResId = ResourcesUtils.getResourcesId( in getSummary_whenNoFaceEnrolled_whenMultipleFingerprints_returnsFingerprints()
267 final int stringResId = ResourcesUtils.getResourcesId( in getSummary_whenNoFaceEnrolled_whenSingleFingerprints_returnsFingerprints()
287 .isEqualTo(ResourcesUtils.getResourcesString( in getSummary_whenNoFaceEnrolled_whenNoFingerprints_returnsNoneEnrolled()
/packages/apps/Settings/tests/unit/src/com/android/settings/localepicker/
DLocaleDialogFragmentTest.java39 import com.android.settings.testutils.ResourcesUtils;
85 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/deviceinfo/simstatus/
DSimStatusDialogControllerTest.java54 import com.android.settings.testutils.ResourcesUtils;
185 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/deviceinfo/hardwareinfo/
DDeviceModelPreferenceControllerTest.java31 import com.android.settings.testutils.ResourcesUtils;
58 final int boolId = ResourcesUtils.getResourcesId( in getAvailabilityStatus_configAllowed_available()
68 final int boolId = ResourcesUtils.getResourcesId( in getAvailabilityStatus_configDisallowed_unavailable()
DHardwareInfoPreferenceControllerTest.java36 import com.android.settings.testutils.ResourcesUtils;
74 final int boolId = ResourcesUtils.getResourcesId( in isAvailable_returnTrueIfVisible()
84 final int boolId = ResourcesUtils.getResourcesId( in isAvailable_returnFalseIfNotVisible()
/packages/apps/Settings/tests/unit/src/com/android/settings/widget/
DGearPreferenceTest.java32 import com.android.settings.testutils.ResourcesUtils;
56 int layoutId = ResourcesUtils.getResourcesId(mContext, "layout", "preference_widget_gear"); in setUp()
63 int gearId = ResourcesUtils.getResourcesId(mContext, "id", "settings_button"); in setUp()
DMutableGearPreferenceTest.java33 import com.android.settings.testutils.ResourcesUtils;
58 ResourcesUtils.getResourcesId(mContext, "layout", "preference_widget_gear"); in setUp()
65 int gearId = ResourcesUtils.getResourcesId(mContext, "id", "settings_button"); in setUp()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/credentials/
DDefaultCombinedPreferenceControllerTest.java36 import com.android.settings.testutils.ResourcesUtils;
127 ResourcesUtils.getResourcesId( in createTestPreference()
134 int gearId = ResourcesUtils.getResourcesId(mContext, "id", "settings_button"); in createTestPreference()
DPrimaryProviderPreferenceTest.java34 import com.android.settings.testutils.ResourcesUtils;
139 int layoutId = ResourcesUtils.getResourcesId(mContext, "layout", layoutName); in createTestPreference()
145 int gearId = ResourcesUtils.getResourcesId(mContext, "id", "settings_button"); in createTestPreference()
/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/
DBiometricsSafetySourceTest.java55 import com.android.settings.testutils.ResourcesUtils;
645 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()
664 ResourcesUtils.getResourcesId( in assertSafetySourceDisabledDataSetWithPluralSummary()
669 ResourcesUtils.getResourcesString(mApplicationContext, expectedTitleResName), in assertSafetySourceDisabledDataSetWithPluralSummary()
680 ResourcesUtils.getResourcesId( in assertSafetySourceEnabledDataSetWithPluralSummary()
685 ResourcesUtils.getResourcesString(mApplicationContext, expectedTitleResName), in assertSafetySourceEnabledDataSetWithPluralSummary()
DLockScreenSafetySourceTest.java44 import com.android.settings.testutils.ResourcesUtils;
155 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()
DMoreSecurityPrivacyFragmentSettingsTest.java35 import com.android.settings.testutils.ResourcesUtils;
100 return ResourcesUtils.getResourcesId(mContext, "xml", resName); in getXmlResId()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/face/
DFaceStatusUtilsTest.java38 import com.android.settings.testutils.ResourcesUtils;
154 .isEqualTo(ResourcesUtils.getResourcesString( in getSummary_whenNotEnrolled_returnsSummaryNone()
164 .isEqualTo(ResourcesUtils.getResourcesString( in getSummary_whenEnrolled_returnsSummary()
/packages/apps/Settings/tests/unit/src/com/android/settings/security/
DSecurityAdvancedSettingsControllerTest.java31 import com.android.settings.testutils.ResourcesUtils;
84 return ResourcesUtils.getResourcesString(mContext, resName); in getResourcesString()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DProviderModelSliceHelperTest.java53 import com.android.settings.testutils.ResourcesUtils;
186 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()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/fingerprint/
DFingerprintStatusUtilsTest.java38 import com.android.settings.testutils.ResourcesUtils;
160 .isEqualTo(ResourcesUtils.getResourcesString( in getSummary_whenNotEnrolled_returnsSummaryNone()
168 final int stringResId = ResourcesUtils.getResourcesId( in getSummary_whenEnrolled_returnsSummary()
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java37 import com.android.settings.testutils.ResourcesUtils;
226 ResourcesUtils.getResourcesString( in testSetUsageInfo_cycleRemainingTimeIsLessOneDay()
239 ResourcesUtils.getResourcesString(mContext, "billing_cycle_none_left")); in testSetUsageInfo_cycleRemainingTimeNegativeDaysLeft_shouldDisplayNoneLeft()
387 int data_used_formatted_id = ResourcesUtils.getResourcesId( in testSetUsageInfo_withOverflowStrings_dataRemainingNotShown()
389 int data_remaining_id = ResourcesUtils.getResourcesId( in testSetUsageInfo_withOverflowStrings_dataRemainingNotShown()

12