/system/tools/aidl/ |
D | aidl_to_cpp.h | 26 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value); 32 const AidlTypeSpecifier& type; // an argument or return type to generate code for 40 std::string CppNameOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 42 bool IsNonCopyableType(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 46 std::string ParcelReadMethodOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 50 std::string ParcelReadCastOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames, 55 std::string ParcelWriteMethodOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 59 std::string ParcelWriteCastOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames, 62 void AddHeaders(const AidlTypeSpecifier& type, const AidlTypenames& typenames,
|
D | aidl_to_java.h | 42 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value); 46 string JavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames); 50 string InstantiableJavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames); 53 string DefaultJavaValueOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames); 60 const AidlTypeSpecifier& type;
|
D | aidl_typenames.h | 36 class AidlTypeSpecifier; variable 70 bool CanBeOutParameter(const AidlTypeSpecifier& type) const; 71 bool CanBeImmutable(const AidlTypeSpecifier& type) const; 76 const AidlEnumDeclaration* GetEnumDeclaration(const AidlTypeSpecifier& type) const; 79 const AidlInterface* GetInterface(const AidlTypeSpecifier& type) const;
|
D | aidl_to_cpp.cpp | 37 std::string RawParcelMethod(const AidlTypeSpecifier& raw_type, const AidlTypenames& typenames, in RawParcelMethod() 133 std::string GetRawCppName(const AidlTypeSpecifier& type) { in GetRawCppName() 137 std::string WrapIfNullable(const std::string type_str, const AidlTypeSpecifier& raw_type, in WrapIfNullable() 148 std::string GetCppName(const AidlTypeSpecifier& raw_type, const AidlTypenames& typenames) { in GetCppName() 187 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value) { in ConstantValueDecorator() 211 std::string CppNameOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in CppNameOf() 222 bool IsNonCopyableType(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in IsNonCopyableType() 234 std::string ParcelReadMethodOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in ParcelReadMethodOf() 238 std::string ParcelReadCastOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames, in ParcelReadCastOf() 250 std::string ParcelWriteMethodOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in ParcelWriteMethodOf() [all …]
|
D | aidl_language.h | 143 static_assert(std::is_same<T, unique_ptr<AidlTypeSpecifier>>::value || 155 std::function<std::string(const AidlTypeSpecifier& type, const std::string& raw_value)>; 242 const AidlTypeSpecifier* BackingType(const AidlTypenames& typenames) const; 257 class AidlTypeSpecifier final : public AidlAnnotatable, 258 public AidlParameterizable<unique_ptr<AidlTypeSpecifier>> { 260 AidlTypeSpecifier(const AidlLocation& location, const string& unresolved_name, bool is_array, 261 vector<unique_ptr<AidlTypeSpecifier>>* type_params, const string& comments); 262 virtual ~AidlTypeSpecifier() = default; 265 AidlTypeSpecifier ArrayBase() const; 310 AidlTypeSpecifier(const AidlTypeSpecifier&) = default; [all …]
|
D | aidl_language.cpp | 195 AidlTypeSpecifier type{AIDL_LOCATION_HERE, parameter_mapping_it->second, false, nullptr, ""}; in CheckValid() 224 AidlTypeSpecifier type{AIDL_LOCATION_HERE, schema_.supported_parameters.at(param_name), false, in AnnotationParams() 285 const AidlTypeSpecifier* AidlAnnotatable::BackingType(const AidlTypenames& typenames) const { in BackingType() 297 AidlTypeSpecifier* type_specifier = in BackingType() 298 new AidlTypeSpecifier(AIDL_LOCATION_HERE, unquoted_type, false, nullptr, ""); in BackingType() 358 AidlTypeSpecifier::AidlTypeSpecifier(const AidlLocation& location, const string& unresolved_name, in AidlTypeSpecifier() function in AidlTypeSpecifier 360 vector<unique_ptr<AidlTypeSpecifier>>* type_params, in AidlTypeSpecifier() 363 AidlParameterizable<unique_ptr<AidlTypeSpecifier>>(type_params), in AidlTypeSpecifier() 369 AidlTypeSpecifier AidlTypeSpecifier::ArrayBase() const { in ArrayBase() 374 AidlTypeSpecifier array_base = *this; in ArrayBase() [all …]
|
D | aidl_to_ndk.h | 34 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value); 41 std::string NdkNameOf(const AidlTypenames& types, const AidlTypeSpecifier& aidl, StorageMode mode); 47 const AidlTypeSpecifier& type;
|
D | parser.h | 73 void DeferResolution(AidlTypeSpecifier* typespec) { in DeferResolution() 77 const vector<AidlTypeSpecifier*>& GetUnresolvedTypespecs() const { return unresolved_typespecs_; } in GetUnresolvedTypespecs() 107 vector<AidlTypeSpecifier*> unresolved_typespecs_;
|
D | aidl_typenames.cpp | 222 bool AidlTypenames::CanBeImmutable(const AidlTypeSpecifier& type) const { in CanBeImmutable() 246 bool AidlTypenames::CanBeOutParameter(const AidlTypeSpecifier& type) const { in CanBeOutParameter() 258 const AidlEnumDeclaration* AidlTypenames::GetEnumDeclaration(const AidlTypeSpecifier& type) const { in GetEnumDeclaration() 267 const AidlInterface* AidlTypenames::GetInterface(const AidlTypeSpecifier& type) const { in GetInterface()
|
D | aidl_const_expressions.cpp | 217 AidlConstantValue* AidlConstantValue::Default(const AidlTypeSpecifier& specifier) { in Default() 353 AidlTypeSpecifier type = AidlTypeSpecifier(AIDL_LOCATION_HERE, "long", false, nullptr, ""); in ShallowIntegralCopy() 371 string AidlConstantValue::ValueString(const AidlTypeSpecifier& type, in ValueString() 439 const AidlTypeSpecifier& array_base = type.ArrayBase(); in ValueString() 518 bool AidlConstantValue::evaluate(const AidlTypeSpecifier& type) const { in evaluate() 638 bool AidlUnaryConstExpression::evaluate(const AidlTypeSpecifier& type) const { in evaluate() 708 bool AidlBinaryConstExpression::evaluate(const AidlTypeSpecifier& type) const { in evaluate()
|
D | aidl_to_ndk.cpp | 71 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value) { in ConstantValueDecorator() 318 static TypeInfo::Aspect GetTypeAspect(const AidlTypenames& types, const AidlTypeSpecifier& aidl) { in GetTypeAspect() 333 AidlTypeSpecifier array_type = in GetTypeAspect() 334 AidlTypeSpecifier(AIDL_LOCATION_HERE, type_param->GetUnresolvedName(), true /* isArray */, in GetTypeAspect() 394 std::string NdkNameOf(const AidlTypenames& types, const AidlTypeSpecifier& aidl, StorageMode mode) { in NdkNameOf()
|
D | aidl_to_cpp_common.cpp | 167 TypeInfo GetTypeInfo(const AidlTypeSpecifier& aidl) { in GetTypeInfo() 186 bool CanWriteLog(const AidlTypeSpecifier& aidl) { in CanWriteLog() 190 void WriteLogFor(CodeWriter& writer, const AidlTypeSpecifier& type, const std::string& name, in WriteLogFor()
|
D | parser.cpp | 53 for (AidlTypeSpecifier* typespec : unresolved_typespecs_) { in Resolve()
|
D | aidl.cpp | 542 enum_decl->SetBackingType(std::unique_ptr<const AidlTypeSpecifier>(backing_type)); in load_and_validate_aidl() 546 std::make_unique<AidlTypeSpecifier>(AIDL_LOCATION_HERE, "byte", false, nullptr, ""); in load_and_validate_aidl() 642 AidlTypeSpecifier* ret = in load_and_validate_aidl() 643 new AidlTypeSpecifier(AIDL_LOCATION_HERE, "int", false, nullptr, ""); in load_and_validate_aidl() 653 AidlTypeSpecifier* ret = in load_and_validate_aidl() 654 new AidlTypeSpecifier(AIDL_LOCATION_HERE, "String", false, nullptr, ""); in load_and_validate_aidl() 711 auto check = [&err](const AidlTypeSpecifier& type, const AidlNode* node) { in load_and_validate_aidl()
|
D | aidl_to_java.cpp | 42 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value) { in ConstantValueDecorator() 50 const string& JavaNameOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames, in JavaNameOf() 124 const AidlTypeSpecifier& aidl, const AidlTypenames& typenames, bool instantiable, in JavaSignatureOfInternal() 145 string AidlBackingTypeName(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in AidlBackingTypeName() 161 string JavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in JavaSignatureOf() 165 string InstantiableJavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in InstantiableJavaSignatureOf() 169 string DefaultJavaValueOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in DefaultJavaValueOf()
|
D | aidl_checkapi.cpp | 80 static bool are_compatible_types(const AidlTypeSpecifier& older, const AidlTypeSpecifier& newer) { in are_compatible_types() 175 static bool has_usable_nil_type(const AidlTypeSpecifier& specifier) { in has_usable_nil_type()
|
D | aidl_language_y.yy | 78 AidlTypeSpecifier* type; 95 std::vector<std::unique_ptr<AidlTypeSpecifier>>* type_args; 631 $$ = new AidlTypeSpecifier(loc(@1), $1->GetText(), false, nullptr, $1->GetComments()); 636 $$ = new AidlTypeSpecifier(loc(@1), $1->GetText(), true, nullptr, $1->GetComments()); 641 $$ = new AidlTypeSpecifier(loc(@1), $1->GetText(), false, $3, $1->GetComments()); 659 $$ = new std::vector<std::unique_ptr<AidlTypeSpecifier>>();
|
D | aidl_unittest.cpp | 526 const AidlTypeSpecifier& ret_type = method->GetType(); in TEST_P() 583 AidlTypeSpecifier ambiguous_type(AIDL_LOCATION_HERE, "IBar", false, nullptr, ""); in TEST_P() 605 AidlTypeSpecifier ambiguous_type(AIDL_LOCATION_HERE, "IBar", false, nullptr, ""); in TEST_P() 882 AidlTypeSpecifier nested_type(AIDL_LOCATION_HERE, "p.Outer.Inner", false, nullptr, ""); in TEST_P() 896 AidlTypeSpecifier native_type(AIDL_LOCATION_HERE, "p.Bar", false, nullptr, ""); in TEST_P()
|
D | generate_java_binder.cpp | 51 std::shared_ptr<Variable> Get(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in Get() 353 static void generate_new_array(const AidlTypeSpecifier& type, const AidlTypenames& typenames, in generate_new_array() 369 static void generate_write_to_parcel(const AidlTypeSpecifier& type, in generate_write_to_parcel()
|
D | generate_java.cpp | 413 …auto strip_double_quote = [](const AidlTypeSpecifier& type, const std::string& raw_value) -> std::… in generate_java_annotations()
|
D | generate_ndk.cpp | 184 auto headerFilePath = [&types](const AidlTypeSpecifier& typespec) -> std::string { in GenerateHeaderIncludes()
|