Home
last modified time | relevance | path

Searched refs:field (Results 1 – 25 of 101) sorted by relevance

12345

/system/bt/gd/packet/parser/
Dfield_list.h34 for (PacketField* field : fields) { in FieldList()
35 AppendField(field); in FieldList()
60 void AppendField(PacketField* field) { in AppendField() argument
61 AddField(field); in AppendField()
62 field_list_.push_back(field); in AppendField()
65 void PrependField(PacketField* field) { in PrependField() argument
66 AddField(field); in PrependField()
67 field_list_.insert(field_list_.begin(), field); in PrependField()
73 const auto& field = *it; in GetFieldsBeforePayloadOrBody() local
74 …if (field->GetFieldType() == PayloadField::kFieldType || field->GetFieldType() == BodyField::kFiel… in GetFieldsBeforePayloadOrBody()
[all …]
Dstruct_def.cc56 for (const auto& field : fields_) { in GenToString() local
57 if (field->GetFieldType() == ReservedField::kFieldType || in GenToString()
58 field->GetFieldType() == ChecksumStartField::kFieldType || in GenToString()
59field->GetFieldType() == FixedScalarField::kFieldType || field->GetFieldType() == CountField::kFie… in GenToString()
60 field->GetFieldType() == SizeField::kFieldType) in GenToString()
63 s << (firstfield ? " << \"" : " << \", ") << field->GetName() << " = \" << "; in GenToString()
65 field->GenStringRepresentation(s, field->GetName() + "_"); in GenToString()
120 for (const auto& field : fields_) { in GenParse() local
121 …if (field->GetFieldType() != ReservedField::kFieldType && field->GetFieldType() != BodyField::kFie… in GenParse()
122 field->GetFieldType() != FixedScalarField::kFieldType && in GenParse()
[all …]
Dparent_def.cc64 for (const auto& field : fields_) { in AssignSizeFields() local
65 DEBUG() << "field name: " << field->GetName(); in AssignSizeFields()
67 …if (field->GetFieldType() != SizeField::kFieldType && field->GetFieldType() != CountField::kFieldT… in AssignSizeFields()
71 const SizeField* size_field = static_cast<SizeField*>(field); in AssignSizeFields()
75 ERROR(field) << "Could not find corresponding field for size/count field."; in AssignSizeFields()
107 ERROR(field, size_field) << "Can not use size/count in reference to a fixed size field.\n"; in AssignSizeFields()
119 for (const auto& field : fields_) { in GetSize() local
121 …(field->GetFieldType() == PayloadField::kFieldType || field->GetFieldType() == BodyField::kFieldTy… in GetSize()
126 if (field->GetFieldType() == CustomField::kFieldType && field->GetSize().has_dynamic()) { in GetSize()
130 custom_field_size << field->GetSize().dynamic_string() << "(begin()"; in GetSize()
[all …]
Dstruct_parser_generator.cc39 auto field = node.packet_field_; in explore_children() local
41 s << "bool " << field->GetName() << "_child_found = false; /* Greedy match */"; in explore_children()
44 s << "if (!" << field->GetName() << "_child_found && "; in explore_children()
45 s << child->struct_def_->name_ << "::IsInstance(*" << field->GetName() << "_value.get())) {"; in explore_children()
46 s << field->GetName() << "_child_found = true;"; in explore_children()
49 s << child->struct_def_->name_ << "(*" << field->GetName() << "_value));"; in explore_children()
55 s << "} else { return " << field->GetName() << "_value;}"; in explore_children()
61 s << field->GetName() << "_value = std::move(" << child->packet_field_->GetName() << "_value);"; in explore_children()
72 auto field = node.packet_field_; in Generate() local
79 s << field->GetDataType() << " " << field->GetName() << "_value = "; in Generate()
[all …]
Dpacket_def.cc60 for (const auto& field : public_fields) { in GenParserDefinition() local
61 GenParserFieldGetter(s, field); in GenParserDefinition()
85 for (const auto& field : private_fields) { in GenParserDefinition() local
86 GenParserFieldGetter(s, field); in GenParserDefinition()
141 for (const auto& field : public_fields) { in GenParserDefinitionPybind11() local
142 auto getter_func_name = field->GetGetterFunctionName(); in GenParserDefinitionPybind11()
152 void PacketDef::GenParserFieldGetter(std::ostream& s, const PacketField* field) const { in GenParserFieldGetter()
154 auto start_field_offset = GetOffsetForField(field->GetName(), false); in GenParserFieldGetter()
155 auto end_field_offset = GetOffsetForField(field->GetName(), true); in GenParserFieldGetter()
158 ERROR(field) << "Field location for " << field->GetName() << " is ambiguous, " in GenParserFieldGetter()
[all …]
Dlanguage_y.yy195 DEBUG() << "Checksum field defined\n";
378 for (auto& field : reversed_fields) {
379 $$->PrependField(field);
395 for (auto& field : reversed_fields) {
396 $$->PrependField(field);
418 DEBUG() << "Scalar field\n";
423 DEBUG() << "Checksum start field\n";
428 DEBUG() << "Padding field\n";
433 DEBUG() << "Size field\n";
438 DEBUG() << "Body field\n";
[all …]
/system/tools/hidl/
DCompoundType.cpp42 void CompoundType::addField(NamedReference<Type>* field) { in addField() argument
43 mFields.push_back(field); in addField()
57 for (const auto* field : mFields) { in validate() local
58 const Type& type = field->type(); in validate()
62 << field->location() << "\n"; in validate()
68 std::cerr << "ERROR: Union cannot contain interfaces at " << field->location() in validate()
75 << field->location() << "\n"; in validate()
99 for (const auto* field : mFields) { in validateUniqueNames() local
100 if (names.find(field->name()) != names.end()) { in validateUniqueNames()
101 std::cerr << "ERROR: Redefinition of field '" << field->name() << "' at " in validateUniqueNames()
[all …]
/system/core/healthd/
Dhealthd_draw.cpp136 void HealthdDraw::determine_xy(const animation::text_field& field, in determine_xy() argument
138 *x = field.pos_x; in determine_xy()
140 int str_len_px = length * field.font->char_width; in determine_xy()
141 if (field.pos_x == CENTER_VAL) { in determine_xy()
143 } else if (field.pos_x >= 0) { in determine_xy()
144 *x = field.pos_x; in determine_xy()
146 *x = screen_width_ + field.pos_x - str_len_px - kSplitOffset; in determine_xy()
149 *y = field.pos_y; in determine_xy()
151 if (field.pos_y == CENTER_VAL) { in determine_xy()
152 *y = (screen_height_ - field.font->char_height) / 2; in determine_xy()
[all …]
DAnimationParser.cpp54 bool parse_text_field(const char* in, animation::text_field* field) { in parse_text_field() argument
55 int* x = &field->pos_x; in parse_text_field()
56 int* y = &field->pos_y; in parse_text_field()
57 int* r = &field->color_r; in parse_text_field()
58 int* g = &field->color_g; in parse_text_field()
59 int* b = &field->color_b; in parse_text_field()
60 int* a = &field->color_a; in parse_text_field()
77 field->font_file.assign(&in[start], end - start); in parse_text_field()
/system/bt/gd/dumpsys/internal/
Dfilter_internal.cc84 internal::PrivacyLevel internal::FindFieldPrivacyLevel(const reflection::Field& field) { in FindFieldPrivacyLevel() argument
87 if (field.attributes() != nullptr) { in FindFieldPrivacyLevel()
88 auto key = field.attributes()->LookupByKey(kPrivacyAttributeKeyword); in FindFieldPrivacyLevel()
109 const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privacy_level) { in FilterTypeInteger() argument
111 ASSERT(flatbuffers::IsInteger(field.type()->base_type())); in FilterTypeInteger()
113 int32_t default_val = flatbuffers::GetFieldDefaultI<int32_t>(field); in FilterTypeInteger()
114 flatbuffers::voffset_t field_offset = field.offset(); in FilterTypeInteger()
119 flatbuffers::SetField<int32_t>(table, field, default_val); in FilterTypeInteger()
123 flatbuffers::SetField<int32_t>(table, field, default_val); in FilterTypeInteger()
126 auto target_field = flatbuffers::GetFieldI<int32_t>(*table, field); in FilterTypeInteger()
[all …]
Dfilter_internal.h82 PrivacyLevel FindFieldPrivacyLevel(const reflection::Field& field);
115 bool FilterTypeInteger(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priv…
116 bool FilterTypeFloat(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privac…
117 bool FilterTypeString(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priva…
118 bool FilterTypeStruct(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priva…
/system/tools/hidl/hidl2aidl/
DAidlNamedType.cpp27 const NamedReference<Type>* field; member
77 for (const NamedReference<Type>* field : compoundType.getFields()) { in processCompoundType() local
79 if (field->get()->typeName() == compoundType.typeName()) { in processCompoundType()
80 processCompoundType(static_cast<const CompoundType&>(*field->get()), processedType); in processCompoundType()
84 [field](auto& processedField) { in processCompoundType()
85 return processedField.field->name() == field->name(); in processCompoundType()
89 << "Found conflicting field name \"" << field->name() in processCompoundType()
95 << "Keeping " << field->get()->typeName() << " from " << version.first in processCompoundType()
97 << (it->field)->get()->typeName() << " from " << it->version.first in processCompoundType()
100 it->field = field; in processCompoundType()
[all …]
/system/tools/aidl/
Dgenerate_java.cpp180 for (const auto& field : parcel->GetFields()) { in generate_parcel_class() local
186 .type = field->GetType(), in generate_parcel_class()
188 .var = field->GetName(), in generate_parcel_class()
211 for (const auto& field : parcel->GetFields()) { in generate_parcel_class() local
213 JavaSignatureOf(field->GetType(), typenames), field->GetName())); in generate_parcel_class()
216 out << "this." << field->GetName() << " = "; in generate_parcel_class()
217 if (field->GetType().GetName() == "List") { in generate_parcel_class()
218 out << field->GetName() << " == null ? null : java.util.Collections.unmodifiableList(" in generate_parcel_class()
219 << field->GetName() << ");\n"; in generate_parcel_class()
220 } else if (field->GetType().GetName() == "Map") { in generate_parcel_class()
[all …]
/system/extras/simpleperf/
Dtracing.h65 const TracingField& field = GetField(name); in GetField() local
66 place.offset = field.offset; in GetField()
67 place.size = field.elem_size; in GetField()
71 const TracingField& field = GetField(name); in GetField() local
72 place.offset = field.offset; in GetField()
73 place.size = field.elem_count; in GetField()
78 for (const auto& field : fields) { in GetField() local
79 if (field.name == name) { in GetField()
80 return field; in GetField()
Dcmd_dumprecord.cpp58 std::string ExtractStringField(const TracingField& field, const char* data) { in ExtractStringField() argument
62 for (size_t i = 0; i < field.elem_count && data[i] != '\0'; i++) { in ExtractStringField()
69 std::string ExtractIntField(const TracingField& field, const char* data) { in ExtractIntField() argument
75 if (field.is_signed) { in ExtractIntField()
82 std::string ExtractIntArrayField(const TracingField& field, const char* data) { in ExtractIntArrayField() argument
84 for (size_t i = 0; i < field.elem_count; i++) { in ExtractIntArrayField()
88 s += ExtractIntField<T>(field, data); in ExtractIntArrayField()
89 data += field.elem_size; in ExtractIntArrayField()
94 std::string ExtractUnknownField(const TracingField& field, const char* data) { in ExtractUnknownField() argument
95 size_t total = field.elem_size * field.elem_count; in ExtractUnknownField()
[all …]
Dtracing.cpp283 TracingField field; in ParseTracingField() local
299 field.name = value; in ParseTracingField()
300 field.elem_count = 1; in ParseTracingField()
302 field.name = value.substr(0, left_bracket_pos); in ParseTracingField()
303 field.elem_count = 1; in ParseTracingField()
310 field.elem_count = elem_count; in ParseTracingField()
315 field.offset = in ParseTracingField()
319 CHECK_EQ(size % field.elem_count, 0u); in ParseTracingField()
320 field.elem_size = size / field.elem_count; in ParseTracingField()
323 field.is_signed = (is_signed == 1); in ParseTracingField()
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Ddevice_properties.cc32 bool ParseUint8t(base::StringPiece value, uint8_t* field) { in ParseUint8t() argument
33 *field = std::stoi(value.as_string()); in ParseUint8t()
37 bool ParseUint16t(base::StringPiece value, uint16_t* field) { in ParseUint16t() argument
38 *field = std::stoi(value.as_string()); in ParseUint16t()
102 #define REGISTER_UINT8_T(field_name, field) \ in RegisterJSONConverter() argument
103 converter->RegisterCustomField<uint8_t>(field_name, &DeviceProperties::field, &ParseUint8t); in RegisterJSONConverter()
104 #define REGISTER_UINT16_T(field_name, field) \ in RegisterJSONConverter() argument
105 converter->RegisterCustomField<uint16_t>(field_name, &DeviceProperties::field, &ParseUint16t); in RegisterJSONConverter()
/system/bt/gd/dumpsys/
Dfilter.cc51 virtual bool FilterField(const reflection::Field* field, flatbuffers::Table* table) { in FilterField() argument
90 bool FilterField(const reflection::Field* field, flatbuffers::Table* table) override;
95 bool UserPrivacyFilter::FilterField(const reflection::Field* field, flatbuffers::Table* table) { in FilterField() argument
96 ASSERT(field != nullptr); in FilterField()
98 internal::PrivacyLevel privacy_level = internal::FindFieldPrivacyLevel(*field); in FilterField()
100 switch (field->type()->base_type()) { in FilterField()
102 return internal::FilterTypeInteger(*field, table, privacy_level); in FilterField()
105 return internal::FilterTypeFloat(*field, table, privacy_level); in FilterField()
108 return internal::FilterTypeString(*field, table, privacy_level); in FilterField()
111 return internal::FilterTypeStruct(*field, table, privacy_level); in FilterField()
/system/memory/lmkd/
Dlmkd.cpp322 } field; member
351 } field; member
443 } field; member
478 } field; member
560 int field_count, int64_t* field, in match_field() argument
567 return parse_int64(ap, field) ? PARSE_SUCCESS : PARSE_FAIL; in match_field()
1705 zi->totalreserve_pages += zone->max_protection + zone->fields.field.high; in zoneinfo_parse()
1707 zi->total_inactive_file += node->fields.field.nr_inactive_file; in zoneinfo_parse()
1708 zi->total_active_file += node->fields.field.nr_active_file; in zoneinfo_parse()
1709 zi->total_workingset_refault += node->fields.field.workingset_refault; in zoneinfo_parse()
[all …]
/system/bt/stack/a2dp/
Da2dp_sbc.cc707 std::string field; in A2DP_CodecInfoStringSbc() local
720 field.clear(); in A2DP_CodecInfoStringSbc()
721 AppendField(&field, (sbc_cie.samp_freq == 0), "NONE"); in A2DP_CodecInfoStringSbc()
722 AppendField(&field, (sbc_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_16), "16000"); in A2DP_CodecInfoStringSbc()
723 AppendField(&field, (sbc_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_32), "32000"); in A2DP_CodecInfoStringSbc()
724 AppendField(&field, (sbc_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_44), "44100"); in A2DP_CodecInfoStringSbc()
725 AppendField(&field, (sbc_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_48), "48000"); in A2DP_CodecInfoStringSbc()
726 res << "\tsamp_freq: " << field << " (" << loghex(sbc_cie.samp_freq) << ")\n"; in A2DP_CodecInfoStringSbc()
729 field.clear(); in A2DP_CodecInfoStringSbc()
730 AppendField(&field, (sbc_cie.ch_mode == 0), "NONE"); in A2DP_CodecInfoStringSbc()
[all …]
Da2dp_aac.cc604 std::string field; in A2DP_CodecInfoStringAac() local
617 field.clear(); in A2DP_CodecInfoStringAac()
618 AppendField(&field, (aac_cie.objectType == 0), "NONE"); in A2DP_CodecInfoStringAac()
619 AppendField(&field, (aac_cie.objectType & A2DP_AAC_OBJECT_TYPE_MPEG2_LC), in A2DP_CodecInfoStringAac()
621 AppendField(&field, (aac_cie.objectType & A2DP_AAC_OBJECT_TYPE_MPEG4_LC), in A2DP_CodecInfoStringAac()
623 AppendField(&field, (aac_cie.objectType & A2DP_AAC_OBJECT_TYPE_MPEG4_LTP), in A2DP_CodecInfoStringAac()
625 AppendField(&field, in A2DP_CodecInfoStringAac()
628 res << "\tobjectType: " << field << " (" << loghex(aac_cie.objectType) in A2DP_CodecInfoStringAac()
632 field.clear(); in A2DP_CodecInfoStringAac()
633 AppendField(&field, (aac_cie.sampleRate == 0), "NONE"); in A2DP_CodecInfoStringAac()
[all …]
/system/extras/iotop/
Diotop.cpp56 static Sorter GetSorter(const std::string& field) { in GetSorter() argument
58 static auto comparator = [](auto& lhs, auto& rhs, auto field, bool ascending) -> bool { in GetSorter() argument
59 auto a = (lhs.*field)(); in GetSorter()
60 auto b = (rhs.*field)(); in GetSorter()
70 auto make_sorter = [](auto field, bool ascending) { in GetSorter() argument
73 auto bound_comparator = std::bind(comparator, _1, _2, field, ascending); in GetSorter()
94 auto it = sorters.find(field); in GetSorter()
/system/memory/libmeminfo/
Dprocmeminfo.cpp65 char field[64]; in parse_smaps_field() local
67 if (sscanf(line, "%63s %n", field, &len) == 1 && *field && field[strlen(field) - 1] == ':') { in parse_smaps_field()
69 switch (field[0]) { in parse_smaps_field()
71 if (strncmp(field, "Pss:", 4) == 0) { in parse_smaps_field()
73 } else if (strncmp(field, "Private_Clean:", 14) == 0) { in parse_smaps_field()
77 } else if (strncmp(field, "Private_Dirty:", 14) == 0) { in parse_smaps_field()
84 if (strncmp(field, "Size:", 5) == 0) { in parse_smaps_field()
86 } else if (strncmp(field, "Shared_Clean:", 13) == 0) { in parse_smaps_field()
88 } else if (strncmp(field, "Shared_Dirty:", 13) == 0) { in parse_smaps_field()
90 } else if (strncmp(field, "Swap:", 5) == 0) { in parse_smaps_field()
[all …]
/system/incremental_delivery/libdataloader/
DJNIHelpers.h62 static inline jstring GetStringField(JNIEnv* env, jobject obj, jfieldID field) { in GetStringField() argument
63 return reinterpret_cast<jstring>(env->GetObjectField(obj, field)); in GetStringField()
66 static inline jbyteArray GetByteArrayField(JNIEnv* env, jobject obj, jfieldID field) { in GetByteArrayField() argument
67 return reinterpret_cast<jbyteArray>(env->GetObjectField(obj, field)); in GetByteArrayField()
/system/core/init/test_service/
Dtest_service.cpp53 std::string field = tokens[0]; in main() local
55 if (field.length() > 0) { in main()
56 fields[field] = value; in main()

12345