You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.5 KiB
61 lines
1.5 KiB
/*
|
|
* Copyright (C) 2019 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 hidl2aidl.test@1.1;
|
|
|
|
import @1.0::IFoo;
|
|
import @1.0::Outer;
|
|
|
|
interface IFoo extends @1.0::IFoo {
|
|
struct BigStruct {
|
|
uint8_t type;
|
|
uint8_t value;
|
|
};
|
|
|
|
// Should take precedence over @1.0::someBar
|
|
someBar_1_1(string a);
|
|
|
|
versionTest_(string a);
|
|
versionTest_two_(string a) generates (bool bl);
|
|
|
|
useStruct() generates (BigStruct type);
|
|
useImportedStruct(Outer outer);
|
|
|
|
/**
|
|
* @return output output
|
|
*/
|
|
oneOutput() generates (string output);
|
|
|
|
/**
|
|
* @return out1 out
|
|
* @return out2 out
|
|
*/
|
|
multipleOutputs() generates (BigStruct out1, BigStruct out2);
|
|
|
|
multipleInputs(string in1, string in2);
|
|
|
|
/**
|
|
* @return out1 out
|
|
* @return out2 out
|
|
*/
|
|
multipleInputsAndOutputs(string in1, string in2) generates (BigStruct out1, BigStruct out2);
|
|
|
|
/**
|
|
* @return status removed
|
|
*/
|
|
removedOutput() generates (string status);
|
|
};
|