check_api checks if annotation params are changed

Previously, it checks only if annotation types are matched. But some
annotations can have parameters and changed parameters can be
incompatible.

To compare annotations including parameters, the checker now compares
string representations of annotations. AidlAnnotation::ToString() works
fine for the case of re-order of parameters because it uses std::map
internally.

Bug: n/a
Test: aidl_unittests
Change-Id: I6fafbdac9983c45c3d74e6af0633d7dbc4d0848f
2 files changed