Rewrite UnsupportedAppUsageProcessor.

- Simplify some logic;
- Conform to java style;
- Use public jdk.compiler APIs to get source positions;

Bug: 145132366
Test: diff unsupportedappusage_index.csv
Change-Id: I91e808317ae872afc0aad75bc8ad8b4378281096
4 files changed
tree: 8fd99602ec6b43a99f64a48044d061e3ba1f977f
  1. build/
  2. java/
  3. javatest/
  4. Android.mk
  5. OWNERS
  6. README.md
README.md

Platform compat tools

Tools for Android App Compat (go/android-compat).

What's in here?

├── build # python helper scripts for build
├── java # All Java source files; directories follow corresponding java packages
│   └── android
│       ├── compat
│       │   └── annotation # Annotations used for go/compat-framework and go/unsupportedappusage
│       └── processor
│           └── compat  # Java annotation processors for annotations defined in src/
│               ├── changeid # Creates compat_config xml files from @ChangeId constants
│               └── unsupportedappusage # Creates csv files with source positions for @UnsupportedAppUsage elements
└── javatest # Tests for source files defined under java/