diff options
author | Pawin Vongmasa <pawin@google.com> | 2019-11-12 19:33:23 -0800 |
---|---|---|
committer | Pawin Vongmasa <pawin@google.com> | 2019-12-13 17:28:57 -0800 |
commit | d53513312751f509d0c4f8944b1ae1d24e18660c (patch) | |
tree | 12cea5bcaed15f564aac8525417bf402c0d3b73a /common | |
parent | 9ee9aa050d6e74dde0f729857fb35032b0045722 (diff) | |
download | platform_hardware_interfaces-d53513312751f509d0c4f8944b1ae1d24e18660c.tar.gz platform_hardware_interfaces-d53513312751f509d0c4f8944b1ae1d24e18660c.tar.bz2 platform_hardware_interfaces-d53513312751f509d0c4f8944b1ae1d24e18660c.zip |
Add AIDL type for HardwareBuffer
This includes other types needed by HardwareBuffer.
Test: Builds
Bug: 145839204
Change-Id: I86c9d2f0cb04b597da9a93b7b6210b041312e1ac
Diffstat (limited to 'common')
-rw-r--r-- | common/aidl/Android.bp | 21 | ||||
-rw-r--r-- | common/aidl/android/hardware/common/NativeHandle.aidl | 26 |
2 files changed, 47 insertions, 0 deletions
diff --git a/common/aidl/Android.bp b/common/aidl/Android.bp new file mode 100644 index 0000000000..6f2d292930 --- /dev/null +++ b/common/aidl/Android.bp @@ -0,0 +1,21 @@ +aidl_interface { + name: "vintf-common", + host_supported: true, + vendor_available: true, + vndk: { + enabled: true, + support_system_process: true, + }, + srcs: [ + "android/hardware/common/*.aidl", + ], + stability: "vintf", + backend: { + java: { + enabled: false, + }, + cpp: { + enabled: false, + }, + }, +} diff --git a/common/aidl/android/hardware/common/NativeHandle.aidl b/common/aidl/android/hardware/common/NativeHandle.aidl new file mode 100644 index 0000000000..2c250a2ac1 --- /dev/null +++ b/common/aidl/android/hardware/common/NativeHandle.aidl @@ -0,0 +1,26 @@ +/* + * Copyright 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.hardware.common; + +/** + * Representation of a native handle. + */ +@VintfStability +parcelable NativeHandle { + ParcelFileDescriptor[] fds; + int[] ints; +} |