Lines Matching refs:older
34 static bool have_compatible_annotations(const AidlAnnotatable& older, in have_compatible_annotations() argument
36 set<AidlAnnotation> olderAnnotations(older.GetAnnotations().begin(), in have_compatible_annotations()
37 older.GetAnnotations().end()); in have_compatible_annotations()
41 const string from = older.ToString().empty() ? "(empty)" : older.ToString(); in have_compatible_annotations()
49 static bool are_compatible_types(const AidlTypeSpecifier& older, const AidlTypeSpecifier& newer) { in are_compatible_types() argument
51 if (older.ToString() != newer.ToString()) { in are_compatible_types()
52 AIDL_ERROR(newer) << "Type changed: " << older.ToString() << " to " << newer.ToString() << "."; in are_compatible_types()
55 compatible &= have_compatible_annotations(older, newer); in are_compatible_types()
59 static bool are_compatible_interfaces(const AidlInterface& older, const AidlInterface& newer) { in are_compatible_interfaces() argument
61 compatible &= have_compatible_annotations(older, newer); in are_compatible_interfaces()
68 for (const auto& old_m : older.AsInterface()->GetMethods()) { in are_compatible_interfaces()
71 AIDL_ERROR(old_m) << "Removed or changed method: " << older.GetCanonicalName() << "." in are_compatible_interfaces()
84 << older.GetCanonicalName() << "." << old_m->Signature(); in are_compatible_interfaces()
89 AIDL_ERROR(new_m) << "Transaction ID changed: " << older.GetCanonicalName() << "." in are_compatible_interfaces()
119 for (const auto& old_c : older.AsInterface()->GetConstantDeclarations()) { in are_compatible_interfaces()
122 AIDL_ERROR(old_c) << "Removed constant declaration: " << older.GetCanonicalName() << "." in are_compatible_interfaces()
134 AIDL_ERROR(newer) << "Changed constant value: " << older.GetCanonicalName() << "." in are_compatible_interfaces()
142 static bool are_compatible_parcelables(const AidlStructuredParcelable& older, in are_compatible_parcelables() argument
144 const auto& old_fields = older.GetFields(); in are_compatible_parcelables()
148 AIDL_ERROR(newer) << "Number of fields in " << older.GetCanonicalName() << " is reduced from " in are_compatible_parcelables()