Move AIDL FMQ types from android.hardware.common

Moved the types to andrdoid.hardware.common.fmq.
This allows modules to depend on the unstable version of the library
without conflicting with modules that depend on the stable version of
android.hardware.common.

Test: atest fmq_unit_tests fmq_test
Bug: 142326204
Change-Id: I3091f52c4e763a15fd9a1b7451a1455a06fb4c30
This commit is contained in:
Devin Moore 2020-10-09 10:46:38 -07:00
parent b5f2d23e26
commit 14b2cbe96d
10 changed files with 32 additions and 11 deletions

View file

@ -0,0 +1,21 @@
aidl_interface {
name: "android.hardware.common.fmq",
host_supported: true,
vendor_available: true,
vndk: {
enabled: true,
support_system_process: true,
},
srcs: [
"android/hardware/common/fmq/*.aidl",
],
stability: "vintf",
backend: {
java: {
enabled: false,
},
cpp: {
enabled: false,
},
},
}

View file

@ -15,7 +15,7 @@
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.common;
package android.hardware.common.fmq;
@VintfStability
parcelable GrantorDescriptor {
int offset;

View file

@ -15,10 +15,10 @@
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.common;
package android.hardware.common.fmq;
@VintfStability
parcelable MQDescriptor {
android.hardware.common.GrantorDescriptor[] grantors;
android.hardware.common.fmq.GrantorDescriptor[] grantors;
ParcelFileDescriptor fileDescriptor;
int quantum;
int flags;

View file

@ -15,7 +15,7 @@
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.common;
package android.hardware.common.fmq;
@VintfStability
enum SynchronizedReadWrite {
EMPTY = 0,

View file

@ -15,7 +15,7 @@
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.common;
package android.hardware.common.fmq;
@VintfStability
enum UnsynchronizedWrite {
EMPTY = 0,

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package android.hardware.common;
package android.hardware.common.fmq;
/*
* Included in MQDescriptor, for use with libfmq.

View file

@ -14,9 +14,9 @@
* limitations under the License.
*/
package android.hardware.common;
package android.hardware.common.fmq;
import android.hardware.common.GrantorDescriptor;
import android.hardware.common.fmq.GrantorDescriptor;
/*
* For use with libfmq. This is created from an instance of AidlMessageQueue,

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package android.hardware.common;
package android.hardware.common.fmq;
/*
* For use with android.hardware.common.MQDescriptor to specify which type of

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package android.hardware.common;
package android.hardware.common.fmq;
/*
* For use with android.hardware.common.MQDescriptor to specify which type of

View file

@ -93,7 +93,7 @@ cc_test {
static_libs: [
"android.hardware.tests.msgq@1.0",
"android.fmq.test-ndk_platform",
"android.hardware.common-unstable-ndk_platform",
"android.hardware.common.fmq-unstable-ndk_platform",
],
whole_static_libs: [
"android.hardware.tests.msgq@1.0-impl",