Home
last modified time | relevance | path

Searched refs:DeviceConfig (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/provider/
DDeviceConfigTest.java19 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 …]
DSettingsProviderTest.java404 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/
DAppCompactorTest.java27 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/
DPhenotypeHelper.java19 import android.provider.DeviceConfig;
30 return DeviceConfig.getLong(DeviceConfig.NAMESPACE_SYSTEMUI, name, defaultValue); in getLong()
34 return DeviceConfig.getInt(DeviceConfig.NAMESPACE_SYSTEMUI, name, defaultValue); in getInt()
39 return DeviceConfig.getString(DeviceConfig.NAMESPACE_SYSTEMUI, name, defaultValue); in getString()
43 return DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_SYSTEMUI, name, defaultValue); in getBoolean()
47 Executor executor, DeviceConfig.OnPropertiesChangedListener listener) { in addOnPropertiesChangedListener()
48 DeviceConfig.addOnPropertiesChangedListener( in addOnPropertiesChangedListener()
49 DeviceConfig.NAMESPACE_SYSTEMUI, executor, listener); in addOnPropertiesChangedListener()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/
DTestableDeviceConfigTest.java19 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 …]
DTestableDeviceConfig.java30 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/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyConstantsTest.java26 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/
DFalsingManagerProxyTest.java25 import android.provider.DeviceConfig;
57 mDefaultConfigValue = DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_SYSTEMUI, in setup()
60 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in setup()
66 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in tearDown()
79 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in test_brightLineFalsingManagerEnabled()
91 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in test_brightLineFalsingManagerToggled()
97 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in test_brightLineFalsingManagerToggled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyConstants.java25 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/
DConfigParserTest.java20 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/
DDistanceClassifier.java26 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 …]
DZigZagClassifier.java25 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()
DDiagonalClassifier.java24 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/
DAppCompactor.java32 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 …]
DSettingsToPropertiesMapper.java26 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/core/java/android/view/textclassifier/
DConfigParser.java19 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 …]
DTextClassificationManager.java27 import android.provider.DeviceConfig;
28 import android.provider.DeviceConfig.Properties;
207 DeviceConfig.removeOnPropertiesChangedListener(mSettingsObserver); in finalize()
297 implements DeviceConfig.OnPropertiesChangedListener {
309 DeviceConfig.addOnPropertiesChangedListener( in SettingsObserver()
310 DeviceConfig.NAMESPACE_TEXTCLASSIFIER, in SettingsObserver()
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiUtilsTest.java25 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/
Dtest-removed.txt13 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/
DFlagNamespaceUtils.java20 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/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingManagerProxy.java25 import android.provider.DeviceConfig;
59 DeviceConfig.addOnPropertiesChangedListener(DeviceConfig.NAMESPACE_SYSTEMUI, in FalsingManagerProxy()
82 if (!DeviceConfig.NAMESPACE_SYSTEMUI.equals(namespace)) { in onDeviceConfigPropertiesChanged()
94 boolean brightlineEnabled = DeviceConfig.getBoolean( in setupFalsingManager()
95 DeviceConfig.NAMESPACE_SYSTEMUI, BRIGHTLINE_FALSING_MANAGER_ENABLED, true); in setupFalsingManager()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiUtils.java465 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/
DContentCaptureManagerService.java52 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/
DGpuService.java39 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()
/frameworks/base/core/java/android/provider/
DOWNERS1 per-file DeviceConfig.java = svetoslavganov@google.com
2 per-file DeviceConfig.java = hackbod@google.com

123