/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/ |
D | FakeValueGenerator.h | 48 using OnHalEvent = std::function<void(int32_t propId, float value)>; 59 void startGeneratingHalEvents(std::chrono::nanoseconds interval, int propId, float initialValue, in startGeneratingHalEvents() argument 63 removeLocked(propId); in startGeneratingHalEvents() 65 mGenCfg.insert({propId, GeneratorCfg { in startGeneratingHalEvents() 72 mRecurrentTimer.registerRecurrentEvent(interval, propId); in startGeneratingHalEvents() 75 void stopGeneratingHalEvents(int propId) { in stopGeneratingHalEvents() argument 77 if (propId == 0) { in stopGeneratingHalEvents() 83 removeLocked(propId); in stopGeneratingHalEvents() 88 void removeLocked(int propId) { in removeLocked() argument 89 if (mGenCfg.erase(propId)) { in removeLocked() [all …]
|
D | EmulatedVehicleHal.cpp | 168 bool EmulatedVehicleHal::isContinuousProperty(int32_t propId) const { in isContinuousProperty() 169 const VehiclePropConfig* config = mPropStore->getConfigOrNull(propId); in isContinuousProperty() 171 ALOGW("Config not found for property: 0x%x", propId); in isContinuousProperty() 200 int32_t propId = v.int32Values[1]; in handleGenerateFakeDataRequest() local 219 ALOGI("%s, propId: %d, initalValue: %f", __func__, propId, initialValue); in handleGenerateFakeDataRequest() 221 interval, propId, initialValue, dispersion, increment); in handleGenerateFakeDataRequest() 227 mFakeValueGenerator.stopGeneratingHalEvents(propId); in handleGenerateFakeDataRequest() 238 void EmulatedVehicleHal::onFakeValueGenerated(int32_t propId, float value) { in onFakeValueGenerated() argument 240 switch (getPropType(propId)) { in onFakeValueGenerated() 248 ALOGE("%s: data type for property: 0x%x not supported", __func__, propId); in onFakeValueGenerated() [all …]
|
D | EmulatedVehicleHal.h | 72 void onFakeValueGenerated(int32_t propId, float value); 75 bool isContinuousProperty(int32_t propId) const;
|
D | VehicleEmulator.cpp | 99 int32_t propId = getProp.prop(); in doGetProperty() local 109 VehiclePropValue request = { .prop = propId, .areaId = areaId }; in doGetProperty()
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | SubscriptionManager.cpp | 62 ALOGI("%s opts.propId: 0x%x", __func__, opts.propId); in addOrUpdateSubscription() 64 auto it = mSubscriptions.find(opts.propId); in addOrUpdateSubscription() 66 mSubscriptions.emplace(opts.propId, opts); in addOrUpdateSubscription() 72 mSubscriptions.emplace(opts.propId, updatedOptions); in addOrUpdateSubscription() 77 bool HalClient::isSubscribed(int32_t propId, in isSubscribed() argument 80 auto it = mSubscriptions.find(propId); in isSubscribed() 93 … ALOGI("%s propId: 0x%x, propId: 0x%x", __func__, subscription.first, subscription.second.propId); in getSubscribedProperties() 117 ALOGI("SubscriptionManager::addOrUpdateSubscription, prop: 0x%x", opts.propId); in addOrUpdateSubscription() 120 addClientToPropMapLocked(opts.propId, client); in addOrUpdateSubscription() 162 int32_t propId, int32_t area, SubscribeFlags flags) const { in getSubscribedClients() argument [all …]
|
D | VehiclePropertyStore.cpp | 68 void VehiclePropertyStore::removeValuesForProperty(int32_t propId) { in removeValuesForProperty() argument 70 auto range = findRangeLocked(propId); in removeValuesForProperty() 84 std::vector<VehiclePropValue> VehiclePropertyStore::readValuesForProperty(int32_t propId) const { in readValuesForProperty() 87 auto range = findRangeLocked(propId); in readValuesForProperty() 122 const VehiclePropConfig* VehiclePropertyStore::getConfigOrNull(int32_t propId) const { in getConfigOrNull() 124 auto recordConfigIt = mConfigs.find(propId); in getConfigOrNull() 128 const VehiclePropConfig* VehiclePropertyStore::getConfigOrDie(int32_t propId) const { in getConfigOrDie() 129 auto cfg = getConfigOrNull(propId); in getConfigOrDie() 131 ALOGW("%s: config not found for property: 0x%x", __func__, propId); in getConfigOrDie() 160 VehiclePropertyStore::PropertyMapRange VehiclePropertyStore::findRangeLocked(int32_t propId) const { in findRangeLocked() [all …]
|
D | VehicleHalManager.cpp | 125 auto prop = ops.propId; in subscribe() 167 mHal->subscribe(opt.propId, opt.vehicleAreas, opt.sampleRate); in subscribe() 174 int32_t propId) { in unsubscribe() argument 175 mSubscriptionManager.unsubscribe(getClientId(callback), propId); in unsubscribe()
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/ |
D | VehiclePropertyStore.h | 73 void removeValuesForProperty(int32_t propId); 76 std::vector<VehiclePropValue> readValuesForProperty(int32_t propId) const; 82 const VehiclePropConfig* getConfigOrNull(int32_t propId) const; 83 const VehiclePropConfig* getConfigOrDie(int32_t propId) const; 88 PropertyMapRange findRangeLocked(int32_t propId) const;
|
D | SubscriptionManager.h | 52 bool isSubscribed(int32_t propId, int32_t areaId, SubscribeFlags flags); 118 std::list<sp<HalClient>> getSubscribedClients(int32_t propId, 125 void unsubscribe(ClientId clientId, int32_t propId); 127 std::list<sp<HalClient>> getSubscribedClientsLocked(int32_t propId, 133 void addClientToPropMapLocked(int32_t propId, const sp<HalClient>& client); 135 sp<HalClientVector> getClientsForPropertyLocked(int32_t propId) const;
|
D | VehicleHal.h | 98 int32_t propId, in doHalPropertySetError() argument 100 mOnHalPropertySetError(errorCode, propId, areaId); in doHalPropertySetError()
|
D | VehicleHalManager.h | 73 int32_t propId) override;
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/ |
D | SubscriptionManager_test.cpp | 55 .propId = PROP1, 63 .propId = PROP2, 70 .propId = PROP1, 75 .propId = PROP2, 178 .propId = PROP1, in TEST_F()
|
D | VehicleHalManager_test.cpp | 245 .propId = PROP, in TEST_F() 263 .propId = PROP, in TEST_F() 304 .propId = PROP, in TEST_F()
|
/hardware/interfaces/automotive/vehicle/2.1/default/ |
D | service.cpp | 71 int32_t propId) override { in unsubscribe() 72 return mVehicle20->unsubscribe(callback, propId); in unsubscribe()
|
/hardware/interfaces/automotive/vehicle/2.1/default/impl/vhal_v2_1/ |
D | EmulatedVehicleHal.cpp | 224 auto propId = requestedPropValue.prop; in get() local 228 switch (propId) { in get() 243 auto propId = propValue.prop; in set() local 244 switch (propId) { in set()
|
/hardware/interfaces/automotive/vehicle/2.0/ |
D | IVehicleCallback.hal | 57 int32_t propId,
|
D | IVehicle.hal | 87 unsubscribe(IVehicleCallback callback, int32_t propId)
|
D | types.hal | 2635 int32_t propId;
|