1/* 2 * Copyright (C) 2019 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 17package hidl2aidl.test@1.1; 18 19import @1.0::IFoo; 20import @1.0::Outer; 21 22interface IFoo extends @1.0::IFoo { 23 struct BigStruct { 24 uint8_t type; 25 uint8_t value; 26 }; 27 28 // Should take precedence over @1.0::someBar 29 someBar_1_1(string a); 30 31 versionTest_(string a); 32 versionTest_two_(string a) generates (bool bl); 33 34 useStruct() generates (BigStruct type); 35 useImportedStruct(Outer outer); 36 37 /** 38 * @return output output 39 */ 40 oneOutput() generates (string output); 41 42 /** 43 * @return out1 out 44 * @return out2 out 45 */ 46 multipleOutputs() generates (BigStruct out1, BigStruct out2); 47 48 multipleInputs(string in1, string in2); 49 50 /** 51 * @return out1 out 52 * @return out2 out 53 */ 54 multipleInputsAndOutputs(string in1, string in2) generates (BigStruct out1, BigStruct out2); 55 56 /** 57 * @return status removed 58 */ 59 removedOutput() generates (string status); 60}; 61