/system/tools/aidl/ |
D | aidl_typenames.cpp | 162 bool AidlTypenames::IsBuiltinTypename(const string& type_name) { in IsBuiltinTypename() argument 163 return kBuiltinTypes.find(type_name) != kBuiltinTypes.end() || in IsBuiltinTypename() 164 kJavaLikeTypeToAidlType.find(type_name) != kJavaLikeTypeToAidlType.end(); in IsBuiltinTypename() 167 bool AidlTypenames::IsPrimitiveTypename(const string& type_name) { in IsPrimitiveTypename() argument 168 return kPrimitiveTypes.find(type_name) != kPrimitiveTypes.end(); in IsPrimitiveTypename() 171 bool AidlTypenames::IsParcelable(const string& type_name) const { in IsParcelable() 172 if (IsBuiltinTypename(type_name)) { in IsParcelable() 173 return type_name == "ParcelableHolder" || type_name == "ParcelFileDescriptor"; in IsParcelable() 175 if (auto defined_type = TryGetDefinedType(type_name); defined_type) { in IsParcelable() 181 const AidlDefinedType* AidlTypenames::TryGetDefinedType(const string& type_name) const { in TryGetDefinedType() [all …]
|
D | aidl_typenames.h | 65 static bool IsBuiltinTypename(const string& type_name); 66 static bool IsPrimitiveTypename(const string& type_name); 67 bool IsParcelable(const string& type_name) const; 68 const AidlDefinedType* TryGetDefinedType(const string& type_name) const; 76 ResolvedTypename ResolveTypename(const string& type_name) const; 104 DefinedImplResult TryGetDefinedTypeImpl(const string& type_name) const;
|
D | aidl_to_cpp.cpp | 104 const string& type_name = type.GetName(); in RawParcelMethod() local 105 if (kBuiltin.find(type_name) != kBuiltin.end()) { in RawParcelMethod() 106 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(type_name), type); in RawParcelMethod() 107 if (type_name == "IBinder" && nullable && readMethod) { in RawParcelMethod() 110 if (type_name == "ParcelFileDescriptor" && nullable && !readMethod) { in RawParcelMethod() 114 AIDL_FATAL_IF(type_name != "String", type); in RawParcelMethod() 117 return kBuiltin[type_name]; in RawParcelMethod()
|
D | aidl_to_java.cpp | 156 string type_name; in AidlBackingTypeName() local 159 type_name = enum_decl->GetBackingType().GetName(); in AidlBackingTypeName() 161 type_name = type.GetName(); in AidlBackingTypeName() 164 type_name += "[]"; in AidlBackingTypeName() 166 return type_name; in AidlBackingTypeName() 379 const string type_name = AidlBackingTypeName(c.type, c.typenames); in WriteToParcelFor() local 380 const auto found = method_map.find(type_name); in WriteToParcelFor()
|
D | aidl_language.cpp | 516 const string& type_name = GetName(); in CheckValid() local 518 if (type_name == "List" || type_name == "Map") { in CheckValid() 528 const auto defined_type = typenames.TryGetDefinedType(type_name); in CheckValid() 534 if (type_name == "List") { in CheckValid() 564 } else if (type_name == "Map") { in CheckValid() 581 AIDL_ERROR(this) << type_name << " must have " << allowed << " type parameters, but got " in CheckValid() 586 AIDL_ERROR(this) << type_name << " is not a generic type."; in CheckValid()
|
/system/extras/simpleperf/ |
D | generate_event_type_table.py | 99 for (type_name, type_config) in hw_cache_types: 103 event_type_name = type_name + '-' + op_name_access 105 event_type_name = type_name + '-' + \
|
D | cmd_stat_impl.h | 77 std::string type_name; member 92 CounterSummary(const std::string& type_name, const std::string& modifier, uint32_t group_id, in CounterSummary() 95 : type_name(type_name), in CounterSummary() 118 return type_name; in Name() 120 return type_name + ":" + modifier; in Name() 135 if (type_name == "cpu-clock" || type_name == "task-clock") { in ReadableCountValue() 303 const CounterSummary* FindSummary(const std::string& type_name, const std::string& modifier,
|
D | cmd_list.cpp | 87 static void PrintEventTypesOfType(const std::string& type_name, const std::string& type_desc, in PrintEventTypesOfType() argument 91 if (type_name == "raw") { in PrintEventTypesOfType() 100 } else if (type_name == "cache") { in PrintEventTypesOfType()
|
D | cmd_stat.cpp | 94 const CounterSummary* CounterSummaries::FindSummary(const std::string& type_name, in FindSummary() argument 98 if (s.type_name == type_name && s.modifier == modifier && s.thread == thread && s.cpu == cpu) { in FindSummary() 109 const CounterSummary* other = FindSummary(s.type_name, "k", s.thread, s.cpu); in AutoGenerateSummaries() 111 if (FindSummary(s.type_name, "", s.thread, s.cpu) == nullptr) { in AutoGenerateSummaries() 112 summaries_.emplace_back(s.type_name, "", s.group_id, s.thread, s.cpu, in AutoGenerateSummaries() 224 if (s.type_name == "task-clock") { in GetCommentForSummary() 229 if (s.type_name == "cpu-clock") { in GetCommentForSummary() 232 if (s.type_name == "cpu-cycles") { in GetCommentForSummary() 239 if (s.type_name == "instructions" && s.count != 0) { in GetCommentForSummary() 268 std::string_view miss_event_name = s.type_name; in GetRateComment()
|
/system/core/libcutils/ |
D | fs_config_test.cpp | 128 static bool check_unique(const fs_path_config* paths, const char* type_name, in check_unique() argument 131 config += type_name; in check_unique() 223 void check_two(const fs_path_config* paths, const char* type_name, const char* prefix) { in check_two() argument 225 ASSERT_FALSE(type_name == nullptr); in check_two() 227 bool check_internal = check_unique(paths, type_name, prefix); in check_two() 230 check_unique(std::string("/") + prefix + "etc/fs_config_" + type_name, prefix); in check_two()
|
/system/sepolicy/tools/ |
D | checkfc.c | 109 static bool is_type_of_attribute_set(policydb_t *policydb, const char *type_name, in is_type_of_attribute_set() argument 112 struct type_datum *type = hashtab_search(policydb->p_types.table, (char *)type_name); in is_type_of_attribute_set() 114 fprintf(stderr, "Error: \"%s\" is not defined in this policy.\n", type_name); in is_type_of_attribute_set() 119 fprintf(stderr, "Error: \"%s\" is not a type in this policy.\n", type_name); in is_type_of_attribute_set() 172 const char *type_name = sepol_context_get_type(ctx); in validate() local 176 res = !is_type_of_attribute_set(global_state.sepolicy.pdb, type_name, in validate() 179 fprintf(stderr, "Error: type \"%s\" is not of set: ", type_name); in validate()
|
/system/chre/chpp/api_parser/ |
D | chre_api_to_chpp.py | 228 for type_name in sorted_structs: 229 out.extend(self._gen_struct_or_union(type_name)) 269 type_name = None 276 type_name = self._get_chpp_type_from_chre(chre_type) 278 type_name = member_info['type'].type_spec 279 return "sizeof({})".format(type_name) 942 type_name = structs_and_unions_to_parse.pop() 943 if type_name in self.structs_and_unions: 952 if type_name in self.parser.defs['structs']: 953 defs = self.parser.defs['structs'][type_name] [all …]
|
/system/iorap/include/binder/ |
D | auto_parcelable.h | 132 #define AUTO_PARCELABLE_WRITE_TO_PARCEL(fn_name, type_name) \ in writeAnyToParcel() argument 133 } else if constexpr (std::is_same_v<D, std::decay_t<type_name>>) { \ in writeAnyToParcel() 163 #define AUTO_PARCELABLE_READ_FROM_PARCEL(fn_name, type_name) \ in readAnyFromParcel() argument 164 } else if constexpr (std::is_same_v<D, std::decay_t<type_name>>) { \ in readAnyFromParcel()
|
/system/bt/gd/packet/parser/fields/ |
D | checksum_field.cc | 22 ChecksumField::ChecksumField(std::string name, std::string type_name, int size, ParseLocation loc) in ChecksumField() argument 23 : ScalarField(name, size, loc), type_name_(type_name) {} in ChecksumField()
|
D | variable_length_struct_field.cc | 22 VariableLengthStructField::VariableLengthStructField(std::string name, std::string type_name, Parse… in VariableLengthStructField() argument 23 : PacketField(name, loc), type_name_(type_name) {} in VariableLengthStructField()
|
D | custom_field_fixed_size.cc | 23 CustomFieldFixedSize::CustomFieldFixedSize(std::string name, std::string type_name, int size, Parse… in CustomFieldFixedSize() argument 24 : ScalarField(name, size, loc), type_name_(type_name) {} in CustomFieldFixedSize()
|
D | custom_field.cc | 22 CustomField::CustomField(std::string name, std::string type_name, ParseLocation loc) in CustomField() argument 23 : PacketField(name, loc), type_name_(type_name) {} in CustomField()
|
D | struct_field.cc | 22 StructField::StructField(std::string name, std::string type_name, Size size, ParseLocation loc) in StructField() argument 23 : PacketField(name, loc), type_name_(type_name), size_(size) {} in StructField()
|
D | custom_field_fixed_size.h | 24 CustomFieldFixedSize(std::string name, std::string type_name, int size, ParseLocation loc);
|
D | checksum_field.h | 25 ChecksumField(std::string name, std::string type_name, int size, ParseLocation loc);
|
D | variable_length_struct_field.h | 24 VariableLengthStructField(std::string name, std::string type_name, ParseLocation loc);
|
D | custom_field.h | 24 CustomField(std::string name, std::string type_name, ParseLocation loc);
|
D | struct_field.h | 24 StructField(std::string name, std::string type_name, Size size, ParseLocation loc);
|
/system/media/camera/docs/ |
D | metadata_helpers.py | 434 def _jtype_box(type_name): argument 444 return mapping.get(type_name, type_name)
|
/system/media/camera/src/ |
D | camera_metadata.c | 1118 const char *type_name; in dump_indented_camera_metadata() local 1120 type_name = "unknown"; in dump_indented_camera_metadata() 1122 type_name = camera_metadata_type_names[entry->type]; in dump_indented_camera_metadata() 1129 type_name, in dump_indented_camera_metadata()
|