Ryan Campbell | 548f2a0 | 2016-11-07 09:27:51 -0800 | [diff] [blame] | 1 | component_class: HAL_HIDL |
| 2 | component_type_version: 1.0 |
| 3 | component_name: "IBootControl" |
| 4 | |
| 5 | package: "android.hardware.boot" |
| 6 | |
| 7 | import: "android.hardware.boot@1.0::types" |
| 8 | |
| 9 | interface: { |
| 10 | api: { |
| 11 | name: "getNumberSlots" |
| 12 | return_type_hidl: { |
| 13 | type: TYPE_SCALAR |
| 14 | scalar_type: "uint32_t" |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | api: { |
| 19 | name: "getCurrentSlot" |
| 20 | return_type_hidl: { |
| 21 | type: TYPE_SCALAR |
| 22 | scalar_type: "uint32_t" |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | api: { |
| 27 | name: "markBootSuccessful" |
| 28 | return_type_hidl: { |
| 29 | type: TYPE_STRUCT |
| 30 | predefined_type: "::android::hardware::boot::V1_0::CommandResult" |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | api: { |
| 35 | name: "setActiveBootSlot" |
| 36 | return_type_hidl: { |
| 37 | type: TYPE_STRUCT |
| 38 | predefined_type: "::android::hardware::boot::V1_0::CommandResult" |
| 39 | } |
| 40 | arg: { |
| 41 | type: TYPE_SCALAR |
| 42 | scalar_type: "uint32_t" |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | api: { |
| 47 | name: "setSlotAsUnbootable" |
| 48 | return_type_hidl: { |
| 49 | type: TYPE_STRUCT |
| 50 | predefined_type: "::android::hardware::boot::V1_0::CommandResult" |
| 51 | } |
| 52 | arg: { |
| 53 | type: TYPE_SCALAR |
| 54 | scalar_type: "uint32_t" |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | api: { |
| 59 | name: "isSlotBootable" |
| 60 | return_type_hidl: { |
| 61 | type: TYPE_ENUM |
| 62 | predefined_type: "::android::hardware::boot::V1_0::BoolResult" |
| 63 | } |
| 64 | arg: { |
| 65 | type: TYPE_SCALAR |
| 66 | scalar_type: "uint32_t" |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | api: { |
| 71 | name: "isSlotMarkedSuccessful" |
| 72 | return_type_hidl: { |
| 73 | type: TYPE_ENUM |
| 74 | predefined_type: "::android::hardware::boot::V1_0::BoolResult" |
| 75 | } |
| 76 | arg: { |
| 77 | type: TYPE_SCALAR |
| 78 | scalar_type: "uint32_t" |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | api: { |
| 83 | name: "getSuffix" |
| 84 | return_type_hidl: { |
| 85 | type: TYPE_STRING |
| 86 | } |
| 87 | arg: { |
| 88 | type: TYPE_SCALAR |
| 89 | scalar_type: "uint32_t" |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | } |