1 /*
2  * Copyright (C) 2023 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 package com.android.hoststubgen.test.tinyframework;
17 
18 import android.hosttest.annotation.HostSideTestKeep;
19 import android.hosttest.annotation.HostSideTestStub;
20 
21 @HostSideTestStub
22 public enum TinyFrameworkEnumComplex {
23     @HostSideTestStub
24     RED("Red", "R"),
25     @HostSideTestStub
26     GREEN("Green", "G"),
27     @HostSideTestStub
28     BLUE("Blue", "B");
29 
30     @HostSideTestKeep
31     private final String mLongName;
32 
33     @HostSideTestKeep
34     private final String mShortName;
35 
36     @HostSideTestStub
TinyFrameworkEnumComplex(String longName, String shortName)37     TinyFrameworkEnumComplex(String longName, String shortName) {
38         mLongName = longName;
39         mShortName = shortName;
40     }
41 
42     @HostSideTestStub
getLongName()43     public String getLongName() {
44         return mLongName;
45     }
46 
47     @HostSideTestStub
getShortName()48     public String getShortName() {
49         return mShortName;
50     }
51 }
52