Home
last modified time | relevance | path

Searched refs:setProperty (Results 1 – 25 of 130) sorted by relevance

123456

/frameworks/base/services/tests/servicestests/src/com/android/server/stats/pull/
DSettingsStatsUtilTest.java53 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SETTINGS_STATS, in setUp()
67 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SETTINGS_STATS, FLAG, "abcd", false); in getList_notValidString_nullValue()
74 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SETTINGS_STATS, FLAG, ENCODED, false); in getList_validString_correctValue()
81 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SETTINGS_STATS, in logGlobalSettings_noWhitelist_correctSize()
83 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SETTINGS_STATS, in logGlobalSettings_noWhitelist_correctSize()
85 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SETTINGS_STATS, in logGlobalSettings_noWhitelist_correctSize()
87 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SETTINGS_STATS, in logGlobalSettings_noWhitelist_correctSize()
96 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SETTINGS_STATS, in logGlobalSettings_correctSize()
98 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SETTINGS_STATS, in logGlobalSettings_correctSize()
100 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SETTINGS_STATS, in logGlobalSettings_correctSize()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DCachedAppOptimizerTest.java193 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters()
195 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters()
198 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters()
201 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters()
204 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters()
207 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters()
210 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters()
213 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters()
216 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters()
219 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_withDeviceConfigSetsParameters()
[all …]
DCacheOomRankerTest.java139 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_listensForConfigChanges()
145 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_listensForConfigChanges()
151 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_listensForConfigChanges()
160 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_listensForConfigChanges()
169 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_listensForConfigChanges()
178 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_listensForConfigChanges()
187 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in init_listensForConfigChanges()
705 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in setConfig()
709 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in setConfig()
713 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in setConfig()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DDeviceConfigTest.java88 DeviceConfig.setProperty(NAMESPACE, KEY, VALUE2, /* makeDefault= */ false); in testAddStickyLocalOverridePreventsWrites()
99 DeviceConfig.setProperty(NAMESPACE, KEY2, VALUE2, /* makeDefault= */ false); in testAddStickyLocalOverrideDoesNotAffectOtherFlags()
109 DeviceConfig.setProperty(NAMESPACE, KEY, VALUE2, false); in testGetStickyLocalOverrides()
110 DeviceConfig.setProperty(NAMESPACE, KEY2, VALUE, false); in testGetStickyLocalOverrides()
144 DeviceConfig.setProperty(NAMESPACE, KEY, VALUE2, false); in testClearStickyLocalOverride()
145 DeviceConfig.setProperty(NAMESPACE2, KEY2, VALUE, false); in testClearStickyLocalOverride()
203 DeviceConfig.setProperty(NAMESPACE, KEY, value, false); in getString_nonEmpty()
240 DeviceConfig.setProperty(NAMESPACE, KEY, String.valueOf(value), false); in getBoolean_valid()
249 DeviceConfig.setProperty(NAMESPACE, KEY, "not_a_boolean", false); in getBoolean_invalid()
287 DeviceConfig.setProperty(NAMESPACE, KEY, String.valueOf(value), false); in getInt_valid()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DAttentionDetectorTest.java98 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in setUp()
108 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in tearDown()
111 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in tearDown()
114 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in tearDown()
307 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in testGetPreDimCheckDurationMillis_handlesGoodFlagValue()
314 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in testGetPreDimCheckDurationMillis_rejectsNegativeValue()
322 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in testGetPreDimCheckDurationMillis_rejectsTooBigValue()
330 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in testGetPreDimCheckDurationMillis_handlesBadFlagValue()
335 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in testGetPreDimCheckDurationMillis_handlesBadFlagValue()
343 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in testGetPostDimCheckDurationMillis_handlesGoodFlagValue()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DBackupAndRestoreFeatureFlagsTest.java49 DeviceConfig.setProperty(/*namespace=*/ "backup_and_restore", in getBackupTransportFutureTimeoutMillis_set_returnsSetValue()
67 DeviceConfig.setProperty(/*namespace=*/ "backup_and_restore", in getBackupTransportCallbackTimeoutMillis_set_returnsSetValue()
84 DeviceConfig.setProperty(/*namespace=*/ "backup_and_restore", in getFullBackupWriteToTransportBufferSizeBytes_set_returnsSetValue()
100 DeviceConfig.setProperty(/*namespace=*/ "backup_and_restore", in getFullBackupUtilsRouteBufferSizeBytes_set_returnsSetValue()
118 DeviceConfig.setProperty(/*namespace=*/ "backup_and_restore", in getUnifiedRestoreContinueAfterTransportFailureInKvRestore_set_returnsSetValue()
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/
DTestableDeviceConfigTest.java65 DeviceConfig.setProperty(sNamespace, sKey, sValue, false); in setAndGetProperty_sameNamespace()
73 DeviceConfig.setProperty(sNamespace, sKey, sValue, false); in setAndGetProperty_differentNamespace()
82 DeviceConfig.setProperty(sNamespace, sKey, sValue, false); in setAndGetProperty_multipleNamespaces()
83 DeviceConfig.setProperty(newNamespace, sKey, newValue, false); in setAndGetProperty_multipleNamespaces()
93 DeviceConfig.setProperty(sNamespace, sKey, sValue, false); in setAndGetProperty_overrideValue()
94 DeviceConfig.setProperty(sNamespace, sKey, newValue, false); in setAndGetProperty_overrideValue()
116 DeviceConfig.setProperty(sNamespace, sKey, sValue, false); in deleteProperty()
122 DeviceConfig.setProperty(newNamespace, sKey, newValue, false); in deleteProperty()
134 DeviceConfig.setProperty(sNamespace, sKey, sValue, false); in getProperties_empty()
139 DeviceConfig.setProperty(sNamespace, newKey, newValue, false); in getProperties_empty()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
DRecyclerViewUtil.java72 setProperty(recyclerView, adapterClassName, adapter, "setAdapter"); in setAdapter()
73 setProperty(adapter, int.class, adapterLayout, "setLayoutId"); in setAdapter()
76 setProperty(adapter, int.class, itemCount, "setItemCount"); in setAdapter()
96 setProperty(recyclerView, layoutMgrClassName, layoutManager, "setLayoutManager"); in setLayoutManager()
129 private static void setProperty(@NonNull Object object, @NonNull String propertyClassName, in setProperty() method in RecyclerViewUtil
133 setProperty(object, propertyClass, propertyValue, propertySetter); in setProperty()
136 private static void setProperty(@NonNull Object object, @NonNull Class<?> propertyClass, in setProperty() method in RecyclerViewUtil
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/
DScreenUndimDetectorTest.java91 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in setup()
94 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in setup()
110 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in recordScreenPolicy_disabledByFlag_noop()
169 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in recordScreenPolicy_dimToBright_twoUndimsNeeded_extends()
187 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in recordScreenPolicy_dimToBright_twoUndimsNeeded_otherDisplayDoesNotExtend()
208 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in recordScreenPolicy_dimBrightDimOff_resetsCounter_doesNotExtend()
224 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in recordScreenPolicy_undimToOff_resetsCounter()
240 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in recordScreenPolicy_undimToOff_otherDisplayDoesNotResetCounter()
257 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in recordScreenPolicy_undimOffUndim_doesNotExtend()
279 DeviceConfig.setProperty(NAMESPACE_ATTENTION_MANAGER_SERVICE, in recordScreenPolicy_dimToBright_tooFarApart_doesNotExtend()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/http/
DAbstractProxyTest.java193 System.setProperty("http.proxyHost", "proxy.foo"); in testParamPreferredOverSystemProperty()
194 System.setProperty("http.proxyPort", "8080"); in testParamPreferredOverSystemProperty()
209 System.setProperty("http.proxyHost", "proxy.foo"); in testExplicitNoProxyCancelsSystemProperty()
210 System.setProperty("http.proxyPort", "8080"); in testExplicitNoProxyCancelsSystemProperty()
242 System.setProperty("proxyHost", "localhost"); in PROXY_SYSTEM_PROPERTY()
243 System.setProperty("proxyPort", Integer.toString(server.getPort())); in PROXY_SYSTEM_PROPERTY()
248 System.setProperty("http.proxyHost", "localhost"); in HTTP_PROXY_SYSTEM_PROPERTY()
249 System.setProperty("http.proxyPort", Integer.toString(server.getPort())); in HTTP_PROXY_SYSTEM_PROPERTY()
254 System.setProperty("https.proxyHost", "localhost"); in HTTPS_PROXY_SYSTEM_PROPERTY()
255 System.setProperty("https.proxyPort", Integer.toString(server.getPort())); in HTTPS_PROXY_SYSTEM_PROPERTY()
/frameworks/base/core/java/android/net/
DProxy.java223 System.setProperty("http.proxyHost", host); in setHttpProxyConfiguration()
224 System.setProperty("https.proxyHost", host); in setHttpProxyConfiguration()
230 System.setProperty("http.proxyPort", port); in setHttpProxyConfiguration()
231 System.setProperty("https.proxyPort", port); in setHttpProxyConfiguration()
237 System.setProperty("http.nonProxyHosts", exclList); in setHttpProxyConfiguration()
238 System.setProperty("https.nonProxyHosts", exclList); in setHttpProxyConfiguration()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/blob/
DBlobStoreConfigTest.java62 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_BLOBSTORE, in testGetAppDataBytesLimit()
66 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_BLOBSTORE, in testGetAppDataBytesLimit()
74 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_BLOBSTORE, in testGetAppDataBytesLimit()
78 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_BLOBSTORE, in testGetAppDataBytesLimit()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qrcodescanner/controller/
DQRCodeScannerControllerTest.java98 mProxyFake.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in setUpLocal()
206 mProxyFake.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in verifyDeviceConfigChange_withDefaultActivity()
213 mProxyFake.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in verifyDeviceConfigChange_withDefaultActivity()
233 mProxyFake.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in verifyDeviceConfigChange_withoutDefaultActivity()
241 mProxyFake.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in verifyDeviceConfigChange_withoutDefaultActivity()
256 mProxyFake.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in verifyDeviceConfigChangeToSameValue()
259 mProxyFake.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in verifyDeviceConfigChangeToSameValue()
263 mProxyFake.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in verifyDeviceConfigChangeToSameValue()
266 mProxyFake.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, in verifyDeviceConfigChangeToSameValue()
/frameworks/native/services/inputflinger/tests/
DHardwareProperties_test.cpp71 void setProperty(int property, bool value) { in setProperty() function in android::HardwarePropertiesTest
96 setProperty(INPUT_PROP_SEMI_MT, false); in TEST_F()
97 setProperty(INPUT_PROP_BUTTONPAD, true); in TEST_F()
135 setProperty(INPUT_PROP_SEMI_MT, false); in TEST_F()
136 setProperty(INPUT_PROP_BUTTONPAD, false); in TEST_F()
/frameworks/base/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/runtimehelper/
DClassLoadHook.java90 private static void setProperty(String key, String value) { in setProperty() method in ClassLoadHook
91 System.setProperty(key, value); in setProperty()
139 setProperty(CORE_NATIVE_CLASSES, libanrdoidClasses); in loadFrameworkNativeCode()
140 setProperty(GRAPHICS_NATIVE_CLASSES, libhwuiClasses + GRAPHICS_EXTRA_INIT_PARAMS); in loadFrameworkNativeCode()
/frameworks/base/tests/BootImageProfileTest/src/com/android/bootimageprofile/
DBootImageProfileTest.java56 private String setProperty(String property, String value) throws Exception { in setProperty() method in BootImageProfileTest
109 setProperty("profilebootclasspath", "true"); in testSystemServerProfile()
110 setProperty("profilesystemserver", "true"); in testSystemServerProfile()
111 setProperty("extra-opts", DALVIK_VM_EXTRA_OPTS); in testSystemServerProfile()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DConstrainDisplayApisConfigTest.java172 DeviceConfig.setProperty(NAMESPACE_CONSTRAIN_DISPLAY_APIS, "never_constrain_display_apis", in setNeverConstrainDisplayApisFlag()
177 DeviceConfig.setProperty(NAMESPACE_CONSTRAIN_DISPLAY_APIS, in setNeverConstrainDisplayApisAllPackagesFlag()
183 DeviceConfig.setProperty(NAMESPACE_CONSTRAIN_DISPLAY_APIS, "always_constrain_display_apis", in setAlwaysConstrainDisplayApisFlag()
/frameworks/base/tests/RollbackTest/lib/src/com/android/tests/rollback/host/
DWatchdogEventLogger.java37 assertThat(mDevice.setProperty( in resetProperties()
41 assertThat(mDevice.setProperty(key, "")).isTrue(); in resetProperties()
43 assertThat(mDevice.setProperty(key + "." + attr, "")).isTrue(); in resetProperties()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DDeviceConfigProxyFakeTest.java60 mDeviceConfigProxyFake.setProperty(NAMESPACE, key, value, false); in testOnPropertiesChanged()
77 mDeviceConfigProxyFake.setProperty(NAMESPACE, keyA, valueA, false); in testOnMultiplePropertiesChanged()
83 mDeviceConfigProxyFake.setProperty(NAMESPACE, keyB, valueB, false); in testOnMultiplePropertiesChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardStatusViewControllerTest.java106 verify(mControllerMock).setProperty(AnimatableProperty.Y, 15f, true); in updatePosition_primaryClockAnimation()
109 verify(mControllerMock).setProperty(AnimatableProperty.SCALE_X, 1f, true); in updatePosition_primaryClockAnimation()
110 verify(mControllerMock).setProperty(AnimatableProperty.SCALE_Y, 1f, true); in updatePosition_primaryClockAnimation()
121 verify(mControllerMock).setProperty(AnimatableProperty.Y, 15f, true); in updatePosition_alternateClockAnimation()
124 verify(mControllerMock).setProperty(AnimatableProperty.SCALE_X, 20f, true); in updatePosition_alternateClockAnimation()
125 verify(mControllerMock).setProperty(AnimatableProperty.SCALE_Y, 20f, true); in updatePosition_alternateClockAnimation()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardVisibilityHelper.java119 PropertyAnimator.setProperty( in setViewVisibility()
126 PropertyAnimator.setProperty( in setViewVisibility()
160 PropertyAnimator.setProperty(mView, AnimatableProperty.Y, target, in setViewVisibility()
169 PropertyAnimator.setProperty( in setViewVisibility()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DLatencyTrackerTest.java136 DeviceConfig.setProperty(NAMESPACE_LATENCY_TRACKER,
147 DeviceConfig.setProperty(NAMESPACE_LATENCY_TRACKER,
164 DeviceConfig.setProperty(NAMESPACE_LATENCY_TRACKER,
177 DeviceConfig.setProperty(NAMESPACE_LATENCY_TRACKER,
234 DeviceConfig.setProperty(NAMESPACE_LATENCY_TRACKER, "action_show_voice_interaction_enable",
252 DeviceConfig.setProperty(NAMESPACE_LATENCY_TRACKER, "action_show_voice_interaction_enable",
266 DeviceConfig.setProperty(NAMESPACE_LATENCY_TRACKER, "action_show_voice_interaction_enable",
/frameworks/base/core/java/android/provider/
DDeviceConfigInterface.java53 boolean setProperty(@NonNull String namespace, @NonNull String name, @Nullable String value, in setProperty() method
138 public boolean setProperty(@NonNull String namespace,
141 return DeviceConfig.setProperty(namespace, name, value, makeDefault);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
DServerFlagReaderImplTest.kt59 deviceConfig.setProperty(NAMESPACE, "flag_1", "1", false) in testChange_alertsListener()
71 deviceConfig.setProperty(NAMESPACE, "flag_override_1", "1", false) in testChange_ignoresListenersDuringTest()
/frameworks/base/tests/testables/src/android/testing/
DDexmakerShareClassLoaderRule.java80 System.setProperty(DEXMAKER_SHARE_CLASSLOADER_PROPERTY, "true"); in wrapInSetAndClearProperty()
84 System.setProperty(DEXMAKER_SHARE_CLASSLOADER_PROPERTY, previousValue); in wrapInSetAndClearProperty()

123456