Home
last modified time | relevance | path

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

/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DSubscriptionManager.cpp51 ALOGI("%s opts.propId: 0x%x", __func__, opts.propId); in addOrUpdateSubscription()
53 auto it = mSubscriptions.find(opts.propId); in addOrUpdateSubscription()
55 mSubscriptions.emplace(opts.propId, opts); in addOrUpdateSubscription()
61 mSubscriptions.emplace(opts.propId, updatedOptions); in addOrUpdateSubscription()
66 bool HalClient::isSubscribed(int32_t propId, in isSubscribed() argument
68 auto it = mSubscriptions.find(propId); in isSubscribed()
80 … ALOGI("%s propId: 0x%x, propId: 0x%x", __func__, subscription.first, subscription.second.propId); in getSubscribedProperties()
104 ALOGI("SubscriptionManager::addOrUpdateSubscription, prop: 0x%x", opts.propId); in addOrUpdateSubscription()
107 addClientToPropMapLocked(opts.propId, client); in addOrUpdateSubscription()
147 std::list<sp<HalClient>> SubscriptionManager::getSubscribedClients(int32_t propId, in getSubscribedClients() argument
[all …]
DVehiclePropertyStore.cpp72 void VehiclePropertyStore::removeValuesForProperty(int32_t propId) { in removeValuesForProperty() argument
74 auto range = findRangeLocked(propId); in removeValuesForProperty()
88 std::vector<VehiclePropValue> VehiclePropertyStore::readValuesForProperty(int32_t propId) const { in readValuesForProperty()
91 auto range = findRangeLocked(propId); in readValuesForProperty()
126 const VehiclePropConfig* VehiclePropertyStore::getConfigOrNull(int32_t propId) const { in getConfigOrNull()
128 auto recordConfigIt = mConfigs.find(propId); in getConfigOrNull()
132 const VehiclePropConfig* VehiclePropertyStore::getConfigOrDie(int32_t propId) const { in getConfigOrDie()
133 auto cfg = getConfigOrNull(propId); in getConfigOrDie()
135 ALOGW("%s: config not found for property: 0x%x", __func__, propId); in getConfigOrDie()
164 VehiclePropertyStore::PropertyMapRange VehiclePropertyStore::findRangeLocked(int32_t propId) const { in findRangeLocked()
[all …]
DVehicleHalManager.cpp125 auto prop = ops.propId; in subscribe()
158 mHal->subscribe(opt.propId, opt.sampleRate); in subscribe()
165 int32_t propId) { in unsubscribe() argument
166 mSubscriptionManager.unsubscribe(getClientId(callback), propId); in unsubscribe()
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DVehiclePropertyStore.h73 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;
DSubscriptionManager.h52 bool isSubscribed(int32_t propId, SubscribeFlags flags);
117 std::list<sp<HalClient>> getSubscribedClients(int32_t propId, SubscribeFlags flags) const;
122 void unsubscribe(ClientId clientId, int32_t propId);
124 std::list<sp<HalClient>> getSubscribedClientsLocked(int32_t propId,
129 void addClientToPropMapLocked(int32_t propId, const sp<HalClient>& client);
131 sp<HalClientVector> getClientsForPropertyLocked(int32_t propId) const;
DVehicleHal.h95 int32_t propId, in doHalPropertySetError() argument
97 mOnHalPropertySetError(errorCode, propId, areaId); in doHalPropertySetError()
DVehicleHalManager.h73 int32_t propId) override;
/hardware/interfaces/automotive/vehicle/2.0/default/tests/
DSubscriptionManager_test.cpp54 SubscribeOptions{.propId = PROP1, .flags = SubscribeFlags::EVENTS_FROM_CAR},
58 SubscribeOptions{.propId = PROP2, .flags = SubscribeFlags::EVENTS_FROM_CAR},
62 SubscribeOptions{.propId = PROP1, .flags = SubscribeFlags::EVENTS_FROM_CAR},
63 SubscribeOptions{.propId = PROP2, .flags = SubscribeFlags::EVENTS_FROM_CAR},
144 1, cb1, {SubscribeOptions{.propId = PROP1, .flags = SubscribeFlags::EVENTS_FROM_CAR}}, in TEST_F()
DVehicleHalManager_test.cpp244 SubscribeOptions{.propId = PROP, .flags = SubscribeFlags::EVENTS_FROM_CAR}, in TEST_F()
259 SubscribeOptions{.propId = PROP, .flags = SubscribeFlags::EVENTS_FROM_CAR}}; in TEST_F()
296 SubscribeOptions{.propId = PROP, .flags = SubscribeFlags::EVENTS_FROM_CAR}, in TEST_F()
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DLinearFakeValueGenerator.cpp35 .propId = v.int32Values[1], in LinearFakeValueGenerator()
49 VehiclePropValue event = {.prop = mGenCfg.propId}; in nextEvent()
DLinearFakeValueGenerator.h37 int32_t propId; member
DEmulatedVehicleHal.cpp106 auto propId = requestedPropValue.prop; in get() local
110 switch (propId) { in get()
339 bool EmulatedVehicleHal::isContinuousProperty(int32_t propId) const { in isContinuousProperty()
340 const VehiclePropConfig* config = mPropStore->getConfigOrNull(propId); in isContinuousProperty()
342 ALOGW("Config not found for property: 0x%x", propId); in isContinuousProperty()
DEmulatedVehicleHal.h75 bool isContinuousProperty(int32_t propId) const;
DVehicleEmulator.cpp113 int32_t propId = getProp.prop(); in doGetProperty() local
125 .prop = propId, in doGetProperty()
/hardware/interfaces/automotive/vehicle/2.0/
DIVehicleCallback.hal57 int32_t propId,
DIVehicle.hal87 unsubscribe(IVehicleCallback callback, int32_t propId)
Dtypes.hal2963 int32_t propId;