Home
last modified time | relevance | path

Searched refs:formatString (Results 1 – 8 of 8) sorted by relevance

/aosp14/system/core/libutils/
H A DString8_fuzz.cpp101 std::string formatString("%"); in fuzzFormat() local
106 formatString.push_back('0'); in fuzzFormat()
111 formatString += std::to_string(justify); in fuzzFormat()
116 formatString.push_back('#'); in fuzzFormat()
121 formatString.push_back('.'); in fuzzFormat()
122 formatString += in fuzzFormat()
132 str1->appendFormat(formatString.c_str(), val); in fuzzFormat()
148 str1->format(formatString.c_str(), val); in fuzzFormat()
166 str1->format(formatString.c_str(), val); in fuzzFormat()
176 str1->format(formatString.c_str(), val); in fuzzFormat()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSplitClockView.java90 String formatString = DateFormat.getTimeFormatString(getContext(), in updatePatterns() local
92 int index = getAmPmPartEndIndex(formatString); in updatePatterns()
96 timeString = formatString; in updatePatterns()
99 timeString = formatString.substring(0, index); in updatePatterns()
100 amPmString = formatString.substring(index); in updatePatterns()
104 mTimeView.setContentDescriptionFormat12Hour(formatString); in updatePatterns()
105 mTimeView.setContentDescriptionFormat24Hour(formatString); in updatePatterns()
115 private static int getAmPmPartEndIndex(String formatString) { in getAmPmPartEndIndex() argument
117 int length = formatString.length(); in getAmPmPartEndIndex()
119 char c = formatString.charAt(i); in getAmPmPartEndIndex()
/aosp14/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/util/
H A DMessageFormatsTest.kt33 val message = context.formatString(R.string.test_quantity_strings, "count" to 1)
40 val message = context.formatString(R.string.test_quantity_strings, "count" to 2)
47 val message = context.formatString(
58 val message = context.formatString(
/aosp14/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/util/
H A DMessageFormats.kt29 fun Context.formatString(@StringRes resId: Int, vararg arguments: Pair<String, Any>): String =
30 resources.formatString(resId, *arguments)
34 fun Resources.formatString(@StringRes resId: Int, vararg arguments: Pair<String, Any>): String =
/aosp14/frameworks/base/core/java/android/text/format/
H A DDateFormat.java666 public static int appendQuotedText(SpannableStringBuilder formatString, int index) { in appendQuotedText() argument
667 int length = formatString.length(); in appendQuotedText()
668 if (index + 1 < length && formatString.charAt(index + 1) == QUOTE) { in appendQuotedText()
669 formatString.delete(index, index + 1); in appendQuotedText()
676 formatString.delete(index, index + 1); in appendQuotedText()
680 char c = formatString.charAt(index); in appendQuotedText()
684 if (index + 1 < length && formatString.charAt(index + 1) == QUOTE) { in appendQuotedText()
686 formatString.delete(index, index + 1); in appendQuotedText()
692 formatString.delete(index, index + 1); in appendQuotedText()
/aosp14/frameworks/base/core/java/android/service/controls/templates/
H A DRangeTemplate.java72 @Nullable CharSequence formatString) { in RangeTemplate() argument
78 if (formatString != null) { in RangeTemplate()
79 mFormatString = formatString; in RangeTemplate()
/aosp14/frameworks/base/core/java/android/hardware/camera2/params/
H A DMandatoryStreamCombination.java1837 String formatString = null; in createUHSensorMandatoryStreamCombination() local
1840 formatString = "RAW_SENSOR"; in createUHSensorMandatoryStreamCombination()
1843 formatString = "JPEG"; in createUHSensorMandatoryStreamCombination()
1846 formatString = "YUV"; in createUHSensorMandatoryStreamCombination()
1852 combTemplate.mDescription + " " + formatString + " still-capture", in createUHSensorMandatoryStreamCombination()
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...