Home
last modified time | relevance | path

Searched refs:propId (Results 1 – 25 of 27) sorted by relevance

12

/packages/services/Car/service/src/com/android/car/
DCarPropertyService.java88 void addProperty(int propId, float rate) { in addProperty() argument
89 mRateMap.put(propId, rate); in addProperty()
103 int propId = mRateMap.keyAt(i); in binderDied() local
104 CarPropertyService.this.unregisterListenerBinderLocked(propId, mListenerBinder); in binderDied()
117 float getRate(int propId) { in getRate() argument
119 return mRateMap.get(propId, (float) 0); in getRate()
127 void removeProperty(int propId) { in removeProperty() argument
128 mRateMap.remove(propId); in removeProperty()
163 public void registerListener(int propId, float rate, ICarPropertyEventListener listener) { in registerListener() argument
165 Log.d(TAG, "registerListener: propId=0x" + toHexString(propId) + " rate=" + rate); in registerListener()
[all …]
DCarDrivingStateService.java324 int propId = value.getPropertyId(); in handlePropertyEvent() local
327 Log.d(TAG, "Property Changed: propId=" + propId); in handlePropertyEvent()
329 switch (propId) { in handlePropertyEvent()
371 Log.e(TAG, "Received property event for unhandled propId=" + propId); in handlePropertyEvent()
/packages/services/Car/car-test-lib/src/android/car/testapi/
DFakeCarPropertyService.java62 public void registerListener(int propId, float rate, ICarPropertyEventListener listener) in registerListener() argument
64 Set<ListenerInfo> propListeners = mListeners.get(propId); in registerListener()
67 mListeners.put(propId, propListeners); in registerListener()
74 public void unregisterListener(int propId, ICarPropertyEventListener listener) in unregisterListener() argument
76 Set<ListenerInfo> propListeners = mListeners.get(propId); in unregisterListener()
79 mListeners.remove(propId); in unregisterListener()
102 public String getReadPermission(int propId) throws RemoteException { in getReadPermission() argument
103 return mConfigs.containsKey(propId) ? mPermissions.getReadPermission(propId) : null; in getReadPermission()
107 public String getWritePermission(int propId) throws RemoteException { in getWritePermission() argument
108 return mConfigs.containsKey(propId) ? mPermissions.getWritePermission(propId) : null; in getWritePermission()
[all …]
DCarPropertyController.java39 CarPropertyController addProperty(Integer propId, @Nullable Object value); in addProperty() argument
/packages/services/Car/service/src/com/android/car/hal/
DPropertyHalService.java70 private int managerToHalPropId(int propId) { in managerToHalPropId() argument
71 if (mProps.containsKey(propId)) { in managerToHalPropId()
72 return propId; in managerToHalPropId()
163 public float getSampleRate(int propId) { in getSampleRate() argument
164 return mVehicleHal.getSampleRate(propId); in getSampleRate()
172 public String getReadPermission(int propId) { in getReadPermission() argument
173 return mPropIds.getReadPermission(propId); in getReadPermission()
181 public String getWritePermission(int propId) { in getWritePermission() argument
182 return mPropIds.getWritePermission(propId); in getWritePermission()
209 public void subscribeProperty(int propId, float rate) { in subscribeProperty() argument
[all …]
DVehicleHal.java261 opts.propId = property; in subscribeProperty()
380 public float getSampleRate(int propId) { in getSampleRate() argument
381 SubscribeOptions opts = mSubscribedProperties.get(propId); in getSampleRate()
395 VehiclePropValueSetter set(int propId) { in set() argument
396 return new VehiclePropValueSetter(mHalClient, propId, NO_AREA); in set()
400 VehiclePropValueSetter set(int propId, int areaId) { in set() argument
401 return new VehiclePropValueSetter(mHalClient, propId, areaId); in set()
454 public void onPropertySetError(int errorCode, int propId, int areaId) { in onPropertySetError() argument
456 + "area: 0x%x", errorCode, propId, areaId)); in onPropertySetError()
457 if (propId != VehicleProperty.INVALID) { in onPropertySetError()
[all …]
DHalClient.java115 int propId = requestedPropValue.prop; in getValue() local
119 String.format("Failed to get value for: 0x%x, areaId: 0x%x", propId, areaId)); in getValue()
123 throw new PropertyTimeoutException(propId); in getValue()
129 + "code: %d", propId, areaId, status)); in getValue()
183 final int propId; field in HalClient.PropertySetError
186 PropertySetError(int errorCode, int propId, int areaId) { in PropertySetError() argument
188 this.propId = propId; in PropertySetError()
219 mCallback.onPropertySetError(obj.errorCode, obj.propId, obj.areaId); in handleMessage()
250 public void onPropertySetError(int errorCode, int propId, int areaId) { in onPropertySetError() argument
253 new PropertySetError(errorCode, propId, areaId))); in onPropertySetError()
DPropertyHalServiceIds.java414 public String getReadPermission(int propId) { in getReadPermission() argument
415 Pair<String, String> p = mProps.get(propId); in getReadPermission()
419 Log.e(TAG, "propId is not available for reading : 0x" + toHexString(propId)); in getReadPermission()
433 public String getWritePermission(int propId) { in getWritePermission() argument
434 Pair<String, String> p = mProps.get(propId); in getWritePermission()
438 Log.e(TAG, "propId is not writable : 0x" + toHexString(propId)); in getWritePermission()
449 public boolean insertVendorProperty(int propId) { in insertVendorProperty() argument
450 if ((propId & VehiclePropertyGroup.MASK) == VehiclePropertyGroup.VENDOR) { in insertVendorProperty()
451 mProps.put(propId, new Pair<>( in insertVendorProperty()
463 public boolean isSupportedProperty(int propId) { in isSupportedProperty() argument
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/property/
DCarPropertyManager.java78 void onErrorEvent(int propId, int zone); in onErrorEvent() argument
306 for (int propId : propertyIds) { in getPropertyList()
307 CarPropertyConfig config = mConfigMap.get(propId); in getPropertyList()
323 public String getReadPermission(int propId) { in getReadPermission() argument
325 Log.d(TAG, "getReadPermission, propId: 0x" + toHexString(propId)); in getReadPermission()
328 return mService.getReadPermission(propId); in getReadPermission()
342 public String getWritePermission(int propId) { in getWritePermission() argument
344 Log.d(TAG, "getWritePermission, propId: 0x" + toHexString(propId)); in getWritePermission()
347 return mService.getWritePermission(propId); in getWritePermission()
360 public boolean isPropertyAvailable(int propId, int area) { in isPropertyAvailable() argument
[all …]
DICarProperty.aidl28 void registerListener(int propId, float rate, in ICarPropertyEventListener callback) = 0; in registerListener() argument
30 void unregisterListener(int propId, in ICarPropertyEventListener callback) = 1; in unregisterListener() argument
38 String getReadPermission(int propId) = 5; in getReadPermission() argument
40 String getWritePermission(int propId) = 6; in getWritePermission() argument
/packages/services/Car/car-lib/src/com/android/car/internal/
DPropertyPermissionMapping.java169 public String getReadPermission(int propId) { in getReadPermission() argument
170 final Permission p = getPermission(propId); in getReadPermission()
178 public String getWritePermission(int propId) { in getWritePermission() argument
179 final Permission p = getPermission(propId); in getWritePermission()
184 private Permission getPermission(int propId) { in getPermission() argument
185 return isVendorExtension(propId) ? VENDOR_PERMISION : mPermissions.get(propId); in getPermission()
189 private static boolean isVendorExtension(int propId) { in isVendorExtension() argument
190 return (propId & VENDOR_MASK) == VENDOR_MASK; in isVendorExtension()
202 for (int propId : propIds) { in map()
203 mPermissions.put(propId, p); in map()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/
DMockedVehicleHal.java79 public boolean waitForSubscriber(int propId, long timeoutMillis) { in waitForSubscriber() argument
83 while (mSubscribers.get(propId) == null) { in waitForSubscriber()
89 return mSubscribers.get(propId) != null; in waitForSubscriber()
181 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(opt.propId); in subscribe()
186 handler.onPropertySubscribe(opt.propId, opt.sampleRate); in subscribe()
187 List<IVehicleCallback> subscribers = mSubscribers.get(opt.propId); in subscribe()
190 mSubscribers.put(opt.propId, subscribers); in subscribe()
207 public synchronized int unsubscribe(IVehicleCallback callback, int propId) { in unsubscribe() argument
208 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(propId); in unsubscribe()
213 handler.onPropertyUnsubscribe(propId); in unsubscribe()
[all …]
DVehiclePropConfigBuilder.java35 public static VehiclePropConfigBuilder newBuilder(int propId) { in newBuilder() argument
36 return new VehiclePropConfigBuilder(propId); in newBuilder()
39 private VehiclePropConfigBuilder(int propId) { in VehiclePropConfigBuilder() argument
41 mConfig.prop = propId; in VehiclePropConfigBuilder()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/
DPropertyTestFragment.java111 int propId = info.mConfig.getPropertyId(); in onCreateView()
113 CarPropertyValue value = mMgr.getProperty(propId, areaId); in onCreateView()
114 if (propId == VehicleProperty.WHEEL_TICK) { in onCreateView()
125 + "\nread=" + mMgr.getReadPermission(propId) in onCreateView()
126 + "\nwrite=" + mMgr.getWritePermission(propId)); in onCreateView()
139 int propId = info.mConfig.getPropertyId(); in onCreateView()
143 switch (propId & VehiclePropertyType.MASK) { in onCreateView()
146 mMgr.setBooleanProperty(propId, areaId, boolVal); in onCreateView()
150 mMgr.setFloatProperty(propId, areaId, floatVal); in onCreateView()
154 mMgr.setIntProperty(propId, areaId, intVal); in onCreateView()
[all …]
DPropertyListAdapter.java93 int propId = c.getPropertyId(); in getView()
96 mMgr.registerCallback(mListener, propId, DEFAULT_RATE); in getView()
98 mMgr.unregisterCallback(mListener, propId); in getView()
133 public void onErrorEvent(int propId, int areaId) { in onErrorEvent() argument
134 mTvLogEvent.append("Received error event propId=0x" + toHexString(propId) in onErrorEvent()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarVendorExtensionManager.java158 public <E> E getGlobalProperty(Class<E> propertyClass, int propId) { in getGlobalProperty() argument
159 return getProperty(propertyClass, propId, 0 /* area */); in getGlobalProperty()
172 public <E> E getProperty(Class<E> propertyClass, int propId, int area) { in getProperty() argument
173 return mPropertyManager.getProperty(propertyClass, propId, area).getValue(); in getProperty()
186 public <E> void setGlobalProperty(Class<E> propertyClass, int propId, E value) { in setGlobalProperty() argument
187 mPropertyManager.setProperty(propertyClass, propId, 0 /* area */, value); in setGlobalProperty()
202 public <E> void setProperty(Class<E> propertyClass, int propId, int area, E value) { in setProperty() argument
203 mPropertyManager.setProperty(propertyClass, propId, area, value); in setProperty()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
DVehiclePropValueBuilder.java27 public static VehiclePropValueBuilder newBuilder(int propId) { in newBuilder() argument
28 return new VehiclePropValueBuilder(propId); in newBuilder()
35 private VehiclePropValueBuilder(int propId) { in VehiclePropValueBuilder() argument
37 mPropValue.prop = propId; in VehiclePropValueBuilder()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarCabinManagerTest.java57 int propId = property.getPropertyId(); in assertTypeAndZone() local
58 switch (propId) { in assertTypeAndZone()
109 Log.e(TAG, "Property ID not handled: " + propId); in assertTypeAndZone()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DMockedCarTestBase.java241 int propId = builder.build().prop; in setConfigBuilder() local
244 VehiclePropConfigBuilder prevBuilder = mPropToConfigBuilder.get(propId); in setConfigBuilder()
248 mPropToConfigBuilder.put(propId, builder); in setConfigBuilder()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DE2ePerformanceTest.java117 for (int propId: mgrProperties) { in benchmarkEventBandwidthThroughCarService()
118 mgr.registerListener(listener, propId, CarSensorManager.SENSOR_RATE_FASTEST); in benchmarkEventBandwidthThroughCarService()
/packages/apps/Car/Cluster/src/android/car/cluster/
DClusterViewModel.java142 public void onErrorEvent(int propId, int zone) {
144 propId)) {
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/
DHvacTestFragment.java213 int propId = prop.getPropertyId(); in onCreateView()
219 switch (propId) { in onCreateView()
264 Log.w(TAG, "propertyId " + propId + " is not handled"); in onCreateView()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/input/
DInputTestFragment.java214 public void onPropertySetError(int errorCode, int propId, int areaId) {}
237 subscribeOption.propId = HW_KEY_INPUT; in onCreate()
/packages/services/Car/evs/app/
Devs_app.cpp52 .propId = static_cast<int32_t>(propertyId), in subscribeToVHal()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/
DSensorsTestFragment.java84 public void onErrorEvent(int propId, int zone) {
85 Log.e(TAG, "propId: " + propId + " zone: " + zone);

12