Home
last modified time | relevance | path

Searched refs:type_name (Results 1 – 25 of 29) sorted by relevance

12

/system/tools/aidl/
Daidl_typenames.cpp162 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 …]
Daidl_typenames.h65 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;
Daidl_to_cpp.cpp104 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()
Daidl_to_java.cpp156 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()
Daidl_language.cpp516 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/
Dgenerate_event_type_table.py99 for (type_name, type_config) in hw_cache_types:
103 event_type_name = type_name + '-' + op_name_access
105 event_type_name = type_name + '-' + \
Dcmd_stat_impl.h77 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,
Dcmd_list.cpp87 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()
Dcmd_stat.cpp94 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/
Dfs_config_test.cpp128 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/
Dcheckfc.c109 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/
Dchre_api_to_chpp.py228 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/
Dauto_parcelable.h132 #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/
Dchecksum_field.cc22 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()
Dvariable_length_struct_field.cc22 VariableLengthStructField::VariableLengthStructField(std::string name, std::string type_name, Parse… in VariableLengthStructField() argument
23 : PacketField(name, loc), type_name_(type_name) {} in VariableLengthStructField()
Dcustom_field_fixed_size.cc23 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()
Dcustom_field.cc22 CustomField::CustomField(std::string name, std::string type_name, ParseLocation loc) in CustomField() argument
23 : PacketField(name, loc), type_name_(type_name) {} in CustomField()
Dstruct_field.cc22 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()
Dcustom_field_fixed_size.h24 CustomFieldFixedSize(std::string name, std::string type_name, int size, ParseLocation loc);
Dchecksum_field.h25 ChecksumField(std::string name, std::string type_name, int size, ParseLocation loc);
Dvariable_length_struct_field.h24 VariableLengthStructField(std::string name, std::string type_name, ParseLocation loc);
Dcustom_field.h24 CustomField(std::string name, std::string type_name, ParseLocation loc);
Dstruct_field.h24 StructField(std::string name, std::string type_name, Size size, ParseLocation loc);
/system/media/camera/docs/
Dmetadata_helpers.py434 def _jtype_box(type_name): argument
444 return mapping.get(type_name, type_name)
/system/media/camera/src/
Dcamera_metadata.c1118 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()

12