blob: 4cb96893e5cb8a82edf00f0ff403544088495716 [file] [log] [blame]
Andreas Huberfc0b6c42016-09-22 09:47:48 -07001/*
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
Andreas Huber669bf7a2016-08-29 10:23:17 -070017package android.hardware.tests.baz@1.0;
18
19import IBase;
20import IBazCallback;
21
22interface IBaz extends IBase {
23
24 enum SomeOtherEnum : uint8_t {
25 bar = 66
26 };
27
28 typedef SomeOtherEnum thisIsAnAlias;
29 typedef IBaz anIBazByAnyOtherName;
30
31 enum SomeEnum : SomeOtherEnum {
32 quux = 33,
33 goober = 192,
34 blah = goober
35 };
36
37 @Fragile @NoReally(very="yes", array={"a","b","c"})
38 oneway doThis(float param);
39
40 doThatAndReturnSomething(int64_t param) generates (int32_t result);
41 doQuiteABit(int32_t a, int64_t b, float c, double d) generates (double something);
42 doSomethingElse(int32_t[15] param) generates (int32_t[32] something);
43 doStuffAndReturnAString() generates (string something);
44 mapThisVector(vec<int32_t> param) generates (vec<int32_t> something);
45 callMe(IBazCallback cb);
46 useAnEnum(SomeEnum zzz) generates (SomeEnum kkk);
47
48 haveSomeStrings(string[3] array) generates (string[2] result);
49 haveAStringVec(vec<string> vector) generates (vec<string> result);
50
51 returnABunchOfStrings() generates (string a, string b, string c);
52};