Searched refs:AidlAnnotation (Results 1 – 7 of 7) sorted by relevance
/system/tools/aidl/ |
D | aidl_language.cpp | 99 const std::vector<AidlAnnotation::Schema>& AidlAnnotation::AllSchemas() { in AllSchemas() 101 {AidlAnnotation::Type::NULLABLE, "nullable", CONTEXT_TYPE_SPECIFIER, {}}, in AllSchemas() 102 {AidlAnnotation::Type::UTF8_IN_CPP, "utf8InCpp", CONTEXT_TYPE_SPECIFIER, {}}, in AllSchemas() 103 {AidlAnnotation::Type::SENSITIVE_DATA, "SensitiveData", CONTEXT_TYPE_INTERFACE, {}}, in AllSchemas() 104 {AidlAnnotation::Type::VINTF_STABILITY, "VintfStability", CONTEXT_TYPE, {}}, in AllSchemas() 105 {AidlAnnotation::Type::UNSUPPORTED_APP_USAGE, in AllSchemas() 113 {AidlAnnotation::Type::JAVA_STABLE_PARCELABLE, in AllSchemas() 117 {AidlAnnotation::Type::HIDE, "Hide", CONTEXT_TYPE | CONTEXT_MEMBER, {}}, in AllSchemas() 118 {AidlAnnotation::Type::BACKING, in AllSchemas() 122 {AidlAnnotation::Type::JAVA_PASSTHROUGH, in AllSchemas() [all …]
|
D | aidl.cpp | 354 void Check(const AidlAnnotatable& annotatable, AidlAnnotation::TargetContext context) { in ValidateAnnotationContext() 362 Check(m, AidlAnnotation::CONTEXT_TYPE_INTERFACE); in ValidateAnnotationContext() 365 Check(m, AidlAnnotation::CONTEXT_TYPE_UNSTRUCTURED_PARCELABLE); in ValidateAnnotationContext() 368 Check(m, AidlAnnotation::CONTEXT_TYPE_STRUCTURED_PARCELABLE); in ValidateAnnotationContext() 371 Check(m, AidlAnnotation::CONTEXT_TYPE_ENUM); in ValidateAnnotationContext() 373 void Visit(const AidlUnionDecl& m) override { Check(m, AidlAnnotation::CONTEXT_TYPE_UNION); } in ValidateAnnotationContext() 375 Check(m.GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER | AidlAnnotation::CONTEXT_METHOD); in ValidateAnnotationContext() 377 Check(arg->GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER); in ValidateAnnotationContext() 381 Check(m.GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER | AidlAnnotation::CONTEXT_CONST); in ValidateAnnotationContext() 384 Check(m.GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER | AidlAnnotation::CONTEXT_FIELD); in ValidateAnnotationContext() [all …]
|
D | aidl_language.h | 97 class AidlAnnotation; 119 virtual void Visit(const AidlAnnotation&) {} 199 class AidlAnnotation : public AidlNode { 238 static AidlAnnotation* Parse( 243 AidlAnnotation(const AidlAnnotation&) = default; 244 AidlAnnotation(AidlAnnotation&&) = default; 245 virtual ~AidlAnnotation() = default; 273 AidlAnnotation::Type type; 291 AidlAnnotation(const AidlLocation& location, const Schema& schema, 299 static inline bool operator<(const AidlAnnotation& lhs, const AidlAnnotation& rhs) { [all …]
|
D | aidl_checkapi.cpp | 85 static const set<AidlAnnotation::Type> kIgnoreAnnotations{ in get_strict_annotations() 86 AidlAnnotation::Type::NULLABLE, in get_strict_annotations() 88 AidlAnnotation::Type::JAVA_DERIVE, in get_strict_annotations() 89 AidlAnnotation::Type::JAVA_ONLY_IMMUTABLE, in get_strict_annotations() 91 AidlAnnotation::Type::BACKING, in get_strict_annotations() 93 AidlAnnotation::Type::RUST_DERIVE, in get_strict_annotations() 94 AidlAnnotation::Type::SUPPRESS_WARNINGS, in get_strict_annotations() 97 for (const AidlAnnotation& annotation : node.GetAnnotations()) { in get_strict_annotations()
|
D | aidl_language_y.yy | 74 AidlAnnotation* annotation; 77 std::vector<AidlAnnotation>* annotation_list; 721 { $$ = new std::vector<AidlAnnotation>(); } 763 $$ = AidlAnnotation::Parse(loc(@1), $1->GetText(), nullptr, $1->GetComments()); 770 $$ = AidlAnnotation::Parse(loc(@1, @4), $1->GetText(), $3, $1->GetComments());
|
D | generate_java.cpp | 941 std::string generate_java_unsupportedappusage_parameters(const AidlAnnotation& a) { in generate_java_unsupportedappusage_parameters() 959 const AidlAnnotation* unsupported_app_usage = a.UnsupportedAppUsage(); in generate_java_annotations() 966 if (annotation.GetType() == AidlAnnotation::Type::JAVA_PASSTHROUGH) { in generate_java_annotations()
|
D | generate_rust.cpp | 751 const AidlAnnotation* derive_annotation = parcel->RustDerive(); in GenerateRustParcel()
|