Home
last modified time | relevance | path

Searched refs:StringUtil (Results 1 – 25 of 110) sorted by relevance

12345

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DStringUtilTest.java43 assertTrue(StringUtil.isAsciiPrintable(null)); in nullArrayDoesNotCauseCrash()
49 assertTrue(StringUtil.isAsciiPrintable(new byte[]{})); in emptyArrayIsPrintable()
55 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'a'})); in arrayWithSinglePrintableByteIsPrintable()
64 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'a', 'b'})); in arrayWithMultiplePrintableBytesIsPrintable()
73 assertTrue(StringUtil.isAsciiPrintable(new byte[]{0x07})); // bell in printableControlCharactersAreConsideredPrintable()
74 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'\f'})); // form feed in printableControlCharactersAreConsideredPrintable()
75 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'\n'})); in printableControlCharactersAreConsideredPrintable()
76 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'\t'})); in printableControlCharactersAreConsideredPrintable()
77 assertTrue(StringUtil.isAsciiPrintable(new byte[]{0x0b})); // vertical tab in printableControlCharactersAreConsideredPrintable()
83 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'\n'})); in arrayWithNewlineIsPrintable()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DPasswordHelper.java44 import com.android.settingslib.utils.StringUtil;
157 messages.add(StringUtil.getIcuPluralsString(mContext, error.requirement, in getCredentialValidationErrorMessages()
161 messages.add(StringUtil.getIcuPluralsString(mContext, error.requirement, in getCredentialValidationErrorMessages()
165 messages.add(StringUtil.getIcuPluralsString(mContext, error.requirement, in getCredentialValidationErrorMessages()
169 messages.add(StringUtil.getIcuPluralsString(mContext, error.requirement, in getCredentialValidationErrorMessages()
173 messages.add(StringUtil.getIcuPluralsString(mContext, error.requirement, in getCredentialValidationErrorMessages()
177 messages.add(StringUtil.getIcuPluralsString(mContext, error.requirement, in getCredentialValidationErrorMessages()
181 messages.add(StringUtil.getIcuPluralsString(mContext, error.requirement, in getCredentialValidationErrorMessages()
185 messages.add(StringUtil.getIcuPluralsString(mContext, error.requirement, in getCredentialValidationErrorMessages()
193 messages.add(StringUtil.getIcuPluralsString(mContext, error.requirement + 1, in getCredentialValidationErrorMessages()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/shortcuts/
DGestureShortcutOptionControllerTest.java37 import com.android.settingslib.utils.StringUtil;
89 String expected = StringUtil.getIcuPluralsString( in getSummary_touchExplorationDisabled_notInSuw_verifySummary()
104 String expected = StringUtil.getIcuPluralsString( in getSummary_touchExplorationDisabled_inSuw_verifySummary()
116 String expected = StringUtil.getIcuPluralsString( in getSummary_touchExplorationEnabled_notInSuw_verifySummary()
131 String expected = StringUtil.getIcuPluralsString( in getSummary_touchExplorationEnabled_inSuw_verifySummary()
DQuickSettingsShortcutOptionControllerTest.java45 import com.android.settingslib.utils.StringUtil;
107 String expected = StringUtil.getIcuPluralsString( in getSummary_touchExplorationDisabled_inSuw_verifySummary()
119 String expected = StringUtil.getIcuPluralsString( in getSummary_touchExplorationDisabled_notInSuw_verifySummary()
131 String expected = StringUtil.getIcuPluralsString( in getSummary_touchExplorationEnabled_inSuw_verifySummary()
143 String expected = StringUtil.getIcuPluralsString( in getSummary_touchExplorationEnabled_notInSuw_verifySummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DTopLevelLocationPreferenceControllerTest.java25 import com.android.settingslib.utils.StringUtil;
71 StringUtil.getIcuPluralsString(mContext, locationAppCount, in getSummary_whenLocationIsOn_shouldPreservePreviousText()
81 StringUtil.getIcuPluralsString(mContext, locationAppCount, in getSummary_whenLocationAppCountIsOne_shouldShowSingularString()
91 StringUtil.getIcuPluralsString(mContext, locationAppCount, in getSummary_whenLocationAppCountIsGreaterThanOne_shouldShowPluralString()
DAppLocationPermissionPreferenceControllerTest.java16 import com.android.settingslib.utils.StringUtil;
96 assertThat(mController.getSummary()).isEqualTo(StringUtil.getIcuPluralsString(mContext, in getSummary_whenLocationAppCountIsOne_shouldShowSingularString()
109 assertThat(mController.getSummary()).isEqualTo(StringUtil.getIcuPluralsString(mContext, in getSummary_whenLocationAppCountIsGreaterThanOne_shouldShowPluralString()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/
DRestrictAppTip.java31 import com.android.settingslib.utils.StringUtil;
72 ? StringUtil.getIcuPluralsString( in getTitle()
74 : StringUtil.getIcuPluralsString( in getTitle()
92 return StringUtil.getIcuPluralsString(context, arguments, resId); in getSummary()
/packages/apps/Settings/src/com/android/settings/print/
DPrintSettingPreferenceController.java37 import com.android.settingslib.utils.StringUtil;
114 return StringUtil.getIcuPluralsString(mContext, numActivePrintJobs, in getSummary()
122 return StringUtil.getIcuPluralsString(mContext, services.size(), in getSummary()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java47 import com.android.server.wifi.util.StringUtil;
872 stats.add(StringUtil.calendarToString(c)); in logLinkMetrics()
876 stats.add(StringUtil.doubleToString(filteredRssi, 1)); in logLinkMetrics()
884 stats.add(StringUtil.doubleToString(mWifiInfo.getSuccessfulTxPacketsPerSecond(), 2)); in logLinkMetrics()
885 stats.add(StringUtil.doubleToString(mWifiInfo.getRetriedTxPacketsPerSecond(), 2)); in logLinkMetrics()
886 stats.add(StringUtil.doubleToString(mWifiInfo.getLostTxPacketsPerSecond(), 2)); in logLinkMetrics()
887 stats.add(StringUtil.doubleToString(mWifiInfo.getSuccessfulRxPacketsPerSecond(), 2)); in logLinkMetrics()
922 mloStats.add(StringUtil.doubleToString(link.getSuccessfulTxPacketsPerSecond(), 2)); in logLinkMetrics()
923 mloStats.add(StringUtil.doubleToString(link.getRetriedTxPacketsPerSecond(), 2)); in logLinkMetrics()
924 mloStats.add(StringUtil.doubleToString(link.getLostTxPacketsPerSecond(), 2)); in logLinkMetrics()
[all …]
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/util/
DStringUtil.java30 public final class StringUtil { class
32 private StringUtil() {} in StringUtil() method in StringUtil
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DManageDeviceAdminPreferenceControllerTest.java30 import com.android.settingslib.utils.StringUtil;
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()
/packages/apps/Settings/src/com/android/settings/notification/
DConversationListSummaryPreferenceController.java23 import com.android.settingslib.utils.StringUtil;
45 return StringUtil.getIcuPluralsString(mContext, count, in getSummary()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/security/
DPasswordHelperTest.java43 import com.android.settingslib.utils.StringUtil;
102 return StringUtil.getIcuPluralsString(mContext, lengthRequired, in passwordTooShort()
107 return StringUtil.getIcuPluralsString(mContext, lengthRequired, in pinTooShort()
112 return StringUtil.getIcuPluralsString(mContext, lengthRequired, in patternTooShort()
/packages/apps/Settings/src/com/android/settings/enterprise/
DCaCertsPreferenceControllerBase.java25 import com.android.settingslib.utils.StringUtil;
40 preference.setSummary(StringUtil.getIcuPluralsString(mContext, getNumberOfCaCerts(), in updateState()
DFailedPasswordWipePreferenceControllerBase.java25 import com.android.settingslib.utils.StringUtil;
43 preference.setSummary(StringUtil.getIcuPluralsString(mContext, failedPasswordsBeforeWipe, in updateState()
DEnterpriseSetDefaultAppsListPreferenceController.java43 import com.android.settingslib.utils.StringUtil;
198 return StringUtil.getIcuPluralsString(context, appCount, in getTitle()
203 return StringUtil.getIcuPluralsString(context, appCount, in getTitle()
206 return StringUtil.getIcuPluralsString(context, appCount, in getTitle()
DManageDeviceAdminPreferenceController.java24 import com.android.settingslib.utils.StringUtil;
51 return StringUtil.getIcuPluralsString(mContext, activeAdmins, in getSummary()
/packages/apps/Settings/src/com/android/settings/
DMonitoringCertInfoActivity.java36 import com.android.settingslib.utils.StringUtil;
71 final CharSequence title = StringUtil.getIcuPluralsString(this, numberOfCertificates, in onCreate()
78 builder.setPositiveButton(StringUtil.getIcuPluralsString(this, numberOfCertificates, in onCreate()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DPerfImpactingAppsEntryPreferenceController.java28 import com.android.settingslib.utils.StringUtil;
52 getPreference().setSummary(StringUtil.getIcuPluralsString(getContext(), in onPerfImpactingAppsLoaded()
DHibernatedAppsPreferenceController.java29 import com.android.settingslib.utils.StringUtil;
56 getPreference().setSummary(StringUtil.getIcuPluralsString(getContext(), hibernatedAppsCount, in onHibernatedAppsCountLoaded()
/packages/apps/Settings/src/com/android/settings/notification/app/
DDeletedChannelsPreferenceController.java26 import com.android.settingslib.utils.StringUtil;
63 preference.setTitle(StringUtil.getIcuPluralsString(mContext, deletedChannelCount, in updateState()
/packages/apps/Settings/src/com/android/settings/password/
DChooseLockPassword.java97 import com.android.settingslib.utils.StringUtil;
864 messages.add(StringUtil.getIcuPluralsString(getContext(), error.requirement, in convertErrorCodeToMessages()
868 messages.add(StringUtil.getIcuPluralsString(getContext(), error.requirement, in convertErrorCodeToMessages()
872 messages.add(StringUtil.getIcuPluralsString(getContext(), error.requirement, in convertErrorCodeToMessages()
876 messages.add(StringUtil.getIcuPluralsString(getContext(), error.requirement, in convertErrorCodeToMessages()
880 messages.add(StringUtil.getIcuPluralsString(getContext(), error.requirement, in convertErrorCodeToMessages()
884 messages.add(StringUtil.getIcuPluralsString(getContext(), error.requirement, in convertErrorCodeToMessages()
888 messages.add(StringUtil.getIcuPluralsString(getContext(), error.requirement, in convertErrorCodeToMessages()
892 String message = StringUtil.getIcuPluralsString(getContext(), in convertErrorCodeToMessages()
903 message = StringUtil.getIcuPluralsString(getContext(), in convertErrorCodeToMessages()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DManageDeviceAdminPreferenceController.java26 import com.android.settingslib.utils.StringUtil;
47 : StringUtil.getIcuPluralsString(getContext(), activeAdmins, in updateState()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/
DManageMicPermissionsPreferenceControllerTest.java49 import com.android.settingslib.utils.StringUtil;
139 assertThat(mPreference.getSummary()).isEqualTo(StringUtil.getIcuPluralsString(mContext, in getSummary_whenLocationAppCountIsOne_shouldShowSingularString()
157 assertThat(mPreference.getSummary()).isEqualTo(StringUtil.getIcuPluralsString(mContext, in getSummary_whenLocationAppCountIsGreaterThanOne_shouldShowPluralString()
182 assertThat(mPreference.getSummary()).isEqualTo(StringUtil.getIcuPluralsString(mContext, in getSummary_multipleUsers_addsAppCounts()
DManageCameraPermissionsPreferenceControllerTest.java49 import com.android.settingslib.utils.StringUtil;
139 assertThat(mPreference.getSummary()).isEqualTo(StringUtil.getIcuPluralsString(mContext, in getSummary_whenCameraAppCountIsOne_shouldShowSingularString()
157 assertThat(mPreference.getSummary()).isEqualTo(StringUtil.getIcuPluralsString(mContext, in getSummary_whenCameraAppCountIsGreaterThanOne_shouldShowPluralString()
182 assertThat(mPreference.getSummary()).isEqualTo(StringUtil.getIcuPluralsString(mContext, in getSummary_multipleUsers_addsAppCounts()

12345