Change RequiresApi annotation to class retention So that it can still have an effect when compiling against a library that uses it. This is also consistent with androidx's RequiresApi annotation (binary retention is the kotlin version of class retention): https://developer.android.com/reference/androidx/annotation/RequiresApi Bug: 323366771 Test: Presubmits Change-Id: Ie397e665ed38877b1a2a9e85183d149dad523fc0
Libraries and utilities intended for use by module and framework code.
Since modules use the code in this project, it must adhere to mainline requirements, for example, by setting min_sdk_version in Soong modules.
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.