/packages/services/Car/service/src/com/android/car/ |
D | CarPropertyService.java | 132 void addProperty(int propId, float rate) { in addProperty() argument 137 mRateMap.put(propId, rate); in addProperty() 141 float getRate(int propId) { in getRate() argument 144 return mRateMap.get(propId, 0.0f); in getRate() 148 int removeProperty(int propId) { in removeProperty() argument 150 mRateMap.remove(propId); in removeProperty() 234 int propId = mPropIdClientMap.keyAt(i); in dump() local 235 writer.println("propId: 0x" + toHexString(propId) in dump() 243 int propId = mSetOperationClientMap.keyAt(i); in dump() local 248 toHexString(propId), toHexString(areaId), areaIdToClient.valueAt(j))); in dump() [all …]
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | CarPropertyManager.java | 127 void onErrorEvent(int propId, int zone); in onErrorEvent() argument 143 default void onErrorEvent(int propId, int areaId, @CarSetPropertyErrorCode int errorCode) { in onErrorEvent() argument 145 Log.d(TAG, "onErrorEvent propertyId: 0x" + toHexString(propId) + " areaId:0x" in onErrorEvent() 148 onErrorEvent(propId, areaId); in onErrorEvent() 416 for (int propId : propertyIds) { in getPropertyList() 417 checkSupportedProperty(propId); in getPropertyList() 418 propIds[idx++] = propId; in getPropertyList() 439 public CarPropertyConfig<?> getCarPropertyConfig(int propId) { in getCarPropertyConfig() argument 440 checkSupportedProperty(propId); in getCarPropertyConfig() 443 configs = mService.getPropertyConfigList(new int[] {propId}); in getCarPropertyConfig() [all …]
|
D | ICarProperty.aidl | 28 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/ |
D | PropertyListAdapter.java | 119 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 …]
|
D | PropertyTestFragment.java | 111 int propId = info.mConfig.getPropertyId(); in onCreateView() 113 CarPropertyValue value = mMgr.getProperty(propId, areaId); in onCreateView() 114 if (propId == VehiclePropertyIds.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/ |
D | FakeCarPropertyService.java | 62 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/ |
D | VehicleHal.java | 233 Integer propId = mAllProperties.keyAt(j); in init() local 234 if (service.isSupportedProperty(propId)) { in init() 235 HalPropConfig config = mAllProperties.get(propId); in init() 236 mPropertyHandlers.append(propId, service); in init() 372 opts.propId = property; in subscribeProperty() 617 public float getSampleRate(int propId) { in getSampleRate() argument 620 opts = mSubscribedProperties.get(propId); in getSampleRate() 643 HalPropValueSetter set(int propId) { in set() argument 644 return set(propId, NO_AREA); in set() 648 HalPropValueSetter set(int propId, int areaId) { in set() argument [all …]
|
D | DiagnosticHalService.java | 163 int propId = propConfig.getPropId(); in getTokenForProperty() local 165 switch (propId) { in getTokenForProperty() 167 mDiagnosticCapabilities.setSupported(propId); in getTokenForProperty() 168 mVehiclePropertyToConfig.put(propId, propConfig); in getTokenForProperty() 173 mDiagnosticCapabilities.setSupported(propId); in getTokenForProperty() 174 mVehiclePropertyToConfig.put(propId, propConfig); in getTokenForProperty() 179 mDiagnosticCapabilities.setSupported(propId); in getTokenForProperty() 180 return propId; in getTokenForProperty() 182 mDiagnosticCapabilities.setSupported(propId); in getTokenForProperty() 189 + "not.", propId); in getTokenForProperty() [all …]
|
D | PropertyHalServiceIds.java | 671 public String getReadPermission(int propId) { in getReadPermission() argument 672 Pair<String, String> p = mProps.get(propId); in getReadPermission() 676 Slogf.e(TAG, "propId is not available for reading : 0x" + toHexString(propId)); in getReadPermission() 679 } else if (isVendorProperty(propId)) { in getReadPermission() 693 public String getWritePermission(int propId) { in getWritePermission() argument 694 Pair<String, String> p = mProps.get(propId); in getWritePermission() 698 Slogf.e(TAG, "propId is not writable : 0x" + toHexString(propId)); in getWritePermission() 701 } else if (isVendorProperty(propId)) { in getWritePermission() 709 private static boolean isVendorProperty(int propId) { in isVendorProperty() argument 710 return (propId & VehiclePropertyGroup.MASK) == VehiclePropertyGroup.VENDOR; in isVendorProperty() [all …]
|
D | PropertyHalService.java | 369 public boolean isSupportedProperty(int propId) { in isSupportedProperty() argument 370 return mPropIds.isSupportedProperty(propId); in isSupportedProperty() 382 int propId = p.getPropId(); in takeProperties() local 383 if (mPropIds.isSupportedProperty(propId)) { in takeProperties() 385 mHalPropIdToPropConfig.put(propId, p); in takeProperties() 388 Slogf.d(TAG, "takeSupportedProperties: " + toHexString(propId)); in takeProperties() 418 int propId = v.getPropId(); in onHalEvents() local 419 if (!isPropertySupportedInVehicle(propId)) { in onHalEvents() 420 Slogf.w(TAG, "Property is not supported: 0x" + toHexString(propId)); in onHalEvents() 429 int mgrPropId = halToManagerPropId(propId); in onHalEvents() [all …]
|
/packages/services/Car/cpp/vhal/client/src/ |
D | HidlVhalClient.cpp | 96 std::unique_ptr<IHalPropValue> HidlVhalClient::createHalPropValue(int32_t propId) { in createHalPropValue() argument 97 return std::make_unique<HidlHalPropValue>(propId); in createHalPropValue() 100 std::unique_ptr<IHalPropValue> HidlVhalClient::createHalPropValue(int32_t propId, int32_t areaId) { in createHalPropValue() argument 101 return std::make_unique<HidlHalPropValue>(propId, areaId); in createHalPropValue() 108 int32_t propId = requestValue.getPropId(); in getValue() local 112 [callback, propId, areaId](StatusCode status, const VehiclePropValue& value) { in getValue() 118 << "failed to get value for prop: " << propId in getValue() 251 .propId = option.propId, in subscribe() 270 for (int32_t propId : propIds) { in unsubscribe() local 271 auto result = mHal->unsubscribe(mVhalCallback, propId); in unsubscribe() [all …]
|
D | AidlVhalClient.cpp | 149 std::unique_ptr<IHalPropValue> AidlVhalClient::createHalPropValue(int32_t propId) { in createHalPropValue() argument 150 return std::make_unique<AidlHalPropValue>(propId); in createHalPropValue() 153 std::unique_ptr<IHalPropValue> AidlVhalClient::createHalPropValue(int32_t propId, int32_t areaId) { in createHalPropValue() argument 154 return std::make_unique<AidlHalPropValue>(propId, areaId); in createHalPropValue() 289 int32_t propId = requestValue.getPropId(); in getValue() local 308 propId, areaId))); in getValue() 320 propId, areaId))); in getValue() 328 int32_t propId = requestValue.getPropId(); in setValue() local 346 propId, areaId))); in setValue() 357 propId, areaId))); in setValue() [all …]
|
D | AidlHalPropValue.cpp | 26 AidlHalPropValue::AidlHalPropValue(int32_t propId) { in AidlHalPropValue() argument 28 mPropValue.prop = propId; in AidlHalPropValue() 31 AidlHalPropValue::AidlHalPropValue(int32_t propId, int32_t areaId) { in AidlHalPropValue() argument 33 mPropValue.prop = propId; in AidlHalPropValue()
|
D | HidlHalPropValue.cpp | 26 HidlHalPropValue::HidlHalPropValue(int32_t propId) { in HidlHalPropValue() argument 28 mPropValue.prop = propId; in HidlHalPropValue() 31 HidlHalPropValue::HidlHalPropValue(int32_t propId, int32_t areaId) { in HidlHalPropValue() argument 33 mPropValue.prop = propId; in HidlHalPropValue()
|
/packages/services/Car/car-lib/src/com/android/car/internal/ |
D | PropertyPermissionMapping.java | 169 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/apps/Car/SystemUI/src/com/android/systemui/car/hvac/ |
D | HvacController.java | 126 public void onErrorEvent(int propId, int zone) { 127 Log.w(TAG, "Could not handle " + propId + " change event in zone " + zone); 209 @HvacProperty Integer propId = hvacView.getHvacPropertyToView(); in registerHvacViews() local 213 addHvacViewToMap(propId, areaId, hvacView); in registerHvacViews() 216 CarPropertyValue initValue = mCarPropertyManager.getProperty(propId, areaId); in registerHvacViews() 250 @HvacProperty Integer propId = hvacView.getHvacPropertyToView(); in unregisterViews() local 253 removeHvacViewFromMap(propId, areaId, hvacView); in unregisterViews() 269 mHvacPropertyViewMap.forEach((propId, areaIds) -> { in handleHvacPropertyChange() argument 278 mHvacPropertyViewMap.forEach((propId, areaIds) -> { in handleHvacPropertyChange() argument 321 private void addHvacViewToMap(@HvacProperty int propId, @AreaId int areaId, in addHvacViewToMap() argument [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/hal/test/ |
D | HidlMockedVehicleHal.java | 80 public boolean waitForSubscriber(int propId, long timeoutMillis) { in waitForSubscriber() argument 84 while (mSubscribers.get(propId) == null) { in waitForSubscriber() 90 return mSubscribers.get(propId) != null; in waitForSubscriber() 199 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(opt.propId); in subscribe() 204 handler.onPropertySubscribe(opt.propId, opt.sampleRate); in subscribe() 205 List<IVehicleCallback> subscribers = mSubscribers.get(opt.propId); in subscribe() 208 mSubscribers.put(opt.propId, subscribers); in subscribe() 226 public synchronized int unsubscribe(IVehicleCallback callback, int propId) { in unsubscribe() argument 227 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(propId); in unsubscribe() 232 handler.onPropertyUnsubscribe(propId); in unsubscribe() [all …]
|
D | AidlMockedVehicleHal.java | 96 public boolean waitForSubscriber(int propId, long timeoutMillis) { in waitForSubscriber() argument 100 while (mSubscribers.get(propId) == null) { in waitForSubscriber() 106 return mSubscribers.get(propId) != null; in waitForSubscriber() 155 error.propId = propertyId; in injectError() 287 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(opt.propId); in subscribe() 293 handler.onPropertySubscribe(opt.propId, opt.sampleRate); in subscribe() 294 List<IVehicleCallback> subscribers = mSubscribers.get(opt.propId); in subscribe() 297 mSubscribers.put(opt.propId, subscribers); in subscribe() 318 for (int propId : propIds) { in unsubscribe() 319 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(propId); in unsubscribe() [all …]
|
/packages/services/Car/car-lib/src/android/car/hardware/ |
D | CarVendorExtensionManager.java | 166 public <E> E getGlobalProperty(Class<E> propertyClass, int propId) { in getGlobalProperty() argument 167 return getProperty(propertyClass, propId, 0 /* area */); in getGlobalProperty() 181 public <E> E getProperty(Class<E> propertyClass, int propId, int area) { in getProperty() argument 182 return mPropertyManager.getProperty(propertyClass, propId, area).getValue(); in getProperty() 196 public <E> void setGlobalProperty(Class<E> propertyClass, int propId, E value) { in setGlobalProperty() argument 197 mPropertyManager.setProperty(propertyClass, propId, 0 /* area */, value); in setGlobalProperty() 213 public <E> void setProperty(Class<E> propertyClass, int propId, int area, E value) { in setProperty() argument 214 mPropertyManager.setProperty(propertyClass, propId, area, value); in setProperty()
|
/packages/services/Car/cpp/vhal/client/test/ |
D | HidlVhalClientTest.cpp | 82 int32_t propId) override { in unsubscribe() argument 83 mUnsubscribedPropId = propId; in unsubscribe() 109 void triggerSetErrorEvent(StatusCode status, int32_t propId, int32_t areaId) { in triggerSetErrorEvent() argument 110 mSubscribedCallback->onPropertySetError(status, propId, areaId); in triggerSetErrorEvent() 370 .propId = TEST_PROP_ID, in TEST_F() 375 .propId = TEST_PROP_ID_2, in TEST_F() 381 .propId = TEST_PROP_ID, in TEST_F() 386 .propId = TEST_PROP_ID_2, in TEST_F() 413 ASSERT_EQ(errors[0].propId, TEST_PROP_ID); in TEST_F() 422 .propId = TEST_PROP_ID, in TEST_F() [all …]
|
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/hal/test/ |
D | HidlVehiclePropValueBuilder.java | 27 public static HidlVehiclePropValueBuilder newBuilder(int propId) { in newBuilder() argument 28 return new HidlVehiclePropValueBuilder(propId); in newBuilder() 35 private HidlVehiclePropValueBuilder(int propId) { in HidlVehiclePropValueBuilder() argument 37 mPropValue.prop = propId; in HidlVehiclePropValueBuilder()
|
D | HidlVehiclePropConfigBuilder.java | 35 public static HidlVehiclePropConfigBuilder newBuilder(int propId) { in newBuilder() argument 36 return new HidlVehiclePropConfigBuilder(propId); in newBuilder() 39 private HidlVehiclePropConfigBuilder(int propId) { in HidlVehiclePropConfigBuilder() argument 41 mConfig.prop = propId; in HidlVehiclePropConfigBuilder()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | WatchdogProcessService.cpp | 832 int32_t propId = value.prop; in updateVhal() local 833 if (mNotSupportedVhalProperties.count(static_cast<VehicleProperty>(propId)) > 0) { in updateVhal() 834 std::string errorMsg = StringPrintf("VHAL doesn't support property(id: %d)", propId); in updateVhal() 839 auto halPropValue = mVhalService->createHalPropValue(propId); in updateVhal() 844 return Error() << "Failed to set propValue(" << propId in updateVhal() 882 for (const auto& propId : propIds) { in queryVhalPropertiesLocked() local 883 if (!isVhalPropertySupportedLocked(propId)) { in queryVhalPropertiesLocked() 884 mNotSupportedVhalProperties.insert(propId); in queryVhalPropertiesLocked() 889 bool WatchdogProcessService::isVhalPropertySupportedLocked(VehicleProperty propId) { in isVhalPropertySupportedLocked() argument 890 auto result = mVhalService->getPropConfigs({static_cast<int32_t>(propId)}); in isVhalPropertySupportedLocked() [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | MockedCarTestBase.java | 357 public void injectErrorEvent(int propId, int areaId, int errorCode) { in injectErrorEvent() argument 359 mAidlMockedVehicleHal.injectError(errorCode, propId, areaId); in injectErrorEvent() 361 mHidlMockedVehicleHal.injectError(errorCode, propId, areaId); in injectErrorEvent() 467 int propId = builder.build().prop; in setHidlConfigBuilder() local 471 HidlVehiclePropConfigBuilder prevBuilder = mHidlPropToConfigBuilder.get(propId); in setHidlConfigBuilder() 475 mHidlPropToConfigBuilder.put(propId, builder); in setHidlConfigBuilder() 482 int propId = builder.build().prop; in setAidlConfigBuilder() local 486 AidlVehiclePropConfigBuilder prevBuilder = mAidlPropToConfigBuilder.get(propId); in setAidlConfigBuilder() 490 mAidlPropToConfigBuilder.put(propId, builder); in setAidlConfigBuilder()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipEncodingTest.java | 31 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()
|