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 17 package libcore.test.reasons; 18 19 /** 20 * Reasons for {@link libcore.test.annotation.NonMts}. 21 */ 22 public class NonMtsReasons { 23 24 /** 25 * If the test depends on a new API from ICU, and version-specific API behavior or locale data, 26 * you can use this reason. 27 */ 28 public static final String ICU_VERSION_DEPENDENCY = "The API behavior depends on the " 29 + "platform version. The test only passes above a certain API level."; 30 31 /** 32 * If the test depends on the tzdata APEX version and version-specific data, 33 * you can use this reason. 34 */ 35 public static final String TZDATA_VERSION_DEPENDENCY = "The API behavior depends on the " 36 + "tzdata APEX version."; 37 38 /** 39 * If the test only passes above a certain API level. 40 */ 41 public static final String API_LEVEL_GATING = "The test only passes above " 42 + "a certain API level."; 43 44 /** 45 * If the test asserts a new behavior not tested in CTS, OEMs have the right to customize the 46 * behavior, but impossible to revert the behavior without system image OTA. Thus, we disable 47 * the test in MTS until it's tested in the dessert CTS. 48 */ 49 public static final String OEM_CUSTOMIZATION = "The test doesn't pass with certain " + 50 "customizations from AOSP."; 51 NonMtsReasons()52 private NonMtsReasons() {} 53 } 54