1/** 2 * Copyright (C) 2018 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.hardware.fastboot@1.0; 18 19enum Status : uint32_t { 20 /** 21 * Operation completed without errors. 22 */ 23 SUCCESS, 24 /** 25 * Unsupported operation. 26 */ 27 NOT_SUPPORTED, 28 /** 29 * Bad argument. 30 */ 31 INVALID_ARGUMENT, 32 /** 33 * Operation failed due to unknown reason. 34 */ 35 FAILURE_UNKNOWN 36}; 37 38enum FileSystemType : uint8_t { 39 /** 40 * Fourth extended file system. 41 */ 42 EXT4, 43 /** 44 * Flash Friendly File System. 45 */ 46 F2FS, 47 /** 48 * Raw file system. 49 */ 50 RAW 51}; 52 53struct Result { 54 Status status; 55 /** 56 * Message pertaining to the status. It must be a failure message for 57 * Status FAILURE_UNKNOWN/NOT_SUPPORTED or an informative message for 58 * Status SUCCESS. 59 */ 60 string message; 61}; 62