Home
last modified time | relevance | path

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

123456789

/external/tensorflow/tensorflow/python/autograph/pyct/
Danno.py121 def keys(node, field_name='___pyct_anno'): argument
122 if not hasattr(node, field_name):
124 return frozenset(getattr(node, field_name).keys())
127 def getanno(node, key, default=FAIL, field_name='___pyct_anno'): argument
128 if (default is FAIL or (hasattr(node, field_name) and
129 (key in getattr(node, field_name)))):
130 return getattr(node, field_name)[key]
134 def hasanno(node, key, field_name='___pyct_anno'): argument
135 return hasattr(node, field_name) and key in getattr(node, field_name)
138 def setanno(node, key, value, field_name='___pyct_anno'): argument
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/json/
Djson_util.h44 inline bool ExtractJsonNumber(const Json& json, const std::string& field_name, in ExtractJsonNumber() argument
50 absl::StrCat("field:", field_name, " error:type should be NUMBER") in ExtractJsonNumber()
56 absl::StrCat("field:", field_name, " error:failed to parse.").c_str())); in ExtractJsonNumber()
63 inline bool ExtractJsonBool(const Json& json, const std::string& field_name, in ExtractJsonBool() argument
74 absl::StrCat("field:", field_name, " error:type should be BOOLEAN") in ExtractJsonBool()
81 inline bool ExtractJsonString(const Json& json, const std::string& field_name, in ExtractJsonString() argument
87 absl::StrCat("field:", field_name, " error:type should be STRING") in ExtractJsonString()
96 inline bool ExtractJsonArray(const Json& json, const std::string& field_name, in ExtractJsonArray() argument
102 absl::StrCat("field:", field_name, " error:type should be ARRAY") in ExtractJsonArray()
111 inline bool ExtractJsonObject(const Json& json, const std::string& field_name, in ExtractJsonObject() 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/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/libtextclassifier/native/utils/flatbuffers/
Dreflection.cc22 const StringPiece field_name) { in GetFieldOrNull() argument
24 return type->fields()->LookupByKey(field_name.data()); in GetFieldOrNull()
41 const StringPiece field_name, in GetFieldOrNull() argument
45 if (!field_name.empty()) { in GetFieldOrNull()
46 return GetFieldOrNull(type, field_name.data()); in GetFieldOrNull()
54 if (field->field_name() == nullptr) { in GetFieldOrNull()
59 StringPiece(field->field_name()->data(), field->field_name()->size()), in GetFieldOrNull()
66 return GetFieldOrNull(type, field->field_name, field->field_offset); in GetFieldOrNull()
110 TC3_LOG(ERROR) << "Could not find field: " << path->field[i]->field_name; in SwapFieldNamesForOffsetsInPath()
113 path->field[i]->field_name.clear(); in SwapFieldNamesForOffsetsInPath()
Dmutable.h74 const reflection::Field* GetFieldOrNull(const StringPiece field_name) const;
87 bool Set(StringPiece field_name, T value);
101 bool SetFromEnumValueName(StringPiece field_name, StringPiece value_name);
116 MutableFlatbuffer* Mutable(StringPiece field_name);
131 bool Add(StringPiece field_name, T value);
134 MutableFlatbuffer* Add(StringPiece field_name);
144 RepeatedField* Repeated(StringPiece field_name);
306 bool MutableFlatbuffer::Set(StringPiece field_name, T value) { in Set() argument
307 if (const reflection::Field* field = GetFieldOrNull(field_name)) { in Set()
316 TC3_LOG(ERROR) << "Couldn't find a field: " << field_name; in Set()
[all …]
Dreflection_test.cc34 path.field.back()->field_name = "flight_number"; in TEST()
36 path.field.back()->field_name = "carrier_code"; in TEST()
40 EXPECT_THAT(path.field[0]->field_name, testing::IsEmpty()); in TEST()
42 EXPECT_THAT(path.field[1]->field_name, testing::IsEmpty()); in TEST()
Dmutable.cc104 const StringPiece field_name) const { in GetFieldOrNull()
105 return libtextclassifier3::GetFieldOrNull(type_, field_name); in GetFieldOrNull()
153 bool MutableFlatbuffer::SetFromEnumValueName(StringPiece field_name, in SetFromEnumValueName() argument
155 if (const reflection::Field* field = GetFieldOrNull(field_name)) { in SetFromEnumValueName()
206 MutableFlatbuffer* MutableFlatbuffer::Add(StringPiece field_name) { in Add() argument
207 const reflection::Field* field = GetFieldOrNull(field_name); in Add()
226 MutableFlatbuffer* MutableFlatbuffer::Mutable(const StringPiece field_name) { in Mutable() argument
227 if (const reflection::Field* field = GetFieldOrNull(field_name)) { in Mutable()
230 TC3_LOG(ERROR) << "Unknown field: " << field_name.ToString(); in Mutable()
270 RepeatedField* MutableFlatbuffer::Repeated(StringPiece field_name) { in Repeated() argument
[all …]
/external/flac/src/metaflac/
Doperations_shorthand_vorbiscomment.c36 …c_field(const char *filename, FLAC__StreamMetadata *block, const char *field_name, FLAC__bool *nee…
37 …stfield(const char *filename, FLAC__StreamMetadata *block, const char *field_name, FLAC__bool *nee…
147 …c_field(const char *filename, FLAC__StreamMetadata *block, const char *field_name, FLAC__bool *nee… in remove_vc_field() argument
153 n = FLAC__metadata_object_vorbiscomment_remove_entries_matching(block, field_name); in remove_vc_field()
165 …stfield(const char *filename, FLAC__StreamMetadata *block, const char *field_name, FLAC__bool *nee… in remove_vc_firstfield() argument
171 n = FLAC__metadata_object_vorbiscomment_remove_entry_matching(block, field_name); in remove_vc_firstfield()
199 …RROR: can't open file '%s' for '%s' tag value\n", filename, field->field_value, field->field_name); in set_vc_field()
203 …OR: file '%s' for '%s' tag value is too large\n", filename, field->field_value, field->field_name); in set_vc_field()
210 …e '%s' for '%s' tag value: %s\n", filename, field->field_value, field->field_name, strerror(errno)… in set_vc_field()
219 …ile '%s' for '%s' tag value has embedded NULs\n", filename, field->field_value, field->field_name); in set_vc_field()
[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/perfetto/src/trace_processor/metrics/
Dmetrics.cc77 util::Status ProtoBuilder::AppendSqlValue(const std::string& field_name, in AppendSqlValue() argument
81 return AppendLong(field_name, value.long_value); in AppendSqlValue()
83 return AppendDouble(field_name, value.double_value); in AppendSqlValue()
85 return AppendString(field_name, value.string_value); in AppendSqlValue()
87 return AppendBytes(field_name, in AppendSqlValue()
98 util::Status ProtoBuilder::AppendLong(const std::string& field_name, in AppendLong() argument
101 auto field = descriptor_->FindFieldByName(field_name); in AppendLong()
104 field_name.c_str(), in AppendLong()
112 field_name.c_str(), descriptor_->full_name().c_str()); in AppendLong()
144 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/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/rust/crates/bindgen/src/codegen/
Dimpl_partialeq.rs33 let field_name = &base.field_name; in gen_partialeq_impl() localVariable
36 let field_name = ctx.rust_ident(field_name); in gen_partialeq_impl() localVariable
38 &self. #field_name [..] == &other. #field_name [..] in gen_partialeq_impl()
41 tokens.push(gen_field(ctx, ty_item, field_name)); in gen_partialeq_impl()
/external/python/cpython3/Lib/
Dstring.py174 for literal_text, field_name, format_spec, conversion in \
182 if field_name is not None:
187 if field_name == '':
192 field_name = str(auto_arg_index)
194 elif field_name.isdigit():
205 obj, arg_used = self.get_field(field_name, args, kwargs)
267 def get_field(self, field_name, args, kwargs): argument
268 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/libchrome/base/android/linker/
Dlinker_jni.cc136 const char* field_name, in InitFieldId() argument
139 *field_id = env->GetFieldID(clazz, field_name, field_sig); in InitFieldId()
141 LOG_ERROR("Could not find ID for field '%s'", field_name); in InitFieldId()
144 LOG_INFO("Found ID %p for field '%s'", *field_id, field_name); in InitFieldId()
172 const char* field_name, in InitStaticFieldId() argument
175 *field_id = env->GetStaticFieldID(clazz, field_name, field_sig); in InitStaticFieldId()
177 LOG_ERROR("Could not find ID for static field '%s'", field_name); in InitStaticFieldId()
180 LOG_INFO("Found ID %p for static field '%s'", *field_id, field_name); in InitStaticFieldId()
190 const char* field_name, in InitStaticInt() argument
197 if (!InitStaticFieldId(env, clazz, field_name, "I", &field_id)) in InitStaticInt()
[all …]
/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/perfetto/tools/ftrace_proto_gen/
Dftrace_proto_gen.cc157 std::string field_name = in GenerateFtraceEventProto() local
162 if (4 + type_name.size() + 1 + field_name.size() + 3 + 3 + 1 <= 80) { in GenerateFtraceEventProto()
164 *fout << " " << type_name << " " << field_name << " = " << i << ";\n"; in GenerateFtraceEventProto()
165 } else if (4 + type_name.size() + 1 + field_name.size() + 2 <= 80) { in GenerateFtraceEventProto()
167 *fout << " " << type_name << " " << field_name << " =\n " << i in GenerateFtraceEventProto()
171 *fout << " " << type_name << "\n " << field_name << " = " << i in GenerateFtraceEventProto()
/external/flac/src/flac/
Dvorbiscomment.c43 char *field_name; member
158 …if(!FLAC__metadata_object_vorbiscomment_entry_from_name_value_pair(&entry, field->field_name, conv… in set_vc_field()
223 if(0 != obj->field_name) in free_field()
224 free(obj->field_name); in free_field()
241 …if(!parse_vorbis_comment_field(comment, &(parsed.field), &(parsed.field_name), &(parsed.field_valu… in flac__vorbiscomment_add()
/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/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 …]

123456789