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 android.adservices.utils; 18 19 /** Default constants for CUJ scenarios. */ 20 public final class Scenarios { 21 22 public static final String BIDDING_LOGIC_PATH = "/bidding"; 23 public static final String BIDDING_SIGNALS_PATH = "/bidding/trusted"; 24 public static final String SCORING_LOGIC_PATH = "/scoring"; 25 public static final String SCORING_SIGNALS_PATH = "/scoring/trusted"; 26 public static final String FETCH_CA_PATH = "/fetch/ca"; 27 public static final String UPDATE_CA_PATH = "/update/ca"; 28 public static final String MEDIATION_LOGIC_PATH = "/mediation"; 29 public static final String AD_RENDER_1 = "/render_ad/1"; 30 public static final String AD_RENDER_2 = "/render_ad/2"; 31 static final int TIMEOUT_SEC = 8; 32 static final String SCENARIOS_DATA_JARPATH = "scenarios/data/"; 33 static final String DEFAULT_RESPONSE_BODY = "200 OK"; 34 static final String FAKE_ADDRESS_1 = "https://localhost:38384"; 35 static final String FAKE_ADDRESS_2 = "https://localhost:38385"; 36 getDailyUpdatePath(String customAudienceName)37 public static String getDailyUpdatePath(String customAudienceName) { 38 return "/bidding/daily/" + customAudienceName; 39 } 40 } 41