/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextUtilsTest.java | 19 import static android.text.TextUtils.formatSimple; 878 assertEquals("true", formatSimple("%b", true)); in testFormatSimple_Types() 879 assertEquals("false", formatSimple("%b", false)); in testFormatSimple_Types() 880 assertEquals("true", formatSimple("%b", this)); in testFormatSimple_Types() 881 assertEquals("false", formatSimple("%b", new Object[] { null })); in testFormatSimple_Types() 883 assertEquals("!", formatSimple("%c", '!')); in testFormatSimple_Types() 885 assertEquals("42", formatSimple("%d", 42)); in testFormatSimple_Types() 886 assertEquals("281474976710656", formatSimple("%d", 281474976710656L)); in testFormatSimple_Types() 888 assertEquals("3.14159", formatSimple("%f", 3.14159)); in testFormatSimple_Types() 889 assertEquals("NaN", formatSimple("%f", Float.NaN)); in testFormatSimple_Types() [all …]
|
/frameworks/base/core/java/android/app/ |
D | PropertyInvalidatedCache.java | 929 Log.d(TAG, TextUtils.formatSimple( 944 Log.d(TAG, TextUtils.formatSimple( 970 Log.d(TAG, TextUtils.formatSimple( 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( 1275 Log.w(TAG, TextUtils.formatSimple( [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/jank/ |
D | CujTest.java | 19 import static android.text.TextUtils.formatSimple; 78 mExpect.withMessage(formatSimple("Too long CUJ(%d) name: %s", cuj, getNameOfCuj(cuj))) in testCujNameLimit() 124 final String expectedNameOfCuj = formatSimple("CUJ_%s", getNameOfCuj(cuj)); in testCujsMapToEnumsCorrectly() 127 formatSimple("%s (%d) not matches %s (%d)", cujName, cuj, enumName, enumKey)) in testCujsMapToEnumsCorrectly() 131 formatSimple("getNameOfCuj(%d) not matches: %s, expected=%s", in testCujsMapToEnumsCorrectly() 139 return formatSimple("%s%s", ENUM_NAME_PREFIX, name); in getEnumName()
|
D | InteractionJankMonitorTest.java | 19 import static android.text.TextUtils.formatSimple; 157 assertThat(generateSessionName(cujName, "")).isEqualTo(formatSimple("J<%s>", cujName)); in testSessionNameLengthLimit() 161 .isEqualTo(formatSimple("J<%s::%s>", cujName, cujTag)); in testSessionNameLengthLimit() 165 final String expectedTrimmedName = formatSimple("J<%s::%s>", cujName, in testSessionNameLengthLimit()
|
/frameworks/base/services/core/java/com/android/server/webkit/ |
D | WebViewUpdateServiceImpl2.java | 740 TextUtils.formatSimple( in dumpState() 746 TextUtils.formatSimple( in dumpState() 749 TextUtils.formatSimple( in dumpState() 752 TextUtils.formatSimple( in dumpState() 755 TextUtils.formatSimple( in dumpState() 757 pw.println(TextUtils.formatSimple(" WebView package dirty: %b", mWebViewPackageDirty)); in dumpState() 759 TextUtils.formatSimple( in dumpState() 765 TextUtils.formatSimple( in dumpState() 787 TextUtils.formatSimple(" %s is NOT installed.", provider.packageName)); in dumpAllPackageInformationLocked() 793 TextUtils.formatSimple( in dumpAllPackageInformationLocked() [all …]
|
D | WebViewUpdateServiceShellCommand2.java | 67 TextUtils.formatSimple( in setWebViewImplementation()
|
/frameworks/base/services/core/java/com/android/server/media/ |
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()
|
D | MediaRouter2ServiceImpl.java | 1021 Slog.i(TAG, TextUtils.formatSimple( in updateRunningUserAndProfiles() 1113 TextUtils.formatSimple( in revokeManagerRecordAccessIfNeededLocked() 1175 TextUtils.formatSimple( in registerRouter2Locked() 1191 TextUtils.formatSimple( in unregisterRouter2Locked() 1198 TextUtils.formatSimple( in unregisterRouter2Locked() 1248 TextUtils.formatSimple( in updateScanningStateLocked() 1267 TextUtils.formatSimple( in setDiscoveryRequestWithRouter2Locked() 1298 TextUtils.formatSimple( in setRouteListingPreferenceLocked() 1320 TextUtils.formatSimple( in setRouteVolumeWithRouter2Locked() 1348 TextUtils.formatSimple( in requestCreateSessionWithRouter2Locked() [all …]
|
D | MediaSessionStack.java | 85 Slog.i(TAG, TextUtils.formatSimple( in addSession() 104 Slog.i(TAG, TextUtils.formatSimple( in removeSession() 153 Slog.i(TAG, TextUtils.formatSimple( in onPlaybackStateChanged()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageArchiver.java | 214 TextUtils.formatSimple("Requested archival of package %s for user %s.", packageName, in requestArchive() 240 Slog.e(TAG, TextUtils.formatSimple("Failed to archive %s with message %s", in requestArchive() 260 Slog.e(TAG, TextUtils.formatSimple("Failed to archive %s with message %s", in requestArchive() 290 Slog.e(TAG, TextUtils.formatSimple( in requestUnarchiveOnActivityStart() 314 Slog.i(TAG, TextUtils.formatSimple("Unarchival is starting for: %s", packageName)); in requestUnarchiveOnActivityStart() 323 Slog.e(TAG, TextUtils.formatSimple( in requestUnarchiveOnActivityStart() 370 Slog.e(TAG, TextUtils.formatSimple( in isIntentResolvedToArchivedApp() 426 Slog.w(TAG, TextUtils.formatSimple("Calling package: %s does not belong to uid: %d", in isCallingPackageValid() 571 throw new IOException(TextUtils.formatSimple("Failure to store icon file %s", in storeDrawable() 678 TextUtils.formatSimple("%s is not installed.", ps.getPackageName())); in verifyInstalled() [all …]
|
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()
|
/frameworks/base/apct-tests/perftests/core/src/android/content/res/ |
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()
|
/frameworks/base/telecomm/java/com/android/internal/telecom/ |
D | ClientTransactionalServiceWrapper.java | 72 Log.i(TAG, TextUtils.formatSimple("removeCall: with id=[%s]", callId)); in untrackCall() 159 Log.i(TAG, TextUtils.formatSimple("hCEC: id=[%s], action=[%s]", callId, action)); 204 Log.i(TAG, TextUtils.formatSimple("oACC: id=[%s], code=[%d]", callId, resultCode)); 273 Log.d(TAG, TextUtils.formatSimple("hEC: [%s], callId=[%s]", action, callId)); 320 Log.i(TAG, TextUtils.formatSimple("oCSF: id=[%s], reason=[%s]", callId, reason));
|
/frameworks/base/core/java/com/android/internal/vibrator/persistence/ |
D | XmlValidator.java | 103 throw new XmlSerializerException(TextUtils.formatSimple(messageTemplate, messageArgs)); in checkSerializerCondition() 115 throw new XmlParserException(TextUtils.formatSimple(messageTemplate, messageArgs)); in checkParserCondition()
|
D | XmlParserException.java | 47 return new XmlParserException(TextUtils.formatSimple("Error parsing %s = %s in tag %s", in createFromPullParserException()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | LatencyTrackerTest.java | 20 import static android.text.TextUtils.formatSimple; 98 final String expectedEnumName = formatSimple("%s%s", ENUM_NAME_PREFIX, actionName); in testCujsMapToEnumsCorrectly() 103 .withMessage(formatSimple( in testCujsMapToEnumsCorrectly() 109 formatSimple("getNameOfAction(%d) not matches: %s, expected=%s", in testCujsMapToEnumsCorrectly()
|
/frameworks/base/services/core/java/com/android/server/utils/ |
D | AnrTimer.java | 19 import static android.text.TextUtils.formatSimple; 403 formatSimple("%s(%d,%d,%d,%s,%d)", op, timerId, pid, uid, mLabel, milliseconds); in trace() 412 final String label = formatSimple("%s(%d)", op, timerId); in trace() 421 final String label = formatSimple("%s(%d,%d)", op, pid, uid); in trace() 789 Log.e(TAG, formatSimple("failed to expire timer %s:%d : arg not found", in expire()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessMappingStrategy.java | 19 import static android.text.TextUtils.formatSimple; 1155 sbLux.append(formatSimple(format, strLux)); in dumpConfigDiff() 1156 sbNits.append(formatSimple(format, strNits)); in dumpConfigDiff() 1157 sbLong.append(formatSimple(format, strLong)); in dumpConfigDiff() 1158 sbShort.append(formatSimple(format, strShort)); in dumpConfigDiff() 1159 sbBrightness.append(formatSimple(format, strBrightness)); in dumpConfigDiff() 1160 sbPercent.append(formatSimple(format, strPercent)); in dumpConfigDiff() 1161 sbPercentHbm.append(formatSimple(format, strPercentHbm)); in dumpConfigDiff() 1193 return formatSimple("%d", Math.round(value)); in toStrFloatForDump()
|
/frameworks/base/core/java/com/android/internal/compat/ |
D | ChangeReporter.java | 19 import static android.text.TextUtils.formatSimple; 244 String message = formatSimple("Compat change id reported: %d; UID %d; state: %s", changeId, in debugLog()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/ |
D | RadioEventLogger.java | 47 String log = TextUtils.formatSimple(logFormat, args); in logRadioEvent()
|
/frameworks/base/core/java/android/service/remotelockscreenvalidation/ |
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()
|
/frameworks/base/services/core/java/com/android/server/ |
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()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | CallAttributes.java | 178 throw new IllegalArgumentException(TextUtils.formatSimple("CallDirection=[%d] is" in Builder() 199 throw new IllegalArgumentException(TextUtils.formatSimple("CallType=[%d] is" in setCallType()
|
/frameworks/base/core/java/android/content/res/ |
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()
|
/frameworks/base/telephony/java/android/telephony/ |
D | CellIdentityCdma.java | 19 import static android.text.TextUtils.formatSimple; 142 mGlobalCellId = formatSimple("%04x%04x%04x", mSystemId, mNetworkId, mBasestationId); in updateGlobalCellId()
|