1 /*
2  * Copyright (C) 2022 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 com.android.tradefed.observatory;
18 
19 import com.android.tradefed.config.Option;
20 import com.android.tradefed.config.OptionClass;
21 
22 import java.util.ArrayList;
23 import java.util.List;
24 
25 /**
26  * A simple class to accept settings for the ConfigurationCtsParserSettings
27  *
28  * <p>To pass settings to this class, the alias is mandatory. So something like {@code --cts-params
29  * --compatibility:include-filter --cts-params CtsWebkitTestCases} will work.
30  */
31 @OptionClass(alias = "compatibility")
32 public class ConfigurationCtsParserSettings {
33     @Option(
34             name = "cts-params",
35             description = "This option is for the purpose of filtering in all of its values.")
36     public List<String> mCtsParams = new ArrayList<>();
37 
38     @Option(
39             name = "config-name",
40             description = "This option is for the purpose of filtering in all of its values.")
41     public String mConfigName = null;
42 
43     @Option(
44             name = "rootdir-var",
45             description =
46                     "Name of the variable to be passed as -D "
47                             + "parameter to the java call to specify the root directory.")
48     public String mRootdirVar = "CTS_ROOT";
49 }
50