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 17 package com.android.adservices.service; 18 19 /** 20 * Defines constants used by {@code DebugFlags}. 21 * 22 * <p><b>NOTE: </b>cannot have any dependency on Android or other AdServices code. 23 */ 24 public final class DebugFlagsConstants { DebugFlagsConstants()25 private DebugFlagsConstants() { 26 throw new UnsupportedOperationException("Contains only static constants"); 27 } 28 29 // Consent Notification debug mode keys. 30 public static final String KEY_CONSENT_NOTIFICATION_DEBUG_MODE = 31 "consent_notification_debug_mode"; 32 33 public static final String KEY_CONSENT_NOTIFIED_DEBUG_MODE = "consent_notified_debug_mode"; 34 35 // Consent notification activity debug mode keys. 36 public static final String KEY_CONSENT_NOTIFICATION_ACTIVITY_DEBUG_MODE = 37 "consent_notification_activity_debug_mode"; 38 39 // Consent Manager debug mode keys. 40 public static final String KEY_CONSENT_MANAGER_DEBUG_MODE = "consent_manager_debug_mode"; 41 42 // Consent Manager ota debug mode keys. 43 public static final String KEY_CONSENT_MANAGER_OTA_DEBUG_MODE = 44 "consent_manager_ota_debug_mode"; 45 46 /** Key for feature flagging app signals CLI. */ 47 public static final String KEY_PROTECTED_APP_SIGNALS_CLI_ENABLED = 48 "fledge_is_app_signals_cli_enabled"; 49 50 /** Key for feature flagging adselection CLI. */ 51 public static final String KEY_AD_SELECTION_CLI_ENABLED = "fledge_is_ad_selection_cli_enabled"; 52 53 /** Key for setting the debug flag to enable console messages in logcat */ 54 public static final String KEY_AD_SERVICES_JS_ISOLATE_CONSOLE_MESSAGES_IN_LOGS_ENABLED = 55 "ad_services_js_isolate_console_messages_in_logs_enabled"; 56 57 /** Key for feature flagging custom audiences CLI. */ 58 public static final String KEY_FLEDGE_IS_CUSTOM_AUDIENCE_CLI_ENABLED = 59 "fledge_is_custom_audience_cli_enabled"; 60 61 /** Key for feature flagging consented debugging CLI. */ 62 public static final String KEY_FLEDGE_IS_CONSENTED_DEBUGGING_CLI_ENABLED = 63 "fledge_is_consented_debugging_cli_enabled"; 64 65 public static final String KEY_FLEDGE_AUCTION_SERVER_CONSENTED_DEBUGGING_ENABLED = 66 "fledge_auction_server_consented_debugging_enabled"; 67 68 public static final String KEY_RECORD_TOPICS_COMPLETE_BROADCAST_ENABLED = 69 "record_topics_complete_broadcast_enabled"; 70 } 71