diff options
Diffstat (limited to 'aidl')
-rw-r--r-- | aidl/android/gsi/IGsiService.aidl | 13 | ||||
-rw-r--r-- | aidl/android/gsi/IGsiServiceCallback.aidl | 22 |
2 files changed, 35 insertions, 0 deletions
diff --git a/aidl/android/gsi/IGsiService.aidl b/aidl/android/gsi/IGsiService.aidl index 65050fe..5503493 100644 --- a/aidl/android/gsi/IGsiService.aidl +++ b/aidl/android/gsi/IGsiService.aidl @@ -18,6 +18,7 @@ package android.gsi; import android.gsi.AvbPublicKey; import android.gsi.GsiProgress; +import android.gsi.IGsiServiceCallback; import android.gsi.IImageService; import android.os.ParcelFileDescriptor; @@ -86,6 +87,12 @@ interface IGsiService { int enableGsi(boolean oneShot, @utf8InCpp String dsuSlot); /** + * Asynchronous enableGsi + * @param result callback for result + */ + oneway void enableGsiAsync(boolean oneShot, @utf8InCpp String dsuSlot, IGsiServiceCallback result); + + /** * @return True if Gsi is enabled */ boolean isGsiEnabled(); @@ -110,6 +117,12 @@ interface IGsiService { boolean removeGsi(); /** + * Asynchronous removeGsi + * @param result callback for result + */ + oneway void removeGsiAsync(IGsiServiceCallback result); + + /** * Disables a GSI install. The image and userdata will be retained, but can * be re-enabled at any time with setGsiBootable. */ diff --git a/aidl/android/gsi/IGsiServiceCallback.aidl b/aidl/android/gsi/IGsiServiceCallback.aidl new file mode 100644 index 0000000..a764ecd --- /dev/null +++ b/aidl/android/gsi/IGsiServiceCallback.aidl @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2020 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.gsi; + +/** {@hide} */ +oneway interface IGsiServiceCallback { + void onResult(int result); +} |