• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2025 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.profiling;
18 
19 /** Metric, class and method names used to name tracing points. */
20 public final class TracingNames {
21     public static final String CLASS_NAME_AD_ID_SERVICE = "AdIdService";
22     public static final String CLASS_NAME_ATTRIBUTION_JOB_SERVICE = "AttributionJobService";
23     public static final String CLASS_NAME_ATTRIBUTION_FALLBACK_JOB_SERVICE =
24             "AttributionFallbackJobService";
25     public static final String CLASS_NAME_TOPICS_SERVICE = "TopicsService";
26     public static final String CLASS_NAME_CONSENT_MANAGER = "ConsentManager";
27 
28     public static final String METHOD_NAME_CONSTRUCTOR = "getInstance";
29     public static final String METHOD_NAME_GET_AD_ID = "getAdId";
30     public static final String METHOD_NAME_ON_START_JOB = "onStartJob";
31     public static final String METHOD_NAME_GET_TOPICS = "getTopics";
32 
33     // Method names for ConsentManager.
34     public static final String METHOD_NAME_CREATE_AND_INIT_DATASTORE = "createAndInitDataStore";
35     public static final String METHOD_NAME_GET_AD_SERVICES_MANAGER = "getAdServicesManager";
36     public static final String METHOD_NAME_MIGRATION_FROM_APP_SEARCH = "migrationFromAppSearch";
37     public static final String METHOD_NAME_MIGRATION_FROM_PPAPI = "migrationFromPpapi";
38     public static final String METHOD_NAME_MIGRATION_ENROLLMENT_DATA = "migrationEnrollmentData";
39     public static final String METHOD_NAME_SET_CONSENT = "setConsent";
40     public static final String METHOD_NAME_GET_CONSENT = "getConsent";
41 }
42