Home
last modified time | relevance | path

Searched refs:field_name (Results 1 – 25 of 195) sorted by relevance

12345678

/external/tensorflow/tensorflow/python/autograph/pyct/
Danno.py101 def keys(node, field_name='___pyct_anno'): argument
102 if not hasattr(node, field_name):
104 return frozenset(getattr(node, field_name).keys())
107 def getanno(node, key, default=FAIL, field_name='___pyct_anno'): argument
108 if (default is FAIL or (hasattr(node, field_name) and
109 (key in getattr(node, field_name)))):
110 return getattr(node, field_name)[key]
115 def hasanno(node, key, field_name='___pyct_anno'): argument
116 return hasattr(node, field_name) and key in getattr(node, field_name)
119 def setanno(node, key, value, field_name='___pyct_anno'): argument
[all …]
/external/tensorflow/tensorflow/core/lib/strings/
Dproto_text_util.h45 void OpenNestedMessage(const char field_name[]) { in OpenNestedMessage() argument
47 field_name, " {", field_separator_); in OpenNestedMessage()
66 void AppendNumeric(const char field_name[], T value) { in AppendNumeric() argument
67 AppendFieldAndValue(field_name, StrCat(value)); in AppendNumeric()
72 void AppendNumericIfNotZero(const char field_name[], T value) { in AppendNumericIfNotZero() argument
73 if (value != 0) AppendNumeric(field_name, value); in AppendNumericIfNotZero()
77 void AppendBool(const char field_name[], bool value) { in AppendBool() argument
78 AppendFieldAndValue(field_name, value ? "true" : "false"); in AppendBool()
82 void AppendBoolIfTrue(const char field_name[], bool value) { in AppendBoolIfTrue() argument
83 if (value) AppendBool(field_name, value); in AppendBoolIfTrue()
[all …]
/external/perfetto/src/trace_processor/metrics/android/
Dunmapped_java_symbols.sql46 SELECT DISTINCT o.upid, field_type_name, field_name
50 AND field_name NOT LIKE '$Proxy%'
51 AND field_name NOT LIKE 'java.%'
52 AND field_name NOT LIKE 'javax.%'
53 AND field_name NOT LIKE 'j$.%'
54 AND field_name NOT LIKE 'android.%'
55 AND field_name NOT LIKE 'com.android.%'
56 AND field_name NOT LIKE 'sun.%'
57 AND field_name NOT LIKE 'dalvik.%'
58 AND field_name NOT LIKE 'libcore.%'
[all …]
/external/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectsource.cc199 std::string field_name; in WriteMessage() local
217 field_name = field->name(); in WriteMessage()
219 field_name = field->json_name(); in WriteMessage()
235 ow->StartObject(field_name); in WriteMessage()
236 ASSIGN_OR_RETURN(tag, RenderMap(field, field_name, tag, ow)); in WriteMessage()
239 ASSIGN_OR_RETURN(tag, RenderList(field, field_name, tag, ow)); in WriteMessage()
243 RETURN_IF_ERROR(RenderField(field, field_name, ow)); in WriteMessage()
338 StringPiece field_name, ObjectWriter* ow) { in RenderTimestamp() argument
345 field_name)); in RenderTimestamp()
351 StrCat("Timestamp nanos exceeds limit for field: ", field_name)); in RenderTimestamp()
[all …]
/external/libchrome/base/json/
Djson_value_converter.h366 void RegisterIntField(const std::string& field_name, in RegisterIntField() argument
370 field_name, field, new internal::BasicValueConverter<int>)); in RegisterIntField()
373 void RegisterStringField(const std::string& field_name, in RegisterStringField() argument
377 field_name, field, new internal::BasicValueConverter<std::string>)); in RegisterStringField()
380 void RegisterStringField(const std::string& field_name, in RegisterStringField() argument
384 field_name, field, new internal::BasicValueConverter<string16>)); in RegisterStringField()
387 void RegisterBoolField(const std::string& field_name, in RegisterBoolField() argument
391 field_name, field, new internal::BasicValueConverter<bool>)); in RegisterBoolField()
394 void RegisterDoubleField(const std::string& field_name, in RegisterDoubleField() argument
398 field_name, field, new internal::BasicValueConverter<double>)); in RegisterDoubleField()
[all …]
/external/protobuf/php/src/Google/Protobuf/Internal/
DOneofField.php39 private $field_name; variable in Google\\Protobuf\\Internal\\OneofField
58 public function setFieldName($field_name) argument
60 $this->field_name = $field_name;
65 return $this->field_name;
/external/ltp/testcases/kernel/syscalls/uname/
Duname04.c49 #define CHECK_FIELD(field_name) \ in try_leak_bytes() argument
50 (check_field(buf.field_name, saved_buf.field_name, \ in try_leak_bytes()
51 ARRAY_SIZE(buf.field_name), #field_name)) in try_leak_bytes()
/external/libtextclassifier/native/utils/
Dflatbuffers.cc31 const StringPiece field_name) { in GetFieldOrNull() argument
33 return type->fields()->LookupByKey(field_name.data()); in GetFieldOrNull()
50 const StringPiece field_name, in GetFieldOrNull() argument
54 if (!field_name.empty()) { in GetFieldOrNull()
55 return GetFieldOrNull(type, field_name.data()); in GetFieldOrNull()
63 if (field->field_name() == nullptr) { in GetFieldOrNull()
68 StringPiece(field->field_name()->data(), field->field_name()->size()), in GetFieldOrNull()
75 return GetFieldOrNull(type, field->field_name, field->field_offset); in GetFieldOrNull()
150 const StringPiece field_name) const { in GetFieldOrNull()
151 return libtextclassifier3::GetFieldOrNull(type_, field_name); in GetFieldOrNull()
[all …]
Dflatbuffers.h157 const reflection::Field* GetFieldOrNull(const StringPiece field_name) const;
170 bool Set(StringPiece field_name, T value);
185 ReflectiveFlatbuffer* Mutable(StringPiece field_name);
195 bool Add(StringPiece field_name, T value);
198 ReflectiveFlatbuffer* Add(StringPiece field_name);
208 RepeatedField* Repeated(StringPiece field_name);
345 bool ReflectiveFlatbuffer::Set(StringPiece field_name, T value) { in Set() argument
346 if (const reflection::Field* field = GetFieldOrNull(field_name)) { in Set()
355 TC3_LOG(ERROR) << "Couldn't find a field: " << field_name; in Set()
387 bool ReflectiveFlatbuffer::Add(StringPiece field_name, T value) { in Add() argument
[all …]
/external/perfetto/src/trace_processor/metrics/
Dmetrics.cc76 util::Status ProtoBuilder::AppendSqlValue(const std::string& field_name, in AppendSqlValue() argument
80 return AppendLong(field_name, value.long_value); in AppendSqlValue()
82 return AppendDouble(field_name, value.double_value); in AppendSqlValue()
84 return AppendString(field_name, value.string_value); in AppendSqlValue()
86 return AppendBytes(field_name, in AppendSqlValue()
97 util::Status ProtoBuilder::AppendLong(const std::string& field_name, in AppendLong() argument
100 auto field_idx = descriptor_->FindFieldIdxByName(field_name); in AppendLong()
103 field_name.c_str(), in AppendLong()
112 field_name.c_str(), descriptor_->full_name().c_str()); in AppendLong()
142 util::Status ProtoBuilder::AppendDouble(const std::string& field_name, in AppendDouble() argument
[all …]
Dmetrics.h66 util::Status AppendSqlValue(const std::string& field_name,
72 util::Status AppendLong(const std::string& field_name,
75 util::Status AppendDouble(const std::string& field_name,
78 util::Status AppendString(const std::string& field_name,
81 util::Status AppendBytes(const std::string& field_name,
/external/webrtc/tools/python_charts/webrtc/
Ddata_helper.py40 def CreateData(self, field_name, start_frame=0, end_frame=0): argument
82 column_name = '%s_%s' % (field_name, dataset_index)
83 column_type = self.table_description[field_name][0]
101 column_name = '%s_%s' % (field_name, dataset_index)
105 self.data_list[dataset_index][row_number][field_name]
/external/u-boot/common/eeprom/
Deeprom_layout.c68 char *field_name, char *new_data) in eeprom_layout_update_field() argument
76 if (field_name == NULL) in eeprom_layout_update_field()
81 strcmp(fields[i].name, field_name)) in eeprom_layout_update_field()
86 printf("Invalid data for field %s\n", field_name); in eeprom_layout_update_field()
91 printf("No such field '%s'\n", field_name); in eeprom_layout_update_field()
/external/python/cpython3/Lib/
Dstring.py176 for literal_text, field_name, format_spec, conversion in \
184 if field_name is not None:
189 if field_name == '':
194 field_name = str(auto_arg_index)
196 elif field_name.isdigit():
207 obj, arg_used = self.get_field(field_name, args, kwargs)
269 def get_field(self, field_name, args, kwargs): argument
270 first, rest = _string.formatter_field_name_split(field_name)
/external/autotest/client/cros/cellular/mbim_compliance/
Dmbim_message.py105 for _, field_name, field_type in fields:
106 if field_name not in kwargs:
114 field_value = defaults.get(field_name, None)
119 field_name, cls.__name__))
122 field_values.append(kwargs.pop(field_name))
294 for _, field_name, field_type in fields:
296 field_names.append(field_name)
524 for field_name in self.__class__.get_field_names(get_all=True):
526 field_name, str(getattr(self, field_name)))
/external/bcc/src/cc/frontends/clang/
Dtp_frontend_action.cc61 string& field_name) { in _get_field_kind() argument
97 field_name = field.substr(pos + 1); in _get_field_kind()
100 if (field_name.find("common_") == 0) in _get_field_kind()
103 if (field_name.find("[") != string::npos) in _get_field_kind()
148 string field_type, field_name; in GenerateTracepointStruct() local
149 switch (_get_field_kind(line, field_type, field_name)) { in GenerateTracepointStruct()
154 tp_struct += "\tint data_loc_" + field_name + ";\n"; in GenerateTracepointStruct()
157 tp_struct += "\t" + field_type + " " + field_name + ";\n"; in GenerateTracepointStruct()
/external/perfetto/tools/trace_to_text/
Dutils.cc57 std::string field_name = it.Get(0).string_value; in GetHeapGraphClasses() local
58 if (field_name.size() == 0) in GetHeapGraphClasses()
60 size_t n = field_name.rfind("."); in GetHeapGraphClasses()
61 if (n == std::string::npos || n == field_name.size() - 1) { in GetHeapGraphClasses()
62 PERFETTO_ELOG("Invalid field name: %s", field_name.c_str()); in GetHeapGraphClasses()
65 std::string class_name = field_name; in GetHeapGraphClasses()
67 field_name = field_name.substr(n + 1); in GetHeapGraphClasses()
68 res[class_name].emplace(field_name); in GetHeapGraphClasses()
/external/autotest/frontend/afe/
Dmodel_logic.py563 for field_name in data:
564 if field_name not in field_dict or data[field_name] is None:
566 field_obj = field_dict[field_name]
575 if from_val == data[field_name]:
576 data[field_name] = to_val
580 dest_obj = field_obj.rel.to.smart_get(data[field_name],
584 if (field_name != 'parameterized_job' and
586 data[field_name] = getattr(dest_obj,
589 data[field_name] = dest_obj
603 for field_name, field_obj in field_dict.iteritems():
[all …]
/external/v8/src/wasm/
Dwasm-debug-evaluate.cc299 std::string field_name(bytes.start() + imported.field_name.offset(), in VerifyEvaluatorInterface() local
300 bytes.start() + imported.field_name.end_offset()); in VerifyEvaluatorInterface()
303 if (field_name == "__getMemory") { in VerifyEvaluatorInterface()
309 } else if (field_name == "__getOperand") { in VerifyEvaluatorInterface()
314 } else if (field_name == "__getGlobal") { in VerifyEvaluatorInterface()
319 } else if (field_name == "__getLocal") { in VerifyEvaluatorInterface()
324 } else if (field_name == "__debug") { in VerifyEvaluatorInterface()
329 } else if (field_name == "__sbrk") { in VerifyEvaluatorInterface()
339 field_name.c_str()); in VerifyEvaluatorInterface()
347 std::string field_name(bytes.start() + exported.name.offset(), in VerifyEvaluatorInterface() local
[all …]
/external/perfetto/tools/ftrace_proto_gen/
Dftrace_proto_gen.cc158 std::string field_name = in GenerateFtraceEventProto() local
163 if (4 + type_name.size() + 1 + field_name.size() + 3 + 3 + 1 <= 80) { in GenerateFtraceEventProto()
165 *fout << " " << type_name << " " << field_name << " = " << i << ";\n"; in GenerateFtraceEventProto()
166 } else if (4 + type_name.size() + 1 + field_name.size() + 2 <= 80) { in GenerateFtraceEventProto()
168 *fout << " " << type_name << " " << field_name << " =\n " << i in GenerateFtraceEventProto()
172 *fout << " " << type_name << "\n " << field_name << " = " << i in GenerateFtraceEventProto()
/external/protobuf/src/google/protobuf/util/
Dfield_mask_util_test.cc413 #define TEST_MERGE_ONE_PRIMITIVE_FIELD(field_name) \ in TEST() argument
416 tmp.set_##field_name(src.field_name()); \ in TEST()
418 mask.add_paths(#field_name); \ in TEST()
422 src.clear_##field_name(); \ in TEST()
423 tmp.clear_##field_name(); \ in TEST()
447 #define TEST_MERGE_ONE_FIELD(field_name) \ in TEST() argument
450 *tmp.mutable_##field_name() = src.field_name(); \ in TEST()
452 mask.add_paths(#field_name); \ in TEST()
562 #define TEST_TRIM_ONE_PRIMITIVE_FIELD(field_name) \ in TEST() argument
567 tmp.set_##field_name(msg.field_name()); \ in TEST()
[all …]
/external/protobuf/ruby/tests/
Drepeated_field_test.rb30 repeated_field_names(TestMessage).each do |field_name|
31 assert_nil m.send(field_name).first
32 assert_equal [], m.send(field_name).first(0)
33 assert_equal [], m.send(field_name).first(1)
58 repeated_field_names(TestMessage).each do |field_name|
59 assert_nil m.send(field_name).first
78 repeated_field_names(TestMessage).each do |field_name|
79 assert_nil m.send(field_name).pop
105 repeated_field_names(TestMessage).each do |field_name|
106 assert_nil m.send(field_name).pop
[all …]
/external/python/cpython2/Objects/stringlib/
Dstring_format.h635 parse_field(SubString *str, SubString *field_name, SubString *format_spec, in parse_field() argument
650 field_name->ptr = str->ptr; in parse_field()
665 field_name->end = str->ptr-1; in parse_field()
695 field_name->end = str->ptr; in parse_field()
724 int *field_present, SubString *field_name, in MarkupIterator_next() argument
737 SubString_init(field_name, NULL, 0); in MarkupIterator_next()
825 if (parse_field(&s, field_name, format_spec, conversion) == 0) in MarkupIterator_next()
882 output_markup(SubString *field_name, SubString *format_spec, in output_markup() argument
894 fieldobj = get_field_object(field_name, args, kwargs, auto_number); in output_markup()
953 SubString field_name; in do_markup() local
[all …]
/external/python/cpython3/Objects/stringlib/
Dunicode_format.h552 parse_field(SubString *str, SubString *field_name, SubString *format_spec, in parse_field() argument
567 field_name->str = str->str; in parse_field()
568 field_name->start = str->start; in parse_field()
589 field_name->end = str->start - 1; in parse_field()
674 int *field_present, SubString *field_name, in MarkupIterator_next() argument
686 SubString_init(field_name, NULL, 0, 0); in MarkupIterator_next()
754 if (!parse_field(&self->str, field_name, format_spec, in MarkupIterator_next()
804 output_markup(SubString *field_name, SubString *format_spec, in output_markup() argument
816 fieldobj = get_field_object(field_name, args, kwargs, auto_number); in output_markup()
874 SubString field_name; in do_markup() local
[all …]
/external/mesa3d/src/intel/genxml/
Dgen_bits_header.py181 def get_field(self, field_name, create=False): argument
182 key = to_alphanum(field_name)
185 self.fields[key] = Field(self, field_name)
301 field_name = attrs.get('name', None)
302 if not field_name:
305 self.container_stack[-1].get_field(field_name, True).add_gen(self.gen, attrs)

12345678