blob: eb870139dfdc9b01bcf34c844c2dff90fba88085 [file] [log] [blame]
Andreas Huber669bf7a2016-08-29 10:23:17 -07001package android.hardware.tests.baz@1.0;
2
3interface IBase {
4 enum SomeBaseEnum {
5 grrr = 1,
6 };
7
8 struct Foo {
9 struct Bar {
10 float z;
11 string s;
12 };
13
14 enum FooEnum : int8_t {
15 first = 1,
16 second = 2,
17 };
18
19 int32_t x;
20 vec<Bar> aaa;
21 Bar y;
22 };
23
Andreas Huber9c43f012016-09-14 15:27:21 -070024 typedef string[3] ThreeStrings;
25 typedef string[5] FiveStrings;
26
27 struct StringMatrix3x5 {
28 FiveStrings[3] s;
29 };
30
31 struct StringMatrix5x3 {
32 ThreeStrings[5] s;
33 };
34
Andreas Huber669bf7a2016-08-29 10:23:17 -070035 someBaseMethod();
36
37 someBoolMethod(bool x) generates (bool y);
38 someBoolArrayMethod(bool[3] x) generates (bool[4] y);
39 someBoolVectorMethod(vec<bool> x) generates (vec<bool> y);
40
41 someOtherBaseMethod(Foo foo) generates (Foo result);
Andreas Huberf399e502016-09-09 14:56:15 -070042 someMethodWithFooArrays(Foo[2] fooInput) generates (Foo[2] fooOutput);
43 someMethodWithFooVectors(vec<Foo> fooInput) generates (vec<Foo> fooOutput);
Andreas Huber9c43f012016-09-14 15:27:21 -070044
45 transpose(StringMatrix5x3 in) generates (StringMatrix3x5 out);
Andreas Huber8e237942016-09-19 13:59:52 -070046 transpose2(ThreeStrings[5] in) generates (FiveStrings[3] out);
Andreas Huber669bf7a2016-08-29 10:23:17 -070047};