Home
last modified time | relevance | path

Searched refs:property (Results 1 – 25 of 36) sorted by relevance

12

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPropertyUtil.java187 public static boolean propertyExists(String property) { in propertyExists() argument
188 return getProperty(property) != null; in propertyExists()
192 public static boolean propertyEquals(String property, String value) { in propertyEquals() argument
194 return !propertyExists(property); // null value implies property does not exist in propertyEquals()
196 return value.equals(getProperty(property)); in propertyEquals()
203 public static boolean propertyMatches(String property, String regex) { in propertyMatches() argument
206 return !propertyExists(property); in propertyMatches()
208 String value = getProperty(property); in propertyMatches()
215 public static boolean getPropertyBoolean(String property) { in getPropertyBoolean() argument
216 String value = getProperty(property); in getPropertyBoolean()
[all …]
DBaseDefaultPermissionGrantPolicyTest.java646 for (Map.Entry<String, Object> property in createViolationsErrorString()
648 sb.append(" " + property.getKey() + ": " in createViolationsErrorString()
649 + property.getValue().toString().trim() + "\n"); in createViolationsErrorString()
701 for (Map.Entry<String, Object> property : in log()
703 Log.i(LOG_TAG, " " + property.getKey() + ": " + property.getValue()); in log()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DTestingUtils.java26 public static boolean getBooleanProperty(Instrumentation instrumentation, String property) in getBooleanProperty() argument
28 String value = trim(runShellCommand(instrumentation, "getprop " + property)); in getBooleanProperty()
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiPermissionTests.java154 String property = tryGetPropertyWithReadPermission(violations); in testDeviceConfigWithAllPermissions() local
156 VALUE, property); in testDeviceConfigWithAllPermissions()
220 String property = DeviceConfig.getProperty(PUBLIC_NAMESPACE, KEY); in testDeviceConfigPublicNamespacesWithoutReadPermission() local
222 + " value.", VALUE, property); in testDeviceConfigPublicNamespacesWithoutReadPermission()
333 String property = null; in tryGetPropertyWithReadPermission() local
335 property = DeviceConfig.getProperty(NAMESPACE, KEY); in tryGetPropertyWithReadPermission()
340 return property; in tryGetPropertyWithReadPermission()
/cts/tests/tests/os/src/android/os/cts/
DBuildTest.java126 private String[] getStringList(String property) throws IOException { in getStringList() argument
127 String value = getProperty(property); in getStringList()
138 static String getProperty(String property) in getProperty() argument
140 Process process = new ProcessBuilder("getprop", property).start(); in getProperty()
158 private void assertProperty(String message, String property, String expected) in assertProperty() argument
160 Process process = new ProcessBuilder("getprop", property).start(); in assertProperty()
182 private void assertNoPropertySet(String message, String property) throws IOException { in assertNoPropertySet() argument
190 line.startsWith("[" + property + "]")); in assertNoPropertySet()
/cts/tests/tests/animation/src/android/animation/cts/
DObjectAnimatorTest.java104 String property = "y"; in testOfFloat() local
107 ObjectAnimator objAnimator = ObjectAnimator.ofFloat(object, property, startY, endY); in testOfFloat()
133 String property = "y"; in testOfFloatBase() local
136 ObjectAnimator animator = ObjectAnimator.ofFloat(object, property, startY, endY); in testOfFloatBase()
139 objAnimator.setPropertyName(property); in testOfFloatBase()
147 String property = "scrollY"; in testOfInt() local
149 final ObjectAnimator intAnimator = ObjectAnimator.ofInt(object, property, 200, 0); in testOfInt()
171 String property = "backgroundColor"; in testOfObject() local
177 final ObjectAnimator colorAnimator = ObjectAnimator.ofObject(object, property, in testOfObject()
232 String property = "backgroundColor"; in testOfArgb() local
[all …]
DPropertyValuesHolderTest.java248 ShapeHolderYProperty property=new ShapeHolderYProperty(ShapeHolder.class,"y"); in testOfFloat_Property() local
249 property.setObject(mObject); in testOfFloat_Property()
250 PropertyValuesHolder pVHolder = PropertyValuesHolder.ofFloat(property, values); in testOfFloat_Property()
283 String property = "backgroundColor"; in testOfInt_Property() local
288 ViewColorProperty colorProperty=new ViewColorProperty(Integer.class,property); in testOfInt_Property()
528 FloatProperty property = new FloatProperty("distance") { in testOfObject_Converter() local
539 PropertyValuesHolder.ofObject(property, converter, path); in testOfObject_Converter()
686 ShapeHolderYProperty property=new ShapeHolderYProperty(ShapeHolder.class,"y"); in testSetProperty() local
687 property.setObject(mObject); in testSetProperty()
689 pVHolder.setProperty(property); in testSetProperty()
DAnimatorTest.java135 String property = "y"; in testEnd() local
138 Animator animator = ObjectAnimator.ofFloat(object, property, startY, endY); in testEnd()
/cts/libs/helpers/core/src/com/android/cts/helpers/
DDeviceInteractionHelperRule.java150 void buildPackageList(String property, PackageManager pm) { in buildPackageList() argument
155 String searchPath = property; in buildPackageList()
156 Log.d(LOG_TAG, "Search path from property: <" + property + ">"); in buildPackageList()
/cts/hostsidetests/library/
DAndroid.bp59 // in the `tools` property although they technically are inputs of the zip,
63 // property, and then used as inputs in the `cmd`.
66 // property instead of `tools` or `srcs`. This is because those modules are
70 // created using the `required` property.
/cts/hostsidetests/angle/src/android/angle/cts/
DCtsAngleCommon.java126 static void setProperty(ITestDevice device, String property, String value) throws Exception { in setProperty() argument
127 device.executeShellCommand("setprop " + property + " " + value); in setProperty()
/cts/tests/tests/voiceinteraction/common/src/android/voiceinteraction/common/
DUtils.java297 final String property = PropertyUtil.getProperty("ro.hardware.virtual_device"); in isVirtualDevice() local
298 Log.v(TAG, "virtual device property=" + property); in isVirtualDevice()
299 return Objects.equals(property, "1"); in isVirtualDevice()
/cts/tests/tests/transition/src/android/transition/cts/
DCaptureValuesTest.java98 for (String property : properties) { in verifyCapturedValues()
99 assertTrue(className + " should have written to property " + property, in verifyCapturedValues()
100 values.values.keySet().contains(property)); in verifyCapturedValues()
/cts/tests/tests/car/NoPropertyPermissions/src/android/car/cts/nopropertypermissions/
DNoPropertyPermissionsTest.java23 import android.car.hardware.property.CarPropertyManager;
/cts/tests/tests/selinux/common/src/android/security/
DSELinuxTargetSdkTestBase.java34 protected static String getProperty(String property) in getProperty() argument
36 Process process = new ProcessBuilder("getprop", property).start(); in getProperty()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DAccessibilityEventFilterUtils.java144 public PropertyMatcher(T property, String description, in PropertyMatcher() argument
147 mProperty = property; in PropertyMatcher()
/cts/tests/tests/car/PermissionCarEnergyPorts/src/android/car/cts/permissioncarenergyports/
DPermissionCarEnergyPortsTest.java25 import android.car.hardware.property.CarPropertyManager;
/cts/tests/tests/car/PermissionCarEnergy/src/android/car/cts/permissioncarenergy/
DPermissionCarEnergyTest.java25 import android.car.hardware.property.CarPropertyManager;
/cts/tests/tests/car/PermissionReadCarDisplayUnits/src/android/car/cts/permissionreadcardisplayunits/
DPermissionReadCarDisplayUnitsTest.java25 import android.car.hardware.property.CarPropertyManager;
/cts/tests/tests/car/PermissionCarExteriorEnvironment/src/android/car/cts/permissioncarexteriorenvironment/
DPermissionCarExteriorEnvironmentTest.java25 import android.car.hardware.property.CarPropertyManager;
/cts/tests/tests/car/PermissionCarSpeed/src/android.car.cts.permissioncarspeed/
DPermissionCarSpeedTest.java25 import android.car.hardware.property.CarPropertyManager;
/cts/tests/tests/car/PermissionCarInfo/src/android/car/cts/permissioncarinfo/
DPermissionCarInfoTest.java25 import android.car.hardware.property.CarPropertyManager;
/cts/tests/tests/car/PermissionCarPowertrain/src/android/car/cts/permissioncarpowertrain/
DPermissionCarPowertrainTest.java25 import android.car.hardware.property.CarPropertyManager;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/
DParkingBrakeOnTestActivity.java22 import android.car.hardware.property.CarPropertyManager;
/cts/tests/tests/car/src/android/car/cts/
DCarPropertyValueTest.java25 import android.car.hardware.property.CarPropertyManager;

12