1d57002951
Test: hidl_test Test: hidl_test_java Bug: 31438033 Change-Id: I100d7ed6dac24005fa1a5c46a3e09aa062d957f7
58 lines
1.8 KiB
Text
58 lines
1.8 KiB
Text
/*
|
|
* Copyright (C) 2016 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package android.hardware.tests.baz@1.0;
|
|
|
|
import IBase;
|
|
import IBazCallback;
|
|
|
|
interface IBaz extends IBase {
|
|
|
|
enum SomeOtherEnum : uint8_t {
|
|
bar = 66
|
|
};
|
|
|
|
typedef SomeOtherEnum thisIsAnAlias;
|
|
typedef IBaz anIBazByAnyOtherName;
|
|
|
|
enum SomeEnum : SomeOtherEnum {
|
|
quux = 33,
|
|
goober = 192,
|
|
blah = goober
|
|
};
|
|
|
|
typedef int32_t[3] ThreeInts;
|
|
struct T {
|
|
ThreeInts[5] matrix5x3;
|
|
int32_t[3][5] matrix3x5;
|
|
};
|
|
|
|
@Fragile @NoReally(very="yes", array={"a","b","c"})
|
|
oneway doThis(float param);
|
|
|
|
doThatAndReturnSomething(int64_t param) generates (int32_t result);
|
|
doQuiteABit(int32_t a, int64_t b, float c, double d) generates (double something);
|
|
doSomethingElse(int32_t[15] param) generates (int32_t[32] something);
|
|
doStuffAndReturnAString() generates (string something);
|
|
mapThisVector(vec<int32_t> param) generates (vec<int32_t> something);
|
|
callMe(IBazCallback cb);
|
|
useAnEnum(SomeEnum zzz) generates (SomeEnum kkk);
|
|
|
|
haveSomeStrings(string[3] array) generates (string[2] result);
|
|
haveAStringVec(vec<string> vector) generates (vec<string> result);
|
|
|
|
returnABunchOfStrings() generates (string a, string b, string c);
|
|
};
|