Roshan Pius | 720f4bd | 2017-01-18 09:45:46 -0800 | [diff] [blame^] | 1 | component_class: HAL_HIDL |
| 2 | component_type_version: 1.0 |
| 3 | component_name: "IWifi" |
| 4 | |
| 5 | package: "android.hardware.wifi" |
| 6 | |
| 7 | import: "android.hardware.wifi@1.0::IWifiChip" |
| 8 | import: "android.hardware.wifi@1.0::IWifiEventCallback" |
| 9 | import: "android.hardware.wifi@1.0::types" |
| 10 | |
| 11 | interface: { |
| 12 | api: { |
| 13 | name: "registerEventCallback" |
| 14 | return_type_hidl: { |
| 15 | type: TYPE_STRUCT |
| 16 | predefined_type: "::android::hardware::wifi::V1_0::WifiStatus" |
| 17 | } |
| 18 | arg: { |
| 19 | type: TYPE_HIDL_CALLBACK |
| 20 | predefined_type: "IWifiEventCallback" |
| 21 | is_callback: true |
| 22 | } |
| 23 | callflow: { |
| 24 | entry: true |
| 25 | } |
| 26 | callflow: { |
| 27 | next: "*" |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | api: { |
| 32 | name: "isStarted" |
| 33 | return_type_hidl: { |
| 34 | type: TYPE_SCALAR |
| 35 | scalar_type: "bool_t" |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | api: { |
| 40 | name: "start" |
| 41 | return_type_hidl: { |
| 42 | type: TYPE_STRUCT |
| 43 | predefined_type: "::android::hardware::wifi::V1_0::WifiStatus" |
| 44 | } |
| 45 | callflow: { |
| 46 | entry: true |
| 47 | } |
| 48 | callflow: { |
| 49 | next: "registerEventCallback" |
| 50 | next: "start" |
| 51 | next: "stop" |
| 52 | next: "getChip" |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | api: { |
| 57 | name: "stop" |
| 58 | return_type_hidl: { |
| 59 | type: TYPE_STRUCT |
| 60 | predefined_type: "::android::hardware::wifi::V1_0::WifiStatus" |
| 61 | } |
| 62 | callflow: { |
| 63 | exit: true |
| 64 | } |
| 65 | callflow: { |
| 66 | next: "registerEventCallback" |
| 67 | next: "start" |
| 68 | next: "stop" |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | api: { |
| 73 | name: "getChipIds" |
| 74 | return_type_hidl: { |
| 75 | type: TYPE_STRUCT |
| 76 | predefined_type: "::android::hardware::wifi::V1_0::WifiStatus" |
| 77 | } |
| 78 | return_type_hidl: { |
| 79 | type: TYPE_VECTOR |
| 80 | vector_value: { |
| 81 | type: TYPE_SCALAR |
| 82 | scalar_type: "uint32_t" |
| 83 | } |
| 84 | } |
| 85 | callflow: { |
| 86 | next: "*" |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | api: { |
| 91 | name: "getChip" |
| 92 | return_type_hidl: { |
| 93 | type: TYPE_STRUCT |
| 94 | predefined_type: "::android::hardware::wifi::V1_0::WifiStatus" |
| 95 | } |
| 96 | return_type_hidl: { |
| 97 | type: TYPE_HIDL_INTERFACE |
| 98 | predefined_type: "IWifiChip" |
| 99 | is_callback: false |
| 100 | } |
| 101 | arg: { |
| 102 | type: TYPE_SCALAR |
| 103 | scalar_type: "uint32_t" |
| 104 | } |
| 105 | callflow: { |
| 106 | next: "*" |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | } |