/frameworks/base/core/tests/coretests/src/android/provider/ |
D | DeviceConfigTest.java | 19 import static android.provider.DeviceConfig.OnPropertiesChangedListener; 20 import static android.provider.DeviceConfig.OnPropertyChangedListener; 59 String result = DeviceConfig.getProperty(sNamespace, sKey); in getProperty_empty() 66 DeviceConfig.getProperty(null, sKey); in getProperty_nullNamespace() 76 DeviceConfig.getProperty(sNamespace, null); in getProperty_nullName() 86 final String result = DeviceConfig.getString(sNamespace, sKey, default_value); in getString_empty() 92 final String result = DeviceConfig.getString(sNamespace, sKey, null); in getString_nullDefault() 100 DeviceConfig.setProperty(sNamespace, sKey, value, false); in getString_nonEmpty() 102 final String result = DeviceConfig.getString(sNamespace, sKey, default_value); in getString_nonEmpty() 109 DeviceConfig.getString(null, sKey, "default_value"); in getString_nullNamespace() [all …]
|
D | SettingsProviderTest.java | 404 r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_GET_CONFIG, name, null); in testCall_putAndGetConfig() 408 results = r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_PUT_CONFIG, name, args); in testCall_putAndGetConfig() 412 results = r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_GET_CONFIG, name, null); in testCall_putAndGetConfig() 417 r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_PUT_CONFIG, name, args); in testCall_putAndGetConfig() 420 results = r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_GET_CONFIG, name, null); in testCall_putAndGetConfig() 424 r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_DELETE_CONFIG, name, null); in testCall_putAndGetConfig() 438 r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_PUT_CONFIG, name, args); in testCall_deleteConfig() 442 r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_GET_CONFIG, name, null); in testCall_deleteConfig() 446 results = r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_DELETE_CONFIG, name, in testCall_deleteConfig() 450 results = r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_GET_CONFIG, name, null); in testCall_deleteConfig() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | AppCompactorTest.java | 27 import android.provider.DeviceConfig; 132 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters() 134 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters() 137 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters() 140 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters() 143 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters() 146 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters() 149 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters() 152 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters() 155 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ |
D | DeviceConfigHelper.java | 19 import android.provider.DeviceConfig; 40 return DeviceConfig.getLong(DeviceConfig.NAMESPACE_SYSTEMUI, name, defaultValue); in getLong() 44 return DeviceConfig.getInt(DeviceConfig.NAMESPACE_SYSTEMUI, name, defaultValue); in getInt() 49 return DeviceConfig.getString(DeviceConfig.NAMESPACE_SYSTEMUI, name, defaultValue); in getString() 53 return DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_SYSTEMUI, name, defaultValue); in getBoolean() 57 Executor executor, DeviceConfig.OnPropertiesChangedListener listener) { in addOnPropertiesChangedListener() 58 DeviceConfig.addOnPropertiesChangedListener( in addOnPropertiesChangedListener() 59 DeviceConfig.NAMESPACE_SYSTEMUI, executor, listener); in addOnPropertiesChangedListener()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/ |
D | TestableDeviceConfigTest.java | 19 import static android.provider.DeviceConfig.OnPropertiesChangedListener; 25 import android.provider.DeviceConfig; 52 String result = DeviceConfig.getProperty(sNamespace, sKey); in getProperty_empty() 58 DeviceConfig.setProperty(sNamespace, sKey, sValue, false); in setAndGetProperty_sameNamespace() 59 String result = DeviceConfig.getProperty(sNamespace, sKey); in setAndGetProperty_sameNamespace() 66 DeviceConfig.setProperty(sNamespace, sKey, sValue, false); in setAndGetProperty_differentNamespace() 67 String result = DeviceConfig.getProperty(newNamespace, sKey); in setAndGetProperty_differentNamespace() 75 DeviceConfig.setProperty(sNamespace, sKey, sValue, false); in setAndGetProperty_multipleNamespaces() 76 DeviceConfig.setProperty(newNamespace, sKey, newValue, false); in setAndGetProperty_multipleNamespaces() 77 String result = DeviceConfig.getProperty(sNamespace, sKey); in setAndGetProperty_multipleNamespaces() [all …]
|
D | TestableDeviceConfig.java | 30 import android.provider.DeviceConfig; 31 import android.provider.DeviceConfig.Properties; 65 private Map<DeviceConfig.OnPropertyChangedListener, Pair<String, Executor>> 67 private Map<DeviceConfig.OnPropertiesChangedListener, Pair<String, Executor>> 83 .spyStatic(DeviceConfig.class) in apply() 89 DeviceConfig.OnPropertiesChangedListener onPropertiesChangedListener = in apply() 94 }).when(() -> DeviceConfig.addOnPropertiesChangedListener( in apply() 96 any(DeviceConfig.OnPropertiesChangedListener.class))); in apply() 101 DeviceConfig.OnPropertyChangedListener onPropertyChangedListener = in apply() 106 }).when(() -> DeviceConfig.addOnPropertyChangedListener( in apply() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | DeviceConfigFacade.java | 19 import android.provider.DeviceConfig; 49 return DeviceConfig.getBoolean(NAMESPACE, "abnormal_connection_bugreport_enabled", false); in isAbnormalConnectionBugreportEnabled() 56 return DeviceConfig.getInt(NAMESPACE, "abnormal_connection_duration_ms", in getAbnormalConnectionDurationMs() 66 DeviceConfig.OnPropertiesChangedListener onPropertiesChangedListener) { in addOnPropertiesChangedListener() 67 DeviceConfig.addOnPropertiesChangedListener(NAMESPACE, executor, in addOnPropertiesChangedListener() 75 return DeviceConfig.getInt(NAMESPACE, "data_stall_duration_ms", in getDataStallDurationMs() 83 return DeviceConfig.getInt(NAMESPACE, "data_stall_tx_tput_thr_mbps", in getDataStallTxTputThrMbps() 91 return DeviceConfig.getInt(NAMESPACE, "data_stall_rx_tput_thr_mbps", in getDataStallRxTputThrMbps() 99 return DeviceConfig.getInt(NAMESPACE, "data_stall_tx_per_thr", in getDataStallTxPerThr() 107 return DeviceConfig.getInt(NAMESPACE, "data_stall_cca_level_thr", in getDataStallCcaLevelThr() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyConstantsTest.java | 26 import android.provider.DeviceConfig; 227 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in overrideSetting() 232 mConstants.onDeviceConfigPropertiesChanged(DeviceConfig.NAMESPACE_SYSTEMUI); in triggerConstantsOnChange() 236 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in resetAllDeviceConfigFlags() 238 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in resetAllDeviceConfigFlags() 240 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in resetAllDeviceConfigFlags() 243 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in resetAllDeviceConfigFlags() 246 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in resetAllDeviceConfigFlags() 248 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in resetAllDeviceConfigFlags() 251 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in resetAllDeviceConfigFlags() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | FalsingManagerProxyTest.java | 25 import android.provider.DeviceConfig; 60 mDefaultConfigValue = DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_SYSTEMUI, in setup() 63 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in setup() 69 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in tearDown() 83 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in test_brightLineFalsingManagerEnabled() 97 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in test_brightLineFalsingManagerToggled() 103 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in test_brightLineFalsingManagerToggled()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyConstants.java | 25 import android.provider.DeviceConfig; 96 DeviceConfig.addOnPropertiesChangedListener( in registerDeviceConfigListener() 97 DeviceConfig.NAMESPACE_SYSTEMUI, in registerDeviceConfigListener() 108 if (!DeviceConfig.NAMESPACE_SYSTEMUI.equals(namespace)) { in onDeviceConfigPropertiesChanged() 125 mMaxSqueezeRemeasureAttempts = DeviceConfig.getInt( in updateConstants() 126 DeviceConfig.NAMESPACE_SYSTEMUI, in updateConstants() 135 mMinNumSystemGeneratedReplies = DeviceConfig.getInt( in updateConstants() 136 DeviceConfig.NAMESPACE_SYSTEMUI, in updateConstants() 139 mMaxNumActions = DeviceConfig.getInt( in updateConstants() 140 DeviceConfig.NAMESPACE_SYSTEMUI, in updateConstants() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | ConfigParserTest.java | 20 import android.provider.DeviceConfig; 41 "device_config delete " + DeviceConfig.NAMESPACE_TEXTCLASSIFIER; 64 DeviceConfig.setProperty( in getBoolean_deviceConfig() 65 DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in getBoolean_deviceConfig() 83 DeviceConfig.setProperty( in getInt_deviceConfig() 84 DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in getInt_deviceConfig() 100 DeviceConfig.setProperty( in getFloat_deviceConfig() 101 DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in getFloat_deviceConfig() 117 DeviceConfig.setProperty( in getString_deviceConfig() 118 DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in getString_deviceConfig()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/ |
D | DistanceClassifier.java | 26 import android.provider.DeviceConfig; 56 mVelocityToDistanceMultiplier = DeviceConfig.getFloat( in DistanceClassifier() 57 DeviceConfig.NAMESPACE_SYSTEMUI, in DistanceClassifier() 61 float horizontalFlingThresholdIn = DeviceConfig.getFloat( in DistanceClassifier() 62 DeviceConfig.NAMESPACE_SYSTEMUI, in DistanceClassifier() 66 float verticalFlingThresholdIn = DeviceConfig.getFloat( in DistanceClassifier() 67 DeviceConfig.NAMESPACE_SYSTEMUI, in DistanceClassifier() 71 float horizontalSwipeThresholdIn = DeviceConfig.getFloat( in DistanceClassifier() 72 DeviceConfig.NAMESPACE_SYSTEMUI, in DistanceClassifier() 76 float verticalSwipeThresholdIn = DeviceConfig.getFloat( in DistanceClassifier() [all …]
|
D | ZigZagClassifier.java | 25 import android.provider.DeviceConfig; 54 mMaxXPrimaryDeviance = DeviceConfig.getFloat( in ZigZagClassifier() 55 DeviceConfig.NAMESPACE_SYSTEMUI, in ZigZagClassifier() 59 mMaxYPrimaryDeviance = DeviceConfig.getFloat( in ZigZagClassifier() 60 DeviceConfig.NAMESPACE_SYSTEMUI, in ZigZagClassifier() 64 mMaxXSecondaryDeviance = DeviceConfig.getFloat( in ZigZagClassifier() 65 DeviceConfig.NAMESPACE_SYSTEMUI, in ZigZagClassifier() 69 mMaxYSecondaryDeviance = DeviceConfig.getFloat( in ZigZagClassifier() 70 DeviceConfig.NAMESPACE_SYSTEMUI, in ZigZagClassifier()
|
D | DiagonalClassifier.java | 24 import android.provider.DeviceConfig; 48 mHorizontalAngleRange = DeviceConfig.getFloat( in DiagonalClassifier() 49 DeviceConfig.NAMESPACE_SYSTEMUI, in DiagonalClassifier() 52 mVerticalAngleRange = DeviceConfig.getFloat( in DiagonalClassifier() 53 DeviceConfig.NAMESPACE_SYSTEMUI, in DiagonalClassifier()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppCompactor.java | 32 import android.provider.DeviceConfig; 33 import android.provider.DeviceConfig.OnPropertiesChangedListener; 34 import android.provider.DeviceConfig.Properties; 235 DeviceConfig.addOnPropertiesChangedListener(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init() 363 mUseCompaction = DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in updateUseCompaction() 373 int compactAction1 = DeviceConfig.getInt(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in updateCompactionActions() 376 int compactAction2 = DeviceConfig.getInt(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in updateCompactionActions() 387 DeviceConfig.getProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in updateCompactionThrottles() 390 DeviceConfig.getProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in updateCompactionThrottles() 393 DeviceConfig.getProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in updateCompactionThrottles() [all …]
|
D | SettingsToPropertiesMapper.java | 26 import android.provider.DeviceConfig; 82 DeviceConfig.NAMESPACE_ACTIVITY_MANAGER_NATIVE_BOOT, 83 DeviceConfig.NAMESPACE_INPUT_NATIVE_BOOT, 84 DeviceConfig.NAMESPACE_INTELLIGENCE_CONTENT_SUGGESTIONS, 85 DeviceConfig.NAMESPACE_MEDIA_NATIVE, 86 DeviceConfig.NAMESPACE_NETD_NATIVE, 87 DeviceConfig.NAMESPACE_RUNTIME_NATIVE, 88 DeviceConfig.NAMESPACE_RUNTIME_NATIVE_BOOT, 136 DeviceConfig.addOnPropertiesChangedListener( in updatePropertiesFromSettings() 139 (DeviceConfig.Properties properties) -> { in updatePropertiesFromSettings()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | HighRefreshRateBlacklist.java | 19 import static android.hardware.display.DisplayManager.DeviceConfig.KEY_HIGH_REFRESH_RATE_BLACKLIST; 24 import android.provider.DeviceConfig; 48 return DeviceConfig.getProperty(namespace, name); in create() 52 @NonNull DeviceConfig.OnPropertyChangedListener listener) { in create() 53 DeviceConfig.addOnPropertyChangedListener(namespace, executor, listener); in create() 61 deviceConfig.addOnPropertyChangedListener(DeviceConfig.NAMESPACE_DISPLAY_MANAGER, 63 final String property = deviceConfig.getProperty(DeviceConfig.NAMESPACE_DISPLAY_MANAGER, 107 @NonNull DeviceConfig.OnPropertyChangedListener listener); 110 private class OnPropertyChangedListener implements DeviceConfig.OnPropertyChangedListener {
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | ConfigParser.java | 19 import android.provider.DeviceConfig; 86 value = DeviceConfig.getBoolean( in getBoolean() 87 DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in getBoolean() 109 value = DeviceConfig.getInt( in getInt() 110 DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in getInt() 132 value = DeviceConfig.getFloat( in getFloat() 133 DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in getFloat() 155 value = DeviceConfig.getString( in getString() 156 DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in getString() 223 DeviceConfig.getString(DeviceConfig.NAMESPACE_TEXTCLASSIFIER, key, null), in getDeviceConfigStringList() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | HighRefreshRateBlacklistTest.java | 19 import static android.hardware.display.DisplayManager.DeviceConfig.KEY_HIGH_REFRESH_RATE_BLACKLIST; 28 import android.provider.DeviceConfig; 123 private List<Pair<DeviceConfig.OnPropertyChangedListener, Executor>> mListeners = 129 if (!DeviceConfig.NAMESPACE_DISPLAY_MANAGER.equals(namespace) in getProperty() 139 DeviceConfig.OnPropertyChangedListener listener) { in addOnPropertyChangedListener() 141 if (!DeviceConfig.NAMESPACE_DISPLAY_MANAGER.equals(namespace)) { in addOnPropertyChangedListener() 151 for (Pair<DeviceConfig.OnPropertyChangedListener, Executor> listenerInfo : in setBlacklist() 154 final DeviceConfig.OnPropertyChangedListener listener = listenerInfo.first; in setBlacklist() 156 listener.onPropertyChanged(DeviceConfig.NAMESPACE_DISPLAY_MANAGER, in setBlacklist()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | HdmiUtilsTest.java | 25 import com.android.server.hdmi.HdmiUtils.DeviceConfig; 112 List<DeviceConfig> config = new ArrayList<>(); in parseSampleXML() 135 DeviceConfig expectedDevice1 = new DeviceConfig( in parseSampleXML() 137 DeviceConfig expectedDevice2 = new DeviceConfig( in parseSampleXML() 140 List<DeviceConfig> expectedConfig = new ArrayList<>(); in parseSampleXML()
|
/frameworks/base/api/ |
D | test-removed.txt | 13 public final class DeviceConfig { 14 …ng, @NonNull java.util.concurrent.Executor, @NonNull android.provider.DeviceConfig.OnPropertyChang… 15 …static void removeOnPropertyChangedListener(@NonNull android.provider.DeviceConfig.OnPropertyChang… 18 public static interface DeviceConfig.OnPropertyChangedListener {
|
/frameworks/base/services/core/java/com/android/server/utils/ |
D | FlagNamespaceUtils.java | 20 import android.provider.DeviceConfig; 95 DeviceConfig.setProperty(NAMESPACE_RESCUE_PARTY, in addToKnownResetNamespaces() 112 DeviceConfig.resetToDefaults(resetMode, namespace); in resetDeviceConfig() 130 String namespacesStr = DeviceConfig.getProperty(NAMESPACE_RESCUE_PARTY, in getAllKnownDeviceConfigNamespacesList()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiUtils.java | 465 public static List<DeviceConfig> parse(InputStream in) in parse() 491 private static List<DeviceConfig> readDevices(XmlPullParser parser) in readDevices() 493 List<DeviceConfig> devices = new ArrayList<>(); in readDevices() 504 DeviceConfig config = null; in readDevices() 520 private static DeviceConfig readDeviceConfig(XmlPullParser parser, String deviceType) in readDeviceConfig() 552 return new DeviceConfig(deviceType, codecSads); in readDeviceConfig() 611 public static class DeviceConfig { class in HdmiUtils 617 public DeviceConfig(String name, List<CodecSad> supportedCodecs) { in DeviceConfig() method in HdmiUtils.DeviceConfig 624 if (obj instanceof DeviceConfig) { in equals() 625 DeviceConfig that = (DeviceConfig) obj; in equals()
|
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
D | ContentCaptureManagerService.java | 52 import android.provider.DeviceConfig; 53 import android.provider.DeviceConfig.Properties; 135 DeviceConfig.addOnPropertiesChangedListener(DeviceConfig.NAMESPACE_CONTENT_CAPTURE, in ContentCaptureManagerService() 283 mDevCfgMaxBufferSize = DeviceConfig.getInt( in setFineTuneParamsFromDeviceConfig() 284 DeviceConfig.NAMESPACE_CONTENT_CAPTURE, in setFineTuneParamsFromDeviceConfig() 287 mDevCfgIdleFlushingFrequencyMs = DeviceConfig.getInt( in setFineTuneParamsFromDeviceConfig() 288 DeviceConfig.NAMESPACE_CONTENT_CAPTURE, in setFineTuneParamsFromDeviceConfig() 291 mDevCfgTextChangeFlushingFrequencyMs = DeviceConfig.getInt( in setFineTuneParamsFromDeviceConfig() 292 DeviceConfig.NAMESPACE_CONTENT_CAPTURE, in setFineTuneParamsFromDeviceConfig() 295 mDevCfgLogHistorySize = DeviceConfig.getInt( in setFineTuneParamsFromDeviceConfig() [all …]
|
/frameworks/base/services/core/java/com/android/server/gpu/ |
D | GpuService.java | 39 import android.provider.DeviceConfig; 40 import android.provider.DeviceConfig.Properties; 141 private final class DeviceConfigListener implements DeviceConfig.OnPropertiesChangedListener { 145 DeviceConfig.addOnPropertiesChangedListener(DeviceConfig.NAMESPACE_GAME_DRIVER, in DeviceConfigListener() 248 String base64String = DeviceConfig.getProperty(DeviceConfig.NAMESPACE_GAME_DRIVER, in processBlacklists()
|