diff options
author | Pawin Vongmasa <pawin@google.com> | 2019-11-12 19:33:23 -0800 |
---|---|---|
committer | Devin Moore <devinmoore@google.com> | 2020-07-15 14:36:31 -0700 |
commit | ae120eef52731c78dca045ce3bc610a2664a6970 (patch) | |
tree | 68a4146336b9fb0b1b2c1db8a97ed99196de4d25 /common | |
parent | 32a90a06f435d3f180af2af3b4bf1ee358803cf7 (diff) |
Add AIDL type for HardwareBuffer
This includes other types needed by HardwareBuffer.
Test: Builds
Bug: 145839204
Change-Id: I86c9d2f0cb04b597da9a93b7b6210b041312e1ac
Merged-In: I86c9d2f0cb04b597da9a93b7b6210b041312e1ac
(cherry picked from commit d53513312751f509d0c4f8944b1ae1d24e18660c)
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; +} |