1 /* 2 * Copyright (C) 2022 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 * Hard Coded Configs for AdServices. 21 * 22 * <p>For Feature Flags that are backed by PH, please see {@link PhFlags} 23 */ 24 public class AdServicesConfig { 25 getMeasurementEventMainReportingJobPeriodMs()26 public static long getMeasurementEventMainReportingJobPeriodMs() { 27 return FlagsFactory.getFlags().getMeasurementEventMainReportingJobPeriodMs(); 28 } 29 30 /** Returns the min time period (in millis) between each event fallback reporting job run. */ getMeasurementEventFallbackReportingJobPeriodMs()31 public static long getMeasurementEventFallbackReportingJobPeriodMs() { 32 return FlagsFactory.getFlags().getMeasurementEventFallbackReportingJobPeriodMs(); 33 } 34 35 /** 36 * Returns the list of URL(comma-separated string) for fetching public encryption keys for 37 * aggregatable reports. 38 */ getMeasurementAggregationCoordinatorOriginList()39 public static String getMeasurementAggregationCoordinatorOriginList() { 40 return FlagsFactory.getFlags().getMeasurementAggregationCoordinatorOriginList(); 41 } 42 43 /** Returns the list of URL for fetching public encryption keys for aggregatable reports. */ getMeasurementAggregationCoordinatorPath()44 public static String getMeasurementAggregationCoordinatorPath() { 45 return FlagsFactory.getFlags().getMeasurementAggregationCoordinatorPath(); 46 } 47 getMeasurementDefaultAggregationCoordinatorOrigin()48 public static String getMeasurementDefaultAggregationCoordinatorOrigin() { 49 return FlagsFactory.getFlags().getMeasurementDefaultAggregationCoordinatorOrigin(); 50 } 51 52 /** Returns the min time period (in millis) between each aggregate main reporting job run. */ getMeasurementAggregateMainReportingJobPeriodMs()53 public static long getMeasurementAggregateMainReportingJobPeriodMs() { 54 return FlagsFactory.getFlags().getMeasurementAggregateMainReportingJobPeriodMs(); 55 } 56 57 /** 58 * Returns the min time period (in millis) between each aggregate fallback reporting job run. 59 */ getMeasurementAggregateFallbackReportingJobPeriodMs()60 public static long getMeasurementAggregateFallbackReportingJobPeriodMs() { 61 return FlagsFactory.getFlags().getMeasurementAggregateFallbackReportingJobPeriodMs(); 62 } 63 } 64