1c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu/*
2c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu * Copyright (C) 2008 The Android Open Source Project
3c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu *
4c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu * Licensed under the Apache License, Version 2.0 (the "License");
5c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu * you may not use this file except in compliance with the License.
6c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu * You may obtain a copy of the License at
7c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu *
8c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu *      http://www.apache.org/licenses/LICENSE-2.0
9c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu *
10c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu * Unless required by applicable law or agreed to in writing, software
11c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu * distributed under the License is distributed on an "AS IS" BASIS,
12c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu * See the License for the specific language governing permissions and
14c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu * limitations under the License.
15c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu */
16c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu
17c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapupackage com.android.internal.app;
18c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu
19c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapuimport android.net.Uri;
20c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapuimport android.os.ParcelFileDescriptor;
21ceb1b0bfaea56251796b08c07b963de7403d84ebAnonymous Cowardimport android.content.pm.ContainerEncryptionParams;
22a2b6c3775ed6b8924232d6a01bae4a19740a15f8Suchi Amalapurapuimport android.content.pm.PackageInfoLite;
23a02b8b05dd1e8b8cf169e1f89542ef835b11fc13Kenny Rootimport android.content.res.ObbInfo;
24c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu
25c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapuinterface IMediaContainerService {
266dceb88f1c7c42c6ab43834af2c993d599895d82Kenny Root    String copyResourceToContainer(in Uri packageURI, String containerId, String key,
276dceb88f1c7c42c6ab43834af2c993d599895d82Kenny Root            String resFileName, String publicResFileName, boolean isExternal,
286dceb88f1c7c42c6ab43834af2c993d599895d82Kenny Root            boolean isForwardLocked);
29ceb1b0bfaea56251796b08c07b963de7403d84ebAnonymous Coward    int copyResource(in Uri packageURI, in ContainerEncryptionParams encryptionParams,
30ceb1b0bfaea56251796b08c07b963de7403d84ebAnonymous Coward            in ParcelFileDescriptor outStream);
31ceb1b0bfaea56251796b08c07b963de7403d84ebAnonymous Coward    PackageInfoLite getMinimalPackageInfo(in String packagePath, in int flags, in long threshold);
326dceb88f1c7c42c6ab43834af2c993d599895d82Kenny Root    boolean checkInternalFreeStorage(in Uri fileUri, boolean isForwardLocked, in long threshold);
336dceb88f1c7c42c6ab43834af2c993d599895d82Kenny Root    boolean checkExternalFreeStorage(in Uri fileUri, boolean isForwardLocked);
34aa183e2c9a279cb6aef7dc77855facfae795b6f8Kenny Root    ObbInfo getObbInfo(in String filename);
35aa183e2c9a279cb6aef7dc77855facfae795b6f8Kenny Root    long calculateDirectorySize(in String directory);
369cbe986a446dffea2e9f59b86800f834b02d766aJeff Sharkey    /** Return file system stats: [0] is total bytes, [1] is available bytes */
379cbe986a446dffea2e9f59b86800f834b02d766aJeff Sharkey    long[] getFileSystemStats(in String path);
38183ce028f10442dd6ada59de8fa531d690134663Dianne Hackborn    void clearDirectory(in String directory);
39cea3743499f4bb8e5f28a2e57686d7af313169c5Kenny Root    long calculateInstalledSize(in String packagePath, boolean isForwardLocked);
4002c8730c1bf19daf48bec8c6995df676a00a73b1Kenny Root}
41