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 19be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkeyimport com.android.internal.os.IParcelFileDescriptorFactory; 20a2b6c3775ed6b8924232d6a01bae4a19740a15f8Suchi Amalapurapuimport android.content.pm.PackageInfoLite; 21a02b8b05dd1e8b8cf169e1f89542ef835b11fc13Kenny Rootimport android.content.res.ObbInfo; 22c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapu 23c028be4f3b8c7476b46859f66c3f33d528adf181Suchi Amalapurapuinterface IMediaContainerService { 24be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey String copyPackageToContainer(String packagePath, String containerId, String key, 25be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey boolean isExternal, boolean isForwardLocked, String abiOverride); 26be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey int copyPackage(String packagePath, in IParcelFileDescriptorFactory target); 27be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey 28742e790294b3441b79f715fe447069b63c6065dbJeff Sharkey PackageInfoLite getMinimalPackageInfo(String packagePath, int flags, String abiOverride); 2957dcf5b177b56195421535938544f32d8b591b42Jeff Sharkey ObbInfo getObbInfo(String filename); 3057dcf5b177b56195421535938544f32d8b591b42Jeff Sharkey long calculateDirectorySize(String directory); 319cbe986a446dffea2e9f59b86800f834b02d766aJeff Sharkey /** Return file system stats: [0] is total bytes, [1] is available bytes */ 3257dcf5b177b56195421535938544f32d8b591b42Jeff Sharkey long[] getFileSystemStats(String path); 3357dcf5b177b56195421535938544f32d8b591b42Jeff Sharkey void clearDirectory(String directory); 3457dcf5b177b56195421535938544f32d8b591b42Jeff Sharkey long calculateInstalledSize(String packagePath, boolean isForwardLocked, String abiOverride); 3502c8730c1bf19daf48bec8c6995df676a00a73b1Kenny Root} 36