Searched refs:property (Results 1 - 25 of 58) sorted by relevance

123

/packages/services/Car/car-lib/src/android/car/hardware/property/
H A DCarPropertyEvent.aidl17 package android.car.hardware.property;
H A DICarPropertyEventListener.aidl17 package android.car.hardware.property;
19 import android.car.hardware.property.CarPropertyEvent;
H A DICarProperty.aidl17 package android.car.hardware.property;
21 import android.car.hardware.property.ICarPropertyEventListener;
H A DCarPropertyEvent.java17 package android.car.hardware.property;
/packages/services/Car/service/src/com/android/car/hal/
H A DPropertyTimeoutException.java23 * usually happens during boot-up meaning that Vehicle HAL is not ready to get or set that property.
26 PropertyTimeoutException(int property) { argument
27 super("Property 0x" + toHexString(property) + " is not ready yet.");
H A DVendorExtensionHalService.java44 private static boolean isVendorProperty(int property) { argument
45 return (property & VehiclePropertyGroup.MASK) == VehiclePropertyGroup.VENDOR;
H A DVehicleHal.java88 /** Stores handler for each HAL property. Property events are sent to handler. */
185 throw new RuntimeException("Unable to retrieve vehicle property configuration", e);
271 private void assertServiceOwnerLocked(HalServiceBase service, int property) { argument
272 if (service != mPropertyHandlers.get(property)) {
273 throw new IllegalArgumentException("Property 0x" + toHexString(property)
283 public void subscribeProperty(HalServiceBase service, int property) argument
285 subscribeProperty(service, property, 0f, SubscribeFlags.DEFAULT);
293 public void subscribeProperty(HalServiceBase service, int property, float sampleRateHz) argument
295 subscribeProperty(service, property, sampleRateHz, SubscribeFlags.DEFAULT);
299 * Subscribe given property
307 subscribeProperty(HalServiceBase service, int property, float samplingRateHz, int flags) argument
340 unsubscribeProperty(HalServiceBase service, int property) argument
[all...]
H A DInfoHalService.java78 Log.e(CarLog.TAG_INFO, "Unable to read property", e);
100 private void logUnexpectedEvent(int property) { argument
101 Log.w(CarLog.TAG_INFO, "unexpected HAL event for property 0x" +
102 Integer.toHexString(property));
H A DSensorHalService.java62 // Manager property Id to HAL property Id mapping.
115 Log.e(TAG, "init: unable to get property config for SENSOR_TYPE_WHEEL_TICK_DISTANCE");
184 int property = v.prop;
185 int sensorType = mManagerToHalPropIdMap.getManagerPropId(property);
187 throw new RuntimeException("no sensor defined for property 0x" + toHexString(property));
190 int dataType = property & VehiclePropertyType.MASK;
201 Integer mgrVal = mapHalEnumValueToMgr(property, v.value.int32Values.get(0));
213 // Perform property specifi
[all...]
H A DHalServiceBase.java67 public void handlePropertySetError(int property, int area) {} argument
72 * Helper class that maintains bi-directional mapping between manager's property
73 * Id (public or system API) and vehicle HAL property Id.
H A DPropertyHalServiceBase.java25 import android.car.hardware.property.CarPropertyEvent;
58 void onPropertySetError(int property, int area); argument
82 * Returns property or null if property is not ready yet.
88 throw new IllegalArgumentException("Invalid property Id : 0x" + toHexString(mgrPropId));
95 Log.e(CarLog.TAG_PROPERTY, "get, property not ready 0x" + toHexString(halPropId), e);
104 throw new IllegalArgumentException("Invalid property Id : 0x"
111 Log.e(CarLog.TAG_PROPERTY, "set, property not ready 0x" + toHexString(halPropId), e);
137 // Clear the property list
154 continue; // The property i
199 handlePropertySetError(int property, int area) argument
[all...]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
H A DCarHvacManagerTest.java48 for (CarPropertyConfig property : properties) {
49 if (supportedTypes.contains(property.getPropertyType())) {
50 assertTypeAndZone(property);
52 fail("Type is not supported for " + property);
67 private void assertTypeAndZone(CarPropertyConfig property) { argument
68 switch (property.getPropertyId()) {
70 checkTypeAndGlobal(Boolean.class, true, property);
74 checkTypeAndGlobal(Integer.class, true, property);
75 checkIntMinMax(property);
78 checkTypeAndGlobal(Float.class, true, property);
108 checkTypeAndGlobal(Class clazz, boolean global, CarPropertyConfig<Integer> property) argument
116 checkIntMinMax(CarPropertyConfig<Integer> property) argument
141 checkFloatMinMax(CarPropertyConfig<Float> property) argument
[all...]
H A DCarCabinManagerTest.java47 for (CarPropertyConfig property : properties) {
48 if (supportedTypes.contains(property.getPropertyType())) {
49 assertTypeAndZone(property);
51 fail("Type is not supported for " + property);
56 private void assertTypeAndZone(CarPropertyConfig property) { argument
57 int propId = property.getPropertyId();
65 assertEquals(Boolean.class, property.getPropertyType());
66 assertFalse(property.isGlobalProperty());
106 assertEquals(Integer.class, property.getPropertyType());
107 assertFalse(property
117 checkIntMinMax(CarPropertyConfig<Integer> property) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DCustomVCardEntry.java40 public void addProperty(VCardProperty property) { argument
41 super.addProperty(property);
42 mAllProperties.put(property.getName(), property);
H A DCustomVCardEntryConstructor.java130 public void onPropertyCreated(VCardProperty property) { argument
131 mCurrentEntry.addProperty(property);
/packages/apps/Browser2/test/resources/
H A Djs-test.js33 // Returns a sorted array of property names of object. This function returns
37 for (var property in object) {
38 properties.push(property);
/packages/apps/Camera2/src/com/android/camera/debug/
H A DDebugPropertyHelper.java42 private static boolean isPropertyOn(String property) { argument
43 return ON_VALUE.equals(SystemProperties.get(property, OFF_VALUE));
/packages/services/Car/service/src/com/android/car/
H A DCarPropertyServiceBase.java22 import android.car.hardware.property.CarPropertyEvent;
23 import android.car.hardware.property.ICarProperty;
24 import android.car.hardware.property.ICarPropertyEventListener;
217 public void onPropertySetError(int property, int area) { argument
220 listener.onEvent(createErrorEvent(property, area));
229 private static CarPropertyEvent createErrorEvent(int property, int area) { argument
231 new CarPropertyValue<>(property, area, null));
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/
H A DMockedVehicleHal.java46 * Interface for handler of each property.
51 default void onPropertySubscribe(int property, int zones, float sampleRate) {} argument
52 default void onPropertyUnsubscribe(int property) {} argument
97 assertNotNull("Injecting event failed for property: " + value.prop
111 assertNotNull("Injecting error failed for property: " + propertyId
220 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
225 public void onPropertyUnsubscribe(int property) { argument
268 public synchronized void onPropertySubscribe(int property, int zones, float sampleRate) { argument
269 assertEquals(mConfig.prop, property);
274 public synchronized void onPropertyUnsubscribe(int property) { argument
[all...]
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
H A DCarProjectionManagerTest.java154 public synchronized void onPropertySubscribe(int property, int zones, float sampleRate) { argument
155 Log.d(TAG, "onPropertySubscribe property " + property + " sampleRate " + sampleRate);
159 public synchronized void onPropertyUnsubscribe(int property) { argument
160 Log.d(TAG, "onPropertyUnSubscribe property " + property);
H A DCarAudioManagerTest.java192 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
193 assertEquals(VehicleProperty.AUDIO_PARAMETERS, property);
197 public void onPropertyUnsubscribe(int property) { argument
198 assertEquals(VehicleProperty.AUDIO_PARAMETERS, property);
/packages/apps/Car/Hvac/src/com/android/car/hvac/
H A DLocalHvacPropertyService.java24 import android.car.hardware.property.CarPropertyEvent;
25 import android.car.hardware.property.ICarProperty;
26 import android.car.hardware.property.ICarPropertyEventListener;
/packages/services/Car/car-lib/src/android/car/hardware/
H A DCarVendorExtensionManager.java23 import android.car.hardware.property.CarPropertyManagerBase;
24 import android.car.hardware.property.CarPropertyManagerBase.CarPropertyEventCallback;
64 * property.
67 /** Called when a property is updated */
70 /** Called when an error is detected with a property */
126 * Returns property value. Use this function for global vehicle properties.
128 * @param propertyClass - data type of the given property, for example property that was
131 * @param propId - property id which is matched with the one defined in vehicle HAL
141 * Returns property valu
[all...]
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
H A DTouchEventGenerator.java249 PointerProperties property = new PointerProperties();
250 property.id = id;
251 property.toolType = MotionEvent.TOOL_TYPE_FINGER;
252 properties[index] = property;
/packages/services/Car/libvehiclenetwork/libvehiclenetwork-audio-helper/include/
H A DVehicleNetworkAudioHelper.h62 void onHalError(int32_t errorCode, int32_t property, int32_t operation) override;

Completed in 404 milliseconds

123