diff options
author | Devin Moore <devinmoore@google.com> | 2020-10-09 10:46:38 -0700 |
---|---|---|
committer | Devin Moore <devinmoore@google.com> | 2020-10-09 13:00:16 -0700 |
commit | 14b2cbe96d5ce7e328090161861a19995bd891ee (patch) | |
tree | 47d080321b55a4b89e0f718ad11681f25d69f8ec /common | |
parent | b5f2d23e26d3d4df2e3bf204854a46f4018c8261 (diff) |
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
Diffstat (limited to 'common')
-rw-r--r-- | common/fmq/aidl/Android.bp | 21 | ||||
-rw-r--r-- | common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/android/hardware/common/fmq/GrantorDescriptor.aidl (renamed from common/aidl/aidl_api/android.hardware.common/current/android/hardware/common/GrantorDescriptor.aidl) | 2 | ||||
-rw-r--r-- | common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/android/hardware/common/fmq/MQDescriptor.aidl (renamed from common/aidl/aidl_api/android.hardware.common/current/android/hardware/common/MQDescriptor.aidl) | 4 | ||||
-rw-r--r-- | common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/android/hardware/common/fmq/SynchronizedReadWrite.aidl (renamed from common/aidl/aidl_api/android.hardware.common/current/android/hardware/common/SynchronizedReadWrite.aidl) | 2 | ||||
-rw-r--r-- | common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/android/hardware/common/fmq/UnsynchronizedWrite.aidl (renamed from common/aidl/aidl_api/android.hardware.common/current/android/hardware/common/UnsynchronizedWrite.aidl) | 2 | ||||
-rw-r--r-- | common/fmq/aidl/android/hardware/common/fmq/GrantorDescriptor.aidl (renamed from common/aidl/android/hardware/common/GrantorDescriptor.aidl) | 2 | ||||
-rw-r--r-- | common/fmq/aidl/android/hardware/common/fmq/MQDescriptor.aidl (renamed from common/aidl/android/hardware/common/MQDescriptor.aidl) | 4 | ||||
-rw-r--r-- | common/fmq/aidl/android/hardware/common/fmq/SynchronizedReadWrite.aidl (renamed from common/aidl/android/hardware/common/SynchronizedReadWrite.aidl) | 2 | ||||
-rw-r--r-- | common/fmq/aidl/android/hardware/common/fmq/UnsynchronizedWrite.aidl (renamed from common/aidl/android/hardware/common/UnsynchronizedWrite.aidl) | 2 |
9 files changed, 31 insertions, 10 deletions
diff --git a/common/fmq/aidl/Android.bp b/common/fmq/aidl/Android.bp new file mode 100644 index 0000000000..004adab514 --- /dev/null +++ b/common/fmq/aidl/Android.bp @@ -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, + }, + }, +} diff --git a/common/aidl/aidl_api/android.hardware.common/current/android/hardware/common/GrantorDescriptor.aidl b/common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/android/hardware/common/fmq/GrantorDescriptor.aidl index 07bceb0e06..7ac1930715 100644 --- a/common/aidl/aidl_api/android.hardware.common/current/android/hardware/common/GrantorDescriptor.aidl +++ b/common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/android/hardware/common/fmq/GrantorDescriptor.aidl @@ -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; diff --git a/common/aidl/aidl_api/android.hardware.common/current/android/hardware/common/MQDescriptor.aidl b/common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/android/hardware/common/fmq/MQDescriptor.aidl index c9fe1d7e8d..26073691f1 100644 --- a/common/aidl/aidl_api/android.hardware.common/current/android/hardware/common/MQDescriptor.aidl +++ b/common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/android/hardware/common/fmq/MQDescriptor.aidl @@ -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; diff --git a/common/aidl/aidl_api/android.hardware.common/current/android/hardware/common/SynchronizedReadWrite.aidl b/common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/android/hardware/common/fmq/SynchronizedReadWrite.aidl index aec3d6dfd3..2142bdbd13 100644 --- a/common/aidl/aidl_api/android.hardware.common/current/android/hardware/common/SynchronizedReadWrite.aidl +++ b/common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/android/hardware/common/fmq/SynchronizedReadWrite.aidl @@ -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, diff --git a/common/aidl/aidl_api/android.hardware.common/current/android/hardware/common/UnsynchronizedWrite.aidl b/common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/android/hardware/common/fmq/UnsynchronizedWrite.aidl index e390d20bce..1220674e13 100644 --- a/common/aidl/aidl_api/android.hardware.common/current/android/hardware/common/UnsynchronizedWrite.aidl +++ b/common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/android/hardware/common/fmq/UnsynchronizedWrite.aidl @@ -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, diff --git a/common/aidl/android/hardware/common/GrantorDescriptor.aidl b/common/fmq/aidl/android/hardware/common/fmq/GrantorDescriptor.aidl index 3552e9e847..ca69d94d55 100644 --- a/common/aidl/android/hardware/common/GrantorDescriptor.aidl +++ b/common/fmq/aidl/android/hardware/common/fmq/GrantorDescriptor.aidl @@ -14,7 +14,7 @@ * limitations under the License. */ -package android.hardware.common; +package android.hardware.common.fmq; /* * Included in MQDescriptor, for use with libfmq. diff --git a/common/aidl/android/hardware/common/MQDescriptor.aidl b/common/fmq/aidl/android/hardware/common/fmq/MQDescriptor.aidl index 7e89b15f56..82917d6fbe 100644 --- a/common/aidl/android/hardware/common/MQDescriptor.aidl +++ b/common/fmq/aidl/android/hardware/common/fmq/MQDescriptor.aidl @@ -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, diff --git a/common/aidl/android/hardware/common/SynchronizedReadWrite.aidl b/common/fmq/aidl/android/hardware/common/fmq/SynchronizedReadWrite.aidl index ef93bf2aba..8c334423e0 100644 --- a/common/aidl/android/hardware/common/SynchronizedReadWrite.aidl +++ b/common/fmq/aidl/android/hardware/common/fmq/SynchronizedReadWrite.aidl @@ -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 diff --git a/common/aidl/android/hardware/common/UnsynchronizedWrite.aidl b/common/fmq/aidl/android/hardware/common/fmq/UnsynchronizedWrite.aidl index aa27c8d029..24c4cce74c 100644 --- a/common/aidl/android/hardware/common/UnsynchronizedWrite.aidl +++ b/common/fmq/aidl/android/hardware/common/fmq/UnsynchronizedWrite.aidl @@ -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 |