Home
last modified time | relevance | path

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

1234

/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.java111 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
118 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
125 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
132 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
139 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
146 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
153 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
160 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
167 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
174 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
[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.java163 return getProperty(MANUFACTURER_PROPERTY); in getManufacturer()
188 return getProperty(property) != null; in propertyExists()
196 return value.equals(getProperty(property)); in propertyEquals()
208 String value = getProperty(property); in propertyMatches()
216 String value = getProperty(property); in getPropertyBoolean()
227 String value = getProperty(property); in getPropertyInt()
239 public static String getProperty(String property) { in getProperty() method in PropertyUtil
/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/appsearch/src/com/android/cts/appsearch/external/app/
DGenericDocumentCtsTest.java175 assertThat(document.getProperty("longKey1")).isInstanceOf(long[].class); in testDocumentGetSingleValue()
176 assertThat((long[]) document.getProperty("longKey1")).asList().containsExactly(1L); in testDocumentGetSingleValue()
177 assertThat(document.getProperty("doubleKey1")).isInstanceOf(double[].class); in testDocumentGetSingleValue()
178 assertThat((double[]) document.getProperty("doubleKey1")) in testDocumentGetSingleValue()
181 assertThat(document.getProperty("booleanKey1")).isInstanceOf(boolean[].class); in testDocumentGetSingleValue()
182 assertThat((boolean[]) document.getProperty("booleanKey1")).asList().containsExactly(true); in testDocumentGetSingleValue()
183 assertThat(document.getProperty("stringKey1")).isInstanceOf(String[].class); in testDocumentGetSingleValue()
184 assertThat((String[]) document.getProperty("stringKey1")) in testDocumentGetSingleValue()
187 assertThat(document.getProperty("byteKey1")).isInstanceOf(byte[][].class); in testDocumentGetSingleValue()
188 assertThat((byte[][]) document.getProperty("byteKey1")) in testDocumentGetSingleValue()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioSystemParams.java36 String framesPerBuffer = audioManager.getProperty( in init()
43 audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE)); in init()
/cts/tests/tests/security/src/android/security/cts/
DEncryptionTest.java88 if ("file".equals(PropertyUtil.getProperty("ro.crypto.type"))) { in handleEncryptedDevice()
111 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/videoencodingminimum/src/android/videoqualityfloor/cts/
DCtsVideoQualityFloorHostTest.java106 private String getProperty(String prop) throws Exception { in getProperty() method in CtsVideoQualityFloorHostTest
116 String sdkAsString = getProperty("ro.build.version.sdk"); in testEncoding()
126 String tmpBase = System.getProperty("java.io.tmpdir"); in testEncoding()
/cts/hostsidetests/apex/src/android/apex/cts/
DApexTest.java34 return Boolean.parseBoolean(getDevice().getProperty("ro.apex.updatable")); in isApexUpdatable()
38 String systemProduct = getDevice().getProperty("ro.product.system_ext.name"); in isGSI()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DUserActivityEmulator.java38 outputString = outputString.split(System.getProperty("line.separator"))[1]; in UserActivityEmulator()
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DHdmiCecConstants.java93 new File(System.getProperty("java.io.tmpdir"), "cec-cts-temp");
/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.java101 String layerApp = getDevice().getProperty(LAYER_PACKAGE_PROPERTY); in init()
117 String profilingSupport = getDevice().getProperty(PROFILING_PROPERTY); in testProfilingDataProducersAvailable()
/cts/tests/tests/car/src/android/car/cts/
DCarPropertyValueTest.java117 CarPropertyValue value = mCarPropertyManager.getProperty( in getCarPropertyValues()
125 CarPropertyValue value = mCarPropertyManager.getProperty( in getCarPropertyValues()
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/common/
DHdmiCecPhysicalAddressTest.java50 String deviceType = device.getProperty(HdmiCecConstants.HDMI_DEVICE_TYPE_PROPERTY); in cect_10_1_2_1_RebootPhysicalAddress()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2020_0018.java42 String debuggable = device.getProperty("ro.debuggable").trim(); in testPocCVE_2020_0018()
/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/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiPermissionTests.java220 String property = DeviceConfig.getProperty(PUBLIC_NAMESPACE, KEY); in testDeviceConfigPublicNamespacesWithoutReadPermission()
283 DeviceConfig.getProperty(NAMESPACE, KEY); in tryGetPropertyWithoutReadPermission()
335 property = DeviceConfig.getProperty(NAMESPACE, KEY); in tryGetPropertyWithReadPermission()
DDeviceConfigApiTests.java157 String result = DeviceConfig.getProperty(EMPTY_NAMESPACE, KEY1); in testGetProperty_empty()
168 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in testSetAndGetProperty_sameNamespace()
195 String result = DeviceConfig.getProperty(NAMESPACE2, KEY1); in testSetAndGetProperty_differentNamespace()
220 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in testSetAndGetProperty_multipleNamespaces()
223 result = DeviceConfig.getProperty(NAMESPACE2, KEY1); in testSetAndGetProperty_multipleNamespaces()
254 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in testSetAndGetProperty_overrideValue()
1001 assertEquals(DeviceConfig.getProperty(NAMESPACE1, KEY1), VALUE2); in testResetToPackageDefaults()
1005 assertEquals(DeviceConfig.getProperty(NAMESPACE1, KEY1), VALUE1); in testResetToPackageDefaults()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DHostAtomTests.java527 assertThat(DeviceUtils.getProperty(getDevice(), "ro.product.brand")).isEqualTo( in testBuildInformation()
529 assertThat(DeviceUtils.getProperty(getDevice(), "ro.product.name")).isEqualTo( in testBuildInformation()
531 assertThat(DeviceUtils.getProperty(getDevice(), "ro.product.device")).isEqualTo( in testBuildInformation()
533 assertThat(DeviceUtils.getProperty(getDevice(), in testBuildInformation()
536 assertThat(DeviceUtils.getProperty(getDevice(), "ro.build.id")).isEqualTo(atom.getId()); in testBuildInformation()
537 assertThat(DeviceUtils.getProperty(getDevice(), "ro.build.version.incremental")) in testBuildInformation()
539 assertThat(DeviceUtils.getProperty(getDevice(), "ro.build.type")).isEqualTo(atom.getType()); in testBuildInformation()
540 assertThat(DeviceUtils.getProperty(getDevice(), "ro.build.tags")).isEqualTo(atom.getTags()); in testBuildInformation()
/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/install/src/android/cts/install/host/
DShimApexRule.java89 final String updatable = mHostTest.getDevice().getProperty("ro.apex.updatable"); in isUpdatingApexSupported()

1234