Home
last modified time | relevance | path

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

12

/system/tools/aidl/
Daidl_to_cpp.h26 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,
Daidl_typenames.h39 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;
Daidl_to_java.h42 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;
Daidl_to_rust.h56 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);
Dparser.h57 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_;
Daidl_to_rust.cpp40 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()
Daidl_to_cpp.cpp38 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 …]
Daidl_to_ndk.h34 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;
Daidl_language.h114 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 …]
Daidl_language.cpp90 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 …]
Daidl_typenames.cpp243 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()
Daidl_dumpapi.h31 virtual void DumpConstantValue(const AidlTypeSpecifier& type, const AidlConstantValue& c);
42 void Visit(const AidlTypeSpecifier& t) override;
Daidl_to_cpp_common.h98 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;
Dparser.cpp51 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()
Daidl_to_ndk.cpp72 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()
Daidl.cpp386 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()
Daidl_to_cpp_common.cpp349 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()
Daidl_dumpapi.cpp88 void DumpVisitor::DumpConstantValue(const AidlTypeSpecifier& type, const AidlConstantValue& c) { in DumpConstantValue()
149 void DumpVisitor::Visit(const AidlTypeSpecifier& t) { in Visit()
Daidl_to_java.cpp41 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()
Dgenerate_ndk.cpp214 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()
Daidl_language_y.yy78 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>>();
Daidl_checkapi.cpp47 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()
Dgenerate_java.cpp97 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()
Daidl_const_expressions.cpp329 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()
Ddiagnostics.cpp229 void Visit(const AidlTypeSpecifier& t) override { in Visit()

12