Create util lib for android internal utility classes to use in module

Multiple internal util classes like AndroidFuture and
ServiceConnector are required to be used in ondeviceintelligence
module code. So we extract them to a different namespace under
`module.utils` to allow using in the module API and service jars.

Bug: 376427781
Flag: build.release_ondevice_intelligence_module
Change-Id: I55c0becba3d83fe27fa07e6d6516d80f46e7393e
Ignore-AOSP-First: related changes in internal topic
6 files changed
tree: b7945feff579938679b6e45d9f4299e0a5e1d2e3
  1. build/
  2. java/
  3. javatests/
  4. tools/
  5. .gitignore
  6. Android.bp
  7. OWNERS
  8. PREUPLOAD.cfg
  9. README.md
  10. TEST_MAPPING
README.md

frameworks/libs/modules-utils/

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.

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.