/aosp14/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | TextUtilsTest.java | 19 import static android.text.TextUtils.formatSimple; 883 assertEquals("!", formatSimple("%c", '!')); in testFormatSimple_Types() 885 assertEquals("42", formatSimple("%d", 42)); in testFormatSimple_Types() 894 assertEquals("2a", formatSimple("%x", 42)); in testFormatSimple_Types() 897 assertEquals("%", formatSimple("%%")); in testFormatSimple_Types() 902 assertEquals("42", formatSimple("%1d", 42)); in testFormatSimple_Width() 903 assertEquals("42", formatSimple("%2d", 42)); in testFormatSimple_Width() 904 assertEquals(" 42", formatSimple("%3d", 42)); in testFormatSimple_Width() 921 assertEquals("", formatSimple("")); in testFormatSimple_Empty() 942 formatSimple("%s"); in testFormatSimple_Mismatch() [all …]
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | PropertyInvalidatedCache.java | 1079 Log.w(TAG, TextUtils.formatSimple( 1121 Log.d(TAG, TextUtils.formatSimple( 1148 Log.w(TAG, TextUtils.formatSimple( 1157 Log.d(TAG, TextUtils.formatSimple( 1196 Log.w(TAG, TextUtils.formatSimple( 1205 Log.d(TAG, TextUtils.formatSimple( 1345 Log.e(TAG, TextUtils.formatSimple( 1511 pw.println(TextUtils.formatSimple( 1514 pw.println(TextUtils.formatSimple( 1518 pw.println(TextUtils.formatSimple( [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaSessionDeviceConfig.java | 116 pw.println(TextUtils.formatSimple(dumpFormat, in dump() 120 pw.println(TextUtils.formatSimple(dumpFormat, in dump() 124 pw.println(TextUtils.formatSimple(dumpFormat, in dump()
|
H A D | MediaRouter2ServiceImpl.java | 809 Slog.i(TAG, TextUtils.formatSimple( in registerRouter2Locked() 824 TextUtils.formatSimple( in unregisterRouter2Locked() 855 TextUtils.formatSimple( in setDiscoveryRequestWithRouter2Locked() 886 TextUtils.formatSimple( in setRouteListingPreferenceLocked() 907 TextUtils.formatSimple( in setRouteVolumeWithRouter2Locked() 1000 TextUtils.formatSimple( in selectRouteWithRouter2Locked() 1021 TextUtils.formatSimple( in deselectRouteWithRouter2Locked() 1042 TextUtils.formatSimple( in transferToRouteWithRouter2Locked() 1074 TextUtils.formatSimple( in setSessionVolumeWithRouter2Locked() 1098 TextUtils.formatSimple( in releaseSessionWithRouter2Locked() [all …]
|
H A D | MediaSessionStack.java | 87 Slog.i(TAG, TextUtils.formatSimple( in addSession() 106 Slog.i(TAG, TextUtils.formatSimple( in removeSession() 155 Slog.i(TAG, TextUtils.formatSimple( in onPlaybackStateChanged()
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/jank/ |
H A D | InteractionJankMonitorTest.java | 19 import static android.text.TextUtils.formatSimple; 136 return formatSimple("%s%s", ENUM_NAME_PREFIX, name); in getEnumName() 258 : formatSimple("%s%s", ENUM_NAME_PREFIX, cujName.substring(4)); 261 final String expectedNameOfCuj = formatSimple("CUJ_%s", getNameOfCuj(cuj)); 264 .withMessage(formatSimple( 270 formatSimple("getNameOfCuj(%d) not matches: %s, expected=%s", 286 .withMessage(formatSimple( in testCujNameLimit() 302 assertThat(noPostfix.getName()).isEqualTo(formatSimple("J<%s>", cujName)); in testSessionNameLengthLimit() 306 assertThat(withPostfix.getName()).isEqualTo(formatSimple("J<%s::%s>", cujName, cujTag)); in testSessionNameLengthLimit() 310 final String expectedTrimmedName = formatSimple("J<%s::%s>", cujName, in testSessionNameLengthLimit()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | SnapshotStatistics.java | 359 return TextUtils.formatSimple("%2d:%02d:%02d:%02d", d, h, m, s); in durationToString() 361 return TextUtils.formatSimple("%2s %02d:%02d:%02d", "", h, m, s); in durationToString() 363 return TextUtils.formatSimple("%2s %2s %2d:%02d", "", "", m, s); in durationToString() 418 TextUtils.formatSimple("<= %dms", keys[i])); in dumpTimes() 421 TextUtils.formatSimple("> %dms", keys[keys.length - 1])); in dumpTimes() 438 pw.format(Locale.US, " %10s", TextUtils.formatSimple("<= %d", keys[i])); in dumpUsage() 441 TextUtils.formatSimple("> %d", keys[keys.length - 1])); in dumpUsage()
|
/aosp14/frameworks/base/telecomm/java/com/android/internal/telecom/ |
H A D | ClientTransactionalServiceWrapper.java | 70 Log.i(TAG, TextUtils.formatSimple("removeCall: with id=[%s]", callId)); in untrackCall() 156 Log.i(TAG, TextUtils.formatSimple("hCEC: id=[%s], action=[%s]", callId, action)); 201 Log.i(TAG, TextUtils.formatSimple("oACC: id=[%s], code=[%d]", callId, resultCode)); 266 Log.d(TAG, TextUtils.formatSimple("hEC: [%s], callId=[%s]", action, callId)); 308 Log.i(TAG, TextUtils.formatSimple("oCSF: id=[%s], reason=[%s]", callId, reason));
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/content/res/ |
H A D | XmlBlockBenchmark.java | 134 TextUtils.formatSimple("%s() in tag %s is %s", name, tagName, value)); in benchmarkTagFunction() 200 TextUtils.formatSimple("%s(%d:%s) in tag %s is %s", name, i, attributeName, in benchmarkAttributeFunction() 292 Log.d(TAG, TextUtils.formatSimple("parseOneXmlDocument: tag %s {[", tagName)); in parseOneXmlDocument() 299 Log.d(TAG, TextUtils.formatSimple( in parseOneXmlDocument() 314 Log.d(TAG, TextUtils.formatSimple( in parseOneXmlDocument()
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | LatencyTrackerTest.java | 20 import static android.text.TextUtils.formatSimple; 86 final String expectedEnumName = formatSimple("%s%s", ENUM_NAME_PREFIX, actionName); in testCujsMapToEnumsCorrectly() 91 .withMessage(formatSimple( in testCujsMapToEnumsCorrectly() 97 formatSimple("getNameOfAction(%d) not matches: %s, expected=%s", in testCujsMapToEnumsCorrectly()
|
/aosp14/frameworks/base/services/core/java/com/android/server/display/ |
H A D | BrightnessMappingStrategy.java | 19 import static android.text.TextUtils.formatSimple; 1134 sbLux.append(formatSimple(format, strLux)); in dumpConfigDiff() 1135 sbNits.append(formatSimple(format, strNits)); in dumpConfigDiff() 1136 sbLong.append(formatSimple(format, strLong)); in dumpConfigDiff() 1137 sbShort.append(formatSimple(format, strShort)); in dumpConfigDiff() 1138 sbBrightness.append(formatSimple(format, strBrightness)); in dumpConfigDiff() 1139 sbPercent.append(formatSimple(format, strPercent)); in dumpConfigDiff() 1140 sbPercentHbm.append(formatSimple(format, strPercentHbm)); in dumpConfigDiff() 1170 return formatSimple("%d", Math.round(value)); in toStrFloatForDump()
|
/aosp14/frameworks/base/core/java/com/android/internal/compat/ |
H A D | ChangeReporter.java | 19 import static android.text.TextUtils.formatSimple; 180 String message = formatSimple("Compat change id reported: %d; UID %d; state: %s", changeId, in debugLog()
|
/aosp14/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/ |
H A D | RadioLogger.java | 42 String log = TextUtils.formatSimple(logFormat, args); in logRadioEvent()
|
/aosp14/frameworks/base/core/java/android/service/remotelockscreenvalidation/ |
H A D | RemoteLockscreenValidationClientImpl.java | 167 Log.w(TAG, TextUtils.formatSimple("%s/%s does not require permission %s", in isServiceAvailable() 181 Log.w(TAG, TextUtils.formatSimple("Cannot resolve service %s", in getServiceInfo()
|
/aosp14/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | RankingHelper.java | 18 import static android.text.TextUtils.formatSimple; 146 formatSimple("crtcl=0x%04x:intrsv=%c:grnk=0x%04x:gsmry=%c:%s:rnk=0x%04x", in sort()
|
/aosp14/frameworks/base/telecomm/java/android/telecom/ |
H A D | CallAttributes.java | 163 throw new IllegalArgumentException(TextUtils.formatSimple("CallDirection=[%d] is" in Builder() 184 throw new IllegalArgumentException(TextUtils.formatSimple("CallType=[%d] is" in setCallType()
|
H A D | CallControl.java | 381 throw new IllegalArgumentException(TextUtils.formatSimple( in validateDisconnectCause() 392 throw new IllegalArgumentException(TextUtils.formatSimple( in validateVideoState()
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | ExtconUEventObserver.java | 252 String extconPath = TextUtils.formatSimple("/sys/class/extcon/%s", mName); in getDevicePath() 268 return TextUtils.formatSimple("/sys/class/extcon/%s/state", mName); in getStatePath()
|
/aosp14/frameworks/base/services/core/java/com/android/server/apphibernation/ |
H A D | AppHibernationService.java | 303 Slog.e(TAG, TextUtils.formatSimple("Package %s is not installed for user %s", in setHibernatingForUser() 355 Slog.e(TAG, TextUtils.formatSimple( in setHibernatingGlobally() 437 Slog.w(TAG, TextUtils.formatSimple( in getHibernationStatsForUser() 593 Slog.w(TAG, TextUtils.formatSimple( in initializeUserHibernationStates() 641 Slog.w(TAG, TextUtils.formatSimple( in initializeGlobalHibernationStates() 757 Slog.w(TAG, TextUtils.formatSimple( in checkUserStatesExist() 765 Slog.w(TAG, TextUtils.formatSimple( in checkUserStatesExist()
|
/aosp14/frameworks/base/services/core/java/com/android/server/speech/ |
H A D | RemoteSpeechRecognitionService.java | 95 Slog.i(TAG, TextUtils.formatSimple("#startListening for package: " in startListening() 334 TextUtils.formatSimple("Failed to respond with an error %d to the client", in tryRespondWithError() 393 Slog.i(TAG, TextUtils.formatSimple("Error %d during recognition session.", error)); in onError()
|
/aosp14/frameworks/base/telephony/java/android/telephony/ |
H A D | CellIdentityCdma.java | 19 import static android.text.TextUtils.formatSimple; 142 mGlobalCellId = formatSimple("%04x%04x%04x", mSystemId, mNetworkId, mBasestationId); in updateGlobalCellId()
|
H A D | CellIdentityNr.java | 19 import static android.text.TextUtils.formatSimple; 117 mGlobalCellId = plmn + formatSimple("%09x", mNci); in updateGlobalCellId()
|
/aosp14/frameworks/base/core/java/android/content/res/ |
H A D | ResourceTimer.java | 105 return TextUtils.formatSimple("%d:%d:%d:%d", count, total, mintime, maxtime); in toString() 253 Log.i(TAG, TextUtils.formatSimple("%s count=%d pvalues=%s", in publish()
|
/aosp14/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | BroadcastResponseStatsLogger.java | 152 return TextUtils.formatSimple( in getBroadcastDispatchEventLog() 162 return TextUtils.formatSimple("notification:%s; event=<%s>, pkg=%s, usr=%d", in getNotificationEventLog()
|
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/ |
H A D | LockSettingsStorage.java | 493 String fileName = TextUtils.formatSimple("%016x.%s", protectorId, name); in getSyntheticPasswordStateFileForUser() 711 pw.println(TextUtils.formatSimple("User %d [%s]:", user.id, userPath)); in dump() 717 pw.println(TextUtils.formatSimple("%6d %s %s", file.length(), in dump() 729 pw.println(TextUtils.formatSimple("Repair Mode [%s]:", repairModeFile.getParent())); in dump() 731 pw.println(TextUtils.formatSimple("%6d %s %s", repairModeFile.length(), in dump() 735 pw.println(TextUtils.formatSimple("type: %d, user id: %d, payload size: %d", in dump()
|