1 /* 2 * Copyright (C) 2007 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.os.storage; 18 19 /** 20 * Class that provides access to constants returned from StorageManager 21 * and lower level MountService APIs. 22 * 23 * @hide 24 */ 25 public class StorageResultCode 26 { 27 /** 28 * Operation succeeded. 29 * @see android.os.storage.StorageManager 30 */ 31 public static final int OperationSucceeded = 0; 32 33 /** 34 * Operation failed: Internal error. 35 * @see android.os.storage.StorageManager 36 */ 37 public static final int OperationFailedInternalError = -1; 38 39 /** 40 * Operation failed: Missing media. 41 * @see android.os.storage.StorageManager 42 */ 43 public static final int OperationFailedNoMedia = -2; 44 45 /** 46 * Operation failed: Media is blank. 47 * @see android.os.storage.StorageManager 48 */ 49 public static final int OperationFailedMediaBlank = -3; 50 51 /** 52 * Operation failed: Media is corrupt. 53 * @see android.os.storage.StorageManager 54 */ 55 public static final int OperationFailedMediaCorrupt = -4; 56 57 /** 58 * Operation failed: Storage not mounted. 59 * @see android.os.storage.StorageManager 60 */ 61 public static final int OperationFailedStorageNotMounted = -5; 62 63 /** 64 * Operation failed: Storage is mounted. 65 * @see android.os.storage.StorageManager 66 */ 67 public static final int OperationFailedStorageMounted = -6; 68 69 /** 70 * Operation failed: Storage is busy. 71 * @see android.os.storage.StorageManager 72 */ 73 public static final int OperationFailedStorageBusy = -7; 74 75 } 76