blob: 9261a601fb53d1d892ceed119aa39ed00d1b5ed9 [file] [log] [blame]
Keun Soo Yim95095c12016-10-10 13:42:31 -07001component_class: HAL_HIDL
Keun Soo Yim95095c12016-10-10 13:42:31 -07002component_type_version: 1.0
3component_name: "INfc"
4
5package: "android.hardware.nfc"
6
7import: "android.hardware.nfc@1.0::INfcClientCallback"
8import: "android.hardware.nfc@1.0::types"
9
10interface: {
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -070011 api: {
12 name: "open"
13 return_type_hidl: {
Ruchi Kandoid9b830f2016-11-21 10:59:58 -080014 type: TYPE_ENUM
15 predefined_type: "::android::hardware::nfc::V1_0::NfcStatus"
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -070016 }
17 arg: {
18 type: TYPE_HIDL_CALLBACK
19 predefined_type: "INfcClientCallback"
20 is_callback: true
21 }
Ruchi Kandoi1a6aacf2016-11-15 15:10:38 -080022 callflow: {
23 entry: true
24 }
25 callflow: {
26 next: "write"
27 next: "coreInitialized"
28 next: "prediscover"
29 next: "powerCycle"
30 next: "controlGranted"
31 }
Keun Soo Yim95095c12016-10-10 13:42:31 -070032 }
Keun Soo Yim95095c12016-10-10 13:42:31 -070033
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -070034 api: {
35 name: "write"
36 return_type_hidl: {
37 type: TYPE_SCALAR
Ruchi Kandoid9b830f2016-11-21 10:59:58 -080038 scalar_type: "uint32_t"
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -070039 }
40 arg: {
41 type: TYPE_VECTOR
42 vector_value: {
43 type: TYPE_SCALAR
44 scalar_type: "uint8_t"
45 }
46 }
Ruchi Kandoi1a6aacf2016-11-15 15:10:38 -080047 callflow: {
48 next: "write"
49 next: "prediscover"
50 next: "coreInitialized"
51 next: "close"
52 next: "powerCycle"
53 next: "controlGranted"
54 }
Keun Soo Yim95095c12016-10-10 13:42:31 -070055 }
Keun Soo Yim95095c12016-10-10 13:42:31 -070056
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -070057 api: {
58 name: "coreInitialized"
59 return_type_hidl: {
Ruchi Kandoid9b830f2016-11-21 10:59:58 -080060 type: TYPE_ENUM
61 predefined_type: "::android::hardware::nfc::V1_0::NfcStatus"
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -070062 }
63 arg: {
64 type: TYPE_VECTOR
65 vector_value: {
66 type: TYPE_SCALAR
67 scalar_type: "uint8_t"
68 }
69 }
Ruchi Kandoi1a6aacf2016-11-15 15:10:38 -080070 callflow: {
71 next: "write"
72 next: "prediscover"
73 next: "close"
74 }
Keun Soo Yim95095c12016-10-10 13:42:31 -070075 }
Keun Soo Yim95095c12016-10-10 13:42:31 -070076
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -070077 api: {
78 name: "prediscover"
79 return_type_hidl: {
Ruchi Kandoid9b830f2016-11-21 10:59:58 -080080 type: TYPE_ENUM
81 predefined_type: "::android::hardware::nfc::V1_0::NfcStatus"
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -070082 }
Ruchi Kandoi1a6aacf2016-11-15 15:10:38 -080083 callflow: {
84 next: "write"
85 next: "close"
86 next: "coreInitialized"
87 next: "powerCycle"
88 next: "controlGranted"
89 }
Ruchi Kandoi6360a882016-11-15 15:10:38 -080090 callflow: {
91 next: "write"
92 next: "close"
93 next: "coreInitialized"
94 next: "powerCycle"
95 next: "controlGranted"
96 }
Keun Soo Yim95095c12016-10-10 13:42:31 -070097 }
Keun Soo Yim95095c12016-10-10 13:42:31 -070098
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -070099 api: {
100 name: "close"
101 return_type_hidl: {
Ruchi Kandoid9b830f2016-11-21 10:59:58 -0800102 type: TYPE_ENUM
103 predefined_type: "::android::hardware::nfc::V1_0::NfcStatus"
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -0700104 }
Ruchi Kandoi1a6aacf2016-11-15 15:10:38 -0800105 callflow: {
106 exit: true
107 }
Ruchi Kandoi6360a882016-11-15 15:10:38 -0800108 callflow: {
109 exit: true
110 }
Keun Soo Yim95095c12016-10-10 13:42:31 -0700111 }
Keun Soo Yim95095c12016-10-10 13:42:31 -0700112
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -0700113 api: {
114 name: "controlGranted"
115 return_type_hidl: {
Ruchi Kandoid9b830f2016-11-21 10:59:58 -0800116 type: TYPE_ENUM
117 predefined_type: "::android::hardware::nfc::V1_0::NfcStatus"
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -0700118 }
Ruchi Kandoi1a6aacf2016-11-15 15:10:38 -0800119 callflow: {
120 next: "write"
121 next: "close"
122 next: "prediscover"
123 next: "coreInitialized"
124 next: "powerCycle"
125 }
Ruchi Kandoi6360a882016-11-15 15:10:38 -0800126 callflow: {
127 next: "write"
128 next: "close"
129 next: "prediscover"
130 next: "coreInitialized"
131 next: "powerCycle"
132 }
Keun Soo Yim95095c12016-10-10 13:42:31 -0700133 }
Keun Soo Yim95095c12016-10-10 13:42:31 -0700134
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -0700135 api: {
136 name: "powerCycle"
137 return_type_hidl: {
Ruchi Kandoid9b830f2016-11-21 10:59:58 -0800138 type: TYPE_ENUM
139 predefined_type: "::android::hardware::nfc::V1_0::NfcStatus"
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -0700140 }
Ruchi Kandoi1a6aacf2016-11-15 15:10:38 -0800141 callflow: {
142 next: "write"
143 next: "coreInitialized"
144 next: "prediscover"
145 next: "controlGranted"
146 next: "close"
147 }
Ruchi Kandoi6360a882016-11-15 15:10:38 -0800148 callflow: {
149 next: "write"
150 next: "coreInitialized"
151 next: "prediscover"
152 next: "controlGranted"
153 next: "close"
154 }
Keun Soo Yim95095c12016-10-10 13:42:31 -0700155 }
Zhuoyao Zhang8dc4ba12016-10-11 10:03:46 -0700156
Keun Soo Yim95095c12016-10-10 13:42:31 -0700157}