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 tests.vendor@1.0; 18 19 enum Bar : uint32_t { 20 A 21 }; 22 23 /* WARNING: 24 * 25 * @export is used to expose this enumeration in a C header using -Lexport-header. 26 * 27 * It should only be used to make a backwards compatible header definition so that 28 * constant values defined in a .hal file can be used in a C library. 29 * 30 * export_parent below is used to test the functionality of export_parent. Typically, 31 * you would only use it when inheriting from a parent type. Obviously if name is not empty, 32 * then export_parent isn't required. 33 */ 34 @export(name="") // export_parent is implicitly true 35 enum Foo : Bar { 36 B, 37 C 38 }; 39 40 @export(name="", export_parent="false") 41 enum FooToo : Foo { 42 D 43 };