1 /* 2 * Copyright (C) 2024 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.adservices.shared.common.flags; 17 18 /** 19 * Defines constants used by flags in production and testing infra (both device and host side). 20 * 21 * <p><b>NOTE: </b>cannot have any dependency on Android or other AdServices code. 22 */ 23 public final class Constants { 24 25 /** (Default) string used to separate array values on flattened flags. */ 26 public static final String ARRAY_SPLITTER_COMMA = ","; 27 28 /** Constant used to allow everything (typically all packages) on allow-list flags. */ 29 public static final String ALLOWLIST_ALL = "*"; 30 31 /** Constant used to not allow anything (typically all packages) on allow-list flags. */ 32 public static final String ALLOWLIST_NONE = ""; 33 34 // Maximum possible percentage for percentage variables 35 public static final int MAX_PERCENTAGE = 100; 36 Constants()37 private Constants() { 38 throw new UnsupportedOperationException("Contains only static constants"); 39 } 40 } 41