Home
last modified time | relevance | path

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

/system/tools/aidl/
Daidl_language.cpp111 const std::vector<AidlAnnotation::Schema>& AidlAnnotation::AllSchemas() { in AllSchemas()
113 {AidlAnnotation::Type::NULLABLE, "nullable", {}}, in AllSchemas()
114 {AidlAnnotation::Type::UTF8_IN_CPP, "utf8InCpp", {}}, in AllSchemas()
115 {AidlAnnotation::Type::VINTF_STABILITY, "VintfStability", {}}, in AllSchemas()
116 {AidlAnnotation::Type::UNSUPPORTED_APP_USAGE, in AllSchemas()
123 {AidlAnnotation::Type::JAVA_STABLE_PARCELABLE, "JavaOnlyStableParcelable", {}}, in AllSchemas()
124 {AidlAnnotation::Type::HIDE, "Hide", {}}, in AllSchemas()
125 {AidlAnnotation::Type::BACKING, "Backing", {{"type", "String"}}}, in AllSchemas()
126 {AidlAnnotation::Type::JAVA_PASSTHROUGH, "JavaPassthrough", {{"annotation", "String"}}}, in AllSchemas()
127 {AidlAnnotation::Type::JAVA_DEBUG, "JavaDebug", {}}, in AllSchemas()
[all …]
Daidl_language.h157 class AidlAnnotation : public AidlNode {
173 static AidlAnnotation* Parse(
177 AidlAnnotation(const AidlAnnotation&) = default;
178 AidlAnnotation(AidlAnnotation&&) = default;
179 virtual ~AidlAnnotation() = default;
192 AidlAnnotation::Type type;
202 AidlAnnotation(const AidlLocation& location, const Schema& schema,
210 static inline bool operator<(const AidlAnnotation& lhs, const AidlAnnotation& rhs) {
213 static inline bool operator==(const AidlAnnotation& lhs, const AidlAnnotation& rhs) {
225 void Annotate(vector<AidlAnnotation>&& annotations) { in Annotate()
[all …]
Daidl_checkapi.cpp40 static set<AidlAnnotation> get_strict_annotations(const AidlAnnotatable& node) { in get_strict_annotations()
52 static const set<AidlAnnotation::Type> kIgnoreAnnotations{ in get_strict_annotations()
53 AidlAnnotation::Type::NULLABLE, in get_strict_annotations()
54 AidlAnnotation::Type::JAVA_DEBUG, in get_strict_annotations()
55 AidlAnnotation::Type::IMMUTABLE, in get_strict_annotations()
57 set<AidlAnnotation> annotations; in get_strict_annotations()
58 for (const AidlAnnotation& annotation : node.GetAnnotations()) { in get_strict_annotations()
68 set<AidlAnnotation> olderAnnotations = get_strict_annotations(older); in have_compatible_annotations()
69 set<AidlAnnotation> newerAnnotations = get_strict_annotations(newer); in have_compatible_annotations()
Dgenerate_java.cpp389 std::string generate_java_unsupportedappusage_parameters(const AidlAnnotation& a) { in generate_java_unsupportedappusage_parameters()
407 const AidlAnnotation* unsupported_app_usage = a.UnsupportedAppUsage(); in generate_java_annotations()
422 const AidlAnnotation* java_passthrough = a.JavaPassthrough(); in generate_java_annotations()
Daidl_language_y.yy74 AidlAnnotation* annotation;
77 std::vector<AidlAnnotation>* annotation_list;
669 { $$ = new std::vector<AidlAnnotation>(); }
712 $$ = AidlAnnotation::Parse(loc(@1), $1->GetText(), nullptr);
721 $$ = AidlAnnotation::Parse(loc(@1, @4), $1->GetText(), $3);