Home
last modified time | relevance | path

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

123

/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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPropertyUtil.java108 return getProperty(MANUFACTURER_PROPERTY); in getManufacturer()
133 return getProperty(property) != null; in propertyExists()
141 return value.equals(getProperty(property)); in propertyEquals()
153 String value = getProperty(property); in propertyMatches()
161 String value = getProperty(property); in getPropertyInt()
173 public static String getProperty(String property) { in getProperty() method in PropertyUtil
DDeviceConfigStateManager.java82 -> reference.set(DeviceConfig.getProperty(mNamespace, mKey)), in get()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DPropertyUtil.java93 return getProperty(MANUFACTURER_PROPERTY); in getManufacturer()
118 return getProperty(property) != null; in propertyExists()
126 return value.equals(getProperty(property)); in propertyEquals()
138 String value = getProperty(property); in propertyMatches()
146 String value = getProperty(property); in getPropertyInt()
158 public static String getProperty(String property) { in getProperty() method in PropertyUtil
DDeviceConfigStateManager.java82 -> reference.set(DeviceConfig.getProperty(mNamespace, mKey)), in get()
/cts/hostsidetests/userspacereboot/src/com/android/cts/userspacereboot/host/
DUserspaceRebootHostTest.java100 assertThat(getDevice().getProperty("ro.crypto.state")).isEqualTo("encrypted"); in testOnlyFbeDevicesSupportUserspaceReboot()
101 assertThat(getDevice().getProperty("ro.crypto.type")).isEqualTo("file"); in testOnlyFbeDevicesSupportUserspaceReboot()
251 getProperty("init.userspace_reboot.sigkill.timeoutmillis", ""); in testUserspaceRebootFailsKillingProcesses()
253 getProperty("init.userspace_reboot.sigterm.timeoutmillis", ""); in testUserspaceRebootFailsKillingProcesses()
276 final String defaultValue = getProperty("init.userspace_reboot.watchdog.timeoutmillis", ""); in testUserspaceRebootWatchdogTriggers()
323 final String bootReason = getProperty("sys.boot.reason.last", ""); in assertUserspaceRebootSucceed()
360 String reason = getProperty("sys.boot.reason.last", ""); in assertLastBootReasonIs()
371 private String getProperty(String name, String defaultValue) throws Exception { in getProperty() method in UserspaceRebootHostTest
372 String ret = getDevice().getProperty(name); in getProperty()
/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/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiPermissionTests.java74 String result = DeviceConfig.getProperty(NAMESPACE2, KEY2); in testUseDeviceConfigWithoutPermissions()
114 DeviceConfig.getProperty(NAMESPACE, KEY); in testUseDeviceConfigWithWritePermission()
154 DeviceConfig.getProperty(NAMESPACE, KEY); in testDeviceConfigWithReadPermission()
196 String property = DeviceConfig.getProperty(NAMESPACE, KEY); in testDeviceConfigWithAllPermissions()
246 String property = DeviceConfig.getProperty(PUBLIC_NAMESPACE, KEY); in testDeviceConfigPublicNamespacesWithoutReadPermission()
DDeviceConfigApiTests.java124 String result = DeviceConfig.getProperty(EMPTY_NAMESPACE, KEY1); in getProperty_empty()
135 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in setAndGetProperty_sameNamespace()
147 String result = DeviceConfig.getProperty(NAMESPACE2, KEY1); in setAndGetProperty_differentNamespace()
158 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in setAndGetProperty_multipleNamespaces()
161 result = DeviceConfig.getProperty(NAMESPACE2, KEY1); in setAndGetProperty_multipleNamespaces()
173 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in setAndGetProperty_overrideValue()
892 assertEquals(DeviceConfig.getProperty(NAMESPACE1, KEY1), VALUE2); in testResetToPackageDefaults()
896 assertEquals(DeviceConfig.getProperty(NAMESPACE1, KEY1), VALUE1); in testResetToPackageDefaults()
/cts/tests/tests/security/src/android/security/cts/
DEncryptionTest.java66 if ("file".equals(PropertyUtil.getProperty("ro.crypto.type"))) { in handleEncryptedDevice()
86 if ("encrypted".equals(PropertyUtil.getProperty("ro.crypto.state"))) { in testEncryption()
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DHostAtomTests.java538 assertEquals(getProperty("ro.product.brand"), atom.getBrand()); in testBuildInformation()
539 assertEquals(getProperty("ro.product.name"), atom.getProduct()); in testBuildInformation()
540 assertEquals(getProperty("ro.product.device"), atom.getDevice()); in testBuildInformation()
541 assertEquals(getProperty("ro.build.version.release"), atom.getVersionRelease()); in testBuildInformation()
542 assertEquals(getProperty("ro.build.id"), atom.getId()); in testBuildInformation()
543 assertEquals(getProperty("ro.build.version.incremental"), atom.getVersionIncremental()); in testBuildInformation()
544 assertEquals(getProperty("ro.build.type"), atom.getType()); in testBuildInformation()
545 assertEquals(getProperty("ro.build.tags"), atom.getTags()); in testBuildInformation()
DBaseTestCase.java166 if ("false".equals(getDevice().getProperty("ro.statsd.enable")) in statsdDisabled()
167 && "true".equals(getDevice().getProperty("ro.config.low_ram"))) { in statsdDisabled()
/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/apex/src/android/apex/cts/
DApexTest.java32 return Boolean.parseBoolean(getDevice().getProperty("ro.apex.updatable")); in isApexUpdatable()
36 String systemProduct = getDevice().getProperty("ro.product.system_ext.name"); in isGSI()
/cts/tests/tests/car/src/android/car/cts/
DCarPropertyValueTest.java112 CarPropertyValue value = mCarPropertyManager.getProperty( in getCarPropertyValues()
120 CarPropertyValue value = mCarPropertyManager.getProperty( in getCarPropertyValues()
/cts/tests/tests/selinux/common/src/android/security/
DSELinuxTargetSdkTestBase.java53 protected static String getProperty(String property) in getProperty() method in SELinuxTargetSdkTestBase
75 String dns = getProperty(dnsProps[i]); in noDns()
/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/tests/signature/api-check/system-annotation/src/java/android/signature/cts/api/
DAnnotationTest.java48 if ("true".equals(PropertyUtil.getProperty("ro.treble.enabled")) && in testAnnotation()
/cts/hostsidetests/compilation/src/android/compilation/cts/
DAdbRootDependentCompilationTest.java88 String buildType = mDevice.getProperty("ro.build.type"); in setUp()
132 String expectedInstallFilter = checkNotNull(mDevice.getProperty("pm.dexopt.install")); in testCompile_bgDexopt()
134 String expectedBgDexoptFilter = checkNotNull(mDevice.getProperty("pm.dexopt.bg-dexopt")); in testCompile_bgDexopt()
/cts/hostsidetests/incident/src/com/android/server/cts/
DProtoDumpTestCase.java272 if ("false".equals(getDevice().getProperty("ro.statsd.enable")) in incidentdDisabled()
273 && "true".equals(getDevice().getProperty("ro.config.low_ram"))) { in incidentdDisabled()
DDiskStatsProtoTest.java62 if ("file".equals(device.getProperty("ro.crypto.type"))) { in verifyDiskStatsServiceDumpProto()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/metrics/
DAtomMetricTester.java242 if ("false".equals(mDevice.getProperty("ro.statsd.enable")) in isStatsdDisabled()
243 && "true".equals(mDevice.getProperty("ro.config.low_ram"))) { in isStatsdDisabled()
/cts/tests/jdwp/runner/host-side/src/com/android/compatibility/testtype/
DLibcoreTest.java88 return Objects.equals(getDevice().getProperty("ro.hardware.virtual_device"), "1"); in isVirtualDevice()
/cts/tests/tests/os/src/android/os/cts/
DBuildTest.java129 String value = getProperty(property); in getStringList()
140 static String getProperty(String property) in getProperty() method in BuildTest

123