/system/tools/aidl/ |
D | aidl_typenames.cpp | 195 bool AidlTypenames::IsBuiltinTypename(const string& type_name) { in IsBuiltinTypename() argument 196 return kBuiltinTypes.find(type_name) != kBuiltinTypes.end() || in IsBuiltinTypename() 197 kJavaLikeTypeToAidlType.find(type_name) != kJavaLikeTypeToAidlType.end(); in IsBuiltinTypename() 200 bool AidlTypenames::IsPrimitiveTypename(const string& type_name) { in IsPrimitiveTypename() argument 201 return kPrimitiveTypes.find(type_name) != kPrimitiveTypes.end(); in IsPrimitiveTypename() 204 bool AidlTypenames::IsParcelable(const string& type_name) const { in IsParcelable() 205 if (IsBuiltinTypename(type_name)) { in IsParcelable() 206 return type_name == "ParcelableHolder" || type_name == "ParcelFileDescriptor"; in IsParcelable() 208 if (auto defined_type = TryGetDefinedType(type_name); defined_type) { in IsParcelable() 214 const AidlDefinedType* AidlTypenames::TryGetDefinedType(const string& type_name) const { in TryGetDefinedType() [all …]
|
D | aidl_typenames.h | 64 static bool IsBuiltinTypename(const string& type_name); 65 static bool IsPrimitiveTypename(const string& type_name); 66 bool IsParcelable(const string& type_name) const; 67 const AidlDefinedType* TryGetDefinedType(const string& type_name) const; 75 ResolvedTypename ResolveTypename(const string& type_name) const;
|
D | aidl_to_cpp.cpp | 109 const string& type_name = type.GetName(); in RawParcelMethod() local 110 if (kBuiltin.find(type_name) != kBuiltin.end()) { in RawParcelMethod() 111 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(type_name), type); in RawParcelMethod() 112 if (type_name == "IBinder" && nullable && readMethod) { in RawParcelMethod() 115 if (type_name == "ParcelFileDescriptor" && nullable && !readMethod) { in RawParcelMethod() 119 AIDL_FATAL_IF(type_name != "String", type); in RawParcelMethod() 122 return kBuiltin[type_name]; in RawParcelMethod()
|
D | aidl_to_rust.cpp | 127 const string& type_name = type.GetName(); in GetRustName() local 128 if (m.find(type_name) != m.end()) { in GetRustName() 129 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(type_name), type); in GetRustName() 130 if (type_name == "String" && mode == StorageMode::UNSIZED_ARGUMENT) { in GetRustName() 133 return m[type_name]; in GetRustName()
|
D | aidl_to_java.cpp | 165 string type_name; in AidlBackingTypeName() local 169 type_name = enum_decl->GetBackingType().GetName(); in AidlBackingTypeName() 171 type_name = type.GetName(); in AidlBackingTypeName() 176 type_name += "[" + std::to_string(dim) + "]"; in AidlBackingTypeName() 179 type_name += "[]"; in AidlBackingTypeName() 182 return type_name; in AidlBackingTypeName() 519 const string type_name = AidlBackingTypeName(c.type); in WriteToParcelFor() local 520 const auto found = method_map.find(type_name); in WriteToParcelFor()
|
D | aidl_language.cpp | 721 const string& type_name = GetName(); in CheckValid() local 723 if (type_name == "List" || type_name == "Map") { in CheckValid() 733 const auto defined_type = typenames.TryGetDefinedType(type_name); in CheckValid() 739 if (type_name == "List") { in CheckValid() 761 } else if (type_name == "Map") { in CheckValid() 778 AIDL_ERROR(this) << type_name << " must have " << allowed << " type parameters, but got " in CheckValid() 783 AIDL_ERROR(this) << type_name << " is not a generic type."; in CheckValid()
|
/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 if (strcmp(type_name, "hal_power_stats_vendor_service") == 0) { in validate() 182 res = !is_type_of_attribute_set(global_state.sepolicy.pdb, type_name, in validate() 185 fprintf(stderr, "Error: type \"%s\" is not of set: ", type_name); in validate()
|
/system/memory/lmkd/libpsi/ |
D | psi.cpp | 105 char type_name[5]; in parse_psi_line() local 109 type_name, &stat->avg10, &stat->avg60, &stat->avg300, &stat->total) != 5) { in parse_psi_line() 112 if (strcmp(type_name, stall_type_name[stall_type])) { in parse_psi_line()
|
/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() 223 if (s.type_name == "task-clock") { in GetCommentForSummary() 228 if (s.type_name == "cpu-clock") { in GetCommentForSummary() 231 if (s.type_name == "cpu-cycles") { in GetCommentForSummary() 238 if (s.type_name == "instructions" && s.count != 0) { in GetCommentForSummary() 267 std::string_view miss_event_name = s.type_name; in GetRateComment()
|
D | cmd_stat_test.cpp | 441 ASSERT_EQ(summaries[0].type_name, "event0"); in TEST_F() 444 ASSERT_EQ(summaries[1].type_name, "event1"); in TEST_F()
|
D | record.cpp | 1453 const char* type_name = ""; in DumpData() local 1456 type_name = "ORIGINAL_OFFLINE"; in DumpData() 1459 type_name = "ORIGINAL_REMOTE"; in DumpData() 1462 type_name = "JOINED_OFFLINE"; in DumpData() 1465 type_name = "JOINED_REMOTE"; in DumpData() 1470 PrintIndented(indent, "chain_type %s\n", type_name); in DumpData()
|
/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/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) 997 type_name = structs_and_unions_to_parse.pop() 998 if type_name in self.structs_and_unions: 1007 if type_name in self.parser.defs['structs']: 1008 defs = self.parser.defs['structs'][type_name] [all …]
|
/system/keymint/common/src/bin/ |
D | keyblob-cddl-dump.rs | 20 eprintln!("No CDDL typename+schema for {}", std::any::type_name::<T>()); in add()
|
/system/media/camera/docs/ |
D | metadata_helpers.py | 441 def _jtype_box(type_name): argument 451 return mapping.get(type_name, type_name)
|
D | metadata_model.py | 263 def insert_type(self, type_name, type_selector="typedef", **kwargs): argument 288 self._types.append(Typedef(type_name, self, kwargs.get('languages')))
|
/system/media/camera/src/ |
D | camera_metadata.c | 1117 const char *type_name; in dump_indented_camera_metadata() local 1119 type_name = "unknown"; in dump_indented_camera_metadata() 1121 type_name = camera_metadata_type_names[entry->type]; in dump_indented_camera_metadata() 1128 type_name, in dump_indented_camera_metadata()
|