blob: 8fddb99b35a8184a8b0fe1663cabc721afc939a4 [file] [log] [blame]
Jeff Sharkey3a44f3f2014-04-28 17:36:31 -07001/*
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
17package android.content.pm;
18
19import android.content.pm.IPackageInstallObserver2;
Jeff Sharkeya0907432014-08-15 10:23:11 -070020import android.content.IntentSender;
Jeff Sharkey3a44f3f2014-04-28 17:36:31 -070021import android.os.ParcelFileDescriptor;
22
23/** {@hide} */
24interface IPackageInstallerSession {
Jeff Sharkey16c8e3f2014-07-24 17:08:17 -070025 void setClientProgress(float progress);
26 void addClientProgress(float progress);
Jeff Sharkey3a44f3f2014-04-28 17:36:31 -070027
Jeff Sharkeya0907432014-08-15 10:23:11 -070028 String[] getNames();
Jeff Sharkey0451de62018-02-02 11:27:21 -070029
Jeff Sharkey3a44f3f2014-04-28 17:36:31 -070030 ParcelFileDescriptor openWrite(String name, long offsetBytes, long lengthBytes);
Jeff Sharkey1cb2d0d2014-07-30 16:45:01 -070031 ParcelFileDescriptor openRead(String name);
Jeff Sharkey3a44f3f2014-04-28 17:36:31 -070032
Jeff Sharkey0451de62018-02-02 11:27:21 -070033 void write(String name, long offsetBytes, long lengthBytes, in ParcelFileDescriptor fd);
34
Todd Kennedyeb9b0532016-03-08 10:10:54 -080035 void removeSplit(String splitName);
36
Jeff Sharkey16c8e3f2014-07-24 17:08:17 -070037 void close();
Philip P. Moltmann7460c592017-08-08 20:07:11 +000038 void commit(in IntentSender statusReceiver, boolean forTransferred);
39 void transfer(in String packageName);
Jeff Sharkey16c8e3f2014-07-24 17:08:17 -070040 void abandon();
Jeff Sharkey3a44f3f2014-04-28 17:36:31 -070041}