Home
last modified time | relevance | path

Searched refs:AidlAnnotation (Results 1 – 8 of 8) sorted by relevance

/system/tools/aidl/
Daidl_language.cpp125 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::BACKING, in AllSchemas()
154 {AidlAnnotation::Type::JAVA_PASSTHROUGH, in AllSchemas()
[all …]
Daidl.cpp312 void Check(const AidlAnnotatable& annotatable, AidlAnnotation::TargetContext context) { in ValidateAnnotationContext()
320 Check(m, AidlAnnotation::CONTEXT_TYPE_INTERFACE); in ValidateAnnotationContext()
323 Check(m, AidlAnnotation::CONTEXT_TYPE_UNSTRUCTURED_PARCELABLE); in ValidateAnnotationContext()
326 Check(m, AidlAnnotation::CONTEXT_TYPE_STRUCTURED_PARCELABLE); in ValidateAnnotationContext()
329 Check(m, AidlAnnotation::CONTEXT_TYPE_ENUM); in ValidateAnnotationContext()
331 void Visit(const AidlUnionDecl& m) override { Check(m, AidlAnnotation::CONTEXT_TYPE_UNION); } in ValidateAnnotationContext()
333 Check(m.GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER | AidlAnnotation::CONTEXT_METHOD); in ValidateAnnotationContext()
335 Check(arg->GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER); in ValidateAnnotationContext()
339 Check(m.GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER | AidlAnnotation::CONTEXT_CONST); in ValidateAnnotationContext()
342 Check(m.GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER | AidlAnnotation::CONTEXT_FIELD); in ValidateAnnotationContext()
[all …]
Daidl_checkapi.cpp83 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_SUPPRESS_LINT, in get_strict_annotations()
92 AidlAnnotation::Type::BACKING, in get_strict_annotations()
94 AidlAnnotation::Type::RUST_DERIVE, in get_strict_annotations()
95 AidlAnnotation::Type::SUPPRESS_WARNINGS, in get_strict_annotations()
Daidl_language.h99 class AidlAnnotation;
121 virtual void Visit(const AidlAnnotation&) {}
224 class AidlAnnotation : public AidlNode {
270 static std::unique_ptr<AidlAnnotation> Parse(
275 virtual ~AidlAnnotation() = default;
305 AidlAnnotation::Type type;
323 AidlAnnotation(const AidlLocation& location, const Schema& schema,
331 static inline bool operator<(const AidlAnnotation& lhs, const AidlAnnotation& rhs) {
334 static inline bool operator==(const AidlAnnotation& lhs, const AidlAnnotation& rhs) {
344 void Annotate(vector<std::unique_ptr<AidlAnnotation>>&& annotations) {
[all …]
Daidl_language_y.yy75 AidlAnnotation* annotation;
78 std::vector<std::unique_ptr<AidlAnnotation>>* annotation_list;
762 { $$ = new std::vector<std::unique_ptr<AidlAnnotation>>(); }
766 $1->emplace_back(std::unique_ptr<AidlAnnotation>($2));
804 $$ = AidlAnnotation::Parse(loc(@1), $1->GetText(), {}, $1->GetComments()).release();
813 …$$ = AidlAnnotation::Parse(loc(@1, @4), $1->GetText(), std::move(parameter_list), $1->GetComments(…
821 …$$ = AidlAnnotation::Parse(loc(@1, @4), $1->GetText(), std::move(*$3), $1->GetComments()).release(…
Dparser.cpp46 std::vector<std::unique_ptr<AidlAnnotation>> annotations; in Visit()
48 AidlAnnotation::Parse(AIDL_LOCATION_HERE, "Backing", {{"type", backing_type}}, Comments{})); in Visit()
Dgenerate_java.cpp930 std::string GenerateJavaUnsupportedAppUsageParameters(const AidlAnnotation& a) { in GenerateJavaUnsupportedAppUsageParameters()
945 const AidlAnnotation* unsupported_app_usage = a.UnsupportedAppUsage(); in GenerateJavaAnnotations()
952 if (annotation->GetType() == AidlAnnotation::Type::JAVA_PASSTHROUGH) { in GenerateJavaAnnotations()
955 if (annotation->GetType() == AidlAnnotation::Type::JAVA_SUPPRESS_LINT) { in GenerateJavaAnnotations()
Daidl_unittest.cpp2173 std::vector<std::unique_ptr<AidlAnnotation>> annotations; in TEST_F()
2174 annotations.emplace_back(std::unique_ptr<AidlAnnotation>( in TEST_F()
2175 AidlAnnotation::Parse(AIDL_LOCATION_HERE, "nullable", {}, {}))); in TEST_F()