Home
last modified time | relevance | path

Searched refs:fields (Results 1 – 25 of 4723) sorted by relevance

12345678910>>...189

/external/rust/pica/scripts/
Duci_packets.py18 from dataclasses import dataclass, field, fields
83 last = len(fields(self)) - 1
84 align = max(len(f.name) for f in fields(self) if f.name != 'payload')
86 for (idx, f) in enumerate(fields(self)):
359 fields = {'payload': None}
362 fields['group_id'] = GroupId((span[0] >> 0) & 0xf)
363 fields['packet_boundary_flag'] = PacketBoundaryFlag(
365 fields['message_type'] = MessageType((span[0] >> 5) & 0x7)
366 fields['opcode'] = (span[1] >> 0) & 0x3f
372 fields['payload'] = payload
[all …]
/external/icu/icu4c/source/i18n/
Ddecimfmt.cpp95 new CurrencyPluralInfo(fields->symbols->getLocale(), status), in DecimalFormat()
98 fields->properties.currencyPluralInfo.fPtr.adoptInstead(cpi.orphan()); in DecimalFormat()
109 fields = new DecimalFormatFields(); in DecimalFormat()
110 if (fields == nullptr) { in DecimalFormat()
115 fields->symbols.adoptInsteadAndCheckErrorCode(new DecimalFormatSymbols(status), status); in DecimalFormat()
117 fields->symbols.adoptInsteadAndCheckErrorCode(adoptedSymbols.orphan(), status); in DecimalFormat()
120 delete fields; in DecimalFormat()
121 fields = nullptr; in DecimalFormat()
128 if (fields == nullptr) { return; } in setParseAllInput()
129 if (value == fields->properties.parseAllInput) { return; } in setParseAllInput()
[all …]
Dregexcst.pl39 @fields = split();
44 for ($i=0; $i<@fields; $i++) {
45 if ($fields[$i] =~ /^#/) {
46 @fields = @fields[0 .. $i-1];
51 if (@fields == 0) {
61 if (@fields[0] =~ /.*:$/) {
62 $state_name = @fields[0];
73 if (@fields == 1) {
76 shift @fields; # shift off label field in preparation
95 if ($fields[0] =~ /^'.'$/) {
[all …]
/external/cronet/third_party/icu/source/i18n/
Ddecimfmt.cpp95 new CurrencyPluralInfo(fields->symbols->getLocale(), status), in DecimalFormat()
98 fields->properties.currencyPluralInfo.fPtr.adoptInstead(cpi.orphan()); in DecimalFormat()
109 fields = new DecimalFormatFields(); in DecimalFormat()
110 if (fields == nullptr) { in DecimalFormat()
115 fields->symbols.adoptInsteadAndCheckErrorCode(new DecimalFormatSymbols(status), status); in DecimalFormat()
117 fields->symbols.adoptInsteadAndCheckErrorCode(adoptedSymbols.orphan(), status); in DecimalFormat()
120 delete fields; in DecimalFormat()
121 fields = nullptr; in DecimalFormat()
128 if (fields == nullptr) { return; } in setParseAllInput()
129 if (value == fields->properties.parseAllInput) { return; } in setParseAllInput()
[all …]
Dregexcst.pl39 @fields = split();
44 for ($i=0; $i<@fields; $i++) {
45 if ($fields[$i] =~ /^#/) {
46 @fields = @fields[0 .. $i-1];
51 if (@fields == 0) {
61 if (@fields[0] =~ /.*:$/) {
62 $state_name = @fields[0];
73 if (@fields == 1) {
76 shift @fields; # shift off label field in preparation
95 if ($fields[0] =~ /^'.'$/) {
[all …]
/external/mesa3d/src/gallium/drivers/swr/rasterizer/codegen/templates/
Dgen_ar_event.hpp88 fields = event['fields'] %>
90 % for i in range(len(fields)):
91 % if fields[i]['size'] > 1:
92 ${fields[i]['type']} ${fields[i]['name']}[${fields[i]['size']}];
94 ${fields[i]['type']} ${fields[i]['name']};
105 fields = event['fields'] %>
111 % for i in range(len(fields)):
112 % if i < len(fields)-1:
113 % if fields[i]['size'] > 1:
114 ${fields[i]['type']}* ${fields[i]['name']},
[all …]
/external/libxml2/
Dbuild_glob.py67 fields = line.split(",") variable
70 global_functions_hdr.write("XMLPUBFUN "+fields[0]+" *\n\t")
71 if fields[2]:
73 global_functions_hdr.write("__"+fields[1]+"(void)")
74 if fields[2]:
75 global_functions_hdr.write(")"+fields[2])
78 writeline(global_functions_hdr,"#define "+fields[1]+" \\")
79 writeline(global_functions_hdr,"(*(__"+fields[1]+"()))")
81 if fields[2]:
82 writeline(global_functions_hdr,"XMLPUBVAR "+fields[0]+" "+fields[1]+fields[2]+";")
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs47 var fields = TestAllTypes.Descriptor.Fields; in GetValue()
48 …Assert.AreEqual(message.SingleBool, fields[TestAllTypes.SingleBoolFieldNumber].Accessor.GetValue(m… in GetValue()
49 …Assert.AreEqual(message.SingleBytes, fields[TestAllTypes.SingleBytesFieldNumber].Accessor.GetValue… in GetValue()
50 …Assert.AreEqual(message.SingleDouble, fields[TestAllTypes.SingleDoubleFieldNumber].Accessor.GetVal… in GetValue()
51 …Assert.AreEqual(message.SingleFixed32, fields[TestAllTypes.SingleFixed32FieldNumber].Accessor.GetV… in GetValue()
52 …Assert.AreEqual(message.SingleFixed64, fields[TestAllTypes.SingleFixed64FieldNumber].Accessor.GetV… in GetValue()
53 …Assert.AreEqual(message.SingleFloat, fields[TestAllTypes.SingleFloatFieldNumber].Accessor.GetValue… in GetValue()
54 …Assert.AreEqual(message.SingleForeignEnum, fields[TestAllTypes.SingleForeignEnumFieldNumber].Acces… in GetValue()
55 …Assert.AreEqual(message.SingleForeignMessage, fields[TestAllTypes.SingleForeignMessageFieldNumber]… in GetValue()
56 …Assert.AreEqual(message.SingleImportEnum, fields[TestAllTypes.SingleImportEnumFieldNumber].Accesso… in GetValue()
[all …]
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs47 var fields = TestAllTypes.Descriptor.Fields; in GetValue()
48 …Assert.AreEqual(message.SingleBool, fields[TestAllTypes.SingleBoolFieldNumber].Accessor.GetValue(m… in GetValue()
49 …Assert.AreEqual(message.SingleBytes, fields[TestAllTypes.SingleBytesFieldNumber].Accessor.GetValue… in GetValue()
50 …Assert.AreEqual(message.SingleDouble, fields[TestAllTypes.SingleDoubleFieldNumber].Accessor.GetVal… in GetValue()
51 …Assert.AreEqual(message.SingleFixed32, fields[TestAllTypes.SingleFixed32FieldNumber].Accessor.GetV… in GetValue()
52 …Assert.AreEqual(message.SingleFixed64, fields[TestAllTypes.SingleFixed64FieldNumber].Accessor.GetV… in GetValue()
53 …Assert.AreEqual(message.SingleFloat, fields[TestAllTypes.SingleFloatFieldNumber].Accessor.GetValue… in GetValue()
54 …Assert.AreEqual(message.SingleForeignEnum, fields[TestAllTypes.SingleForeignEnumFieldNumber].Acces… in GetValue()
55 …Assert.AreEqual(message.SingleForeignMessage, fields[TestAllTypes.SingleForeignMessageFieldNumber]… in GetValue()
56 …Assert.AreEqual(message.SingleImportEnum, fields[TestAllTypes.SingleImportEnumFieldNumber].Accesso… in GetValue()
[all …]
/external/tensorflow/tensorflow/lite/testing/
Dsplit.h44 std::vector<string> fields; in Split() local
46 fields.push_back(s.substr(p.first, p.second - p.first)); in Split()
48 return fields; in Split()
53 std::vector<int> fields; in Split() local
56 fields.push_back(strtol(s.data() + p.first, nullptr, 10)); in Split()
58 return fields; in Split()
63 std::vector<uint32_t> fields; in Split() local
66 fields.push_back(strtol(s.data() + p.first, nullptr, 10)); in Split()
68 return fields; in Split()
73 std::vector<int64_t> fields; in Split() local
[all …]
/external/icu/icu4c/source/common/
Drbbicst.pl40 @fields = split();
45 for ($i=0; $i<@fields; $i++) {
46 if ($fields[$i] =~ /^#/) {
47 @fields = @fields[0 .. $i-1];
52 if (@fields == 0) {
62 if (@fields[0] =~ /.*:$/) {
63 $state_name = @fields[0];
74 if (@fields == 1) {
77 shift @fields; # shift off label field in preparation
96 if ($fields[0] =~ /^'.'$/) {
[all …]
/external/cronet/third_party/icu/source/common/
Drbbicst.pl40 @fields = split();
45 for ($i=0; $i<@fields; $i++) {
46 if ($fields[$i] =~ /^#/) {
47 @fields = @fields[0 .. $i-1];
52 if (@fields == 0) {
62 if (@fields[0] =~ /.*:$/) {
63 $state_name = @fields[0];
74 if (@fields == 1) {
77 shift @fields; # shift off label field in preparation
96 if ($fields[0] =~ /^'.'$/) {
[all …]
/external/clang/bindings/python/tests/cindex/
Dtest_type.py32 fields = list(teststruct.get_children())
33 assert all(x.kind == CursorKind.FIELD_DECL for x in fields)
34 assert all(x.translation_unit is not None for x in fields)
36 assert fields[0].spelling == 'a'
37 assert not fields[0].type.is_const_qualified()
38 assert fields[0].type.kind == TypeKind.INT
39 assert fields[0].type.get_canonical().kind == TypeKind.INT
41 assert fields[1].spelling == 'b'
42 assert not fields[1].type.is_const_qualified()
43 assert fields[1].type.kind == TypeKind.TYPEDEF
[all …]
/external/smali/smalidea/src/test/java/org/jf/smalidea/
DSmaliFieldTest.java54 SmaliField[] fields = smaliClass.getFields(); in testBasicField() local
55 Assert.assertEquals(1, fields.length); in testBasicField()
56 Assert.assertEquals("myField", fields[0].getName()); in testBasicField()
57 Assert.assertTrue(fields[0].getType() instanceof PsiPrimitiveType); in testBasicField()
58 Assert.assertEquals("int", fields[0].getType().getCanonicalText()); in testBasicField()
59 PsiTypeElement typeElement = fields[0].getTypeElement(); in testBasicField()
63 SmaliModifierList modifierList = fields[0].getModifierList(); in testBasicField()
68 Assert.assertTrue(fields[0].hasModifierProperty("public")); in testBasicField()
96 PsiField[] fields = smaliClass.getFields(); in testSmaliSuperField() local
97 Assert.assertEquals(1, fields.length); in testSmaliSuperField()
[all …]
/external/webrtc/rtc_base/
Dstring_encode_unittest.cc137 std::vector<std::string> fields; in TEST() local
139 EXPECT_EQ(5ul, tokenize("one two three four five", ' ', &fields)); in TEST()
140 fields.clear(); in TEST()
141 EXPECT_EQ(1ul, tokenize("one", ' ', &fields)); in TEST()
144 fields.clear(); in TEST()
145 EXPECT_EQ(5ul, tokenize(" one two three four five ", ' ', &fields)); in TEST()
146 fields.clear(); in TEST()
147 EXPECT_EQ(1ul, tokenize(" one ", ' ', &fields)); in TEST()
148 fields.clear(); in TEST()
149 EXPECT_EQ(0ul, tokenize(" ", ' ', &fields)); in TEST()
[all …]
/external/mesa3d/src/compiler/
Dglsl_types.cpp81 memset(& fields, 0, sizeof(fields)); in glsl_type()
100 memset(& fields, 0, sizeof(fields)); in glsl_type()
105 glsl_type::glsl_type(const glsl_struct_field *fields, unsigned num_fields, in glsl_type() argument
127 this->fields.structure = rzalloc_array(this->mem_ctx, in glsl_type()
131 this->fields.structure[i] = fields[i]; in glsl_type()
132 this->fields.structure[i].name = ralloc_strdup(this->fields.structure, in glsl_type()
133 fields[i].name); in glsl_type()
137 glsl_type::glsl_type(const glsl_struct_field *fields, unsigned num_fields, in glsl_type() argument
155 this->fields.structure = rzalloc_array(this->mem_ctx, in glsl_type()
158 this->fields.structure[i] = fields[i]; in glsl_type()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs51 var fields = TestProtos.TestAllTypes.Descriptor.Fields; in GetValue()
52 …Assert.AreEqual(message.SingleBool, fields[TestProtos.TestAllTypes.SingleBoolFieldNumber].Accessor… in GetValue()
53 …Assert.AreEqual(message.SingleBytes, fields[TestProtos.TestAllTypes.SingleBytesFieldNumber].Access… in GetValue()
54 …Assert.AreEqual(message.SingleDouble, fields[TestProtos.TestAllTypes.SingleDoubleFieldNumber].Acce… in GetValue()
55 …Assert.AreEqual(message.SingleFixed32, fields[TestProtos.TestAllTypes.SingleFixed32FieldNumber].Ac… in GetValue()
56 …Assert.AreEqual(message.SingleFixed64, fields[TestProtos.TestAllTypes.SingleFixed64FieldNumber].Ac… in GetValue()
57 …Assert.AreEqual(message.SingleFloat, fields[TestProtos.TestAllTypes.SingleFloatFieldNumber].Access… in GetValue()
58 …Assert.AreEqual(message.SingleForeignEnum, fields[TestProtos.TestAllTypes.SingleForeignEnumFieldNu… in GetValue()
59 …Assert.AreEqual(message.SingleForeignMessage, fields[TestProtos.TestAllTypes.SingleForeignMessageF… in GetValue()
60 …Assert.AreEqual(message.SingleImportEnum, fields[TestProtos.TestAllTypes.SingleImportEnumFieldNumb… in GetValue()
[all …]
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs51 var fields = TestProtos.TestAllTypes.Descriptor.Fields; in GetValue()
52 …Assert.AreEqual(message.SingleBool, fields[TestProtos.TestAllTypes.SingleBoolFieldNumber].Accessor… in GetValue()
53 …Assert.AreEqual(message.SingleBytes, fields[TestProtos.TestAllTypes.SingleBytesFieldNumber].Access… in GetValue()
54 …Assert.AreEqual(message.SingleDouble, fields[TestProtos.TestAllTypes.SingleDoubleFieldNumber].Acce… in GetValue()
55 …Assert.AreEqual(message.SingleFixed32, fields[TestProtos.TestAllTypes.SingleFixed32FieldNumber].Ac… in GetValue()
56 …Assert.AreEqual(message.SingleFixed64, fields[TestProtos.TestAllTypes.SingleFixed64FieldNumber].Ac… in GetValue()
57 …Assert.AreEqual(message.SingleFloat, fields[TestProtos.TestAllTypes.SingleFloatFieldNumber].Access… in GetValue()
58 …Assert.AreEqual(message.SingleForeignEnum, fields[TestProtos.TestAllTypes.SingleForeignEnumFieldNu… in GetValue()
59 …Assert.AreEqual(message.SingleForeignMessage, fields[TestProtos.TestAllTypes.SingleForeignMessageF… in GetValue()
60 …Assert.AreEqual(message.SingleImportEnum, fields[TestProtos.TestAllTypes.SingleImportEnumFieldNumb… in GetValue()
[all …]
/external/python/jinja/src/jinja2/
Dnodes.py108 fields = () variable in Node
112 def __init__(self, *fields, **attributes): argument
115 if fields:
116 if len(fields) != len(self.fields):
117 if not self.fields:
123 for name, arg in zip(self.fields, fields):
137 for name in self.fields:
186 if "ctx" in node.fields:
221 args_str = ", ".join(f"{a}={getattr(self, a, None)!r}" for a in self.fields)
231 if not node.fields:
[all …]
/external/cronet/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DUnknownFieldSetLiteSchema.java53 void addVarint(UnknownFieldSetLite fields, int number, long value) { in addVarint() argument
54 fields.storeField(WireFormat.makeTag(number, WireFormat.WIRETYPE_VARINT), value); in addVarint()
58 void addFixed32(UnknownFieldSetLite fields, int number, int value) { in addFixed32() argument
59 fields.storeField(WireFormat.makeTag(number, WireFormat.WIRETYPE_FIXED32), value); in addFixed32()
63 void addFixed64(UnknownFieldSetLite fields, int number, long value) { in addFixed64() argument
64 fields.storeField(WireFormat.makeTag(number, WireFormat.WIRETYPE_FIXED64), value); in addFixed64()
68 void addLengthDelimited(UnknownFieldSetLite fields, int number, ByteString value) { in addLengthDelimited() argument
69 fields.storeField(WireFormat.makeTag(number, WireFormat.WIRETYPE_LENGTH_DELIMITED), value); in addLengthDelimited()
73 void addGroup(UnknownFieldSetLite fields, int number, UnknownFieldSetLite subFieldSet) { in addGroup() argument
74 fields.storeField(WireFormat.makeTag(number, WireFormat.WIRETYPE_START_GROUP), subFieldSet); in addGroup()
[all …]
/external/toolchain-utils/crosperf/
Dsettings.py20 self.fields = {}
29 if name in self.fields:
31 self.fields[name] = field
34 if name not in self.fields:
40 self.fields[name].Append(value)
42 self.fields[name].Set(value)
46 if name not in self.fields:
51 field = self.fields[name]
57 return self.fields[name].Get()
61 for name in self.fields:
[all …]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DUnknownFieldSetLiteSchema.java53 void addVarint(UnknownFieldSetLite fields, int number, long value) { in addVarint() argument
54 fields.storeField(WireFormat.makeTag(number, WireFormat.WIRETYPE_VARINT), value); in addVarint()
58 void addFixed32(UnknownFieldSetLite fields, int number, int value) { in addFixed32() argument
59 fields.storeField(WireFormat.makeTag(number, WireFormat.WIRETYPE_FIXED32), value); in addFixed32()
63 void addFixed64(UnknownFieldSetLite fields, int number, long value) { in addFixed64() argument
64 fields.storeField(WireFormat.makeTag(number, WireFormat.WIRETYPE_FIXED64), value); in addFixed64()
68 void addLengthDelimited(UnknownFieldSetLite fields, int number, ByteString value) { in addLengthDelimited() argument
69 fields.storeField(WireFormat.makeTag(number, WireFormat.WIRETYPE_LENGTH_DELIMITED), value); in addLengthDelimited()
73 void addGroup(UnknownFieldSetLite fields, int number, UnknownFieldSetLite subFieldSet) { in addGroup() argument
74 fields.storeField(WireFormat.makeTag(number, WireFormat.WIRETYPE_START_GROUP), subFieldSet); in addGroup()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DGrego.java119 public static int[] dayToFields(long day, int[] fields) { in dayToFields() argument
120 if (fields == null || fields.length < 5) { in dayToFields()
121 fields = new int[5]; in dayToFields()
155 fields[0] = year; in dayToFields()
156 fields[1] = month; in dayToFields()
157 fields[2] = dayOfMonth; in dayToFields()
158 fields[3] = dayOfWeek; in dayToFields()
159 fields[4] = dayOfYear; in dayToFields()
161 return fields; in dayToFields()
174 public static int[] timeToFields(long time, int[] fields) { in timeToFields() argument
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java117 public static int[] dayToFields(long day, int[] fields) { in dayToFields() argument
118 if (fields == null || fields.length < 5) { in dayToFields()
119 fields = new int[5]; in dayToFields()
153 fields[0] = year; in dayToFields()
154 fields[1] = month; in dayToFields()
155 fields[2] = dayOfMonth; in dayToFields()
156 fields[3] = dayOfWeek; in dayToFields()
157 fields[4] = dayOfYear; in dayToFields()
159 return fields; in dayToFields()
172 public static int[] timeToFields(long time, int[] fields) { in timeToFields() argument
[all …]
/external/libchrome/third_party/jinja2/
Dnodes.py123 fields = () variable in Node
127 def __init__(self, *fields, **attributes): argument
130 if fields:
131 if len(fields) != len(self.fields):
132 if not self.fields:
137 len(self.fields),
138 len(self.fields) != 1 and 's' or ''
140 for name, arg in izip(self.fields, fields):
155 for name in self.fields:
203 if 'ctx' in node.fields:
[all …]

12345678910>>...189