Home
last modified time | relevance | path

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

1234567

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarHvacManagerTest.java56 for (CarPropertyConfig property : properties) { in testAllHvacProperties()
57 if (supportedTypes.contains(property.getPropertyType())) { in testAllHvacProperties()
58 assertTypeAndZone(property); in testAllHvacProperties()
60 fail("Type is not supported for " + property); in testAllHvacProperties()
72 private void assertTypeAndZone(CarPropertyConfig property) { in assertTypeAndZone() argument
73 switch (property.getPropertyId()) { in assertTypeAndZone()
75 checkTypeAndGlobal(Boolean.class, true, property); in assertTypeAndZone()
79 checkTypeAndGlobal(Integer.class, true, property); in assertTypeAndZone()
80 checkIntMinMax(property); in assertTypeAndZone()
83 checkTypeAndGlobal(Float.class, true, property); in assertTypeAndZone()
[all …]
DCarCabinManagerTest.java54 for (CarPropertyConfig property : properties) { in testAllCabinProperties()
55 if (supportedTypes.contains(property.getPropertyType())) { in testAllCabinProperties()
56 assertTypeAndZone(property); in testAllCabinProperties()
58 fail("Type is not supported for " + property); in testAllCabinProperties()
63 private void assertTypeAndZone(CarPropertyConfig property) { in assertTypeAndZone() argument
64 int propId = property.getPropertyId(); in assertTypeAndZone()
72 assertThat(property.getPropertyType()).isAssignableTo(Boolean.class); in assertTypeAndZone()
73 assertThat(property.isGlobalProperty()).isFalse(); in assertTypeAndZone()
111 assertThat(property.getPropertyType()).isAssignableTo(Integer.class); in assertTypeAndZone()
112 assertThat(property.isGlobalProperty()).isFalse(); in assertTypeAndZone()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java29 import android.car.hardware.property.CarPropertyManager;
318 private void assertServiceOwnerLocked(HalServiceBase service, int property) { in assertServiceOwnerLocked() argument
319 if (service != mPropertyHandlers.get(property)) { in assertServiceOwnerLocked()
320 throw new IllegalArgumentException("Property 0x" + toHexString(property) in assertServiceOwnerLocked()
330 public void subscribeProperty(HalServiceBase service, int property) in subscribeProperty() argument
332 subscribeProperty(service, property, /* samplingRateHz= */ 0f, in subscribeProperty()
341 public void subscribeProperty(HalServiceBase service, int property, float sampleRateHz) in subscribeProperty() argument
343 subscribeProperty(service, property, sampleRateHz, SubscribeFlags.EVENTS_FROM_CAR); in subscribeProperty()
355 public void subscribeProperty(HalServiceBase service, int property, in subscribeProperty() argument
359 + ", " + toCarPropertyLog(property)); in subscribeProperty()
[all …]
DClusterHalService.java118 for (int property : SUBSCRIBABLE_PROPERTIES) { in init()
119 mHal.subscribeProperty(this, property); in init()
150 for (VehiclePropConfig property : properties) { in takeProperties()
151 supportedProperties.add(property.prop); in takeProperties()
292 private static VehiclePropValue createVehiclePropValue(int property) { in createVehiclePropValue() argument
294 value.prop = property; in createVehiclePropValue()
/packages/apps/Provision/src/com/android/provision/
DUtils.java56 static String getSettings(ContentResolver resolver, String property, in getSettings() argument
59 Log.w(TAG, "Using OVERRIDDEN value " + overriddenValue + " for property " + property); in getSettings()
62 String value = Settings.Secure.getString(resolver, property); in getSettings()
63 Log.w(TAG, "Using value " + overriddenValue + " for property " + property); in getSettings()
67 static int getSettings(ContentResolver resolver, String property, in getSettings() argument
70 Log.w(TAG, "Using OVERRIDDEN value " + overriddenValue + " for property " + property); in getSettings()
73 int value = Settings.Secure.getInt(resolver, property, overriddenValue); in getSettings()
74 Log.w(TAG, "Using value " + overriddenValue + " for property " + property); in getSettings()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DPendingAnimation.java99 public <T> void setFloat(T target, FloatProperty<T> property, float value, in setFloat() argument
101 if (property.get(target) == value) { in setFloat()
104 Animator anim = ObjectAnimator.ofFloat(target, property, value); in setFloat()
109 public <T> void addFloat(T target, FloatProperty<T> property, float from, float to, in addFloat() argument
111 Animator anim = ObjectAnimator.ofFloat(target, property, from, to); in addFloat()
117 public <T> void setInt(T target, IntProperty<T> property, int value, in setInt() argument
119 if (property.get(target) == value) { in setInt()
122 Animator anim = ObjectAnimator.ofInt(target, property, value); in setInt()
DPropertySetter.java55 default <T> void setFloat(T target, FloatProperty<T> property, float value, in setFloat() argument
57 property.setValue(target, value); in setFloat()
63 default <T> void setInt(T target, IntProperty<T> property, int value, in setInt() argument
65 property.setValue(target, value); in setInt()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyServiceTest.java133 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
134 assertWithMessage("onPropertySubscribe missing property: %s", toHexString(property)) in onPropertySubscribe()
135 .that(mMap).containsKey(property); in onPropertySubscribe()
137 + property + " sampleRate " + sampleRate); in onPropertySubscribe()
141 public synchronized void onPropertyUnsubscribe(int property) { in onPropertyUnsubscribe() argument
142 assertWithMessage("onPropertyUnsubscribe missing property: %s", toHexString(property)) in onPropertyUnsubscribe()
143 .that(mMap).containsKey(property); in onPropertyUnsubscribe()
144 Log.d(TAG, "onPropertyUnSubscribe property " + property); in onPropertyUnsubscribe()
DCarCabinManagerTest.java196 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
197 Log.d(TAG, "onPropertySubscribe property " + property + " sampleRate " + sampleRate); in onPropertySubscribe()
198 if (mMap.get(property) == null) { in onPropertySubscribe()
199 Log.d(TAG, "onPropertySubscribe add placeholder property: " + property); in onPropertySubscribe()
200 VehiclePropValue placeholderValue = VehiclePropValueBuilder.newBuilder(property) in onPropertySubscribe()
205 mMap.put(property, placeholderValue); in onPropertySubscribe()
210 public synchronized void onPropertyUnsubscribe(int property) { in onPropertyUnsubscribe() argument
211 Log.d(TAG, "onPropertyUnSubscribe property " + property); in onPropertyUnsubscribe()
DCarHvacManagerTest.java282 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
283 Log.d(TAG, "onPropertySubscribe property " + property + " sampleRate " + sampleRate); in onPropertySubscribe()
284 if (mMap.get(property) == null) { in onPropertySubscribe()
285 Log.d(TAG, "onPropertySubscribe add placeholder property: " + property); in onPropertySubscribe()
286 VehiclePropValue placeholderValue = VehiclePropValueBuilder.newBuilder(property) in onPropertySubscribe()
292 mMap.put(property, placeholderValue); in onPropertySubscribe()
297 public synchronized void onPropertyUnsubscribe(int property) { in onPropertyUnsubscribe() argument
298 Log.d(TAG, "onPropertyUnSubscribe property " + property); in onPropertyUnsubscribe()
/packages/services/Car/vehicle-hal-support-lib/test/com/android/car/vehiclehal/test/
DMockedVehicleHal.java52 default void onPropertySubscribe(int property, float sampleRate) {} in onPropertySubscribe() argument
53 default void onPropertyUnsubscribe(int property) {} in onPropertyUnsubscribe() argument
242 public void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
247 public void onPropertyUnsubscribe(int property) { in onPropertyUnsubscribe() argument
290 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
291 assertEquals(mConfig.prop, property); in onPropertySubscribe()
296 public synchronized void onPropertyUnsubscribe(int property) { in onPropertyUnsubscribe() argument
297 assertEquals(mConfig.prop, property); in onPropertyUnsubscribe()
300 + toHexString( property)); in onPropertyUnsubscribe()
/packages/apps/TV/src/com/android/tv/features/
DPartnerFeatures.java41 private final String property; field in PartnerFeatures.PartnerFeature
43 public PartnerFeature(String property) { in PartnerFeature() argument
44 this.property = property; in PartnerFeature()
51 return partnerCustomizations.getBooleanResource(context, property).orElse(false); in isEnabled()
/packages/services/Car/tools/emulator/
Dprop_event_simulator.py62 property in default VHAL. If the value is array, use comma to split values')
64 if not args.property:
76 print args.property
78 v.getConfig(args.property);
85 v.setProperty(args.property, args.area, value);
/packages/services/Car/tests/carservice_test/src/com/android/car/cluster/
DClusterHomeManagerTest.java297 public synchronized VehiclePropValue peek(int property) { in peek() argument
298 return mMap.get(property); in peek()
302 public synchronized void onPropertySubscribe(int property, float sampleRate) { in onPropertySubscribe() argument
303 Log.d(TAG, "onPropertySubscribe property " + property + " sampleRate " + sampleRate); in onPropertySubscribe()
304 if (mMap.get(property) == null) { in onPropertySubscribe()
305 Log.d(TAG, "onPropertySubscribe add placeholder property: " + property); in onPropertySubscribe()
306 VehiclePropValue placeholderValue = VehiclePropValueBuilder.newBuilder(property) in onPropertySubscribe()
312 mMap.put(property, placeholderValue); in onPropertySubscribe()
317 public synchronized void onPropertyUnsubscribe(int property) { in onPropertyUnsubscribe() argument
318 Log.d(TAG, "onPropertyUnSubscribe property " + property); in onPropertyUnsubscribe()
/packages/services/Car/service/src/com/android/car/
DCarPropertyService.java26 import android.car.hardware.property.CarPropertyEvent;
27 import android.car.hardware.property.ICarProperty;
28 import android.car.hardware.property.ICarPropertyEventListener;
584 public void onPropertySetError(int property, int areaId, int errorCode) { in onPropertySetError() argument
587 if (mSetOperationClientMap.get(property) != null in onPropertySetError()
588 && mSetOperationClientMap.get(property).get(areaId) != null) { in onPropertySetError()
589 lastOperatedClient = mSetOperationClientMap.get(property).get(areaId); in onPropertySetError()
592 + toHexString(property) + " in areaId: 0x" + toHexString(areaId)); in onPropertySetError()
597 dispatchToLastClient(property, areaId, errorCode, lastOperatedClient); in onPropertySetError()
601 private void dispatchToLastClient(int property, int areaId, int errorCode, in dispatchToLastClient() argument
[all …]
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DVehiclePropertyPublisher.java21 import android.car.hardware.property.CarPropertyEvent;
22 import android.car.hardware.property.ICarPropertyEventListener;
69 for (CarPropertyConfig property : mCarPropertyService.getPropertyList()) { in VehiclePropertyPublisher()
70 mCarPropertyList.append(property.getPropertyId(), property); in VehiclePropertyPublisher() local
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DCustomVCardEntry.java40 public void addProperty(VCardProperty property) { in addProperty() argument
41 super.addProperty(property); in addProperty()
42 mAllProperties.put(property.getName(), property); in addProperty() local
/packages/modules/adb/daemon/
Dwatchdog.cpp104 for (auto& property : {kAdbWatchdogProperty, kTestHarnessProperty}) { in Initialize()
105 g_property_monitor.Add(property, [property](std::string value) { in Initialize()
106 LOG(INFO) << property << " set to '" << value << "'"; in Initialize()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java496 for (HeaderProperty property : properties) { in getCert()
497 if (property == null || property.getKey() == null || property.getValue() == null) { in getCert()
500 if (property.getKey().equalsIgnoreCase("Content-Type")) { in getCert()
501 if (property.getValue().equals("application/pkcs7-mime") in getCert()
502 || property.getValue().equals("application/x-x509-ca-cert")) { in getCert()
513 if (property.getKey().equalsIgnoreCase("Content-Transfer-Encoding") in getCert()
514 && property.getValue().equalsIgnoreCase("base64")) { in getCert()
/packages/services/Car/car-lib/src/android/car/hardware/property/
DPropertyNotAvailableException.java17 package android.car.hardware.property;
27 PropertyNotAvailableException(int property, int areaId) { in PropertyNotAvailableException() argument
28 super("Property 0x" + toHexString(property) + " with area: " + toHexString(areaId) in PropertyNotAvailableException()
DPropertyNotAvailableAndRetryException.java17 package android.car.hardware.property;
26 PropertyNotAvailableAndRetryException(int property, int areaId) { in PropertyNotAvailableAndRetryException() argument
27 super("Property 0x" + toHexString(property) + " with area: " + toHexString(areaId) in PropertyNotAvailableAndRetryException()
DCarInternalErrorException.java17 package android.car.hardware.property;
25 CarInternalErrorException(int property, int areaId) { in CarInternalErrorException() argument
26 super("Property 0x" + toHexString(property) + " with area: " + toHexString(areaId) in CarInternalErrorException()
DPropertyAccessDeniedSecurityException.java17 package android.car.hardware.property;
25 PropertyAccessDeniedSecurityException(int property, int areaId) { in PropertyAccessDeniedSecurityException() argument
27 + toHexString(property) + " in area: " + toHexString(areaId)); in PropertyAccessDeniedSecurityException()
/packages/services/Car/car_product/init/
Dinit.car.rc5 # A property to enable EVS services conditionally
6 on property:persist.automotive.evs.mode=0
12 on property:persist.automotive.evs.mode=1
/packages/modules/Wifi/service/
Dwifi.rc21 on property:sys.user.0.ce_available=true
28 on property:sys.boot_completed=1 && property:sys.wifitracing.started=0
98 on property:sys.boot_completed=1 && property:wifi.interface=* && property:sys.wifitracing.started=1

1234567