Home
last modified time | relevance | path

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

1234

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPropertyUtil.java211 public static boolean propertyExists(String property) { in propertyExists() argument
212 return getProperty(property) != null; in propertyExists()
216 public static boolean propertyEquals(String property, String value) { in propertyEquals() argument
218 return !propertyExists(property); // null value implies property does not exist in propertyEquals()
220 return value.equals(getProperty(property)); in propertyEquals()
227 public static boolean propertyMatches(String property, String regex) { in propertyMatches() argument
230 return !propertyExists(property); in propertyMatches()
232 String value = getProperty(property); in propertyMatches()
239 public static boolean getPropertyBoolean(String property) { in getPropertyBoolean() argument
240 String value = getProperty(property); in getPropertyBoolean()
[all …]
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/hardware/property/
DCarVendorPropertyCustomPermissionTest.java16 package android.car.cts.permissiontest.hardware.property;
19 import static android.car.hardware.property.VehicleVendorPermission.PERMISSION_GET_CAR_VENDOR_CATEG…
20 import static android.car.hardware.property.VehicleVendorPermission.PERMISSION_GET_CAR_VENDOR_CATEG…
21 import static android.car.hardware.property.VehicleVendorPermission.PERMISSION_SET_CAR_VENDOR_CATEG…
35 import android.car.hardware.property.CarPropertyManager;
78 private void assumePropertyIsSupported(String permission, int property) { in assumePropertyIsSupported() argument
81 CarPropertyConfig<?> config = mCarPropertyManager.getCarPropertyConfig(property); in assumePropertyIsSupported()
85 assumeTrue("Property: " + VehiclePropertyIds.toString(property) + " is not supported", in assumePropertyIsSupported()
/cts/tests/tests/security/native/verified_boot/
DVerifiedBootTest.cpp102 void waitForProperty(const std::string &property) { in waitForProperty() argument
104 std::string value = android::base::GetProperty(property, "unset"); in waitForProperty()
105 while (android::base::EqualsIgnoreCase(property, "unset") && retries--) { in waitForProperty()
106 value = android::base::GetProperty(property, "unset"); in waitForProperty()
109 if (android::base::EqualsIgnoreCase(property, "unset")) in waitForProperty()
110 ADD_FAILURE() << "Property was never set: " << property; in waitForProperty()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingPropertyTests.java66 final PackageManager.Property property = mPackageManager.getProperty(propertyName, in getProperty() local
68 if (!property.isBoolean()) { in getProperty()
72 return property.getBoolean(); in getProperty()
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiPermissionTests.java174 String property = tryGetPropertyWithReadPermission(violations); in testDeviceConfigWithAllPermissions() local
176 VALUE, property); in testDeviceConfigWithAllPermissions()
242 String property = DeviceConfig.getProperty(PUBLIC_NAMESPACE, KEY); in testDeviceConfigPublicNamespacesWithoutReadPermission() local
244 + " value.", VALUE, property); in testDeviceConfigPublicNamespacesWithoutReadPermission()
336 String property = null; in tryGetPropertyWithReadPermission() local
338 property = DeviceConfig.getProperty(NAMESPACE, KEY); in tryGetPropertyWithReadPermission()
343 return property; in tryGetPropertyWithReadPermission()
/cts/tests/tests/animation/src/android/animation/cts/
DObjectAnimatorTest.java124 String property = "y"; in testOfFloat() local
127 ObjectAnimator objAnimator = ObjectAnimator.ofFloat(object, property, startY, endY); in testOfFloat()
153 String property = "y"; in testOfFloatBase() local
156 ObjectAnimator animator = ObjectAnimator.ofFloat(object, property, startY, endY); in testOfFloatBase()
159 objAnimator.setPropertyName(property); in testOfFloatBase()
168 String property = "scrollY"; in testOfInt() local
170 final ObjectAnimator intAnimator = ObjectAnimator.ofInt(object, property, 200, 0); in testOfInt()
193 String property = "backgroundColor"; in testOfObject() local
199 final ObjectAnimator colorAnimator = ObjectAnimator.ofObject(object, property, in testOfObject()
227 Property<AnimTarget, Float> property = AnimTarget.TEST_VALUE; in testOfObject_generic() local
[all …]
DPropertyValuesHolderTest.java262 ShapeHolderYProperty property=new ShapeHolderYProperty(ShapeHolder.class,"y"); in testOfFloat_Property() local
263 property.setObject(mObject); in testOfFloat_Property()
264 PropertyValuesHolder pVHolder = PropertyValuesHolder.ofFloat(property, values); in testOfFloat_Property()
297 String property = "backgroundColor"; in testOfInt_Property() local
302 ViewColorProperty colorProperty=new ViewColorProperty(Integer.class,property); in testOfInt_Property()
542 FloatProperty property = new FloatProperty("distance") { in testOfObject_Converter() local
553 PropertyValuesHolder.ofObject(property, converter, path); in testOfObject_Converter()
701 ShapeHolderYProperty property=new ShapeHolderYProperty(ShapeHolder.class,"y"); in testSetProperty() local
702 property.setObject(mObject); in testSetProperty()
704 pVHolder.setProperty(property); in testSetProperty()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DTestingUtils.java34 public static boolean getBooleanProperty(Instrumentation instrumentation, String property) in getBooleanProperty() argument
36 String value = trim(runShellCommand(instrumentation, "getprop " + property)); in getBooleanProperty()
/cts/tests/mediapc/src/android/mediapc/cts/
DPost.java96 for (final Map.Entry<String, String> property : mProperties.entrySet()) { in send()
98 property.getKey(), in send()
99 property.getValue()); in send()
/cts/tests/tests/car/src/android/car/cts/
DCarPropertyValueTest.java27 import android.car.hardware.property.AreaIdConfig;
28 import android.car.hardware.property.CarInternalErrorException;
29 import android.car.hardware.property.CarPropertyManager;
30 import android.car.hardware.property.PropertyAccessDeniedSecurityException;
DLaneCenteringAssistCommandTest.java23 import android.car.hardware.property.LaneCenteringAssistCommand;
DVehicleTurnSignalTest.java23 import android.car.hardware.property.VehicleTurnSignal;
DForwardCollisionWarningStateTest.java23 import android.car.hardware.property.ForwardCollisionWarningState;
DBlindSpotWarningStateTest.java23 import android.car.hardware.property.BlindSpotWarningState;
DHandsOnDetectionDriverStateTest.java23 import android.car.hardware.property.HandsOnDetectionDriverState;
DEvRegenerativeBrakingStateTest.java23 import android.car.hardware.property.EvRegenerativeBrakingState;
DVehicleLightStateTest.java23 import android.car.hardware.property.VehicleLightState;
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DCrossUserPackageVisibilityTests.java419 .filter(property -> property.getPackageName().equals(TARGET_STUB)) in testQueryApplicationProperty_cannotDetectStubPkg()
430 .filter(property -> property.getPackageName().equals(TARGET_STUB)) in testQueryActivityProperty_cannotDetectStubPkg()
441 .filter(property -> property.getPackageName().equals(TARGET_STUB)) in testQueryProviderProperty_cannotDetectStubPkg()
452 .filter(property -> property.getPackageName().equals(TARGET_STUB)) in testQueryReceiverProperty_cannotDetectStubPkg()
463 .filter(property -> property.getPackageName().equals(TARGET_STUB)) in testQueryServiceProperty_cannotDetectStubPkg()
/cts/tests/tests/voiceinteraction/common/src/android/voiceinteraction/common/
DUtils.java478 final String property = PropertyUtil.getProperty("ro.hardware.virtual_device"); in isVirtualDevice() local
479 Log.v(TAG, "virtual device property=" + property); in isVirtualDevice()
480 return Objects.equals(property, "1"); in isVirtualDevice()
492 final String property = PropertyUtil.getProperty("ro.hw_timeout_multiplier"); in getAdjustedOperationTimeoutMs() local
494 if (property != null) { in getAdjustedOperationTimeoutMs()
496 multiplier = Integer.parseInt(property); in getAdjustedOperationTimeoutMs()
/cts/tests/tests/car/lib/CarIntegrationTestUtilsLib/src/android/car/cts/utils/
DVehiclePropertyVerifiers.java26 import android.car.hardware.property.CarPropertyManager;
27 import android.car.hardware.property.LocationCharacterization;
/cts/tests/tests/content/src/android/content/cts/
DClipboardAutoClearTest.java154 private String getAndSetProperty(String property, String newPropertyValue) { in getAndSetProperty() argument
156 property); in getAndSetProperty()
157 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_CLIPBOARD, property, in getAndSetProperty()
/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.bp60 // in the `tools` property although they technically are inputs of the zip,
64 // property, and then used as inputs in the `cmd`.
67 // property instead of `tools` or `srcs`. This is because those modules are
71 // created using the `required` property.
/cts/tests/tests/os/src/android/os/cts/
DBuildTest.java159 static String[] getStringList(String property) throws IOException { in getStringList() argument
160 String value = getProperty(property); in getStringList()
171 static String getProperty(String property) in getProperty() argument
173 Process process = new ProcessBuilder("getprop", property).start(); in getProperty()
/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()

1234