Home
last modified time | relevance | path

Searched refs:getProperty (Results 1 – 25 of 106) sorted by relevance

12345

/cts/hostsidetests/sample/src/android/sample/cts/
DSampleHostDeviceInfo.java34 store.addResult("model", getProperty("ro.product.model")); in collectDeviceInfo()
35 store.addResult("brand", getProperty("ro.product.brand")); in collectDeviceInfo()
36 store.addResult("name", getProperty("ro.product.name")); in collectDeviceInfo()
37 store.addResult("device", getProperty("ro.product.device")); in collectDeviceInfo()
38 store.addResult("board", getProperty("ro.product.board")); in collectDeviceInfo()
40 String abi = getProperty("ro.product.cpu.abilist"); in collectDeviceInfo()
45 store.addResult("sdk", getProperty("ro.build.version.sdk")); in collectDeviceInfo()
46 store.addResult("codename", getProperty("ro.build.version.codename")); in collectDeviceInfo()
47 store.addResult("security_patch", getProperty("ro.build.version.security_patch")); in collectDeviceInfo()
48 store.addResult("base_os", getProperty("ro.build.version.base_os")); in collectDeviceInfo()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerGetPropertyTest.java114 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
121 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
128 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
135 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
142 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
149 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
156 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
163 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
170 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
177 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
[all …]
/cts/hostsidetests/tagging/src/com/android/cts/tagging/
DMemtagBootctlTest.java50 testInfo.getDevice().getProperty("ro.arm64.memtag.bootctl_supported"), in setUp()
52 mPreviousState = testInfo.getDevice().getProperty("arm64.memtag.bootctl"); in setUp()
88 assertThat(getDevice().getProperty("arm64.memtag.bootctl")).isAnyOf("", "none", null); in testMemtagOnce()
91 assertThat(getDevice().getProperty("arm64.memtag.bootctl")).isAnyOf("", "none", null); in testMemtagOnce()
100 assertThat(getDevice().getProperty("arm64.memtag.bootctl")).isEqualTo("memtag-off"); in testMemtagOff()
103 assertThat(getDevice().getProperty("arm64.memtag.bootctl")).isEqualTo("memtag-off"); in testMemtagOff()
112 assertThat(getDevice().getProperty("arm64.memtag.bootctl")).isEqualTo("memtag"); in testMemtag()
115 assertThat(getDevice().getProperty("arm64.memtag.bootctl")).isEqualTo("memtag"); in testMemtag()
124 assertThat(getDevice().getProperty("arm64.memtag.bootctl")).isEqualTo("memtag"); in testBoth()
127 assertThat(getDevice().getProperty("arm64.memtag.bootctl")).isEqualTo("memtag"); in testBoth()
DTaggingBaseTest.java69 boolean deviceIsArm64 = device.getProperty("ro.product.cpu.abi").contains("arm64"); in setUp()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/proxy/
DStaticProxyTest.java124 assertEquals(System.getProperty("http.proxyHost"), mProxyHost); in testProxyJavaProperties()
125 assertEquals(System.getProperty("https.proxyHost"), mProxyHost); in testProxyJavaProperties()
126 assertEquals(System.getProperty("http.proxyPort"), PROXY_PORT + ""); in testProxyJavaProperties()
127 assertEquals(System.getProperty("https.proxyPort"), PROXY_PORT + ""); in testProxyJavaProperties()
128 assertEquals(System.getProperty("http.nonProxyHosts"), EXCL_LIST); in testProxyJavaProperties()
129 assertEquals(System.getProperty("https.nonProxyHosts"), EXCL_LIST); in testProxyJavaProperties()
DBaseProxyTest.java116 String proxy = System.getProperty("http.proxyHost"); in isProxySysPropSet()
137 return TextUtils.isEmpty(System.getProperty("http.proxyHost")); in isProxySysPropClear()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DBuildPropParser.java54 return getProperty("ro.build.version.incremental"); in getBuildNumber()
58 return getProperty("ro.build.id"); in getVersion()
62 return getProperty("ro.product.device"); in getName()
66 return getProperty("ro.build.flavor"); in getFullName()
76 public String getProperty(String propertyName) { in getProperty() method in BuildPropParser
/cts/hostsidetests/os/src/android/os/cts/
DBuildHostTests.java46 getDevice().getProperty(RO_BUILD_TYPE)); in testIsSecureUserBuild()
47 assertEquals("Must be a non-debuggable build", "0", getDevice().getProperty(RO_DEBUGGABLE)); in testIsSecureUserBuild()
48 assertEquals("Must be a secure build", "1", getDevice().getProperty(RO_SECURE)); in testIsSecureUserBuild()
/cts/hostsidetests/adpf/src/android/adpf/cts/
DADPFHintSessionHostJUnit4Test.java69 final String[] abis = getProperty("ro.product.cpu.abilist").split(","); in setUp()
80 private String getProperty(String prop) throws Exception { in getProperty() method in ADPFHintSessionHostJUnit4Test
85 String sdkAsString = getProperty("ro.build.version.sdk"); in checkMinSdkVersion()
93 String vendorApiLevelStr = getProperty("ro.vendor.api_level"); in checkMinVendorApiLevel()
101 String device = getProperty("ro.product.device"); in checkVirtualDevice()
102 String model = getProperty("ro.product.model"); in checkVirtualDevice()
103 String name = getProperty("ro.product.name"); in checkVirtualDevice()
104 String qemu = getProperty("ro.boot.qemu"); in checkVirtualDevice()
105 String hardware = getProperty("ro.hardware"); in checkVirtualDevice()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPropertyUtil.java187 return getProperty(MANUFACTURER_PROPERTY); in getManufacturer()
212 return getProperty(property) != null; in propertyExists()
220 return value.equals(getProperty(property)); in propertyEquals()
232 String value = getProperty(property); in propertyMatches()
240 String value = getProperty(property); in getPropertyBoolean()
251 String value = getProperty(property); in getPropertyInt()
263 public static String getProperty(String property) { in getProperty() method in PropertyUtil
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingPropertyTests.java62 assertTrue(getProperty(WindowManager.PROPERTY_ACTIVITY_EMBEDDING_ALLOW_SYSTEM_OVERRIDE)); in testPropertyAllowSystemOverride()
65 private boolean getProperty(String propertyName) throws PackageManager.NameNotFoundException { in getProperty() method in ActivityEmbeddingPropertyTests
66 final PackageManager.Property property = mPackageManager.getProperty(propertyName, in getProperty()
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DGenericDocumentCtsTest.java188 assertThat(document.getProperty("longKey1")).isInstanceOf(long[].class); in testDocumentGetSingleValue()
189 assertThat((long[]) document.getProperty("longKey1")).asList().containsExactly(1L); in testDocumentGetSingleValue()
190 assertThat(document.getProperty("doubleKey1")).isInstanceOf(double[].class); in testDocumentGetSingleValue()
191 assertThat((double[]) document.getProperty("doubleKey1")) in testDocumentGetSingleValue()
194 assertThat(document.getProperty("booleanKey1")).isInstanceOf(boolean[].class); in testDocumentGetSingleValue()
195 assertThat((boolean[]) document.getProperty("booleanKey1")).asList().containsExactly(true); in testDocumentGetSingleValue()
196 assertThat(document.getProperty("stringKey1")).isInstanceOf(String[].class); in testDocumentGetSingleValue()
197 assertThat((String[]) document.getProperty("stringKey1")) in testDocumentGetSingleValue()
200 assertThat(document.getProperty("byteKey1")).isInstanceOf(byte[][].class); in testDocumentGetSingleValue()
201 assertThat((byte[][]) document.getProperty("byteKey1")) in testDocumentGetSingleValue()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DEncryptionTest.java88 final String cryptoType = PropertyUtil.getProperty("ro.crypto.type"); in handleEncryptedDevice()
120 if ("encrypted".equals(PropertyUtil.getProperty("ro.crypto.state"))) { in testEncryption()
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiTests.java234 String key3Value = DeviceConfig.getProperty(NAMESPACE3, KEY3); in testAddStickyLocalOverridePreventsWrites()
238 key3Value = DeviceConfig.getProperty(NAMESPACE3, KEY3); in testAddStickyLocalOverridePreventsWrites()
253 String key4Value = DeviceConfig.getProperty(NAMESPACE3, KEY4); in testAddStickyLocalOverrideDoesNotAffectOtherFlags()
328 String result = DeviceConfig.getProperty(EMPTY_NAMESPACE, KEY1); in testGetProperty_empty()
339 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in testSetAndGetProperty_sameNamespace()
366 String result = DeviceConfig.getProperty(NAMESPACE2, KEY1); in testSetAndGetProperty_differentNamespace()
391 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in testSetAndGetProperty_multipleNamespaces()
394 result = DeviceConfig.getProperty(NAMESPACE2, KEY1); in testSetAndGetProperty_multipleNamespaces()
425 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in testSetAndGetProperty_overrideValue()
1060 assertNull(DeviceConfig.getProperty(NAMESPACE1, KEY_NON_EXISTING)); in testDeleteProperty_withNonExistingProperty()
[all …]
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/common/
DStreamBase.java156 String text = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER); in calcNumBurstFrames()
194 String text = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE); in calcSystemSampleRate()
/cts/tests/tests/selinux/common/src/android/security/
DSELinuxTargetSdkTestBase.java37 protected static String getProperty(String property) in getProperty() method in SELinuxTargetSdkTestBase
59 String dns = getProperty(dnsProps[i]); in noDns()
205 String roHidden = getProperty(hiddenProperties[i]); in noHiddenSystemProperties()
/cts/hostsidetests/security/src/android/security/cts/
DProcessMustUseSeccompTest.java60 String[] lines = Out.getOutput().split(System.getProperty("line.separator")); in getPidFromCmd()
88 String[] lines = Out.getOutput().split(System.getProperty("line.separator")); in pidHasSeccompBpf()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/performancehintmanager/
DPerformanceHintManagerStatsTests.java117 DeviceUtils.getProperty(getDevice(), "ro.product.first_api_level")); in testCreateHintSessionStatsdApp()
167 DeviceUtils.getProperty(getDevice(), "ro.product.first_api_level")); in testCreateHintSessionStatsdGame()
215 DeviceUtils.getProperty(getDevice(), "debug.sf.enable_adpf_cpu_hint")); in testAdpfSystemComponentStatsd()
217 DeviceUtils.getProperty(getDevice(), "debug.hwui.use_hint_manager")); in testAdpfSystemComponentStatsd()
234 DeviceUtils.getProperty(getDevice(), ("ro.vendor.api_level"))); in testAdpfHintSessionTidCleanupIsPushed()
/cts/hostsidetests/compilation/src/android/compilation/cts/
DPreRebootDexoptTest.java45 assumeTrue("true".equals(getDevice().getProperty("dalvik.vm.enable_pr_dexopt"))); in test()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DUserActivityEmulator.java38 outputString = outputString.split(System.getProperty("line.separator"))[1]; in UserActivityEmulator()
/cts/tests/tests/dynamic_linker/com/android/dynamiclinker/
DDynamicLinkerTest.java36 String arch = System.getProperty("os.arch"); in testLoadLibInApkByFileName()
/cts/hostsidetests/graphics/gpuprofiling/src/android/graphics/gpuprofiling/cts/
DCtsGpuProfilingDataTest.java123 initialDebugPropertyValue = getDevice().getProperty(DEBUG_PROPERTY); in init()
128 String layerApp = getDevice().getProperty(LAYER_PACKAGE_PROPERTY); in init()
146 String profilingSupport = getDevice().getProperty(PROFILING_PROPERTY); in testProfilingDataProducersAvailable()
/cts/tests/tests/content/src/android/content/cts/
DClipboardAutoClearTest.java94 String enabled = DeviceConfig.getProperty(DeviceConfig.NAMESPACE_CLIPBOARD, in testAutoClearEnabledDefault()
155 String originalPropertyValue = DeviceConfig.getProperty(DeviceConfig.NAMESPACE_CLIPBOARD, in getAndSetProperty()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/hardware/property/
DCarVendorPropertyCustomPermissionTest.java95 mCarPropertyManager.getProperty(Object[].class, MIXED_TYPE_PROPERTY_FOR_TEST, in testGetMixedTypePropertyForTest()
106 assertThrows(SecurityException.class, () -> mCarPropertyManager.getProperty(Object[].class, in testGetMixedTypePropertyForTest_noPermission()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2020_0018.java46 String debuggable = device.getProperty("ro.debuggable").trim(); in testPocCVE_2020_0018()

12345