Home
last modified time | relevance | path

Searched refs:aidl_name (Results 1 – 4 of 4) sorted by relevance

/system/tools/aidl/
Daidl_to_ndk.cpp80 auto& aidl_name = aidl.GetName(); in GetBaseTypeInfo() local
82 if (AidlTypenames::IsBuiltinTypename(aidl_name)) { in GetBaseTypeInfo()
83 auto it = kNdkTypeInfoMap.find(aidl_name); in GetBaseTypeInfo()
84 AIDL_FATAL_IF(it == kNdkTypeInfoMap.end(), aidl_name); in GetBaseTypeInfo()
87 const AidlDefinedType* type = types.TryGetDefinedType(aidl_name); in GetBaseTypeInfo()
88 AIDL_FATAL_IF(type == nullptr, aidl_name) << "Unrecognized type."; in GetBaseTypeInfo()
109 AIDL_FATAL(aidl_name) << "Unrecognized type"; in GetBaseTypeInfo()
141 static bool ShouldWrapNullable(const AidlTypenames& types, const std::string& aidl_name) { in ShouldWrapNullable() argument
142 if (AidlTypenames::IsPrimitiveTypename(aidl_name) || aidl_name == "ParcelableHolder" || in ShouldWrapNullable()
143 aidl_name == "IBinder" || aidl_name == "ParcelFileDescriptor") { in ShouldWrapNullable()
[all …]
Daidl_to_rust.cpp59 const auto& aidl_name = type.GetName(); in ConstantValueDecoratorInternal() local
60 if (aidl_name == "char") { in ConstantValueDecoratorInternal()
64 if (aidl_name == "float") { in ConstantValueDecoratorInternal()
69 if (aidl_name == "double") { in ConstantValueDecoratorInternal()
79 if (aidl_name == "String" && !by_ref) { in ConstantValueDecoratorInternal()
362 const string& aidl_name = type.GetName(); in TypeNeedsOption() local
363 if (aidl_name == "IBinder") { in TypeNeedsOption()
366 if (aidl_name == "ParcelFileDescriptor") { in TypeNeedsOption()
369 if (aidl_name == "ParcelableHolder") { in TypeNeedsOption()
Daidl_to_cpp.cpp182 const string& aidl_name = type.GetName(); in GetCppName() local
183 if (m.find(aidl_name) != m.end()) { in GetCppName()
184 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(aidl_name), raw_type); in GetCppName()
185 if (aidl_name == "byte" && type.IsArray()) { in GetCppName()
188 AIDL_FATAL_IF(aidl_name != "String", type); in GetCppName()
191 return WrapIfNullable(m[aidl_name], raw_type, typenames); in GetCppName()
Daidl_to_java.cpp74 const string& aidl_name = aidl.GetName(); in JavaNameOf() local
76 if (instantiable_m.find(aidl_name) != instantiable_m.end()) { in JavaNameOf()
77 return instantiable_m[aidl_name]; in JavaNameOf()
122 const string& aidl_name = aidl.GetName(); in JavaNameOf() local
123 if (boxing && AidlTypenames::IsPrimitiveTypename(aidl_name)) { in JavaNameOf()
125 AIDL_FATAL_IF(boxing_types.find(aidl_name) == m.end(), aidl); in JavaNameOf()
126 return boxing_types[aidl_name]; in JavaNameOf()
128 if (m.find(aidl_name) != m.end()) { in JavaNameOf()
129 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(aidl_name), aidl); in JavaNameOf()
130 return m[aidl_name]; in JavaNameOf()
[all …]