Home
last modified time | relevance | path

Searched refs:getProperty (Results 1 – 25 of 65) 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/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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPropertyUtil.java139 return getProperty(MANUFACTURER_PROPERTY); in getManufacturer()
164 return getProperty(property) != null; in propertyExists()
172 return value.equals(getProperty(property)); in propertyEquals()
184 String value = getProperty(property); in propertyMatches()
192 String value = getProperty(property); in getPropertyInt()
204 public static String getProperty(String property) { in getProperty() method in PropertyUtil
DDeviceConfigStateManager.java81 -> reference.set(DeviceConfig.getProperty(mNamespace, mKey)), in get()
/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/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/hostsidetests/os/src/android/os/cts/
DQuiescentBootTests.java70 "1", mDevice.getProperty("ro.boot.quiescent")); in testQuiescentBoot_sysPropSet_asleep()
92 "1", mDevice.getProperty("ro.boot.quiescent")); in testQuiescentBoot_asleepAfterQuiescentReboot()
105 mDevice.getProperty("ro.boot.quiescent")); in testQuiescentBoot_awakeAfterReboot()
/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/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/statsd/src/android/cts/statsd/atom/
DHostAtomTests.java528 assertThat(getProperty("ro.product.brand")).isEqualTo(atom.getBrand()); in testBuildInformation()
529 assertThat(getProperty("ro.product.name")).isEqualTo(atom.getProduct()); in testBuildInformation()
530 assertThat(getProperty("ro.product.device")).isEqualTo(atom.getDevice()); in testBuildInformation()
531 …assertThat(getProperty("ro.build.version.release_or_codename")).isEqualTo(atom.getVersionRelease()… in testBuildInformation()
532 assertThat(getProperty("ro.build.id")).isEqualTo(atom.getId()); in testBuildInformation()
533 assertThat(getProperty("ro.build.version.incremental")) in testBuildInformation()
535 assertThat(getProperty("ro.build.type")).isEqualTo(atom.getType()); in testBuildInformation()
536 assertThat(getProperty("ro.build.tags")).isEqualTo(atom.getTags()); in testBuildInformation()
/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/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiPermissionTests.java212 String property = DeviceConfig.getProperty(PUBLIC_NAMESPACE, KEY); in testDeviceConfigPublicNamespacesWithoutReadPermission()
275 DeviceConfig.getProperty(NAMESPACE, KEY); in tryGetPropertyWithoutReadPermission()
327 property = DeviceConfig.getProperty(NAMESPACE, KEY); in tryGetPropertyWithReadPermission()
DDeviceConfigApiTests.java124 String result = DeviceConfig.getProperty(EMPTY_NAMESPACE, KEY1); in testGetProperty_empty()
135 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in testSetAndGetProperty_sameNamespace()
162 String result = DeviceConfig.getProperty(NAMESPACE2, KEY1); in testSetAndGetProperty_differentNamespace()
187 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in testSetAndGetProperty_multipleNamespaces()
190 result = DeviceConfig.getProperty(NAMESPACE2, KEY1); in testSetAndGetProperty_multipleNamespaces()
221 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in testSetAndGetProperty_overrideValue()
968 assertEquals(DeviceConfig.getProperty(NAMESPACE1, KEY1), VALUE2); in testResetToPackageDefaults()
972 assertEquals(DeviceConfig.getProperty(NAMESPACE1, KEY1), VALUE1); in testResetToPackageDefaults()
/cts/hostsidetests/graphics/gpuprofiling/src/android/graphics/gpuprofiling/cts/
DCtsGpuProfilingDataTest.java100 String layerApp = getDevice().getProperty(LAYER_PACKAGE_PROPERTY); in init()
115 String profilingSupport = getDevice().getProperty(PROFILING_PROPERTY); in testProfilingDataProducersAvailable()
/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.java34 protected static String getProperty(String property) in getProperty() method in SELinuxTargetSdkTestBase
56 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/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/hostsidetests/compilation/src/android/compilation/cts/
DAdbRootDependentCompilationTest.java87 String buildType = mDevice.getProperty("ro.build.type"); in setUp()
131 … String expectedInstallFilter = Objects.requireNonNull(mDevice.getProperty("pm.dexopt.install")); in testCompile_bgDexopt()
133 …String expectedBgDexoptFilter = Objects.requireNonNull(mDevice.getProperty("pm.dexopt.bg-dexopt")); in testCompile_bgDexopt()
/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/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()
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/
DApexShimValidationTest.java107 final String updatable = getDevice().getProperty("ro.apex.updatable"); in setUp()
266 final String os = System.getProperty("os.name").toLowerCase(); in runDeapexerExtract()

123