Home
last modified time | relevance | path

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

123

/cts/tests/tests/content/src/android/content/res/cts/
DConfigTest.java121 public void setProperty(final Properties p, final int value) { in setProperty() method in ConfigTest.TotalConfig
182 public void setProperty(final Properties p, final String value) { in setProperty() method in ConfigTest.TotalConfig
227 config.setProperty(Properties.LANGUAGE, "en"); in makeClassicConfig()
228 config.setProperty(Properties.COUNTRY, "US"); in makeClassicConfig()
229 config.setProperty(Properties.MCC, 310); in makeClassicConfig()
230 config.setProperty(Properties.MNC, 001); // unused in makeClassicConfig()
231 config.setProperty(Properties.TOUCHSCREEN, Configuration.TOUCHSCREEN_FINGER); in makeClassicConfig()
232 config.setProperty(Properties.KEYBOARD, Configuration.KEYBOARD_QWERTY); in makeClassicConfig()
233 config.setProperty(Properties.KEYBOARDHIDDEN, Configuration.KEYBOARDHIDDEN_YES); in makeClassicConfig()
234 config.setProperty(Properties.NAVIGATION, Configuration.NAVIGATION_TRACKBALL); in makeClassicConfig()
[all …]
/cts/hostsidetests/gwp_asan/src/android/cts/gwp_asan/
DRecoverableDefaultTest.java45 mDevice.setProperty(PROCESS_SAMPLING_SYSPROP + TEST_PKG, "1"); in setUp()
46 mDevice.setProperty(PROCESS_SAMPLING_SYSPROP + TEST_PKG + ":gwp_asan_enabled", "1"); in setUp()
47 mDevice.setProperty(PROCESS_SAMPLING_SYSPROP + TEST_PKG + ":gwp_asan_default", "1"); in setUp()
53 mDevice.setProperty(PROCESS_SAMPLING_SYSPROP + TEST_PKG, ""); in tearDown()
54 mDevice.setProperty(PROCESS_SAMPLING_SYSPROP + TEST_PKG + ":gwp_asan_enabled", ""); in tearDown()
55 mDevice.setProperty(PROCESS_SAMPLING_SYSPROP + TEST_PKG + ":gwp_asan_default", ""); in tearDown()
DNonRecoverableTest.java42 mDevice.setProperty(RECOVERABLE_SYSPROP + TEST_PKG, "false"); in setUp()
43 mDevice.setProperty(RECOVERABLE_SYSPROP + TEST_PKG + ":gwp_asan_enabled", "false"); in setUp()
44 mDevice.setProperty(RECOVERABLE_SYSPROP + TEST_PKG + ":gwp_asan_default", "false"); in setUp()
50 mDevice.setProperty(RECOVERABLE_SYSPROP + TEST_PKG, ""); in tearDown()
51 mDevice.setProperty(RECOVERABLE_SYSPROP + TEST_PKG + ":gwp_asan_enabled", ""); in tearDown()
52 mDevice.setProperty(RECOVERABLE_SYSPROP + TEST_PKG + ":gwp_asan_default", ""); in tearDown()
/cts/tests/mediapc/src/android/mediapc/cts/
DProvisionRequester.java54 post.setProperty("Accept", "*/*");
55 post.setProperty("User-Agent", "Widevine CDM v1.0");
56 post.setProperty("Content-Type", "application/json");
57 post.setProperty("Connection", "close");
DKeyRequester.java168 post.setProperty("Content-Type", "text/xml"); in sendRequest()
169 post.setProperty("SOAPAction", in sendRequest()
172 post.setProperty("User-Agent", "Widevine CDM v1.0"); in sendRequest()
173 post.setProperty("Connection", "close"); in sendRequest()
174 post.setProperty("Accept", "*/*"); in sendRequest()
DPost.java72 public void setProperty(String key, String value) { in setProperty() method in Post
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiTests.java198 DeviceConfig.setProperty(NAMESPACE3, KEY3, VALUE3, false); in testPropertiesIncludedInGetAllProperties()
199 DeviceConfig.setProperty(NAMESPACE4, KEY4, VALUE4, false); in testPropertiesIncludedInGetAllProperties()
237 DeviceConfig.setProperty(NAMESPACE3, KEY3, VALUE4, /* makeDefault= */ false); in testAddStickyLocalOverridePreventsWrites()
252 DeviceConfig.setProperty(NAMESPACE3, KEY4, VALUE4, /* makeDefault= */ false); in testAddStickyLocalOverrideDoesNotAffectOtherFlags()
266 DeviceConfig.setProperty(NAMESPACE3, KEY3, VALUE4, false); in testGetStickyLocalOverrides()
267 DeviceConfig.setProperty(NAMESPACE3, KEY4, VALUE3, false); in testGetStickyLocalOverrides()
308 DeviceConfig.setProperty(NAMESPACE3, KEY3, VALUE4, false); in testClearStickyLocalOverride()
309 DeviceConfig.setProperty(NAMESPACE4, KEY4, VALUE3, false); in testClearStickyLocalOverride()
338 DeviceConfig.setProperty(NAMESPACE1, KEY1, VALUE1, /*makeDefault=*/false); in testSetAndGetProperty_sameNamespace()
365 DeviceConfig.setProperty(NAMESPACE1, KEY1, VALUE1, /*makeDefault=*/false); in testSetAndGetProperty_differentNamespace()
[all …]
DDeviceConfigApiPermissionTests.java201 DeviceConfig.setProperty(PUBLIC_NAMESPACE, KEY, VALUE, /*makeDefault=*/ false); in testDeviceConfigPublicNamespacesWithoutReadPermission()
223 DeviceConfig.setProperty(PUBLIC_NAMESPACE, KEY, VALUE, /*makeDefault=*/ false); in testDeviceConfigPublicNamespacesWithoutReadPermission()
282 DeviceConfig.setProperty(NAMESPACE, KEY, VALUE, /*makeDefault=*/ false); in trySetPropertyWithoutWritePermission()
314 DeviceConfig.setProperty(NAMESPACE, KEY, VALUE, /*makeDefault=*/ false); in trySetPropertyWithWritePermission()
/cts/hostsidetests/tagging/src/com/android/cts/tagging/
DMemtagBootctlTest.java61 testInfo.getDevice().setProperty("arm64.memtag.bootctl", mPreviousState); in tearDown()
86 getDevice().setProperty("arm64.memtag.bootctl", "memtag-once"); in testMemtagOnce()
98 getDevice().setProperty("arm64.memtag.bootctl", "memtag-off"); in testMemtagOff()
110 getDevice().setProperty("arm64.memtag.bootctl", "memtag"); in testMemtag()
122 getDevice().setProperty("arm64.memtag.bootctl", "memtag,memtag-once"); in testBoth()
DTaggingSdk30Test.java102 device.setProperty("persist.sys.mte.permissive", "1"); in testPermissive()
108 device.setProperty("persist.sys.mte.permissive", in testPermissive()
/cts/tests/core/runner-axt/src/com/android/cts/runner/
DCtsLibcoreTestRunListener.java67 System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath()); in testRunStarted()
213 mProperties.setProperty("user.home", ""); in TestEnvironment()
214 mProperties.setProperty("java.io.tmpdir", context.getCacheDir().getAbsolutePath()); in TestEnvironment()
218 mProperties.setProperty("android.cts.device.multicast", in TestEnvironment()
226 mProperties.setProperty("android.cts.device.lowram", in TestEnvironment()
/cts/tools/cts-tradefed/tests/src/com/android/compatibility/tradefed/
DCtsTradefedTest.java56 System.setProperty(PROPERTY_NAME, mOriginalProperty); in tearDown()
64 System.setProperty(PROPERTY_NAME, root.getAbsolutePath()); in testSuiteInfoLoad()
/cts/tests/rollback/src/com/android/cts/rollback/
DRollbackManagerTest.java391 DeviceConfig.setProperty("configuration", "namespace_to_package_mapping", in testRollbackClearsFlags()
393 DeviceConfig.setProperty("testspace", "flagname", "hello", false); in testRollbackClearsFlags()
394 DeviceConfig.setProperty("testspace", "another", "12345", false); in testRollbackClearsFlags()
612 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ROLLBACK, in testEnableRollbackTimeoutFailsRollback()
634 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ROLLBACK, in testEnableRollbackTimeoutFailsRollback()
645 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ROLLBACK, in testEnableRollbackTimeoutFailsRollback_MultiPackage()
669 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ROLLBACK, in testEnableRollbackTimeoutFailsRollback_MultiPackage()
681 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ROLLBACK_BOOT, in testRollbackExpiresAfterLifetime()
699 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ROLLBACK_BOOT, in testRollbackExpiresAfterLifetime()
745 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ROLLBACK_BOOT, in testRollbackExpiresWhenLifetimeChanges()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DCertificateTest.java69 System.setProperty("system.certs.enabled", mApexCertsEnabled); in testNoRemovedCertificates()
97 System.setProperty("system.certs.enabled", mApexCertsEnabled); in testNoAddedCertificates()
107 System.setProperty("system.certs.enabled", mApexCertsEnabled); in testBlockCertificates()
/cts/tests/tests/content/src/android/content/cts/
DClipboardAutoClearTest.java117 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_CLIPBOARD, in testAutoClearEnabledDefault()
157 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_CLIPBOARD, property, in getAndSetProperty()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/hardware/property/
DCarVendorPropertyCustomPermissionTest.java116 mCarPropertyManager.setProperty(Object[].class, MIXED_TYPE_PROPERTY_FOR_TEST, in testSetMixedTypePropertyForTest()
127 assertThrows(SecurityException.class, () -> mCarPropertyManager.setProperty(Object[].class, in testSetMixedTypePropertyForTest_noPermission()
/cts/tests/translation/src/android/translation/cts/
DHelper.java170 System.setProperty(LOG_TAG, "DEBUG"); in enableDebugLog()
182 System.setProperty(LOG_TAG, level); in disableDebugLog()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCamera2ParameterizedTestCase.java64 System.setProperty("dexmaker.dexcache", mContext.getCacheDir().toString()); in setUp()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DDeviceConfigStateManager.java72 DeviceConfig.setProperty(mNamespace, mKey, value, /* makeDefault= */ false); in setWithPermissionsGranted()
DDeviceConfigStateHelper.java63 DeviceConfig.setProperty(mNamespace, key, value, /* makeDefault */false))); in set()
/cts/hostsidetests/graphics/gpuprofiling/src/android/graphics/gpuprofiling/cts/
DCtsGpuProfilingDataTest.java117 getDevice().setProperty(DEBUG_PROPERTY, initialDebugPropertyValue); in cleanup()
137 getDevice().setProperty(DEBUG_PROPERTY, "1"); in init()
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java512 DeviceConfig.setProperty( in setCacheReservePercentsToZero()
519 DeviceConfig.setProperty( in setCacheReservePercentsToZero()
528 DeviceConfig.setProperty( in resetCacheReservePercents()
534 DeviceConfig.setProperty( in resetCacheReservePercents()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/
DHelper.java248 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_PRIVACY, INDICATORS_FLAG, shouldEnable, in setIndicatorEnabledState()
271 DeviceConfig.setProperty(NAMESPACE_VOICE_INTERACTION, KEY_RESTART_PERIOD_IN_SECONDS,
/cts/tests/tests/hibernation/src/android/hibernation/cts/
DAppHibernationUtils.kt212 DeviceConfig.setProperty(namespace, name, value, false /* makeDefault */) in withDeviceConfig()
217 DeviceConfig.setProperty(namespace, name, oldValue, false /* makeDefault */) in withDeviceConfig()
DAppHibernationIntegrationTest.kt120 DeviceConfig.setProperty(NAMESPACE_APP_HIBERNATION, HIBERNATION_ENABLED_KEY, "true", in <lambda>()
147 DeviceConfig.setProperty(NAMESPACE_APP_HIBERNATION, HIBERNATION_ENABLED_KEY, in <lambda>()

123