Add SynchronousResultReceiver to modules

It aim to be used in Binder call, to easily add a oneway interface on
existing api.

FYI: This is a re-used of existing sync receiver:
f/base/.../com/android/internal/util/SyncResultReceiver.java
f/base/.../android/os/SynchronousResultReceiver.java

The first one is in internal and can not be open to modules.
The second one is in android.os but we feel like it should not be moved
to a systemApi there. This class introduce some async behavior and the
api council seems to not like theses
Bug: 200200870
Tag: #refactor
Test: Build - start BT - play music
Test: atest ModulesUtilsTests

Change-Id: I15d72e2538f00ff8ea77d3c58a7b3ead11e7965c
7 files changed
tree: ea4ea65408b297faa79272887aed624c28b77ec4
  1. build/
  2. java/
  3. javatests/
  4. tools/
  5. Android.bp
  6. OWNERS
  7. PREUPLOAD.cfg
  8. README.md
  9. 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.