Home
last modified time | relevance | path

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

12

/packages/services/Car/service/src/com/android/car/
DCarPropertyService.java104 void addProperty(int propId, float rate) { in addProperty() argument
105 mRateMap.put(propId, rate); in addProperty()
119 int propId = mRateMap.keyAt(i); in binderDied() local
120 CarPropertyService.this.unregisterListenerBinderLocked(propId, mListenerBinder); in binderDied()
133 float getRate(int propId) { in getRate() argument
135 return mRateMap.get(propId, (float) 0); in getRate()
143 void removeProperty(int propId) { in removeProperty() argument
144 mRateMap.remove(propId); in removeProperty()
189 for (int propId : mPropIdClientMap.keySet()) { in dump()
190 writer.println("propId: 0x" + toHexString(propId) in dump()
[all …]
DCarDrivingStateService.java295 int propId = value.getPropertyId(); in handlePropertyEventLocked() local
298 Slog.d(TAG, "Property Changed: propId=" + propId); in handlePropertyEventLocked()
300 switch (propId) { in handlePropertyEventLocked()
342 Slog.e(TAG, "Received property event for unhandled propId=" + propId); in handlePropertyEventLocked()
/packages/services/Car/car-lib/src/android/car/hardware/property/
DCarPropertyManager.java87 void onErrorEvent(int propId, int zone); in onErrorEvent() argument
102 default void onErrorEvent(int propId, int areaId, @CarSetPropertyErrorCode int errorCode) { in onErrorEvent() argument
104 Log.d(TAG, "onErrorEvent propertyId: 0x" + toHexString(propId) + " areaId:0x" in onErrorEvent()
107 onErrorEvent(propId, areaId); in onErrorEvent()
377 for (int propId : propertyIds) { in getPropertyList()
378 checkSupportedProperty(propId); in getPropertyList()
379 propIds[idx++] = propId; in getPropertyList()
399 public CarPropertyConfig<?> getCarPropertyConfig(int propId) { in getCarPropertyConfig() argument
400 checkSupportedProperty(propId); in getCarPropertyConfig()
403 configs = mService.getPropertyConfigList(new int[] {propId}); in getCarPropertyConfig()
[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/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/
DPropertyListAdapter.java119 int propId = c.getPropertyId(); in getView()
122 mMgr.unregisterCallback(mListener, propId); in getView()
124 mListener.addPropertySelectedSampleRate(propId, c.getMaxSampleRate()); in getView()
125 mListener.updatePropertyStartTime(propId); in getView()
126 mListener.resetEventCountForProperty(propId); in getView()
127 mMgr.registerCallback(mListener, propId, c.getMaxSampleRate()); in getView()
129 mListener.addPropertySelectedSampleRate(propId, in getView()
131 mListener.updatePropertyStartTime(propId); in getView()
132 mListener.resetEventCountForProperty(propId); in getView()
133 mMgr.registerCallback(mListener, propId, in getView()
[all …]
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 …]
/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()
115 public String getReadPermission(int propId) throws RemoteException { in getReadPermission() argument
116 return mConfigs.containsKey(propId) ? mPermissions.getReadPermission(propId) : null; in getReadPermission()
120 public String getWritePermission(int propId) throws RemoteException { in getWritePermission() argument
121 return mConfigs.containsKey(propId) ? mPermissions.getWritePermission(propId) : null; in getWritePermission()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java240 for (Integer propId : mAllProperties.keySet()) { in init()
241 if (service.isSupportedProperty(propId)) { in init()
242 VehiclePropConfig config = mAllProperties.get(propId); in init()
243 mPropertyHandlers.append(propId, service); in init()
371 opts.propId = property; in subscribeProperty()
550 public float getSampleRate(int propId) { in getSampleRate() argument
551 SubscribeOptions opts = mSubscribedProperties.get(propId); in getSampleRate()
565 VehiclePropValueSetter set(int propId) { in set() argument
566 return new VehiclePropValueSetter(mHalClient, propId, NO_AREA); in set()
570 VehiclePropValueSetter set(int propId, int areaId) { in set() argument
[all …]
DPropertyHalServiceIds.java611 public String getReadPermission(int propId) { in getReadPermission() argument
612 Pair<String, String> p = mProps.get(propId); in getReadPermission()
616 Slog.e(TAG, "propId is not available for reading : 0x" + toHexString(propId)); in getReadPermission()
619 } else if (isVendorProperty(propId)) { in getReadPermission()
633 public String getWritePermission(int propId) { in getWritePermission() argument
634 Pair<String, String> p = mProps.get(propId); in getWritePermission()
638 Slog.e(TAG, "propId is not writable : 0x" + toHexString(propId)); in getWritePermission()
641 } else if (isVendorProperty(propId)) { in getWritePermission()
649 private static boolean isVendorProperty(int propId) { in isVendorProperty() argument
650 return (propId & VehiclePropertyGroup.MASK) == VehiclePropertyGroup.VENDOR; in isVendorProperty()
[all …]
DHalClient.java208 public final int propId; field in HalClient.PropertySetError
211 PropertySetError(int errorCode, int propId, int areaId) { in PropertySetError() argument
213 this.propId = propId; in PropertySetError()
248 callback.onPropertySetError(obj.errorCode, obj.propId, obj.areaId); in handleMessage()
279 public void onPropertySetError(int errorCode, int propId, int areaId) { in onPropertySetError() argument
282 new PropertySetError(errorCode, propId, areaId))); in onPropertySetError()
DVmsHalService.java152 int propId = context.getResources().getInteger( in getClientMetricsProperty() local
154 if (propId == 0) { in getClientMetricsProperty()
158 if ((propId & VehiclePropertyGroup.MASK) != VehiclePropertyGroup.VENDOR) { in getClientMetricsProperty()
160 propId)); in getClientMetricsProperty()
164 Slog.i(TAG, String.format("Metrics collection property: 0x%x", propId)); in getClientMetricsProperty()
165 return propId; in getClientMetricsProperty()
/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/test/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 …]
/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/tests/carservice_unit_test/src/com/android/car/hal/
DVehicleHalTest.java123 expectedOptions.propId = SOME_READ_ON_CHANGE_PROPERTY; in testSubscribeProperty_registeringReadWriteAndOnChangeProperty()
200 int propId = SOME_READ_ON_CHANGE_PROPERTY; in testOnPropertySetError() local
204 mVehicleHal.onPropertySetError(errorCode, propId, areaId); in testOnPropertySetError()
207 verify(mPowerHalService).onPropertySetError(propId, areaId, errorCode); in testOnPropertySetError()
214 int propId = SOME_READ_ON_CHANGE_PROPERTY; in testInjectOnPropertySetError() local
218 mVehicleHal.onPropertySetError(errorCode, propId, areaId); in testInjectOnPropertySetError()
221 verify(mPowerHalService).onPropertySetError(propId, areaId, errorCode); in testInjectOnPropertySetError()
DPropertyHalServiceTest.java64 for (int propId : UNITS_PROPERTY_ID) { in checkDisplayUnitsProperty()
65 Assert.assertTrue(mPropertyHalService.isDisplayUnitsProperty(propId)); in checkDisplayUnitsProperty()
/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/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/
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/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipEncodingTest.java31 private void testParse(String input, int encodingType, String encodingStr, String propId, in testParse() argument
36 Assert.assertEquals(propId, encoding.getProprietaryEncodingId()); in testParse()
40 private void testParseMany(String[] inputs, int encodingType, String encodingStr, String propId, in testParseMany() argument
43 testParse(input, encodingType, encodingStr, propId, isAndroidSupported); in testParseMany()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyManagerTest.java825 private static int mapPropertyToVhalStatusCode(int propId) { in mapPropertyToVhalStatusCode() argument
826 switch (propId) { in mapPropertyToVhalStatusCode()
842 private static int mapPropertyToCarPropertyStatusCode(int propId) { in mapPropertyToCarPropertyStatusCode() argument
843 switch (propId) { in mapPropertyToCarPropertyStatusCode()
870 public void onErrorEvent(int propId, int zone) { in onErrorEvent() argument
872 Log.d(CALLBACK_TAG, "onErrorEvent, propId: " + propId + " zone: " + zone); in onErrorEvent()
877 public void onErrorEvent(int propId, int areaId, int errorCode) { in onErrorEvent() argument
880 Log.d(CALLBACK_TAG, "onErrorEvent, propId: " + propId + " areaId: " + areaId in onErrorEvent()
934 public CarPropertyValue getLastCarPropertyValue(int propId) { in getLastCarPropertyValue() argument
935 return mRecorder.get(propId); in getLastCarPropertyValue()
DMockedCarTestBase.java269 public void injectErrorEvent(int propId, int areaId, int errorCode) { in injectErrorEvent() argument
270 mMockedVehicleHal.injectError(errorCode, propId, areaId); in injectErrorEvent()
325 int propId = builder.build().prop; in setConfigBuilder() local
328 VehiclePropConfigBuilder prevBuilder = mPropToConfigBuilder.get(propId); in setConfigBuilder()
332 mPropToConfigBuilder.put(propId, builder); in setConfigBuilder()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
DHvacController.java84 public void onErrorEvent(int propId, int zone) {
85 Log.d(TAG, "HVAC error event, propertyId: " + propId + " zone: " + zone);
102 public void onErrorEvent(int propId, int zone) {
103 Log.d(TAG, "HVAC error event, propertyId: " + propId + " zone: " + zone);
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DCarPropertyTest.java370 int propId; in injectEventFromVehicleSide() local
373 propId = SET_INT_FROM_VEHICLE; in injectEventFromVehicleSide()
381 propId = SET_FLOAT_FROM_VEHICLE; in injectEventFromVehicleSide()
383 propId = SET_BOOLEAN_FROM_VEHICLE; in injectEventFromVehicleSide()
391 propMgr.setProperty(Object[].class, propId, propertyValue.getAreaId(), values); in injectEventFromVehicleSide()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarCabinManagerTest.java64 int propId = property.getPropertyId(); in assertTypeAndZone() local
65 switch (propId) { in assertTypeAndZone()
116 Log.e(TAG, "Property ID not handled: " + propId); in assertTypeAndZone()
/packages/services/Car/car-lib/src/android/car/
DCarInfoManager.java270 private <T> T getPropertyWithDefaultValue(Class<T> clazz, int propId, T defaultValue) { in getPropertyWithDefaultValue() argument
273 clazz, propId, 0); in getPropertyWithDefaultValue()
278 Slog.e(TAG, "Failed to get property value for 0x:" + Integer.toHexString(propId) in getPropertyWithDefaultValue()

12