Debian Codegraph @

core/java/android/content/pm/IPackageInstallerSession.aidl

raw
1 /*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package android.content.pm;
18
19 import android.content.pm.Checksum;
20 import android.content.pm.DataLoaderParamsParcel;
21 import android.content.pm.IOnChecksumsReadyListener;
22 import android.content.pm.IPackageInstallObserver2;
23 import android.content.IntentSender;
24 import android.os.ParcelFileDescriptor;
25
26 /** {@hide} */
27 interface IPackageInstallerSession {
28 void setClientProgress(float progress);
29 void addClientProgress(float progress);
30
31 String[] getNames();
32
33 ParcelFileDescriptor openWrite(String name, long offsetBytes, long lengthBytes);
34 ParcelFileDescriptor openRead(String name);
35
36 void write(String name, long offsetBytes, long lengthBytes, in ParcelFileDescriptor fd);
37 void stageViaHardLink(String target);
38
39 void setChecksums(String name, in Checksum[] checksums, in byte[] signature);
40 void requestChecksums(in String name, int optional, int required, in List trustedInstallers, in IOnChecksumsReadyListener onChecksumsReadyListener);
41
42 void removeSplit(String splitName);
43
44 void close();
45 void commit(in IntentSender statusReceiver, boolean forTransferred);
46 void transfer(in String packageName);
47 void abandon();
48
49 DataLoaderParamsParcel getDataLoaderParams();
50 void addFile(int location, String name, long lengthBytes, in byte[] metadata, in byte[] signature);
51 void removeFile(int location, String name);
52
53 boolean isMultiPackage();
54 int[] getChildSessionIds();
55 void addChildSessionId(in int sessionId);
56 void removeChildSessionId(in int sessionId);
57 int getParentSessionId();
58
59 boolean isStaged();
60 int getInstallFlags();
61 }