blob: db6b1ff777340853cbe34f82262d3bdceb856761 [file] [log] [blame]
Chia-I Wub00f59d2017-01-13 14:47:23 +08001component_class: HAL_HIDL
2component_type_version: 2.1
3component_name: "IComposerClient"
4
5package: "android.hardware.graphics.composer"
6
7import: "android.hardware.graphics.common@1.0::types"
8import: "android.hardware.graphics.composer@2.1::IComposerCallback"
9import: "android.hardware.graphics.composer@2.1::types"
10
11interface: {
12 attribute: {
13 name: "::android::hardware::graphics::composer::V2_1::IComposerClient::Attribute"
14 type: TYPE_ENUM
15 enum_value: {
16 scalar_type: "int32_t"
17
18 enumerator: "INVALID"
19 scalar_value: {
20 int32_t: 0
21 }
22 enumerator: "WIDTH"
23 scalar_value: {
24 int32_t: 1
25 }
26 enumerator: "HEIGHT"
27 scalar_value: {
28 int32_t: 2
29 }
30 enumerator: "VSYNC_PERIOD"
31 scalar_value: {
32 int32_t: 3
33 }
34 enumerator: "DPI_X"
35 scalar_value: {
36 int32_t: 4
37 }
38 enumerator: "DPI_Y"
39 scalar_value: {
40 int32_t: 5
41 }
42 }
43 }
44
45 attribute: {
46 name: "::android::hardware::graphics::composer::V2_1::IComposerClient::DisplayRequest"
47 type: TYPE_ENUM
48 enum_value: {
49 scalar_type: "uint32_t"
50
51 enumerator: "FLIP_CLIENT_TARGET"
52 scalar_value: {
53 uint32_t: 1
54 }
55 enumerator: "WRITE_CLIENT_TARGET_TO_OUTPUT"
56 scalar_value: {
57 uint32_t: 2
58 }
59 }
60 }
61
62 attribute: {
63 name: "::android::hardware::graphics::composer::V2_1::IComposerClient::LayerRequest"
64 type: TYPE_ENUM
65 enum_value: {
66 scalar_type: "uint32_t"
67
68 enumerator: "CLEAR_CLIENT_TARGET"
69 scalar_value: {
70 uint32_t: 1
71 }
72 }
73 }
74
75 attribute: {
76 name: "::android::hardware::graphics::composer::V2_1::IComposerClient::PowerMode"
77 type: TYPE_ENUM
78 enum_value: {
79 scalar_type: "int32_t"
80
81 enumerator: "OFF"
82 scalar_value: {
83 int32_t: 0
84 }
85 enumerator: "DOZE"
86 scalar_value: {
87 int32_t: 1
88 }
89 enumerator: "DOZE_SUSPEND"
90 scalar_value: {
91 int32_t: 3
92 }
93 enumerator: "ON"
94 scalar_value: {
95 int32_t: 2
96 }
97 }
98 }
99
100 attribute: {
101 name: "::android::hardware::graphics::composer::V2_1::IComposerClient::Vsync"
102 type: TYPE_ENUM
103 enum_value: {
104 scalar_type: "int32_t"
105
106 enumerator: "INVALID"
107 scalar_value: {
108 int32_t: 0
109 }
110 enumerator: "ENABLE"
111 scalar_value: {
112 int32_t: 1
113 }
114 enumerator: "DISABLE"
115 scalar_value: {
116 int32_t: 2
117 }
118 }
119 }
120
121 attribute: {
122 name: "::android::hardware::graphics::composer::V2_1::IComposerClient::BlendMode"
123 type: TYPE_ENUM
124 enum_value: {
125 scalar_type: "int32_t"
126
127 enumerator: "INVALID"
128 scalar_value: {
129 int32_t: 0
130 }
131 enumerator: "NONE"
132 scalar_value: {
133 int32_t: 1
134 }
135 enumerator: "PREMULTIPLIED"
136 scalar_value: {
137 int32_t: 2
138 }
139 enumerator: "COVERAGE"
140 scalar_value: {
141 int32_t: 3
142 }
143 }
144 }
145
146 attribute: {
147 name: "::android::hardware::graphics::composer::V2_1::IComposerClient::Composition"
148 type: TYPE_ENUM
149 enum_value: {
150 scalar_type: "int32_t"
151
152 enumerator: "INVALID"
153 scalar_value: {
154 int32_t: 0
155 }
156 enumerator: "CLIENT"
157 scalar_value: {
158 int32_t: 1
159 }
160 enumerator: "DEVICE"
161 scalar_value: {
162 int32_t: 2
163 }
164 enumerator: "SOLID_COLOR"
165 scalar_value: {
166 int32_t: 3
167 }
168 enumerator: "CURSOR"
169 scalar_value: {
170 int32_t: 4
171 }
172 enumerator: "SIDEBAND"
173 scalar_value: {
174 int32_t: 5
175 }
176 }
177 }
178
179 attribute: {
180 name: "::android::hardware::graphics::composer::V2_1::IComposerClient::DisplayType"
181 type: TYPE_ENUM
182 enum_value: {
183 scalar_type: "int32_t"
184
185 enumerator: "INVALID"
186 scalar_value: {
187 int32_t: 0
188 }
189 enumerator: "PHYSICAL"
190 scalar_value: {
191 int32_t: 1
192 }
193 enumerator: "VIRTUAL"
194 scalar_value: {
195 int32_t: 2
196 }
197 }
198 }
199
200 attribute: {
201 name: "::android::hardware::graphics::composer::V2_1::IComposerClient::HandleIndex"
202 type: TYPE_ENUM
203 enum_value: {
204 scalar_type: "int32_t"
205
206 enumerator: "EMPTY"
207 scalar_value: {
208 int32_t: -1
209 }
210 enumerator: "CACHED"
211 scalar_value: {
212 int32_t: -2
213 }
214 }
215 }
216
217 attribute: {
218 name: "::android::hardware::graphics::composer::V2_1::IComposerClient::Rect"
219 type: TYPE_STRUCT
220 struct_value: {
221 name: "left"
222 type: TYPE_SCALAR
223 scalar_type: "int32_t"
224 }
225 struct_value: {
226 name: "top"
227 type: TYPE_SCALAR
228 scalar_type: "int32_t"
229 }
230 struct_value: {
231 name: "right"
232 type: TYPE_SCALAR
233 scalar_type: "int32_t"
234 }
235 struct_value: {
236 name: "bottom"
237 type: TYPE_SCALAR
238 scalar_type: "int32_t"
239 }
240 }
241
242 attribute: {
243 name: "::android::hardware::graphics::composer::V2_1::IComposerClient::FRect"
244 type: TYPE_STRUCT
245 struct_value: {
246 name: "left"
247 type: TYPE_SCALAR
248 scalar_type: "float_t"
249 }
250 struct_value: {
251 name: "top"
252 type: TYPE_SCALAR
253 scalar_type: "float_t"
254 }
255 struct_value: {
256 name: "right"
257 type: TYPE_SCALAR
258 scalar_type: "float_t"
259 }
260 struct_value: {
261 name: "bottom"
262 type: TYPE_SCALAR
263 scalar_type: "float_t"
264 }
265 }
266
267 attribute: {
268 name: "::android::hardware::graphics::composer::V2_1::IComposerClient::Color"
269 type: TYPE_STRUCT
270 struct_value: {
271 name: "r"
272 type: TYPE_SCALAR
273 scalar_type: "uint8_t"
274 }
275 struct_value: {
276 name: "g"
277 type: TYPE_SCALAR
278 scalar_type: "uint8_t"
279 }
280 struct_value: {
281 name: "b"
282 type: TYPE_SCALAR
283 scalar_type: "uint8_t"
284 }
285 struct_value: {
286 name: "a"
287 type: TYPE_SCALAR
288 scalar_type: "uint8_t"
289 }
290 }
291
292 attribute: {
293 name: "::android::hardware::graphics::composer::V2_1::IComposerClient::Command"
294 type: TYPE_ENUM
295 enum_value: {
296 scalar_type: "int32_t"
297
298 enumerator: "LENGTH_MASK"
299 scalar_value: {
300 int32_t: 65535
301 }
302 enumerator: "OPCODE_SHIFT"
303 scalar_value: {
304 int32_t: 16
305 }
306 enumerator: "OPCODE_MASK"
307 scalar_value: {
308 int32_t: -65536
309 }
310 enumerator: "SELECT_DISPLAY"
311 scalar_value: {
312 int32_t: 0
313 }
314 enumerator: "SELECT_LAYER"
315 scalar_value: {
316 int32_t: 65536
317 }
318 enumerator: "SET_ERROR"
319 scalar_value: {
320 int32_t: 16777216
321 }
322 enumerator: "SET_CHANGED_COMPOSITION_TYPES"
323 scalar_value: {
324 int32_t: 16842752
325 }
326 enumerator: "SET_DISPLAY_REQUESTS"
327 scalar_value: {
328 int32_t: 16908288
329 }
330 enumerator: "SET_PRESENT_FENCE"
331 scalar_value: {
332 int32_t: 16973824
333 }
334 enumerator: "SET_RELEASE_FENCES"
335 scalar_value: {
336 int32_t: 17039360
337 }
338 enumerator: "SET_COLOR_TRANSFORM"
339 scalar_value: {
340 int32_t: 33554432
341 }
342 enumerator: "SET_CLIENT_TARGET"
343 scalar_value: {
344 int32_t: 33619968
345 }
346 enumerator: "SET_OUTPUT_BUFFER"
347 scalar_value: {
348 int32_t: 33685504
349 }
350 enumerator: "VALIDATE_DISPLAY"
351 scalar_value: {
352 int32_t: 33751040
353 }
354 enumerator: "ACCEPT_DISPLAY_CHANGES"
355 scalar_value: {
356 int32_t: 33816576
357 }
358 enumerator: "PRESENT_DISPLAY"
359 scalar_value: {
360 int32_t: 33882112
361 }
362 enumerator: "SET_LAYER_CURSOR_POSITION"
363 scalar_value: {
364 int32_t: 50331648
365 }
366 enumerator: "SET_LAYER_BUFFER"
367 scalar_value: {
368 int32_t: 50397184
369 }
370 enumerator: "SET_LAYER_SURFACE_DAMAGE"
371 scalar_value: {
372 int32_t: 50462720
373 }
374 enumerator: "SET_LAYER_BLEND_MODE"
375 scalar_value: {
376 int32_t: 67108864
377 }
378 enumerator: "SET_LAYER_COLOR"
379 scalar_value: {
380 int32_t: 67174400
381 }
382 enumerator: "SET_LAYER_COMPOSITION_TYPE"
383 scalar_value: {
384 int32_t: 67239936
385 }
386 enumerator: "SET_LAYER_DATASPACE"
387 scalar_value: {
388 int32_t: 67305472
389 }
390 enumerator: "SET_LAYER_DISPLAY_FRAME"
391 scalar_value: {
392 int32_t: 67371008
393 }
394 enumerator: "SET_LAYER_PLANE_ALPHA"
395 scalar_value: {
396 int32_t: 67436544
397 }
398 enumerator: "SET_LAYER_SIDEBAND_STREAM"
399 scalar_value: {
400 int32_t: 67502080
401 }
402 enumerator: "SET_LAYER_SOURCE_CROP"
403 scalar_value: {
404 int32_t: 67567616
405 }
406 enumerator: "SET_LAYER_TRANSFORM"
407 scalar_value: {
408 int32_t: 67633152
409 }
410 enumerator: "SET_LAYER_VISIBLE_REGION"
411 scalar_value: {
412 int32_t: 67698688
413 }
414 enumerator: "SET_LAYER_Z_ORDER"
415 scalar_value: {
416 int32_t: 67764224
417 }
418 }
419 }
420
421 api: {
422 name: "registerCallback"
423 arg: {
424 type: TYPE_HIDL_CALLBACK
425 predefined_type: "IComposerCallback"
426 is_callback: true
427 }
428 callflow: {
429 entry: true
430 }
431 callflow: {
432 next: "*"
433 }
434 }
435
436 api: {
437 name: "getMaxVirtualDisplayCount"
438 return_type_hidl: {
439 type: TYPE_SCALAR
440 scalar_type: "uint32_t"
441 }
442 callflow: {
443 next: "*"
444 }
445 }
446
447 api: {
448 name: "createVirtualDisplay"
449 return_type_hidl: {
450 type: TYPE_ENUM
451 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
452 }
453 return_type_hidl: {
454 type: TYPE_SCALAR
455 scalar_type: "uint64_t"
456 }
457 return_type_hidl: {
458 type: TYPE_ENUM
459 predefined_type: "::android::hardware::graphics::common::V1_0::PixelFormat"
460 }
461 arg: {
462 type: TYPE_SCALAR
463 scalar_type: "uint32_t"
464 }
465 arg: {
466 type: TYPE_SCALAR
467 scalar_type: "uint32_t"
468 }
469 arg: {
470 type: TYPE_ENUM
471 predefined_type: "::android::hardware::graphics::common::V1_0::PixelFormat"
472 }
473 arg: {
474 type: TYPE_SCALAR
475 scalar_type: "uint32_t"
476 }
477 callflow: {
478 next: "*"
479 }
480 }
481
482 api: {
483 name: "destroyVirtualDisplay"
484 return_type_hidl: {
485 type: TYPE_ENUM
486 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
487 }
488 arg: {
489 type: TYPE_SCALAR
490 scalar_type: "uint64_t"
491 }
492 callflow: {
493 next: "*"
494 }
495 }
496
497 api: {
498 name: "createLayer"
499 return_type_hidl: {
500 type: TYPE_ENUM
501 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
502 }
503 return_type_hidl: {
504 type: TYPE_SCALAR
505 scalar_type: "uint64_t"
506 }
507 arg: {
508 type: TYPE_SCALAR
509 scalar_type: "uint64_t"
510 }
511 arg: {
512 type: TYPE_SCALAR
513 scalar_type: "uint32_t"
514 }
515 callflow: {
516 next: "*"
517 }
518 }
519
520 api: {
521 name: "destroyLayer"
522 return_type_hidl: {
523 type: TYPE_ENUM
524 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
525 }
526 arg: {
527 type: TYPE_SCALAR
528 scalar_type: "uint64_t"
529 }
530 arg: {
531 type: TYPE_SCALAR
532 scalar_type: "uint64_t"
533 }
534 callflow: {
535 next: "*"
536 }
537 }
538
539 api: {
540 name: "getActiveConfig"
541 return_type_hidl: {
542 type: TYPE_ENUM
543 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
544 }
545 return_type_hidl: {
546 type: TYPE_SCALAR
547 scalar_type: "uint32_t"
548 }
549 arg: {
550 type: TYPE_SCALAR
551 scalar_type: "uint64_t"
552 }
553 callflow: {
554 next: "*"
555 }
556 }
557
558 api: {
559 name: "getClientTargetSupport"
560 return_type_hidl: {
561 type: TYPE_ENUM
562 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
563 }
564 arg: {
565 type: TYPE_SCALAR
566 scalar_type: "uint64_t"
567 }
568 arg: {
569 type: TYPE_SCALAR
570 scalar_type: "uint32_t"
571 }
572 arg: {
573 type: TYPE_SCALAR
574 scalar_type: "uint32_t"
575 }
576 arg: {
577 type: TYPE_ENUM
578 predefined_type: "::android::hardware::graphics::common::V1_0::PixelFormat"
579 }
580 arg: {
581 type: TYPE_ENUM
582 predefined_type: "::android::hardware::graphics::common::V1_0::Dataspace"
583 }
584 callflow: {
585 next: "*"
586 }
587 }
588
589 api: {
590 name: "getColorModes"
591 return_type_hidl: {
592 type: TYPE_ENUM
593 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
594 }
595 return_type_hidl: {
596 type: TYPE_VECTOR
597 vector_value: {
598 type: TYPE_ENUM
599 predefined_type: "::android::hardware::graphics::common::V1_0::ColorMode"
600 }
601 }
602 arg: {
603 type: TYPE_SCALAR
604 scalar_type: "uint64_t"
605 }
606 callflow: {
607 next: "*"
608 }
609 }
610
611 api: {
612 name: "getDisplayAttribute"
613 return_type_hidl: {
614 type: TYPE_ENUM
615 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
616 }
617 return_type_hidl: {
618 type: TYPE_SCALAR
619 scalar_type: "int32_t"
620 }
621 arg: {
622 type: TYPE_SCALAR
623 scalar_type: "uint64_t"
624 }
625 arg: {
626 type: TYPE_SCALAR
627 scalar_type: "uint32_t"
628 }
629 arg: {
630 type: TYPE_ENUM
631 predefined_type: "::android::hardware::graphics::composer::V2_1::IComposerClient::Attribute"
632 }
633 callflow: {
634 next: "*"
635 }
636 }
637
638 api: {
639 name: "getDisplayConfigs"
640 return_type_hidl: {
641 type: TYPE_ENUM
642 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
643 }
644 return_type_hidl: {
645 type: TYPE_VECTOR
646 vector_value: {
647 type: TYPE_SCALAR
648 scalar_type: "uint32_t"
649 }
650 }
651 arg: {
652 type: TYPE_SCALAR
653 scalar_type: "uint64_t"
654 }
655 callflow: {
656 next: "*"
657 }
658 }
659
660 api: {
661 name: "getDisplayName"
662 return_type_hidl: {
663 type: TYPE_ENUM
664 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
665 }
666 return_type_hidl: {
667 type: TYPE_STRING
668 }
669 arg: {
670 type: TYPE_SCALAR
671 scalar_type: "uint64_t"
672 }
673 callflow: {
674 next: "*"
675 }
676 }
677
678 api: {
679 name: "getDisplayType"
680 return_type_hidl: {
681 type: TYPE_ENUM
682 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
683 }
684 return_type_hidl: {
685 type: TYPE_ENUM
686 predefined_type: "::android::hardware::graphics::composer::V2_1::IComposerClient::DisplayType"
687 }
688 arg: {
689 type: TYPE_SCALAR
690 scalar_type: "uint64_t"
691 }
692 callflow: {
693 next: "*"
694 }
695 }
696
697 api: {
698 name: "getDozeSupport"
699 return_type_hidl: {
700 type: TYPE_ENUM
701 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
702 }
703 return_type_hidl: {
704 type: TYPE_SCALAR
705 scalar_type: "bool_t"
706 }
707 arg: {
708 type: TYPE_SCALAR
709 scalar_type: "uint64_t"
710 }
711 callflow: {
712 next: "*"
713 }
714 }
715
716 api: {
717 name: "getHdrCapabilities"
718 return_type_hidl: {
719 type: TYPE_ENUM
720 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
721 }
722 return_type_hidl: {
723 type: TYPE_VECTOR
724 vector_value: {
725 type: TYPE_ENUM
726 predefined_type: "::android::hardware::graphics::common::V1_0::Hdr"
727 }
728 }
729 return_type_hidl: {
730 type: TYPE_SCALAR
731 scalar_type: "float_t"
732 }
733 return_type_hidl: {
734 type: TYPE_SCALAR
735 scalar_type: "float_t"
736 }
737 return_type_hidl: {
738 type: TYPE_SCALAR
739 scalar_type: "float_t"
740 }
741 arg: {
742 type: TYPE_SCALAR
743 scalar_type: "uint64_t"
744 }
745 callflow: {
746 next: "*"
747 }
748 }
749
750 api: {
751 name: "setClientTargetSlotCount"
752 return_type_hidl: {
753 type: TYPE_ENUM
754 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
755 }
756 arg: {
757 type: TYPE_SCALAR
758 scalar_type: "uint64_t"
759 }
760 arg: {
761 type: TYPE_SCALAR
762 scalar_type: "uint32_t"
763 }
764 callflow: {
765 next: "*"
766 }
767 }
768
769 api: {
770 name: "setActiveConfig"
771 return_type_hidl: {
772 type: TYPE_ENUM
773 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
774 }
775 arg: {
776 type: TYPE_SCALAR
777 scalar_type: "uint64_t"
778 }
779 arg: {
780 type: TYPE_SCALAR
781 scalar_type: "uint32_t"
782 }
783 callflow: {
784 next: "*"
785 }
786 }
787
788 api: {
789 name: "setColorMode"
790 return_type_hidl: {
791 type: TYPE_ENUM
792 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
793 }
794 arg: {
795 type: TYPE_SCALAR
796 scalar_type: "uint64_t"
797 }
798 arg: {
799 type: TYPE_ENUM
800 predefined_type: "::android::hardware::graphics::common::V1_0::ColorMode"
801 }
802 callflow: {
803 next: "*"
804 }
805 }
806
807 api: {
808 name: "setPowerMode"
809 return_type_hidl: {
810 type: TYPE_ENUM
811 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
812 }
813 arg: {
814 type: TYPE_SCALAR
815 scalar_type: "uint64_t"
816 }
817 arg: {
818 type: TYPE_ENUM
819 predefined_type: "::android::hardware::graphics::composer::V2_1::IComposerClient::PowerMode"
820 }
821 callflow: {
822 next: "*"
823 }
824 }
825
826 api: {
827 name: "setVsyncEnabled"
828 return_type_hidl: {
829 type: TYPE_ENUM
830 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
831 }
832 arg: {
833 type: TYPE_SCALAR
834 scalar_type: "uint64_t"
835 }
836 arg: {
837 type: TYPE_ENUM
838 predefined_type: "::android::hardware::graphics::composer::V2_1::IComposerClient::Vsync"
839 }
840 callflow: {
841 next: "*"
842 }
843 }
844
845 api: {
846 name: "setInputCommandQueue"
847 return_type_hidl: {
848 type: TYPE_ENUM
849 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
850 }
851 arg: {
852 }
853 callflow: {
854 next: "*"
855 }
856 }
857
858 api: {
859 name: "getOutputCommandQueue"
860 return_type_hidl: {
861 type: TYPE_ENUM
862 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
863 }
864 return_type_hidl: {
865 }
866 callflow: {
867 next: "*"
868 }
869 }
870
871 api: {
872 name: "executeCommands"
873 return_type_hidl: {
874 type: TYPE_ENUM
875 predefined_type: "::android::hardware::graphics::composer::V2_1::Error"
876 }
877 return_type_hidl: {
878 type: TYPE_SCALAR
879 scalar_type: "bool_t"
880 }
881 return_type_hidl: {
882 type: TYPE_SCALAR
883 scalar_type: "uint32_t"
884 }
885 return_type_hidl: {
886 type: TYPE_VECTOR
887 vector_value: {
888 type: TYPE_HANDLE
889 }
890 }
891 arg: {
892 type: TYPE_SCALAR
893 scalar_type: "uint32_t"
894 }
895 arg: {
896 type: TYPE_VECTOR
897 vector_value: {
898 type: TYPE_HANDLE
899 }
900 }
901 callflow: {
902 next: "*"
903 }
904 }
905
906}