/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | StringUtilTest.java | 43 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/ |
D | PasswordHelper.java | 44 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/ |
D | GestureShortcutOptionControllerTest.java | 37 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()
|
D | QuickSettingsShortcutOptionControllerTest.java | 45 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/ |
D | TopLevelLocationPreferenceControllerTest.java | 25 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()
|
D | AppLocationPermissionPreferenceControllerTest.java | 16 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/ |
D | RestrictAppTip.java | 31 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/ |
D | PrintSettingPreferenceController.java | 37 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/ |
D | WifiScoreReport.java | 47 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/ |
D | StringUtil.java | 30 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/ |
D | ManageDeviceAdminPreferenceControllerTest.java | 30 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/ |
D | ConversationListSummaryPreferenceController.java | 23 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/ |
D | PasswordHelperTest.java | 43 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/ |
D | CaCertsPreferenceControllerBase.java | 25 import com.android.settingslib.utils.StringUtil; 40 preference.setSummary(StringUtil.getIcuPluralsString(mContext, getNumberOfCaCerts(), in updateState()
|
D | FailedPasswordWipePreferenceControllerBase.java | 25 import com.android.settingslib.utils.StringUtil; 43 preference.setSummary(StringUtil.getIcuPluralsString(mContext, failedPasswordsBeforeWipe, in updateState()
|
D | EnterpriseSetDefaultAppsListPreferenceController.java | 43 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()
|
D | ManageDeviceAdminPreferenceController.java | 24 import com.android.settingslib.utils.StringUtil; 51 return StringUtil.getIcuPluralsString(mContext, activeAdmins, in getSummary()
|
/packages/apps/Settings/src/com/android/settings/ |
D | MonitoringCertInfoActivity.java | 36 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/ |
D | PerfImpactingAppsEntryPreferenceController.java | 28 import com.android.settingslib.utils.StringUtil; 52 getPreference().setSummary(StringUtil.getIcuPluralsString(getContext(), in onPerfImpactingAppsLoaded()
|
D | HibernatedAppsPreferenceController.java | 29 import com.android.settingslib.utils.StringUtil; 56 getPreference().setSummary(StringUtil.getIcuPluralsString(getContext(), hibernatedAppsCount, in onHibernatedAppsCountLoaded()
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | DeletedChannelsPreferenceController.java | 26 import com.android.settingslib.utils.StringUtil; 63 preference.setTitle(StringUtil.getIcuPluralsString(mContext, deletedChannelCount, in updateState()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ChooseLockPassword.java | 97 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/ |
D | ManageDeviceAdminPreferenceController.java | 26 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/ |
D | ManageMicPermissionsPreferenceControllerTest.java | 49 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()
|
D | ManageCameraPermissionsPreferenceControllerTest.java | 49 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()
|