Searched refs:AidlAnnotation (Results 1 – 8 of 8) sorted by relevance
/system/tools/aidl/ |
D | aidl_language.cpp | 125 const std::vector<AidlAnnotation::Schema>& AidlAnnotation::AllSchemas() { in AllSchemas() 127 {AidlAnnotation::Type::NULLABLE, in AllSchemas() 131 {AidlAnnotation::Type::UTF8_IN_CPP, "utf8InCpp", CONTEXT_TYPE_SPECIFIER, {}}, in AllSchemas() 132 {AidlAnnotation::Type::SENSITIVE_DATA, "SensitiveData", CONTEXT_TYPE_INTERFACE, {}}, in AllSchemas() 133 {AidlAnnotation::Type::VINTF_STABILITY, "VintfStability", CONTEXT_TYPE, {}}, in AllSchemas() 134 {AidlAnnotation::Type::UNSUPPORTED_APP_USAGE, in AllSchemas() 142 {AidlAnnotation::Type::JAVA_STABLE_PARCELABLE, in AllSchemas() 146 {AidlAnnotation::Type::NDK_STABLE_PARCELABLE, in AllSchemas() 150 {AidlAnnotation::Type::RUST_STABLE_PARCELABLE, in AllSchemas() 154 {AidlAnnotation::Type::BACKING, in AllSchemas() [all …]
|
D | aidl_checkapi.cpp | 83 static const set<AidlAnnotation::Type> kIgnoreAnnotations{ in get_strict_annotations() 84 AidlAnnotation::Type::NULLABLE, in get_strict_annotations() 86 AidlAnnotation::Type::JAVA_DERIVE, in get_strict_annotations() 87 AidlAnnotation::Type::JAVA_DEFAULT, in get_strict_annotations() 88 AidlAnnotation::Type::JAVA_DELEGATOR, in get_strict_annotations() 89 AidlAnnotation::Type::JAVA_ONLY_IMMUTABLE, in get_strict_annotations() 90 AidlAnnotation::Type::JAVA_PASSTHROUGH, in get_strict_annotations() 91 AidlAnnotation::Type::JAVA_SUPPRESS_LINT, in get_strict_annotations() 93 AidlAnnotation::Type::RUST_DERIVE, in get_strict_annotations() 94 AidlAnnotation::Type::SUPPRESS_WARNINGS, in get_strict_annotations()
|
D | aidl.cpp | 341 void Check(const AidlAnnotatable& annotatable, AidlAnnotation::TargetContext context) { in ValidateAnnotationContext() 349 Check(m, AidlAnnotation::CONTEXT_TYPE_INTERFACE); in ValidateAnnotationContext() 352 Check(m, AidlAnnotation::CONTEXT_TYPE_UNSTRUCTURED_PARCELABLE); in ValidateAnnotationContext() 355 Check(m, AidlAnnotation::CONTEXT_TYPE_STRUCTURED_PARCELABLE); in ValidateAnnotationContext() 358 Check(m, AidlAnnotation::CONTEXT_TYPE_ENUM); in ValidateAnnotationContext() 360 void Visit(const AidlUnionDecl& m) override { Check(m, AidlAnnotation::CONTEXT_TYPE_UNION); } in ValidateAnnotationContext() 362 Check(m.GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER | AidlAnnotation::CONTEXT_METHOD); in ValidateAnnotationContext() 364 Check(arg->GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER); in ValidateAnnotationContext() 368 Check(m.GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER | AidlAnnotation::CONTEXT_CONST); in ValidateAnnotationContext() 371 Check(m.GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER | AidlAnnotation::CONTEXT_FIELD); in ValidateAnnotationContext() [all …]
|
D | aidl_language.h | 99 class AidlAnnotation; 121 virtual void Visit(const AidlAnnotation&) {} 226 class AidlAnnotation : public AidlNode { 273 static std::unique_ptr<AidlAnnotation> Parse( 278 virtual ~AidlAnnotation() = default; 308 AidlAnnotation::Type type; 326 AidlAnnotation(const AidlLocation& location, const Schema& schema, 334 static inline bool operator<(const AidlAnnotation& lhs, const AidlAnnotation& rhs) { 337 static inline bool operator==(const AidlAnnotation& lhs, const AidlAnnotation& rhs) { 347 void Annotate(vector<std::unique_ptr<AidlAnnotation>>&& annotations) { [all …]
|
D | aidl_language_y.yy | 75 AidlAnnotation* annotation; 78 std::vector<std::unique_ptr<AidlAnnotation>>* annotation_list; 768 { $$ = new std::vector<std::unique_ptr<AidlAnnotation>>(); } 772 $1->emplace_back(std::unique_ptr<AidlAnnotation>($2)); 810 $$ = AidlAnnotation::Parse(loc(@1), $1->GetText(), {}, $1->GetComments()).release(); 819 …$$ = AidlAnnotation::Parse(loc(@1, @4), $1->GetText(), std::move(parameter_list), $1->GetComments(… 827 …$$ = AidlAnnotation::Parse(loc(@1, @4), $1->GetText(), std::move(*$3), $1->GetComments()).release(…
|
D | parser.cpp | 46 std::vector<std::unique_ptr<AidlAnnotation>> annotations; in Visit() 48 AidlAnnotation::Parse(AIDL_LOCATION_HERE, "Backing", {{"type", backing_type}}, Comments{})); in Visit()
|
D | generate_java.cpp | 954 std::string GenerateJavaUnsupportedAppUsageParameters(const AidlAnnotation& a) { in GenerateJavaUnsupportedAppUsageParameters() 969 const AidlAnnotation* unsupported_app_usage = a.UnsupportedAppUsage(); in GenerateJavaAnnotations() 976 if (annotation->GetType() == AidlAnnotation::Type::JAVA_PASSTHROUGH) { in GenerateJavaAnnotations() 979 if (annotation->GetType() == AidlAnnotation::Type::JAVA_SUPPRESS_LINT) { in GenerateJavaAnnotations()
|
D | aidl_unittest.cpp | 2282 std::vector<std::unique_ptr<AidlAnnotation>> annotations; in TEST_F() 2283 annotations.emplace_back(std::unique_ptr<AidlAnnotation>( in TEST_F() 2284 AidlAnnotation::Parse(AIDL_LOCATION_HERE, "nullable", {}, {}))); in TEST_F()
|