Home
last modified time | relevance | path

Searched refs:formatStr (Results 1 – 25 of 30) sorted by relevance

12

/third_party/skia/third_party/externals/dawn/src/dawn_native/
DEncodingContext.h60 const char* formatStr, in ConsumedError() argument
66 absl::UntypedFormatSpec format(formatStr); in ConsumedError()
71 "[Failed to format error message: \"%s\"].", formatStr)); in ConsumedError()
110 const char* formatStr, in TryEncode() argument
116 return !ConsumedError(encodeFunction(&mPendingCommands), formatStr, args...); in TryEncode()
DDevice.h83 bool ConsumedError(MaybeError maybeError, const char* formatStr, const Args&... args) { in ConsumedError() argument
88 absl::UntypedFormatSpec format(formatStr); in ConsumedError()
93 absl::StrFormat("[Failed to format error: \"%s\"]", formatStr)); in ConsumedError()
105 const char* formatStr, in ConsumedError() argument
111 absl::UntypedFormatSpec format(formatStr); in ConsumedError()
116 absl::StrFormat("[Failed to format error: \"%s\"]", formatStr)); in ConsumedError()
/third_party/node/lib/internal/crypto/
Dkeys.js138 function parseKeyFormat(formatStr, defaultFormat, optionName) { argument
139 if (formatStr === undefined && defaultFormat !== undefined)
141 else if (formatStr === 'pem')
143 else if (formatStr === 'der')
145 throw new ERR_INVALID_OPT_VALUE(optionName, formatStr);
177 const { format: formatStr, type: typeStr } = enc;
180 const format = parseKeyFormat(formatStr,
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DTestMessageFormat.java448 String formatStr = "At <time> on {1,date}, you made a {2} of {0,number,currency}."; in TestSetLocale() local
464 MessageFormat msg = new MessageFormat(formatStr, Locale.ENGLISH); in TestSetLocale()
479 msg.applyPattern(formatStr); in TestSetLocale()
495 msg.applyPattern(formatStr); in TestSetLocale()
516 String formatStr = "On {0,date}, it began."; in TestFormat() local
519 MessageFormat msg = new MessageFormat(formatStr); in TestFormat()
615 String formatStr = "{0,date},{1},{2,number}"; in TestAdopt() local
617 MessageFormat msg = new MessageFormat(formatStr); in TestAdopt()
618 MessageFormat msgCmp = new MessageFormat(formatStr); in TestAdopt()
682 assertEquals("msgCmp.toPattern()", formatStr, msgCmp.toPattern()); in TestAdopt()
[all …]
DNumberFormatTest.java1362 final String formatStr = "*x#,###,###,##0.0#;*x(###,###,##0.0#)"; in TestPad() local
1363 expect2(new DecimalFormat(formatStr, US), -10, "xxxxxxxxxx(10.0)"); in TestPad()
1364 expect2(new DecimalFormat(formatStr, US), -1000, "xxxxxxx(1,000.0)"); in TestPad()
1365 expect2(new DecimalFormat(formatStr, US), -1000000, "xxx(1,000,000.0)"); in TestPad()
1366 expect2(new DecimalFormat(formatStr, US), -100.37, "xxxxxxxx(100.37)"); in TestPad()
1367 expect2(new DecimalFormat(formatStr, US), -10456.37, "xxxxx(10,456.37)"); in TestPad()
1368 expect2(new DecimalFormat(formatStr, US), -1120456.37, "xx(1,120,456.37)"); in TestPad()
1369 expect2(new DecimalFormat(formatStr, US), -112045600.37, "(112,045,600.37)"); in TestPad()
1370 expect2(new DecimalFormat(formatStr, US), -1252045600.37, "(1,252,045,600.37)"); in TestPad()
1372 expect2(new DecimalFormat(formatStr, US), 10, "xxxxxxxxxxxx10.0"); in TestPad()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTestMessageFormat.java445 String formatStr = "At <time> on {1,date}, you made a {2} of {0,number,currency}."; in TestSetLocale() local
461 MessageFormat msg = new MessageFormat(formatStr, Locale.ENGLISH); in TestSetLocale()
476 msg.applyPattern(formatStr); in TestSetLocale()
492 msg.applyPattern(formatStr); in TestSetLocale()
513 String formatStr = "On {0,date}, it began."; in TestFormat() local
516 MessageFormat msg = new MessageFormat(formatStr); in TestFormat()
612 String formatStr = "{0,date},{1},{2,number}"; in TestAdopt() local
614 MessageFormat msg = new MessageFormat(formatStr); in TestAdopt()
615 MessageFormat msgCmp = new MessageFormat(formatStr); in TestAdopt()
679 assertEquals("msgCmp.toPattern()", formatStr, msgCmp.toPattern()); in TestAdopt()
[all …]
DNumberFormatTest.java1359 final String formatStr = "*x#,###,###,##0.0#;*x(###,###,##0.0#)"; in TestPad() local
1360 expect2(new DecimalFormat(formatStr, US), -10, "xxxxxxxxxx(10.0)"); in TestPad()
1361 expect2(new DecimalFormat(formatStr, US), -1000, "xxxxxxx(1,000.0)"); in TestPad()
1362 expect2(new DecimalFormat(formatStr, US), -1000000, "xxx(1,000,000.0)"); in TestPad()
1363 expect2(new DecimalFormat(formatStr, US), -100.37, "xxxxxxxx(100.37)"); in TestPad()
1364 expect2(new DecimalFormat(formatStr, US), -10456.37, "xxxxx(10,456.37)"); in TestPad()
1365 expect2(new DecimalFormat(formatStr, US), -1120456.37, "xx(1,120,456.37)"); in TestPad()
1366 expect2(new DecimalFormat(formatStr, US), -112045600.37, "(112,045,600.37)"); in TestPad()
1367 expect2(new DecimalFormat(formatStr, US), -1252045600.37, "(1,252,045,600.37)"); in TestPad()
1369 expect2(new DecimalFormat(formatStr, US), 10, "xxxxxxxxxxxx10.0"); in TestPad()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DQuantityFormatter.java65 String formatStr = numberFormat.format(number); in format() local
72 return formatter.format(formatStr); in format()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DQuantityFormatter.java64 String formatStr = numberFormat.format(number); in format() local
71 return formatter.format(formatStr); in format()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/
DvktTextureSwizzleTests.cpp477 const string formatStr = de::toString(getFormatStr(formats2D[formatNdx].format)); in populateTextureSwizzleTests() local
478 const string caseDesc = formatStr + ", TEXTURETYPE_2D"; in populateTextureSwizzleTests()
479 const string caseName = de::toLower(formatStr.substr(10)) + "_2d" in populateTextureSwizzleTests()
504 const string formatStr = de::toString(getFormatStr(formats2D[formatNdx].format)); in populateTextureSwizzleTests() local
505 const string caseDesc = formatStr + ", TEXTURETYPE_2D"; in populateTextureSwizzleTests()
506 const string caseName = de::toLower(formatStr.substr(10)) + "_2d" in populateTextureSwizzleTests()
DvktTextureCompressedFormatTests.cpp596 const string formatStr = de::toString(getFormatStr(formats[formatNdx].format)); in populateTextureCompressedFormatTests() local
597 const string nameBase = de::toLower(formatStr.substr(10)); in populateTextureCompressedFormatTests()
610 …"_2d_" + sizes[sizeNdx].name + backingModes[backingNdx].name).c_str(), (formatStr + ", TEXTURETYPE… in populateTextureCompressedFormatTests()
622 const string formatStr = de::toString(getFormatStr(formats[formatNdx].format)); in populate3DTextureCompressedFormatTests() local
623 const string nameBase = de::toLower(formatStr.substr(10)); in populate3DTextureCompressedFormatTests()
637 …"_3d_" + sizes[sizeNdx].name + backingModes[backingNdx].name).c_str(), (formatStr + ", TEXTURETYPE… in populate3DTextureCompressedFormatTests()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
DvktTextureSwizzleTests.cpp477 const string formatStr = de::toString(getFormatStr(formats2D[formatNdx].format)); in populateTextureSwizzleTests() local
478 const string caseDesc = formatStr + ", TEXTURETYPE_2D"; in populateTextureSwizzleTests()
479 const string caseName = de::toLower(formatStr.substr(10)) + "_2d" in populateTextureSwizzleTests()
504 const string formatStr = de::toString(getFormatStr(formats2D[formatNdx].format)); in populateTextureSwizzleTests() local
505 const string caseDesc = formatStr + ", TEXTURETYPE_2D"; in populateTextureSwizzleTests()
506 const string caseName = de::toLower(formatStr.substr(10)) + "_2d" in populateTextureSwizzleTests()
DvktTextureCompressedFormatTests.cpp596 const string formatStr = de::toString(getFormatStr(formats[formatNdx].format)); in populateTextureCompressedFormatTests() local
597 const string nameBase = de::toLower(formatStr.substr(10)); in populateTextureCompressedFormatTests()
610 …"_2d_" + sizes[sizeNdx].name + backingModes[backingNdx].name).c_str(), (formatStr + ", TEXTURETYPE… in populateTextureCompressedFormatTests()
622 const string formatStr = de::toString(getFormatStr(formats[formatNdx].format)); in populate3DTextureCompressedFormatTests() local
623 const string nameBase = de::toLower(formatStr.substr(10)); in populate3DTextureCompressedFormatTests()
637 …"_3d_" + sizes[sizeNdx].name + backingModes[backingNdx].name).c_str(), (formatStr + ", TEXTURETYPE… in populate3DTextureCompressedFormatTests()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/audio/
DNDKExtractor.cpp77 const char *formatStr = AMediaFormat_toString(format); in decode() local
78 LOGD("Output format %s", formatStr); in decode()
/third_party/icu/icu4c/source/test/intltest/
Dtmsgfmt.cpp991 UnicodeString formatStr = "At <time> on {1,date}, you made a {2} of {0,number,currency}."; in testSetLocale() local
1006 MessageFormat msg( formatStr, err); in testSetLocale()
1037 msg.applyPattern( formatStr, err); in testSetLocale()
1077 UnicodeString formatStr = "On {0,date}, it began."; in testFormat() local
1081 MessageFormat msg( formatStr, err); in testFormat()
1199 UnicodeString formatStr("{0,date},{1},{2,number}", ""); in testAdopt() local
1202 MessageFormat msg( formatStr, err); in testAdopt()
1203 MessageFormat msgCmp( formatStr, err); in testAdopt()
1276 assertEquals("msgCmp.toPattern()", formatStr, msgCmp.toPattern(patCmp.remove())); in testAdopt()
1324 assertEquals("msgCmp.toPattern()", formatStr, msgCmp.toPattern(patCmp.remove())); in testAdopt()
[all …]
Dnumfmtst.cpp1682 const char *formatStr = "*x#,###,###,##0.0#;*x(###,###,##0.0#)"; in TestPad() local
1683 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1685 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1687 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1689 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1691 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1693 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1695 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1697 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1700 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DCommon.h113 const char *formatStr = std::numeric_limits<T>::is_signed ? "%d" : "%u"; in str() local
114 snprintf(buffer, sizeof(buffer), formatStr, i); in str()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DCommon.h217 const char *formatStr = std::numeric_limits<T>::is_signed ? "%d" : "%u"; in str() local
218 snprintf(buffer, sizeof(buffer), formatStr, i); in str()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassSparseRenderTargetTests.cpp797 const std::string formatStr = de::toString(format); in formatToName() local
800 DE_ASSERT(formatStr.substr(0, prefix.length()) == prefix); in formatToName()
802 return de::toLower(formatStr.substr(prefix.length())); in formatToName()
DvktRenderPassMultisampleTests.cpp2103 const std::string formatStr = de::toString(format); in formatToName() local
2106 DE_ASSERT(formatStr.substr(0, prefix.length()) == prefix); in formatToName()
2108 return de::toLower(formatStr.substr(prefix.length())); in formatToName()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/renderpass/
DvktRenderPassSparseRenderTargetTests.cpp797 const std::string formatStr = de::toString(format); in formatToName() local
800 DE_ASSERT(formatStr.substr(0, prefix.length()) == prefix); in formatToName()
802 return de::toLower(formatStr.substr(prefix.length())); in formatToName()
DvktRenderPassMultisampleTests.cpp2103 const std::string formatStr = de::toString(format); in formatToName() local
2106 DE_ASSERT(formatStr.substr(0, prefix.length()) == prefix); in formatToName()
2108 return de::toLower(formatStr.substr(prefix.length())); in formatToName()
DvktRenderPassMultisampleResolveTests.cpp2970 const std::string formatStr = de::toString(format); in formatToName() local
2973 DE_ASSERT(formatStr.substr(0, prefix.length()) == prefix); in formatToName()
2975 return de::toLower(formatStr.substr(prefix.length())); in formatToName()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
DvktImageDepthStencilDescriptorTests.cpp1324 const auto formatStr = de::toString(format); in createImageDepthStencilDescriptorTests() local
1325 const auto formatGroupName = de::toLower(formatStr.substr(kFormatPrefixLen)); in createImageDepthStencilDescriptorTests()
1326 const auto formatGroupDesc = "Tests using the " + formatStr + " format"; in createImageDepthStencilDescriptorTests()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/
DvktImageDepthStencilDescriptorTests.cpp1324 const auto formatStr = de::toString(format); in createImageDepthStencilDescriptorTests() local
1325 const auto formatGroupName = de::toLower(formatStr.substr(kFormatPrefixLen)); in createImageDepthStencilDescriptorTests()
1326 const auto formatGroupDesc = "Tests using the " + formatStr + " format"; in createImageDepthStencilDescriptorTests()

12