Modules: @FlaggedApi: Enforce using constants instead of literals

Enables a lint that forces using @FlaggedApi(..Flags.FLAG_FOO) instead
of @FlaggedApi("...FLAG_FOO") in source code. This avoids the potential
for typos causing APIs not to ship as intended.

Bug: 322505144
Test: make checkapi
Flag: EXEMPT lint only
Change-Id: Idb86c4c53d6f4a584504ed73204d52d7d43ee3f4
1 file changed
tree: a2a86ce0fd2d908426d69cd88cfa514ece403b02
  1. build/
  2. java/
  3. javatests/
  4. proguard/
  5. proto/
  6. sdk/
  7. tools/
  8. Android.bp
  9. MODULES_OWNERS
  10. OWNERS
  11. PREBUILTS_MODULE_OWNERS
  12. PREUPLOAD.cfg
  13. README.md
README.md

packages/modules/common

This project includes mainline build and other utility code. Any library code intended for use by modules should go in frameworks/libs/modules-utils instead.

java code

This project uses a single source path for java code. All java code should go in the java directory with subdirectories corresponding to the java package. Android.bp files should go alongside the java source files, and should only include java source for a single java package to encourage good code hygiene.

Tests for java code should go in the javatests directory and follow the same structure.