• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// note this file tests carriage returns
2
3/*
4 * Copyright (C) 2016 The Android Open Source Project
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *      http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19package hidl.tests.vendor@1.0;
20
21import android.hardware.tests.baz@1.0;
22
23interface IVendor extends IBaz {
24
25    struct StructTest {
26        vec<uint8_t> b;
27        string d;
28        uint8_t[4][4] e;
29    };
30
31    fun2(vec<uint8_t> a) generates(vec<uint8_t> b);
32    fun4(string a) generates(string b);
33    fun5(uint8_t[4][4] a) generates(uint8_t[4][4] b);
34
35    // Testing static functions in derived class
36    // overriding virtual functions in parent class
37    // due to namespace resolution.
38    registerForNotifications();
39
40    // Testing namespace reference with safe union generation
41    safe_union ReturnError {
42        IVendor problem;
43        uint32_t error;
44    };
45    returnInterfaceOrError() generates (ReturnError result);
46};
47