/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 39 std::string CppNameOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 41 bool IsNonCopyableType(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 45 std::string ParcelReadMethodOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 49 std::string ParcelReadCastOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames, 54 std::string ParcelWriteMethodOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 58 std::string ParcelWriteCastOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames, 61 void AddHeaders(const AidlTypeSpecifier& type, const AidlTypenames& typenames,
|
D | aidl_typenames.h | 39 class AidlTypeSpecifier; variable 77 ArgumentAspect GetArgumentAspect(const AidlTypeSpecifier& type) const; 78 bool CanBeJavaOnlyImmutable(const AidlTypeSpecifier& type) const; 79 bool CanBeFixedSize(const AidlTypeSpecifier& type) const; 80 static bool IsList(const AidlTypeSpecifier& type); 85 const AidlEnumDeclaration* GetEnumDeclaration(const AidlTypeSpecifier& type) const; 88 const AidlInterface* GetInterface(const AidlTypeSpecifier& type) const; 91 const AidlParcelable* GetParcelable(const AidlTypeSpecifier& type) const;
|
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_to_rust.h | 56 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value); 58 std::string ConstantValueDecoratorRef(const AidlTypeSpecifier& type, const std::string& raw_value); 62 std::string RustNameOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames, 71 bool TypeIsInterface(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 73 bool TypeHasDefault(const AidlTypeSpecifier& type, const AidlTypenames& typenames);
|
D | parser.h | 57 using TypeResolver = std::function<bool(const AidlDocument*, AidlTypeSpecifier*)>; 84 void SetTypeParameters(AidlTypeSpecifier* type, 85 std::vector<std::unique_ptr<AidlTypeSpecifier>>* type_args); 90 void DeferResolution(AidlTypeSpecifier* typespec) { in DeferResolution() 94 const vector<AidlTypeSpecifier*>& GetUnresolvedTypespecs() const { return unresolved_typespecs_; } in GetUnresolvedTypespecs() 124 vector<AidlTypeSpecifier*> unresolved_typespecs_;
|
D | aidl_to_rust.cpp | 40 std::string GetRawRustName(const AidlTypeSpecifier& type); 42 std::string ConstantValueDecoratorInternal(const AidlTypeSpecifier& type, in ConstantValueDecoratorInternal() 78 std::string GetRawRustName(const AidlTypeSpecifier& type) { in GetRawRustName() 89 std::string GetRustName(const AidlTypeSpecifier& type, const AidlTypenames& typenames, in GetRustName() 137 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value) { in ConstantValueDecorator() 145 std::string ConstantValueDecoratorRef(const AidlTypeSpecifier& type, const std::string& raw_value) { in ConstantValueDecoratorRef() 153 std::string RustNameOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames, in RustNameOf() 269 bool TypeIsInterface(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in TypeIsInterface() 274 bool TypeHasDefault(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in TypeHasDefault()
|
D | aidl_to_cpp.cpp | 38 std::string RawParcelMethod(const AidlTypeSpecifier& type, const AidlTypenames& typenames, in RawParcelMethod() 140 std::string GetRawCppName(const AidlTypeSpecifier& type) { in GetRawCppName() 144 std::string WrapIfNullable(const std::string type_str, const AidlTypeSpecifier& raw_type, in WrapIfNullable() 155 std::string GetCppName(const AidlTypeSpecifier& raw_type, const AidlTypenames& typenames) { in GetCppName() 193 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value) { in ConstantValueDecorator() 219 std::string CppNameOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in CppNameOf() 237 bool IsNonCopyableType(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in IsNonCopyableType() 249 std::string ParcelReadMethodOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in ParcelReadMethodOf() 253 std::string ParcelReadCastOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames, in ParcelReadCastOf() 265 std::string ParcelWriteMethodOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in ParcelWriteMethodOf() [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 size_t NdkAlignmentOf(const AidlTypenames& types, const AidlTypeSpecifier& aidl); 53 const AidlTypeSpecifier& type;
|
D | aidl_language.h | 114 virtual void Visit(const AidlTypeSpecifier&) {} 178 static_assert(std::is_same<T, unique_ptr<AidlTypeSpecifier>>::value || 197 std::function<std::string(const AidlTypeSpecifier& type, const std::string& raw_value)>; 268 const AidlTypeSpecifier& type; 354 class AidlTypeSpecifier final : public AidlAnnotatable, 355 public AidlParameterizable<unique_ptr<AidlTypeSpecifier>> { 357 AidlTypeSpecifier(const AidlLocation& location, const string& unresolved_name, bool is_array, 358 vector<unique_ptr<AidlTypeSpecifier>>* type_params, const Comments& comments); 359 virtual ~AidlTypeSpecifier() = default; 362 const AidlTypeSpecifier& ArrayBase() const; [all …]
|
D | aidl_language.cpp | 90 static const AidlTypeSpecifier kStringType{AIDL_LOCATION_HERE, "String", false, nullptr, 92 static const AidlTypeSpecifier kStringArrayType{AIDL_LOCATION_HERE, "String", true, nullptr, 94 static const AidlTypeSpecifier kIntType{AIDL_LOCATION_HERE, "int", false, nullptr, Comments{}}; 95 static const AidlTypeSpecifier kLongType{AIDL_LOCATION_HERE, "long", false, nullptr, Comments{}}; 96 static const AidlTypeSpecifier kBooleanType{AIDL_LOCATION_HERE, "boolean", false, nullptr, 443 AidlTypeSpecifier::AidlTypeSpecifier(const AidlLocation& location, const string& unresolved_name, in AidlTypeSpecifier() function in AidlTypeSpecifier 445 vector<unique_ptr<AidlTypeSpecifier>>* type_params, in AidlTypeSpecifier() 448 AidlParameterizable<unique_ptr<AidlTypeSpecifier>>(type_params), in AidlTypeSpecifier() 453 const AidlTypeSpecifier& AidlTypeSpecifier::ArrayBase() const { in ArrayBase() 459 array_base_.reset(new AidlTypeSpecifier(*this)); in ArrayBase() [all …]
|
D | aidl_typenames.cpp | 243 bool AidlTypenames::CanBeJavaOnlyImmutable(const AidlTypeSpecifier& type) const { in CanBeJavaOnlyImmutable() 270 bool AidlTypenames::CanBeFixedSize(const AidlTypeSpecifier& type) const { in CanBeFixedSize() 291 bool AidlTypenames::IsList(const AidlTypeSpecifier& type) { in IsList() 295 ArgumentAspect AidlTypenames::GetArgumentAspect(const AidlTypeSpecifier& type) const { in GetArgumentAspect() 335 const AidlEnumDeclaration* AidlTypenames::GetEnumDeclaration(const AidlTypeSpecifier& type) const { in GetEnumDeclaration() 344 const AidlInterface* AidlTypenames::GetInterface(const AidlTypeSpecifier& type) const { in GetInterface() 353 const AidlParcelable* AidlTypenames::GetParcelable(const AidlTypeSpecifier& type) const { in GetParcelable()
|
D | aidl_dumpapi.h | 31 virtual void DumpConstantValue(const AidlTypeSpecifier& type, const AidlConstantValue& c); 42 void Visit(const AidlTypeSpecifier& t) override;
|
D | aidl_to_cpp_common.h | 98 std::function<void(CodeWriter& out, const std::string& var, const AidlTypeSpecifier& type)> 100 std::function<void(CodeWriter& out, const std::string& value, const AidlTypeSpecifier& type)> 107 const std::function<std::string(const AidlTypeSpecifier&, const AidlTypenames&)> name_of;
|
D | parser.cpp | 51 void Parser::SetTypeParameters(AidlTypeSpecifier* type, in SetTypeParameters() 52 std::vector<std::unique_ptr<AidlTypeSpecifier>>* type_args) { in SetTypeParameters() 138 for (AidlTypeSpecifier* typespec : unresolved_typespecs_) { in Resolve()
|
D | aidl_to_ndk.cpp | 72 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value) { in ConstantValueDecorator() 151 TypeInfo ParcelableTypeInfo(const AidlParcelable& type, const AidlTypeSpecifier& typeSpec, in ParcelableTypeInfo() 351 static TypeInfo::Aspect GetTypeAspect(const AidlTypenames& types, const AidlTypeSpecifier& aidl) { in GetTypeAspect() 366 AidlTypeSpecifier array_type = in GetTypeAspect() 367 AidlTypeSpecifier(AIDL_LOCATION_HERE, type_param->GetUnresolvedName(), true /* isArray */, in GetTypeAspect() 424 std::string NdkNameOf(const AidlTypenames& types, const AidlTypeSpecifier& aidl, StorageMode mode) { in NdkNameOf() 443 size_t NdkAlignmentOf(const AidlTypenames& types, const AidlTypeSpecifier& aidl) { in NdkAlignmentOf()
|
D | aidl.cpp | 386 void Visit(const AidlTypeSpecifier& m) override { in ValidateAnnotationContext() 552 TypeResolver resolver = [&](const AidlDocument* doc, AidlTypeSpecifier* type) { in load_and_validate_aidl() 678 AidlTypeSpecifier* ret = in load_and_validate_aidl() 679 new AidlTypeSpecifier(AIDL_LOCATION_HERE, "int", false, nullptr, Comments{}); in load_and_validate_aidl() 689 AidlTypeSpecifier* ret = in load_and_validate_aidl() 690 new AidlTypeSpecifier(AIDL_LOCATION_HERE, "String", false, nullptr, Comments{}); in load_and_validate_aidl() 741 std::function<void(const AidlTypeSpecifier&, const AidlNode*)> check_untyped_container = in load_and_validate_aidl() 742 [&err, &check_untyped_container](const AidlTypeSpecifier& type, const AidlNode* node) { in load_and_validate_aidl()
|
D | aidl_to_cpp_common.cpp | 349 AidlTypeSpecifier tag_type(AIDL_LOCATION_HERE, "int", /* is_array= */ false, in PublicFields() 428 AidlTypeSpecifier tag_type(AIDL_LOCATION_HERE, "int", /* is_array= */ false, in ReadFromParcel() 436 auto read_var = [&](const string& var, const AidlTypeSpecifier& type) { in ReadFromParcel() 472 AidlTypeSpecifier tag_type(AIDL_LOCATION_HERE, "int", /* is_array= */ false, in WriteToParcel()
|
D | aidl_dumpapi.cpp | 88 void DumpVisitor::DumpConstantValue(const AidlTypeSpecifier& type, const AidlConstantValue& c) { in DumpConstantValue() 149 void DumpVisitor::Visit(const AidlTypeSpecifier& t) { in Visit()
|
D | aidl_to_java.cpp | 41 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value) { in ConstantValueDecorator() 56 const string& JavaNameOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames, in JavaNameOf() 134 const AidlTypeSpecifier& aidl, const AidlTypenames& typenames, bool instantiable, in JavaSignatureOfInternal() 155 string AidlBackingTypeName(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in AidlBackingTypeName() 171 string JavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in JavaSignatureOf() 175 string InstantiableJavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in InstantiableJavaSignatureOf() 179 string DefaultJavaValueOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in DefaultJavaValueOf()
|
D | generate_ndk.cpp | 214 auto headerFilePath = [&types](const AidlTypeSpecifier& typespec) -> std::string { in GenerateHeaderIncludes() 240 std::function<void(const AidlTypeSpecifier& type)> visit = [&](const AidlTypeSpecifier& type) { in GenerateHeaderIncludes() 314 const AidlTypeSpecifier& type = constant->GetType(); in GenerateConstantDeclarations() 1150 [&](const AidlTypeSpecifier& type, const AidlTypenames& types) { in GenerateParcelHeader() 1222 [&](const AidlTypeSpecifier& type, const AidlTypenames& types) { in GenerateParcelSource() 1231 [&](CodeWriter& out, const std::string& var, const AidlTypeSpecifier& type) { in GenerateParcelSource() 1235 [&](CodeWriter& out, const std::string& value, const AidlTypeSpecifier& type) { in GenerateParcelSource()
|
D | aidl_language_y.yy | 78 AidlTypeSpecifier* type; 91 std::vector<std::unique_ptr<AidlTypeSpecifier>>* type_args; 662 $$ = new AidlTypeSpecifier(loc(@2), $2->GetText(), false, nullptr, $2->GetComments()); 677 auto params = new std::vector<std::unique_ptr<AidlTypeSpecifier>>(); 711 $$ = new std::vector<std::unique_ptr<AidlTypeSpecifier>>();
|
D | aidl_checkapi.cpp | 47 void DumpConstantValue(const AidlTypeSpecifier&, const AidlConstantValue& c) { in DumpConstantValue() 126 static bool are_compatible_types(const AidlTypeSpecifier& older, const AidlTypeSpecifier& newer) { in are_compatible_types()
|
D | generate_java.cpp | 97 bool CanDescribeContents(const AidlTypeSpecifier& type, const AidlTypenames& types, in CanDescribeContents() 683 const AidlTypeSpecifier tag_type_specifier(AIDL_LOCATION_HERE, tag_type, false /* isArray */, in generate_union() 809 auto write_to_parcel = [&](const AidlTypeSpecifier& type, std::string name, std::string parcel) { in generate_union() 844 auto read_from_parcel = [&](const AidlTypeSpecifier& type, std::string name, std::string parcel) { in generate_union() 976 void Visit(const AidlTypeSpecifier& t) override { result = generate_java_annotations(t); } in Visit()
|
D | aidl_const_expressions.cpp | 329 AidlConstantValue* AidlConstantValue::Default(const AidlTypeSpecifier& specifier) { in Default() 467 string AidlConstantValue::ValueString(const AidlTypeSpecifier& type, in ValueString() 552 const AidlTypeSpecifier& array_base = type.ArrayBase(); in ValueString() 742 ref_type_ = std::make_unique<AidlTypeSpecifier>(location, value.substr(0, pos), false, nullptr, in AidlConstantReference()
|
D | diagnostics.cpp | 229 void Visit(const AidlTypeSpecifier& t) override { in Visit()
|