• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 the broadcast after encoder logic registration (for testing). */
51     public static final String
52             KEY_PROTECTED_APP_SIGNALS_ENCODER_LOGIC_REGISTERED_BROADCAST_ENABLED =
53                     "protected_app_signals_encoder_logic_registered_broadcast_enabled";
54 
55     /** Key for feature flagging adselection CLI. */
56     public static final String KEY_AD_SELECTION_CLI_ENABLED = "fledge_is_ad_selection_cli_enabled";
57 
58     /** Key for feature flagging developer mode feature. */
59     public static final String KEY_DEVELOPER_SESSION_FEATURE_ENABLED =
60             "developer_session_feature_enabled";
61 
62     /** Key for setting the debug flag to enable console messages in logcat */
63     public static final String KEY_AD_SERVICES_JS_ISOLATE_CONSOLE_MESSAGES_IN_LOGS_ENABLED =
64             "ad_services_js_isolate_console_messages_in_logs_enabled";
65 
66     /** Key for feature flagging custom audiences CLI. */
67     public static final String KEY_FLEDGE_IS_CUSTOM_AUDIENCE_CLI_ENABLED =
68             "fledge_is_custom_audience_cli_enabled";
69 
70     /** Key for feature flagging consented debugging CLI. */
71     public static final String KEY_FLEDGE_IS_CONSENTED_DEBUGGING_CLI_ENABLED =
72             "fledge_is_consented_debugging_cli_enabled";
73 
74     public static final String KEY_FLEDGE_AUCTION_SERVER_CONSENTED_DEBUGGING_ENABLED =
75             "fledge_auction_server_consented_debugging_enabled";
76 
77     public static final String KEY_RECORD_TOPICS_COMPLETE_BROADCAST_ENABLED =
78             "record_topics_complete_broadcast_enabled";
79 
80     public static final String KEY_FLEDGE_SCHEDULE_CA_COMPLETE_BROADCAST_ENABLED =
81             "fledge_schedule_ca_complete_broadcast_enabled";
82 
83     public static final String KEY_FLEDGE_BACKGROUND_FETCH_COMPLETE_BROADCAST_ENABLED =
84             "fledge_background_fetch_complete_broadcast_enabled";
85 
86     public static final String KEY_FLEDGE_BACKGROUND_KEY_FETCH_COMPLETE_BROADCAST_ENABLED =
87             "fledge_background_key_fetch_complete_broadcast_enabled";
88 
89     public static final String KEY_PERIODIC_ENCODING_JOB_COMPLETE_BROADCAST_ENABLED =
90             "fledge_periodic_encoding_complete_broadcast_enabled";
91 
92     public static final String KEY_FORCED_ENCODING_JOB_COMPLETE_BROADCAST_ENABLED =
93             "fledge_forced_encoding_complete_broadcast_enabled";
94     public static final String KEY_ATTRIBUTION_REPORTING_CLI_ENABLED =
95             "measurement_attribution_reporting_cli_enabled";
96 }
97