1 /* 2 * Copyright (C) 2021 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.app.time.cts.shell; 18 19 /** Constants for interacting with the device_config service. */ 20 public final class DeviceConfigKeys { 21 22 /** 23 * The DeviceConfig namespace used for the time_detector, time_zone_detector and 24 * location_time_zone_manager. 25 */ 26 public static final String NAMESPACE_SYSTEM_TIME = "system_time"; 27 DeviceConfigKeys()28 private DeviceConfigKeys() { 29 // No need to instantiate. 30 } 31 32 /** 33 * Keys and values associated with the location_time_zone_manager. 34 * See also {@link LocationTimeZoneManagerShellHelper}. 35 */ 36 public final class LocationTimeZoneManager { 37 LocationTimeZoneManager()38 private LocationTimeZoneManager() { 39 // No need to instantiate. 40 } 41 42 /** The key for the setting that controls rate limiting of provider events. */ 43 public static final String KEY_LTZP_EVENT_FILTERING_AGE_THRESHOLD_MILLIS = 44 "ltzp_event_filtering_age_threshold_millis"; 45 } 46 47 /** 48 * Keys and values associated with the time_detector. See also {@link 49 * TimeZoneDetectorShellHelper}. 50 */ 51 public final class TimeDetector { 52 TimeDetector()53 private TimeDetector() { 54 // No need to instantiate. 55 } 56 57 /** 58 * See {@link 59 * com.android.server.timedetector.ServerFlags#KEY_TIME_DETECTOR_ORIGIN_PRIORITIES_OVERRIDE} 60 */ 61 public static final String KEY_TIME_DETECTOR_ORIGIN_PRIORITIES_OVERRIDE = 62 "time_detector_origin_priorities_override"; 63 64 /** 65 * See {@link com.android.server.timedetector.TimeDetectorStrategy#ORIGIN_NETWORK}. 66 */ 67 public static final String ORIGIN_NETWORK = "network"; 68 69 /** 70 * See {@link com.android.server.timedetector.TimeDetectorStrategy#ORIGIN_EXTERNAL}. 71 */ 72 public static final String ORIGIN_EXTERNAL = "external"; 73 } 74 } 75