Martijn Coenen | cbe590c | 2016-08-30 11:27:56 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Steven Moreland | 6165188 | 2016-08-11 12:52:43 -0700 | [diff] [blame] | 17 | package android.hardware.tests.foo@1.0; |
| 18 | |
| 19 | import IFooCallback; |
Steven Moreland | 6165188 | 2016-08-11 12:52:43 -0700 | [diff] [blame] | 20 | |
| 21 | interface IFoo { |
| 22 | |
| 23 | enum SomeBaseEnum : uint8_t { |
| 24 | bar = 66 |
| 25 | }; |
| 26 | |
| 27 | enum SomeEnum : SomeBaseEnum { |
| 28 | quux = 33, |
| 29 | goober = 192, |
| 30 | blah = goober |
| 31 | }; |
| 32 | |
| 33 | struct Fumble { |
| 34 | float x; |
| 35 | }; |
| 36 | |
| 37 | typedef Fumble Gumble; |
| 38 | |
| 39 | struct Goober { |
| 40 | int32_t q; |
| 41 | string name; |
| 42 | string address; |
| 43 | double[10] numbers; |
| 44 | Fumble fumble; |
| 45 | Gumble gumble; |
| 46 | // vec<double> lotsOfFumbles; |
| 47 | // handle loveHandle; |
| 48 | }; |
| 49 | |
| 50 | doThis(float param); |
| 51 | doThatAndReturnSomething(int64_t param) generates (int32_t result); |
| 52 | doQuiteABit(int32_t a, int64_t b, float c, double d) generates (double something); |
| 53 | doSomethingElse(int32_t[15] param) generates (int32_t[32] something); |
| 54 | doStuffAndReturnAString() generates (string something); |
| 55 | mapThisVector(vec<int32_t> param) generates (vec<int32_t> something); |
Iliyan Malchev | e96606a | 2016-08-13 23:05:56 -0700 | [diff] [blame] | 56 | oneway callMe(IFooCallback cb); |
Steven Moreland | 6165188 | 2016-08-11 12:52:43 -0700 | [diff] [blame] | 57 | useAnEnum(SomeEnum zzz) generates (SomeEnum sleepy); |
| 58 | |
| 59 | haveAGooberVec(vec<Goober> param); |
| 60 | haveAGoober(Goober g); |
| 61 | haveAGooberArray(Goober[20] lots); |
| 62 | |
| 63 | haveATypeFromAnotherFile(Abc def); |
| 64 | |
| 65 | haveSomeStrings(string[3] array) generates (string[2] result); |
| 66 | haveAStringVec(vec<string> vector) generates (vec<string> result); |
| 67 | }; |