blob: afa9a8ca1af08d207eb4f9c65c946b6978d61d99 [file] [log] [blame]
Roshan Pius720f4bd2017-01-18 09:45:46 -08001component_class: HAL_HIDL
2component_type_version: 1.0
3component_name: "ISupplicantP2pIface"
4
5package: "android.hardware.wifi.supplicant"
6
7import: "android.hardware.wifi.supplicant@1.0::ISupplicantIface"
8import: "android.hardware.wifi.supplicant@1.0::ISupplicantP2pIfaceCallback"
9import: "android.hardware.wifi.supplicant@1.0::types"
10
11interface: {
12 attribute: {
13 name: "::android::hardware::wifi::supplicant::V1_0::ISupplicantIface::ParamSizeLimits"
14 type: TYPE_ENUM
15 enum_value: {
16 scalar_type: "uint32_t"
17
18 enumerator: "WPS_DEVICE_NAME_MAX_LEN"
19 scalar_value: {
20 uint32_t: 32
21 }
22 enumerator: "WPS_MANUFACTURER_MAX_LEN"
23 scalar_value: {
24 uint32_t: 64
25 }
26 enumerator: "WPS_MODEL_NAME_MAX_LEN"
27 scalar_value: {
28 uint32_t: 32
29 }
30 enumerator: "WPS_MODEL_NUMBER_MAX_LEN"
31 scalar_value: {
32 uint32_t: 32
33 }
34 enumerator: "WPS_SERIAL_NUMBER_MAX_LEN"
35 scalar_value: {
36 uint32_t: 32
37 }
38 }
39 }
40
41 attribute: {
42 name: "::android::hardware::wifi::supplicant::V1_0::ISupplicantP2pIface::WpsProvisionMethod"
43 type: TYPE_ENUM
44 enum_value: {
45 scalar_type: "uint32_t"
46
47 enumerator: "PBC"
48 scalar_value: {
49 uint32_t: 0
50 }
51 enumerator: "DISPLAY"
52 scalar_value: {
53 uint32_t: 1
54 }
55 enumerator: "KEYPAD"
56 scalar_value: {
57 uint32_t: 2
58 }
59 }
60 }
61
62 attribute: {
63 name: "::android::hardware::wifi::supplicant::V1_0::ISupplicantP2pIface::FreqRange"
64 type: TYPE_STRUCT
65 struct_value: {
66 name: "min"
67 type: TYPE_SCALAR
68 scalar_type: "uint32_t"
69 }
70 struct_value: {
71 name: "max"
72 type: TYPE_SCALAR
73 scalar_type: "uint32_t"
74 }
75 }
76
77 attribute: {
78 name: "::android::hardware::wifi::supplicant::V1_0::ISupplicantP2pIface::MiracastMode"
79 type: TYPE_ENUM
80 enum_value: {
81 scalar_type: "uint8_t"
82
83 enumerator: "DISABLED"
84 scalar_value: {
85 uint8_t: 0
86 }
87 enumerator: "SOURCE"
88 scalar_value: {
89 uint8_t: 1
90 }
91 enumerator: "SINK"
92 scalar_value: {
93 uint8_t: 2
94 }
95 }
96 }
97
98 api: {
99 name: "getName"
100 return_type_hidl: {
101 type: TYPE_STRUCT
102 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
103 }
104 return_type_hidl: {
105 type: TYPE_STRING
106 }
107 }
108
109 api: {
110 name: "getType"
111 return_type_hidl: {
112 type: TYPE_STRUCT
113 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
114 }
115 return_type_hidl: {
116 type: TYPE_ENUM
117 predefined_type: "::android::hardware::wifi::supplicant::V1_0::IfaceType"
118 }
119 }
120
121 api: {
122 name: "addNetwork"
123 return_type_hidl: {
124 type: TYPE_STRUCT
125 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
126 }
127 return_type_hidl: {
128 type: TYPE_HIDL_INTERFACE
129 predefined_type: "ISupplicantNetwork"
130 is_callback: false
131 }
132 }
133
134 api: {
135 name: "removeNetwork"
136 return_type_hidl: {
137 type: TYPE_STRUCT
138 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
139 }
140 arg: {
141 type: TYPE_SCALAR
142 scalar_type: "uint32_t"
143 }
144 }
145
146 api: {
147 name: "getNetwork"
148 return_type_hidl: {
149 type: TYPE_STRUCT
150 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
151 }
152 return_type_hidl: {
153 type: TYPE_HIDL_INTERFACE
154 predefined_type: "ISupplicantNetwork"
155 is_callback: false
156 }
157 arg: {
158 type: TYPE_SCALAR
159 scalar_type: "uint32_t"
160 }
161 }
162
163 api: {
164 name: "listNetworks"
165 return_type_hidl: {
166 type: TYPE_STRUCT
167 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
168 }
169 return_type_hidl: {
170 type: TYPE_VECTOR
171 vector_value: {
172 type: TYPE_SCALAR
173 scalar_type: "uint32_t"
174 }
175 }
176 }
177
178 api: {
179 name: "setWpsDeviceName"
180 return_type_hidl: {
181 type: TYPE_STRUCT
182 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
183 }
184 arg: {
185 type: TYPE_STRING
186 }
187 }
188
189 api: {
190 name: "setWpsManufacturer"
191 return_type_hidl: {
192 type: TYPE_STRUCT
193 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
194 }
195 arg: {
196 type: TYPE_STRING
197 }
198 }
199
200 api: {
201 name: "setWpsModelName"
202 return_type_hidl: {
203 type: TYPE_STRUCT
204 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
205 }
206 arg: {
207 type: TYPE_STRING
208 }
209 }
210
211 api: {
212 name: "setWpsModelNumber"
213 return_type_hidl: {
214 type: TYPE_STRUCT
215 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
216 }
217 arg: {
218 type: TYPE_STRING
219 }
220 }
221
222 api: {
223 name: "setWpsSerialNumber"
224 return_type_hidl: {
225 type: TYPE_STRUCT
226 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
227 }
228 arg: {
229 type: TYPE_STRING
230 }
231 }
232
233 api: {
234 name: "setWpsConfigMethods"
235 return_type_hidl: {
236 type: TYPE_STRUCT
237 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
238 }
239 arg: {
240 type: TYPE_MASK
241 predefined_type: "::android::hardware::wifi::supplicant::V1_0::WpsConfigMethods"
242 }
243 }
244
245 api: {
246 name: "registerCallback"
247 return_type_hidl: {
248 type: TYPE_STRUCT
249 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
250 }
251 arg: {
252 type: TYPE_HIDL_CALLBACK
253 predefined_type: "ISupplicantP2pIfaceCallback"
254 is_callback: true
255 }
256 }
257
258 api: {
259 name: "getDeviceAddress"
260 return_type_hidl: {
261 type: TYPE_STRUCT
262 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
263 }
264 return_type_hidl: {
265 type: TYPE_ARRAY
266 vector_value: {
267 vector_size: 6
268 type: TYPE_SCALAR
269 scalar_type: "uint8_t"
270 }
271 }
272 }
273
274 api: {
275 name: "setSsidPostfix"
276 return_type_hidl: {
277 type: TYPE_STRUCT
278 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
279 }
280 arg: {
281 type: TYPE_VECTOR
282 vector_value: {
283 type: TYPE_SCALAR
284 scalar_type: "uint8_t"
285 }
286 }
287 }
288
289 api: {
290 name: "setGroupIdle"
291 return_type_hidl: {
292 type: TYPE_STRUCT
293 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
294 }
295 arg: {
296 type: TYPE_STRING
297 }
298 arg: {
299 type: TYPE_SCALAR
300 scalar_type: "uint32_t"
301 }
302 }
303
304 api: {
305 name: "setPowerSave"
306 return_type_hidl: {
307 type: TYPE_STRUCT
308 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
309 }
310 arg: {
311 type: TYPE_STRING
312 }
313 arg: {
314 type: TYPE_SCALAR
315 scalar_type: "bool_t"
316 }
317 }
318
319 api: {
320 name: "find"
321 return_type_hidl: {
322 type: TYPE_STRUCT
323 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
324 }
325 arg: {
326 type: TYPE_SCALAR
327 scalar_type: "uint32_t"
328 }
329 }
330
331 api: {
332 name: "stopFind"
333 return_type_hidl: {
334 type: TYPE_STRUCT
335 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
336 }
337 }
338
339 api: {
340 name: "flush"
341 return_type_hidl: {
342 type: TYPE_STRUCT
343 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
344 }
345 }
346
347 api: {
348 name: "connect"
349 return_type_hidl: {
350 type: TYPE_STRUCT
351 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
352 }
353 return_type_hidl: {
354 type: TYPE_STRING
355 }
356 arg: {
357 type: TYPE_ARRAY
358 vector_value: {
359 vector_size: 6
360 type: TYPE_SCALAR
361 scalar_type: "uint8_t"
362 }
363 }
364 arg: {
365 type: TYPE_ENUM
366 predefined_type: "::android::hardware::wifi::supplicant::V1_0::ISupplicantP2pIface::WpsProvisionMethod"
367 }
368 arg: {
369 type: TYPE_STRING
370 }
371 arg: {
372 type: TYPE_SCALAR
373 scalar_type: "bool_t"
374 }
375 arg: {
376 type: TYPE_SCALAR
377 scalar_type: "bool_t"
378 }
379 arg: {
380 type: TYPE_SCALAR
381 scalar_type: "uint32_t"
382 }
383 }
384
385 api: {
386 name: "cancelConnect"
387 return_type_hidl: {
388 type: TYPE_STRUCT
389 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
390 }
391 }
392
393 api: {
394 name: "provisionDiscovery"
395 return_type_hidl: {
396 type: TYPE_STRUCT
397 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
398 }
399 arg: {
400 type: TYPE_ARRAY
401 vector_value: {
402 vector_size: 6
403 type: TYPE_SCALAR
404 scalar_type: "uint8_t"
405 }
406 }
407 arg: {
408 type: TYPE_ENUM
409 predefined_type: "::android::hardware::wifi::supplicant::V1_0::ISupplicantP2pIface::WpsProvisionMethod"
410 }
411 }
412
413 api: {
414 name: "addGroup"
415 return_type_hidl: {
416 type: TYPE_STRUCT
417 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
418 }
419 arg: {
420 type: TYPE_SCALAR
421 scalar_type: "bool_t"
422 }
423 arg: {
424 type: TYPE_SCALAR
425 scalar_type: "uint32_t"
426 }
427 }
428
429 api: {
430 name: "removeGroup"
431 return_type_hidl: {
432 type: TYPE_STRUCT
433 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
434 }
435 arg: {
436 type: TYPE_STRING
437 }
438 }
439
440 api: {
441 name: "reject"
442 return_type_hidl: {
443 type: TYPE_STRUCT
444 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
445 }
446 arg: {
447 type: TYPE_ARRAY
448 vector_value: {
449 vector_size: 6
450 type: TYPE_SCALAR
451 scalar_type: "uint8_t"
452 }
453 }
454 }
455
456 api: {
457 name: "invite"
458 return_type_hidl: {
459 type: TYPE_STRUCT
460 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
461 }
462 arg: {
463 type: TYPE_STRING
464 }
465 arg: {
466 type: TYPE_ARRAY
467 vector_value: {
468 vector_size: 6
469 type: TYPE_SCALAR
470 scalar_type: "uint8_t"
471 }
472 }
473 arg: {
474 type: TYPE_ARRAY
475 vector_value: {
476 vector_size: 6
477 type: TYPE_SCALAR
478 scalar_type: "uint8_t"
479 }
480 }
481 }
482
483 api: {
484 name: "reinvoke"
485 return_type_hidl: {
486 type: TYPE_STRUCT
487 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
488 }
489 arg: {
490 type: TYPE_SCALAR
491 scalar_type: "uint32_t"
492 }
493 arg: {
494 type: TYPE_ARRAY
495 vector_value: {
496 vector_size: 6
497 type: TYPE_SCALAR
498 scalar_type: "uint8_t"
499 }
500 }
501 }
502
503 api: {
504 name: "configureExtListen"
505 return_type_hidl: {
506 type: TYPE_STRUCT
507 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
508 }
509 arg: {
510 type: TYPE_SCALAR
511 scalar_type: "uint32_t"
512 }
513 arg: {
514 type: TYPE_SCALAR
515 scalar_type: "uint32_t"
516 }
517 }
518
519 api: {
520 name: "setListenChannel"
521 return_type_hidl: {
522 type: TYPE_STRUCT
523 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
524 }
525 arg: {
526 type: TYPE_SCALAR
527 scalar_type: "uint32_t"
528 }
529 arg: {
530 type: TYPE_SCALAR
531 scalar_type: "uint32_t"
532 }
533 }
534
535 api: {
536 name: "setDisallowedFrequencies"
537 return_type_hidl: {
538 type: TYPE_STRUCT
539 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
540 }
541 arg: {
542 type: TYPE_VECTOR
543 vector_value: {
544 type: TYPE_STRUCT
545 predefined_type: "::android::hardware::wifi::supplicant::V1_0::ISupplicantP2pIface::FreqRange"
546 }
547 }
548 }
549
550 api: {
551 name: "getSsid"
552 return_type_hidl: {
553 type: TYPE_STRUCT
554 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
555 }
556 return_type_hidl: {
557 type: TYPE_VECTOR
558 vector_value: {
559 type: TYPE_SCALAR
560 scalar_type: "uint8_t"
561 }
562 }
563 arg: {
564 type: TYPE_ARRAY
565 vector_value: {
566 vector_size: 6
567 type: TYPE_SCALAR
568 scalar_type: "uint8_t"
569 }
570 }
571 }
572
573 api: {
574 name: "getGroupCapability"
575 return_type_hidl: {
576 type: TYPE_STRUCT
577 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
578 }
579 return_type_hidl: {
580 type: TYPE_MASK
581 predefined_type: "::android::hardware::wifi::supplicant::V1_0::P2pGroupCapabilityMask"
582 }
583 arg: {
584 type: TYPE_ARRAY
585 vector_value: {
586 vector_size: 6
587 type: TYPE_SCALAR
588 scalar_type: "uint8_t"
589 }
590 }
591 }
592
593 api: {
594 name: "addBonjourService"
595 return_type_hidl: {
596 type: TYPE_STRUCT
597 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
598 }
599 arg: {
600 type: TYPE_VECTOR
601 vector_value: {
602 type: TYPE_SCALAR
603 scalar_type: "uint8_t"
604 }
605 }
606 arg: {
607 type: TYPE_VECTOR
608 vector_value: {
609 type: TYPE_SCALAR
610 scalar_type: "uint8_t"
611 }
612 }
613 }
614
615 api: {
616 name: "removeBonjourService"
617 return_type_hidl: {
618 type: TYPE_STRUCT
619 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
620 }
621 arg: {
622 type: TYPE_VECTOR
623 vector_value: {
624 type: TYPE_SCALAR
625 scalar_type: "uint8_t"
626 }
627 }
628 }
629
630 api: {
631 name: "addUpnpService"
632 return_type_hidl: {
633 type: TYPE_STRUCT
634 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
635 }
636 arg: {
637 type: TYPE_SCALAR
638 scalar_type: "uint32_t"
639 }
640 arg: {
641 type: TYPE_STRING
642 }
643 }
644
645 api: {
646 name: "removeUpnpService"
647 return_type_hidl: {
648 type: TYPE_STRUCT
649 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
650 }
651 arg: {
652 type: TYPE_SCALAR
653 scalar_type: "uint32_t"
654 }
655 arg: {
656 type: TYPE_STRING
657 }
658 }
659
660 api: {
661 name: "flushServices"
662 return_type_hidl: {
663 type: TYPE_STRUCT
664 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
665 }
666 }
667
668 api: {
669 name: "requestServiceDiscovery"
670 return_type_hidl: {
671 type: TYPE_STRUCT
672 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
673 }
674 return_type_hidl: {
675 type: TYPE_SCALAR
676 scalar_type: "uint64_t"
677 }
678 arg: {
679 type: TYPE_ARRAY
680 vector_value: {
681 vector_size: 6
682 type: TYPE_SCALAR
683 scalar_type: "uint8_t"
684 }
685 }
686 arg: {
687 type: TYPE_VECTOR
688 vector_value: {
689 type: TYPE_SCALAR
690 scalar_type: "uint8_t"
691 }
692 }
693 }
694
695 api: {
696 name: "cancelServiceDiscovery"
697 return_type_hidl: {
698 type: TYPE_STRUCT
699 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
700 }
701 arg: {
702 type: TYPE_SCALAR
703 scalar_type: "uint64_t"
704 }
705 }
706
707 api: {
708 name: "setMiracastMode"
709 return_type_hidl: {
710 type: TYPE_STRUCT
711 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
712 }
713 arg: {
714 type: TYPE_ENUM
715 predefined_type: "::android::hardware::wifi::supplicant::V1_0::ISupplicantP2pIface::MiracastMode"
716 }
717 }
718
719 api: {
720 name: "startWpsPbc"
721 return_type_hidl: {
722 type: TYPE_STRUCT
723 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
724 }
725 arg: {
726 type: TYPE_STRING
727 }
728 arg: {
729 type: TYPE_ARRAY
730 vector_value: {
731 vector_size: 6
732 type: TYPE_SCALAR
733 scalar_type: "uint8_t"
734 }
735 }
736 }
737
738 api: {
739 name: "startWpsPinKeypad"
740 return_type_hidl: {
741 type: TYPE_STRUCT
742 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
743 }
744 arg: {
745 type: TYPE_STRING
746 }
747 arg: {
748 type: TYPE_STRING
749 }
750 }
751
752 api: {
753 name: "startWpsPinDisplay"
754 return_type_hidl: {
755 type: TYPE_STRUCT
756 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
757 }
758 return_type_hidl: {
759 type: TYPE_STRING
760 }
761 arg: {
762 type: TYPE_STRING
763 }
764 arg: {
765 type: TYPE_ARRAY
766 vector_value: {
767 vector_size: 6
768 type: TYPE_SCALAR
769 scalar_type: "uint8_t"
770 }
771 }
772 }
773
774 api: {
775 name: "cancelWps"
776 return_type_hidl: {
777 type: TYPE_STRUCT
778 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
779 }
780 arg: {
781 type: TYPE_STRING
782 }
783 }
784
785 api: {
786 name: "enableWfd"
787 return_type_hidl: {
788 type: TYPE_STRUCT
789 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
790 }
791 arg: {
792 type: TYPE_SCALAR
793 scalar_type: "bool_t"
794 }
795 }
796
797 api: {
798 name: "setWfdDeviceInfo"
799 return_type_hidl: {
800 type: TYPE_STRUCT
801 predefined_type: "::android::hardware::wifi::supplicant::V1_0::SupplicantStatus"
802 }
803 arg: {
804 type: TYPE_ARRAY
805 vector_value: {
806 vector_size: 8
807 type: TYPE_SCALAR
808 scalar_type: "uint8_t"
809 }
810 }
811 }
812
813}