From 000b5b5bf6087796e1644baac038455330fd410c Mon Sep 17 00:00:00 2001 From: Songchun Fan Date: Wed, 4 Dec 2019 12:17:38 -0800 Subject: [PATCH] [incremental] parcelable for incfs file descriptors This parcelable is used to pass incfs fds from vold to system_server. Test: builds Change-Id: I7f0af8798d12815fbae404afabf4a88229a705da Merged-In: Ifc3a43633356951b239486d66ee80d120bc4ab76 --- Android.bp | 25 +++++++++++++++++ .../IncrementalFileSystemControlParcel.aidl | 27 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl diff --git a/Android.bp b/Android.bp index 100f70d0f2dde..96fd5855de62f 100644 --- a/Android.bp +++ b/Android.bp @@ -771,6 +771,31 @@ cc_library { }, } +filegroup { + name: "incremental_aidl", + srcs: [ + "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl", + ], + path: "core/java", +} + +aidl_interface { + name: "libincremental_aidl", + srcs: [ + ":incremental_aidl", + ], + backend: { + java: { + sdk_version: "28", + }, + cpp: { + enabled: true, + }, + ndk: { + enabled: true, + }, + }, +} gensrcs { name: "gen-platform-proto-constants", diff --git a/core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl b/core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl new file mode 100644 index 0000000000000..0ae353d2741f3 --- /dev/null +++ b/core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl @@ -0,0 +1,27 @@ +/* + * Copyright (C) 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.os.incremental; + +/** + * Wraps two file descriptors that Incremental Service uses to communicate + * with Incremental FileSystem. + * @hide + */ +parcelable IncrementalFileSystemControlParcel { + @nullable ParcelFileDescriptor cmd; + @nullable ParcelFileDescriptor log; +}