Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 11089) sorted by relevance

12345678910>>...444

/external/icu/icu4c/source/test/testdata/
Ddcfmtest.txt20 # format pattern round-mode "decimal number" "expected formatted result"
44 format 0.0000E0 default "1234.01" "1.2340E3"
46 format 00 default "1234" "1234"
47 format 00 default ".01" "00"
48 format 00 default "1" "01"
49 format 00 default "1.9" "02"
51 format #.# default "12.34" "12.3"
53 format @@@ default "12.3456" "12.3"
54 format @@@ default "123456" "123000"
55 format @@@ default ".00123456" "0.00123"
[all …]
/external/llvm-project/clang/unittests/Format/
DFormatTestComments.cpp23 namespace format { namespace
32 std::string format(llvm::StringRef Code, in format() function in clang::format::__anon198b57740111::FormatTestComments
67 EXPECT_EQ(Code.str(), format(Code, Style)) << "Expected code is not stable"; in verifyFormat()
68 EXPECT_EQ(Code.str(), format(test::messUp(Code), Style)); in verifyFormat()
78 format(Code, Style, SC_DoNotCheck); in verifyNoCrash()
143 format("#include \\\n" in TEST_F()
161 format("enum A {\n" in TEST_F()
174 format("enum A {\n" in TEST_F()
183 format("enum A {\n" in TEST_F()
193 format("enum A {\n" in TEST_F()
[all …]
DFormatTestSelective.cpp17 namespace format { namespace
22 std::string format(llvm::StringRef Code, unsigned Offset, unsigned Length) { in format() function in clang::format::__anon0e4aef920111::FormatTestSelective
40 EXPECT_EQ("int a;\nint b;", format("int a; \nint b;", 0, 0)); in TEST_F()
41 EXPECT_EQ("int a;", format("int a; ", 0, 0)); in TEST_F()
42 EXPECT_EQ("int a;\n", format("int a; \n \n \n ", 0, 0)); in TEST_F()
43 EXPECT_EQ("int a;\nint b; ", format("int a; \nint b; ", 0, 0)); in TEST_F()
50 format("{int b;\n int a;}", 8, 0)); in TEST_F()
54 format("{int b;\n int a;}", 7, 0)); in TEST_F()
60 format("#define A \\\n" in TEST_F()
67 format("#define A \\\n" in TEST_F()
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message_field.cc98 Formatter format(printer, variables_); in GeneratePrivateMembers() local
100 format("::$proto_ns$::MessageLite* $name$_;\n"); in GeneratePrivateMembers()
102 format("$type$* $name$_;\n"); in GeneratePrivateMembers()
108 Formatter format(printer, variables_); in GenerateAccessorDeclarations() local
109 format( in GenerateAccessorDeclarations()
117 format( in GenerateAccessorDeclarations()
128 Formatter format(printer, variables_); in GenerateNonInlineAccessorDefinitions() local
130 format( in GenerateNonInlineAccessorDefinitions()
152 Formatter format(printer, variables_); in GenerateInlineAccessorDefinitions() local
153 format( in GenerateInlineAccessorDefinitions()
[all …]
Dcpp_string_field.cc99 Formatter format(printer, variables_); in GeneratePrivateMembers() local
101 format("::$proto_ns$::internal::InlinedStringField $name$_;\n"); in GeneratePrivateMembers()
115 format("::$proto_ns$::internal::ArenaStringPtr $name$_;\n"); in GeneratePrivateMembers()
120 Formatter format(printer, variables_); in GenerateStaticMembers() local
124 format( in GenerateStaticMembers()
134 Formatter format(printer, variables_); in GenerateAccessorDeclarations() local
156 format.Outdent(); in GenerateAccessorDeclarations()
157 format( in GenerateAccessorDeclarations()
160 format.Indent(); in GenerateAccessorDeclarations()
163 format( in GenerateAccessorDeclarations()
[all …]
Dcpp_enum_field.cc71 Formatter format(printer, variables_); in GeneratePrivateMembers() local
72 format("int $name$_;\n"); in GeneratePrivateMembers()
77 Formatter format(printer, variables_); in GenerateAccessorDeclarations() local
78 format( in GenerateAccessorDeclarations()
86 Formatter format(printer, variables_); in GenerateInlineAccessorDefinitions() local
87 format( in GenerateInlineAccessorDefinitions()
94 format(" assert($type$_IsValid(value));\n"); in GenerateInlineAccessorDefinitions()
96 format( in GenerateInlineAccessorDefinitions()
104 Formatter format(printer, variables_); in GenerateClearingCode() local
105 format("$name$_ = $default$;\n"); in GenerateClearingCode()
[all …]
Dcpp_message.cc74 void PrintFieldComment(const Formatter& format, const T* field) { in PrintFieldComment() argument
82 format("// $1$\n", def.substr(0, def.find_first_of('\n'))); in PrintFieldComment()
85 void PrintPresenceCheck(const Formatter& format, const FieldDescriptor* field, in PrintPresenceCheck() argument
92 format("cached_has_bits = _has_bits_[$1$];\n", *cached_has_bit_index); in PrintPresenceCheck()
96 format("if (cached_has_bits & 0x$1$u) {\n", mask); in PrintPresenceCheck()
98 format("if (has_$1$()) {\n", FieldName(field)); in PrintPresenceCheck()
100 format.Indent(); in PrintPresenceCheck()
169 Formatter format(printer); in EmitFieldNonDefaultCondition() local
170 format.Set("prefix", prefix); in EmitFieldNonDefaultCondition()
171 format.Set("name", FieldName(field)); in EmitFieldNonDefaultCondition()
[all …]
Dcpp_primitive_field.cc131 Formatter format(printer, variables_); in GeneratePrivateMembers() local
132 format("$type$ $name$_;\n"); in GeneratePrivateMembers()
137 Formatter format(printer, variables_); in GenerateAccessorDeclarations() local
138 format( in GenerateAccessorDeclarations()
146 Formatter format(printer, variables_); in GenerateInlineAccessorDefinitions() local
147 format( in GenerateInlineAccessorDefinitions()
160 Formatter format(printer, variables_); in GenerateClearingCode() local
161 format("$name$_ = $default$;\n"); in GenerateClearingCode()
165 Formatter format(printer, variables_); in GenerateMergingCode() local
166 format("set_$name$(from.$name$());\n"); in GenerateMergingCode()
[all …]
Dcpp_map_field.cc106 Formatter format(printer, variables_); in GeneratePrivateMembers() local
107 format( in GeneratePrivateMembers()
118 Formatter format(printer, variables_); in GenerateAccessorDeclarations() local
119 format( in GenerateAccessorDeclarations()
129 Formatter format(printer, variables_); in GenerateInlineAccessorDefinitions() local
130 format( in GenerateInlineAccessorDefinitions()
144 Formatter format(printer, variables_); in GenerateClearingCode() local
145 format("$name$_.Clear();\n"); in GenerateClearingCode()
149 Formatter format(printer, variables_); in GenerateMergingCode() local
150 format("$name$_.MergeFrom(from.$name$_);\n"); in GenerateMergingCode()
[all …]
Dcpp_file.cc152 Formatter format(printer, variables_); in GenerateMacroUndefs() local
174 format( in GenerateMacroUndefs()
183 Formatter format(printer, variables_); in GenerateHeader() local
187 format("#define $1$$ dllexport_decl$\n", FileDllExport(file_, options_)); in GenerateHeader()
192 format( in GenerateHeader()
204 NamespaceOpener ns(Namespace(file_, options_), format); in GenerateHeader()
206 format("\n"); in GenerateHeader()
210 format(kThickSeparator); in GenerateHeader()
211 format("\n"); in GenerateHeader()
215 format("\n"); in GenerateHeader()
[all …]
/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_ENUM_FMT.c45 struct v4l2_fmtdesc format; in do_enumerate_formats() local
51 memset(&format, 0xff, sizeof(format)); in do_enumerate_formats()
52 format.index = i; in do_enumerate_formats()
53 format.type = type; in do_enumerate_formats()
55 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in do_enumerate_formats()
63 CU_ASSERT_EQUAL(format.index, i); in do_enumerate_formats()
67 CU_ASSERT(0 < strlen((char *)format.description)); in do_enumerate_formats()
69 ((char *)format.description, in do_enumerate_formats()
70 sizeof(format.description))); in do_enumerate_formats()
73 CU_ASSERT_EQUAL(format.reserved[0], 0); in do_enumerate_formats()
[all …]
/external/python/cpython2/Lib/test/
Dtest_str.py44 format_string = "%.{}f".format(INT_MAX + 1)
49 format_string = "%{}f".format(sys.maxsize + 1)
128 def test(value, format, expected): argument
130 self.assertEqual(value.__format__(format), expected)
131 self.assertEqual(value.__format__(format + 's'), expected)
160 self.assertEqual(''.format(), '')
161 self.assertEqual('a'.format(), 'a')
162 self.assertEqual('ab'.format(), 'ab')
163 self.assertEqual('a{{'.format(), 'a{')
164 self.assertEqual('a}}'.format(), 'a}')
[all …]
/external/clang/unittests/Format/
DFormatTestSelective.cpp18 namespace format { namespace
23 std::string format(llvm::StringRef Code, unsigned Offset, unsigned Length) { in format() function in clang::format::__anon39cba2640111::FormatTestSelective
41 EXPECT_EQ("int a;\nint b;", format("int a; \nint b;", 0, 0)); in TEST_F()
42 EXPECT_EQ("int a;", format("int a; ", 0, 0)); in TEST_F()
43 EXPECT_EQ("int a;\n", format("int a; \n \n \n ", 0, 0)); in TEST_F()
44 EXPECT_EQ("int a;\nint b; ", format("int a; \nint b; ", 0, 0)); in TEST_F()
51 format("{int b;\n int a;}", 8, 0)); in TEST_F()
55 format("{int b;\n int a;}", 7, 0)); in TEST_F()
61 format("#define A \\\n" in TEST_F()
68 format("#define A \\\n" in TEST_F()
[all …]
/external/fmtlib/test/
Dformat-test.cc39 using fmt::format;
380 EXPECT_EQ(fmt::format("test: {}", get_system_error(EDOM)), in TEST()
398 EXPECT_EQ(fmt::format("error {}", EDOM), to_string(message)); in TEST()
403 EXPECT_EQ(fmt::format("test: {}", get_system_error(EDOM)), e.what()); in TEST()
464 EXPECT_EQ("{", format("{{")); in TEST()
465 EXPECT_EQ("before {", format("before {{")); in TEST()
466 EXPECT_EQ("{ after", format("{{ after")); in TEST()
467 EXPECT_EQ("before { after", format("before {{ after")); in TEST()
469 EXPECT_EQ("}", format("}}")); in TEST()
470 EXPECT_EQ("before }", format("before }}")); in TEST()
[all …]
Dchrono-test.cc57 fmt::format("The date is {:%Y-%m-%d}.", tm)); in TEST()
65 fmt::format(s, *std::localtime(&t)); in TEST()
76 TEST(TimeTest, EmptyResult) { EXPECT_EQ("", fmt::format("{}", std::tm())); } in TEST()
106 EXPECT_EQ(strftime_output, fmt::format("It is {:%Y-%m-%d %H:%M:%S}", point)); in TEST()
113 fmt::format(loc, "{:" spec "}", duration)); \
119 EXPECT_EQ("42s", fmt::format("{}", std::chrono::seconds(42))); in TEST()
121 fmt::format("{}", std::chrono::duration<int, std::atto>(42))); in TEST()
123 fmt::format("{}", std::chrono::duration<int, std::femto>(42))); in TEST()
125 fmt::format("{}", std::chrono::duration<int, std::pico>(42))); in TEST()
126 EXPECT_EQ("42ns", fmt::format("{}", std::chrono::nanoseconds(42))); in TEST()
[all …]
/external/llvm-project/llvm/test/MC/AMDGPU/
Dmtbuf-gfx10.s9 tbuffer_load_format_d16_x v0, off, s[0:3], format:22, 0
12 tbuffer_load_format_d16_xy v0, off, s[0:3], format:22, 0
15 tbuffer_load_format_d16_xyzw v[0:1], off, s[0:3], format:22, 0
18 tbuffer_load_format_xyzw v[0:3], off, s[0:3], format:78, 0
21 tbuffer_load_format_xyzw v[8:11], off, s[0:3], format:22, 0 slc
24 tbuffer_load_format_xyzw v[4:7], off, s[0:3], format:63, 0 glc
27 tbuffer_load_format_xyzw v[12:15], off, s[0:3], format:23, 0 glc dlc
30 tbuffer_load_format_xyzw v[0:3], off, s[0:3], format:78, 0 offset:42
33 tbuffer_load_format_xyzw v[4:7], off, s[0:3], format:62, s4 offset:73
36 tbuffer_load_format_xyzw v[0:3], off, s[0:3], format:47, 61 offset:4095
[all …]
/external/mesa3d/src/util/format/
Du_format_table.py81 def has_access(format): argument
109 if format.short_name() in noaccess_formats:
111 if format.layout in ('astc', 'atc', 'fxt1'):
113 if format.layout == 'etc' and format.short_name() != 'etc1_rgb8':
161 comment = colorspace_channels_map[format.colorspace][i]
191 for format in formats:
192 sn = format.short_name()
194 print(" [%s] = {" % (format.name,))
195 print(" %s," % (format.name,))
196 print(" \"%s\"," % (format.name,))
[all …]
/external/OpenCSD/decoder/tests/snapshots/juno_r1_1/pkt_proc_logs/
Dtrc_pkt_lister_0x10.ppl70 Idx:1692; ID:10; I_ATOM_F1 : Atom format 1.; E
72 Idx:1703; ID:10; I_ATOM_F1 : Atom format 1.; E
74 Idx:1707; ID:10; I_ATOM_F3 : Atom format 3.; ENN
75 Idx:1708; ID:10; I_ATOM_F1 : Atom format 1.; E
77 Idx:1715; ID:10; I_ATOM_F2 : Atom format 2.; EE
79 Idx:1721; ID:10; I_ATOM_F3 : Atom format 3.; NNE
84 Idx:1737; ID:10; I_ATOM_F3 : Atom format 3.; ENE
86 Idx:1741; ID:10; I_ATOM_F2 : Atom format 2.; EE
88 Idx:1745; ID:10; I_ATOM_F6 : Atom format 6.; EEEN
89 Idx:1746; ID:10; I_ATOM_F2 : Atom format 2.; EE
[all …]
Dtrc_pkt_lister_0x15.ppl68 Idx:59137; ID:15; I_ATOM_F5 : Atom format 5.; ENENE
69 Idx:59138; ID:15; I_ATOM_F3 : Atom format 3.; ENN
70 Idx:59148; ID:15; I_ATOM_F1 : Atom format 1.; E
72 Idx:59160; ID:15; I_ATOM_F3 : Atom format 3.; ENN
73 Idx:59161; ID:15; I_ATOM_F1 : Atom format 1.; E
75 Idx:59164; ID:15; I_ATOM_F1 : Atom format 1.; E
77 Idx:59180; ID:15; I_ATOM_F4 : Atom format 4.; NEEE
78 Idx:59181; ID:15; I_ATOM_F4 : Atom format 4.; NENE
79 Idx:59184; ID:15; I_ATOM_F1 : Atom format 1.; E
81 Idx:59190; ID:15; I_ATOM_F2 : Atom format 2.; NE
[all …]
Dtrc_pkt_lister_all.ppl75 Idx:1692; ID:10; I_ATOM_F1 : Atom format 1.; E
77 Idx:1703; ID:10; I_ATOM_F1 : Atom format 1.; E
79 Idx:1707; ID:10; I_ATOM_F3 : Atom format 3.; ENN
80 Idx:1708; ID:10; I_ATOM_F1 : Atom format 1.; E
82 Idx:1715; ID:10; I_ATOM_F2 : Atom format 2.; EE
84 Idx:1721; ID:10; I_ATOM_F3 : Atom format 3.; NNE
89 Idx:1737; ID:10; I_ATOM_F3 : Atom format 3.; ENE
91 Idx:1741; ID:10; I_ATOM_F2 : Atom format 2.; EE
93 Idx:1745; ID:10; I_ATOM_F6 : Atom format 6.; EEEN
94 Idx:1746; ID:10; I_ATOM_F2 : Atom format 2.; EE
[all …]
/external/selinux/prebuilts/bin/
Dsediff.py123 format='%(asctime)s|%(levelname)s|%(name)s|%(message)s')
125 logging.basicConfig(level=logging.INFO, format='%(message)s')
127 logging.basicConfig(level=logging.WARNING, format='%(message)s')
135 print("Policy Properties ({0} Modified)".format(len(diff.modified_properties)))
139 print(" * {0} +{1} -{2}".format(name, added, removed))
145 print("Commons ({0} Added, {1} Removed, {2} Modified)".format(
148 print(" Added Commons: {0}".format(len(diff.added_commons)))
150 print(" + {0}".format(c))
152 print(" Removed Commons: {0}".format(len(diff.removed_commons)))
154 print(" - {0}".format(c))
[all …]
/external/mesa3d/src/freedreno/vulkan/
Dvk_format.h38 vk_format_description(VkFormat format) in vk_format_description() argument
40 return util_format_description(vk_format_to_pipe_format(format)); in vk_format_description()
47 vk_format_get_blocksize(VkFormat format) in vk_format_get_blocksize() argument
49 return util_format_get_blocksize(vk_format_to_pipe_format(format)); in vk_format_get_blocksize()
53 vk_format_get_blockwidth(VkFormat format) in vk_format_get_blockwidth() argument
55 return util_format_get_blockwidth(vk_format_to_pipe_format(format)); in vk_format_get_blockwidth()
59 vk_format_get_blockheight(VkFormat format) in vk_format_get_blockheight() argument
61 return util_format_get_blockheight(vk_format_to_pipe_format(format)); in vk_format_get_blockheight()
65 vk_format_is_compressed(VkFormat format) in vk_format_is_compressed() argument
68 return vk_format_get_blockwidth(format) > 1; in vk_format_is_compressed()
[all …]
/external/python/parse_type/parse_type/
Dparse_util.py39 def __init__(self, name="", format=None): argument
41 self.format = format
44 def set_format(self, format): argument
45 self.format = format
50 return bool(self.format)
54 if not self._format_spec and self.format:
55 self._format_spec = self.extract_format_spec(self.format)
61 return "{%s:%s}" % (name, self.format)
66 format1 = self.format or ""
67 format2 = other.format or ""
[all …]
/external/vulkan-validation-layers/layers/
Dvk_format_utils.h140 VK_LAYER_EXPORT bool FormatIsDepthOrStencil(VkFormat format);
141 VK_LAYER_EXPORT bool FormatIsDepthAndStencil(VkFormat format);
142 VK_LAYER_EXPORT bool FormatIsDepthOnly(VkFormat format);
143 VK_LAYER_EXPORT bool FormatIsStencilOnly(VkFormat format);
144 VK_LAYER_EXPORT bool FormatIsCompressed_ETC2_EAC(VkFormat format);
145 VK_LAYER_EXPORT bool FormatIsCompressed_ASTC_LDR(VkFormat format);
146 VK_LAYER_EXPORT bool FormatIsCompressed_BC(VkFormat format);
147 VK_LAYER_EXPORT bool FormatIsCompressed_PVRTC(VkFormat format);
148 VK_LAYER_EXPORT bool FormatIsSinglePlane_422(VkFormat format);
149 VK_LAYER_EXPORT bool FormatIsNorm(VkFormat format);
[all …]
/external/tensorflow/tensorflow/core/util/
Dtensor_format.h101 bool FormatFromString(absl::string_view format_str, TensorFormat* format);
106 FilterTensorFormat* format);
109 std::string ToString(TensorFormat format);
112 std::string ToString(FilterTensorFormat format);
116 inline int GetTensorSpatialDims(int num_dims, TensorFormat format) { in GetTensorSpatialDims() argument
117 switch (format) { in GetTensorSpatialDims()
129 LOG(FATAL) << "Unknown format " << format; in GetTensorSpatialDims()
134 inline int GetFilterTensorSpatialDims(int num_dims, FilterTensorFormat format) { in GetFilterTensorSpatialDims() argument
135 if (format == FORMAT_OIHW_VECT_I) { in GetFilterTensorSpatialDims()
145 TensorFormat format) { in GetTensorDimsFromSpatialDims() argument
[all …]

12345678910>>...444