1 /* 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 17 package android.hardware.tests.foo@1.0; 18 19 struct Abc { 20 string x; 21 float y; 22 handle z; 23 }; 24 25 struct Def { 26 string g; 27 }; 28 29 struct Outer { 30 struct Inner { 31 struct Deep { 32 int32_t data; 33 }; 34 int32_t data; 35 }; 36 }; 37 38 struct Unrelated { 39 Outer.Inner great; 40 }; 41 42 // structs to test enum iterators in hidl_test 43 struct EnumIterators { 44 enum Empty : uint32_t {}; 45 46 enum Parent : uint32_t { 47 A, 48 }; 49 enum EmptyChild : Parent {}; 50 enum Grandchild : EmptyChild { 51 B, 52 }; 53 54 enum SkipsValues : uint32_t { 55 A = 7, 56 B, 57 C = 100, 58 D, 59 E 60 }; 61 enum MultipleValues : uint32_t { 62 A = 7, 63 B = 7, 64 C = 8, 65 D = 7, 66 }; 67 };