Lines Matching refs:AidlAnnotation
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()
158 {AidlAnnotation::Type::JAVA_PASSTHROUGH, in AllSchemas()
163 {AidlAnnotation::Type::JAVA_DERIVE, in AllSchemas()
167 {AidlAnnotation::Type::JAVA_DEFAULT, "JavaDefault", CONTEXT_TYPE_INTERFACE, {}}, in AllSchemas()
168 {AidlAnnotation::Type::JAVA_DELEGATOR, "JavaDelegator", CONTEXT_TYPE_INTERFACE, {}}, in AllSchemas()
169 {AidlAnnotation::Type::JAVA_ONLY_IMMUTABLE, in AllSchemas()
174 {AidlAnnotation::Type::JAVA_SUPPRESS_LINT, in AllSchemas()
178 {AidlAnnotation::Type::FIXED_SIZE, in AllSchemas()
182 {AidlAnnotation::Type::DESCRIPTOR, in AllSchemas()
186 {AidlAnnotation::Type::RUST_DERIVE, in AllSchemas()
196 {AidlAnnotation::Type::SUPPRESS_WARNINGS, in AllSchemas()
200 {AidlAnnotation::Type::PERMISSION_ENFORCE, in AllSchemas()
204 {AidlAnnotation::Type::PERMISSION_MANUAL, in AllSchemas()
208 {AidlAnnotation::Type::PERMISSION_NONE, in AllSchemas()
212 {AidlAnnotation::Type::PROPAGATE_ALLOW_BLOCKING, in AllSchemas()
220 std::string AidlAnnotation::TypeToString(Type type) { in TypeToString()
228 std::unique_ptr<AidlAnnotation> AidlAnnotation::Parse( in Parse()
251 return std::unique_ptr<AidlAnnotation>( in Parse()
252 new AidlAnnotation(location, *schema, std::move(parameter_list), comments)); in Parse()
255 AidlAnnotation::AidlAnnotation(const AidlLocation& location, const Schema& schema, in AidlAnnotation() function in AidlAnnotation
275 bool AidlAnnotation::CheckValid() const { in CheckValid()
326 if (schema_.type == AidlAnnotation::Type::PERMISSION_ENFORCE) { in CheckValid()
336 Result<unique_ptr<android::aidl::perm::Expression>> AidlAnnotation::EnforceExpression() const { in EnforceExpression()
355 bool AidlAnnotation::CheckContext(TargetContext context) const { in CheckContext()
381 std::map<std::string, std::string> AidlAnnotation::AnnotationParams( in AnnotationParams()
394 std::string AidlAnnotation::ToString() const { in ToString()
406 void AidlAnnotation::TraverseChildren(std::function<void(const AidlNode&)> traverse) const { in TraverseChildren()
413 static const AidlAnnotation* GetAnnotation( in GetAnnotation()
414 const vector<std::unique_ptr<AidlAnnotation>>& annotations, AidlAnnotation::Type type) { in GetAnnotation()
425 static const AidlAnnotation* GetScopedAnnotation(const AidlDefinedType& defined_type, in GetScopedAnnotation()
426 AidlAnnotation::Type type) { in GetScopedAnnotation()
427 const AidlAnnotation* annotation = GetAnnotation(defined_type.GetAnnotations(), type); in GetScopedAnnotation()
442 return GetAnnotation(annotations_, AidlAnnotation::Type::NULLABLE); in IsNullable()
446 auto annot = GetAnnotation(annotations_, AidlAnnotation::Type::NULLABLE); in IsHeapNullable()
454 return GetAnnotation(annotations_, AidlAnnotation::Type::UTF8_IN_CPP); in IsUtf8InCpp()
458 return GetAnnotation(annotations_, AidlAnnotation::Type::SENSITIVE_DATA); in IsSensitiveData()
464 return GetScopedAnnotation(*defined_type, AidlAnnotation::Type::VINTF_STABILITY); in IsVintfStability()
468 return GetAnnotation(annotations_, AidlAnnotation::Type::JAVA_ONLY_IMMUTABLE); in IsJavaOnlyImmutable()
472 return GetAnnotation(annotations_, AidlAnnotation::Type::FIXED_SIZE); in IsFixedSize()
475 const AidlAnnotation* AidlAnnotatable::UnsupportedAppUsage() const { in UnsupportedAppUsage()
476 return GetAnnotation(annotations_, AidlAnnotation::Type::UNSUPPORTED_APP_USAGE); in UnsupportedAppUsage()
481 if (const auto* ann = GetAnnotation(annotations_, AidlAnnotation::Type::RUST_DERIVE)) { in RustDerive()
491 const AidlAnnotation* AidlAnnotatable::BackingType() const { in BackingType()
492 return GetAnnotation(annotations_, AidlAnnotation::Type::BACKING); in BackingType()
496 auto annot = GetAnnotation(annotations_, AidlAnnotation::Type::SUPPRESS_WARNINGS); in SuppressWarnings()
507 auto annot = GetAnnotation(annotations_, AidlAnnotation::Type::PERMISSION_ENFORCE); in EnforceExpression()
520 return GetAnnotation(annotations_, AidlAnnotation::Type::PERMISSION_MANUAL); in IsPermissionManual()
524 return GetAnnotation(annotations_, AidlAnnotation::Type::PERMISSION_NONE); in IsPermissionNone()
532 return GetAnnotation(annotations_, AidlAnnotation::Type::PROPAGATE_ALLOW_BLOCKING); in IsPropagateAllowBlocking()
537 return GetAnnotation(annotations_, AidlAnnotation::Type::JAVA_STABLE_PARCELABLE); in IsStableApiParcelable()
539 return GetAnnotation(annotations_, AidlAnnotation::Type::NDK_STABLE_PARCELABLE); in IsStableApiParcelable()
541 return GetAnnotation(annotations_, AidlAnnotation::Type::RUST_STABLE_PARCELABLE); in IsStableApiParcelable()
546 auto annotation = GetAnnotation(annotations_, AidlAnnotation::Type::JAVA_DERIVE); in JavaDerive()
554 return GetAnnotation(annotations_, AidlAnnotation::Type::JAVA_DEFAULT); in IsJavaDefault()
558 return GetAnnotation(annotations_, AidlAnnotation::Type::JAVA_DELEGATOR); in IsJavaDelegator()
562 auto annotation = GetAnnotation(annotations_, AidlAnnotation::Type::DESCRIPTOR); in GetDescriptor()
576 std::map<AidlAnnotation::Type, AidlLocation> declared; in CheckValid()