Lines Matching refs:property

90     /** Stores handler for each HAL property. Property events are sent to handler. */
207 throw new RuntimeException("Unable to retrieve vehicle property configuration", e);
297 private void assertServiceOwnerLocked(HalServiceBase service, int property) {
298 if (service != mPropertyHandlers.get(property)) {
299 throw new IllegalArgumentException("Property 0x" + toHexString(property)
309 public void subscribeProperty(HalServiceBase service, int property)
311 subscribeProperty(service, property, 0f, SubscribeFlags.DEFAULT);
319 public void subscribeProperty(HalServiceBase service, int property, float sampleRateHz)
321 subscribeProperty(service, property, sampleRateHz, SubscribeFlags.DEFAULT);
325 * Subscribe given property. Only Hal service owning the property can subscribe it.
327 * @param service HalService that owns this property
328 * @param property property id (VehicleProperty)
331 * @throws IllegalArgumentException thrown if property is not supported by VHAL
333 public void subscribeProperty(HalServiceBase service, int property,
337 + ", property: 0x" + toHexString(property));
341 config = mAllProperties.get(property);
345 throw new IllegalArgumentException("subscribe error: config is null for property 0x" +
346 toHexString(property));
349 opts.propId = property;
353 assertServiceOwnerLocked(service, property);
354 mSubscribedProperties.put(property, opts);
359 Log.e(CarLog.TAG_HAL, "Failed to subscribe to property: 0x" + property, e);
362 Log.e(CarLog.TAG_HAL, "Cannot subscribe to property: " + property);
366 public void unsubscribeProperty(HalServiceBase service, int property) {
369 + ", property: 0x" + toHexString(property));
373 config = mAllProperties.get(property);
377 Log.e(CarLog.TAG_HAL, "unsubscribeProperty: property " + property + " does not exist");
380 assertServiceOwnerLocked(service, property);
381 mSubscribedProperties.remove(property);
384 mHalClient.unsubscribe(property);
386 Log.e(CarLog.TAG_SERVICE, "Failed to unsubscribe from property: 0x"
387 + toHexString(property), e);
390 Log.e(CarLog.TAG_HAL, "Cannot unsubscribe property: " + property);
408 Log.i(CarLog.TAG_HAL, "get, property: 0x" + toHexString(propertyId)
485 writer.println(String.format("property 0x%x", config.prop));
521 // No need to handle on-property-set events in HAL service yet.
658 Log.i(CarLog.TAG_HAL, "set, property: 0x" + toHexString(mPropValue.prop)