/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | SubscriptionManager.cpp | 51 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 …]
|
D | VehiclePropertyStore.cpp | 84 std::unique_ptr<VehiclePropValue> VehiclePropertyStore::refreshTimestamp(int32_t propId, in refreshTimestamp() argument 88 .prop = propId, in refreshTimestamp() 109 void VehiclePropertyStore::removeValuesForProperty(int32_t propId) { in removeValuesForProperty() argument 111 auto range = findRangeLocked(propId); in removeValuesForProperty() 125 std::vector<VehiclePropValue> VehiclePropertyStore::readValuesForProperty(int32_t propId) const { in readValuesForProperty() 128 auto range = findRangeLocked(propId); in readValuesForProperty() 163 const VehiclePropConfig* VehiclePropertyStore::getConfigOrNull(int32_t propId) const { in getConfigOrNull() 165 auto recordConfigIt = mConfigs.find(propId); in getConfigOrNull() 169 const VehiclePropConfig* VehiclePropertyStore::getConfigOrDie(int32_t propId) const { in getConfigOrDie() 170 auto cfg = getConfigOrNull(propId); in getConfigOrDie() [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/src/ |
D | VehiclePropertyStore.cpp | 66 const VehiclePropertyStore::Record* VehiclePropertyStore::getRecordLocked(int32_t propId) const in getRecordLocked() 68 auto RecordIt = mRecordsByPropId.find(propId); in getRecordLocked() 72 VehiclePropertyStore::Record* VehiclePropertyStore::getRecordLocked(int32_t propId) in getRecordLocked() argument 74 auto RecordIt = mRecordsByPropId.find(propId); in getRecordLocked() 117 int32_t propId; in writeValue() local 128 propId = propValue->prop; in writeValue() 131 VehiclePropertyStore::Record* record = getRecordLocked(propId); in writeValue() 134 << "property: " << propId << " not registered"; in writeValue() 137 if (!isGlobalProp(propId) && getAreaConfig(*propValue, record->propConfig) == nullptr) { in writeValue() 139 << "no config for property: " << propId << " area ID: " << propValue->areaId; in writeValue() [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/vhal/src/ |
D | SubscriptionManager.cpp | 46 SubscribeOptions newSubscribeOptions(int32_t propId, int32_t areaId, float sampleRateHz, in newSubscribeOptions() argument 49 subscribedOptions.propId = propId; in newSubscribeOptions() 162 int32_t propId = propIdAreaId.propId; in addOnChangeSubscriberLocked() local 165 newSubscribeOptions(propId, areaId, /*updateRateHz=*/0, /*resolution*/ 0.0f, in addOnChangeSubscriberLocked() 170 propIdToString(propId).c_str(), areaId); in addOnChangeSubscriberLocked() 204 int32_t propId = propIdAreaId.propId; in removeOnChangeSubscriberLocked() local 206 if (auto status = mVehicleHardware->unsubscribe(propId, areaId); status != StatusCode::OK) { in removeOnChangeSubscriberLocked() 209 propIdToString(propId).c_str(), areaId); in removeOnChangeSubscriberLocked() 226 int32_t propId = propIdAreaId.propId; in updateContSubConfigsLocked() local 229 if (auto status = mVehicleHardware->updateSampleRate(propId, areaId, newRateHz); in updateContSubConfigsLocked() [all …]
|
D | DefaultVehicleHal.cpp | 413 Result<const VehiclePropConfig*> DefaultVehicleHal::getConfig(int32_t propId) const { in getConfig() 415 auto it = configsByPropId.find(propId); in getConfig() 417 return Error() << "no config for property, ID: " << propId; in getConfig() 423 int32_t propId = propValue.prop; in checkProperty() local 424 auto result = getConfig(propId); in checkProperty() 430 if (!isGlobalProp(propId) && areaConfig == nullptr) { in checkProperty() 433 return Error() << "invalid area ID: " << propValue.areaId << " for prop ID: " << propId in checkProperty() 697 int32_t propId = option.propId; in checkSubscribeOptions() local 698 auto it = configsByPropId.find(propId); in checkSubscribeOptions() 701 << StringPrintf("no config for property, ID: %" PRId32, propId); in checkSubscribeOptions() [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/GeneratorHub/src/ |
D | LinearFakeValueGenerator.cpp | 34 LinearFakeValueGenerator::LinearFakeValueGenerator(int32_t propId, float middleValue, in LinearFakeValueGenerator() argument 37 initGenCfg(propId, middleValue, initValue, dispersion, increment, interval); in LinearFakeValueGenerator() 46 void LinearFakeValueGenerator::initGenCfg(int32_t propId, float middleValue, float initValue, in initGenCfg() argument 49 assert(getPropType(propId) == VehicleProperty::INT32 || in initGenCfg() 50 getPropType(propId) == VehicleProperty::INT64 || in initGenCfg() 51 getPropType(propId) == VehicleProperty::FLOAT); in initGenCfg() 59 .propId = propId, in initGenCfg() 70 .prop = mGenCfg.propId, in nextEvent()
|
/hardware/interfaces/automotive/vehicle/vts/src/ |
D | VtsHalAutomotiveVehicle_TargetTest.cpp | 97 int32_t propId = value->getPropId(); in onPropertyEvent() local 98 mEvents[propId].push_back(std::move(value->clone())); in onPropertyEvent() 109 bool waitForExpectedEvents(int32_t propId, size_t expectedEvents, in waitForExpectedEvents() argument 112 return mEventCond.wait_for(uniqueLock, timeout, [this, propId, expectedEvents] { in waitForExpectedEvents() 114 return mEvents[propId].size() >= expectedEvents; in waitForExpectedEvents() 118 std::vector<std::unique_ptr<IHalPropValue>> getEvents(int32_t propId) { in getEvents() argument 121 if (mEvents.find(propId) == mEvents.end()) { in getEvents() 124 for (const auto& eventPtr : mEvents[propId]) { in getEvents() 130 std::vector<int64_t> getEventTimestamps(int32_t propId) { in getEventTimestamps() argument 133 if (mEvents.find(propId) == mEvents.end()) { in getEventTimestamps() [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/vhal/test/ |
D | SubscriptionManagerTest.cpp | 131 .propId = 0, in TEST_F() 152 .propId = 0, in TEST_F() 157 .propId = 1, in TEST_F() 186 .propId = 0, in TEST_F() 209 .propId = 0, in TEST_F() 239 .propId = 0, in TEST_F() 265 .propId = 0, in TEST_F() 270 .propId = 1, in TEST_F() 301 .propId = 0, in TEST_F() 306 .propId = 1, in TEST_F() [all …]
|
D | MockVehicleHardware.cpp | 98 if (auto status = subscribePropIdAreaId(options.propId, areaId, options.sampleRate); in subscribe() 116 StatusCode MockVehicleHardware::subscribePropIdAreaId(int32_t propId, int32_t areaId, in subscribePropIdAreaId() argument 121 mSubOnChangePropIdAreaIds.insert(std::pair<int32_t, int32_t>(propId, areaId)); in subscribePropIdAreaId() 130 if (mRecurrentActions[propId][areaId] != nullptr) { in subscribePropIdAreaId() 132 mRecurrentTimer->unregisterTimerCallback(mRecurrentActions[propId][areaId]); in subscribePropIdAreaId() 138 action = std::make_shared<std::function<void()>>([propertyChangeCallback, propId, areaId] { in subscribePropIdAreaId() 142 .prop = propId, in subscribePropIdAreaId() 148 mRecurrentActions[propId][areaId] = action; in subscribePropIdAreaId() 158 StatusCode MockVehicleHardware::unsubscribe(int32_t propId, int32_t areaId) { in unsubscribe() argument 161 mSubOnChangePropIdAreaIds.erase(std::make_pair(propId, areaId)); in unsubscribe() [all …]
|
D | DefaultVehicleHalTest.cpp | 217 .propId = INVALID_PROP_ID, in getSubscribeInvalidOptionsTestCases() 224 .propId = AREA_ON_CHANGE_PROP, in getSubscribeInvalidOptionsTestCases() 232 .propId = GLOBAL_CONTINUOUS_PROP, in getSubscribeInvalidOptionsTestCases() 240 .propId = GLOBAL_CONTINUOUS_PROP, in getSubscribeInvalidOptionsTestCases() 249 .propId = testInt32VecProp(0), in getSubscribeInvalidOptionsTestCases() 472 int32_t propId = testInt32VecProp(i); in getValuesTestCases() local 476 .prop = propId, in getValuesTestCases() 485 .prop = propId, in getValuesTestCases() 509 int32_t propId = testInt32VecProp(i); in setValuesTestCases() local 513 .prop = propId, in setValuesTestCases() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/ |
D | VehiclePropertyStore.h | 81 std::unique_ptr<VehiclePropValue> refreshTimestamp(int32_t propId, int32_t areaId); 84 void removeValuesForProperty(int32_t propId); 87 std::vector<VehiclePropValue> readValuesForProperty(int32_t propId) const; 93 const VehiclePropConfig* getConfigOrNull(int32_t propId) const; 94 const VehiclePropConfig* getConfigOrDie(int32_t propId) const; 99 PropertyMapRange findRangeLocked(int32_t propId) const;
|
D | SubscriptionManager.h | 52 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;
|
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/ |
D | LinearFakeValueGenerator.cpp | 32 LinearFakeValueGenerator::LinearFakeValueGenerator(int32_t propId, float middleValue, in LinearFakeValueGenerator() argument 35 initGenCfg(propId, middleValue, currentValue, dispersion, increment, interval); in LinearFakeValueGenerator() 44 void LinearFakeValueGenerator::initGenCfg(int32_t propId, float middleValue, float currentValue, in initGenCfg() argument 52 .propId = propId, in initGenCfg() 63 VehiclePropValue event = {.timestamp = {}, .areaId = {}, .prop = mGenCfg.propId}; in nextEvent()
|
D | LinearFakeValueGenerator.h | 37 int32_t propId; member 50 LinearFakeValueGenerator(int32_t propId, float middleValue, float currentValue, 61 void initGenCfg(int32_t propId, float middleValue, float currentValue, float dispersion,
|
D | DefaultVehicleHal.cpp | 81 auto propId = requestedPropValue.prop; in getUserHalProp() local 82 ALOGI("get(): getting value for prop %d from User HAL", propId); in getUserHalProp() 104 auto propId = requestedPropValue.prop; in get() local 105 ALOGV("get(%d)", propId); in get() 107 if (mFakeUserHal.isSupported(propId)) { in get() 112 if (propId == OBD2_FREEZE_FRAME) { in get() 118 if (propId == OBD2_FREEZE_FRAME_INFO) { in get() 561 bool DefaultVehicleHal::isContinuousProperty(int32_t propId) const { in isContinuousProperty() 562 const VehiclePropConfig* config = mPropStore->getConfigOrNull(propId); in isContinuousProperty() 564 ALOGW("Config not found for property: 0x%x", propId); in isContinuousProperty()
|
D | DefaultVehicleHalServer.cpp | 331 int32_t propId; in genFakeDataCommand() local 337 if (!android::base::ParseInt(options[3], &propId)) { in genFakeDataCommand() 368 propId, middleValue, currentValue, dispersion, increment, interval); in genFakeDataCommand() 369 getGeneratorHub()->registerGenerator(propId, std::move(generator)); in genFakeDataCommand() 380 int32_t propId; in genFakeDataCommand() local 381 if (!android::base::ParseInt(options[3], &propId)) { in genFakeDataCommand() 386 getGeneratorHub()->unregisterGenerator(propId); in genFakeDataCommand() 506 int32_t propId; in setValueCommand() local 540 if (!android::base::ParseInt(options[2], &propId)) { in setValueCommand() 545 updatedPropValue->prop = propId; in setValueCommand()
|
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/tests/ |
D | DefaultConfigSupportedPropertyIds_test.cpp | 40 int propId = property.config.prop; in TEST() local 41 allSupportedIds.push_back(propId); in TEST() 43 if (propId == vhalSupportedPropertyIdsPropId) { in TEST()
|
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/include/ |
D | VehiclePropertyStore.h | 117 void refreshTimestamp(int32_t propId, int32_t areaId, EventMode eventMode) EXCLUDES(mLock); 131 void removeValuesForProperty(int32_t propId) EXCLUDES(mLock); 137 ValuesResultType readValuesForProperty(int32_t propId) const EXCLUDES(mLock); 160 getConfig(int32_t propId) const EXCLUDES(mLock); 165 getPropConfig(int32_t propId) const EXCLUDES(mLock); 206 const Record* getRecordLocked(int32_t propId) const; 208 Record* getRecordLocked(int32_t propId);
|
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/GeneratorHub/include/ |
D | LinearFakeValueGenerator.h | 42 explicit LinearFakeValueGenerator(int32_t propId, float middleValue, float initValue, 54 int32_t propId; member 65 void initGenCfg(int32_t propId, float middleValue, float initValue, float dispersion,
|
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/hardware/src/ |
D | FakeVehicleHardware.cpp | 301 int propId = vehiclePropConfig.prop; in storePropInitialValue() local 304 bool globalProp = isGlobalProp(propId); in storePropInitialValue() 307 if (propId == toInt(VehicleProperty::HVAC_POWER_ON)) { in storePropInitialValue() 319 .prop = propId, in storePropInitialValue() 333 ALOGW("failed to get default value for prop 0x%x area 0x%x", propId, curArea); in storePropInitialValue() 630 bool FakeVehicleHardware::isHvacPropAndHvacNotAvailable(int32_t propId, int32_t areaId) const { in isHvacPropAndHvacNotAvailable() argument 631 if (hvacPowerDependentProps.count(propId)) { in isHvacPropAndHvacNotAvailable() 774 auto propId = value.prop; in getUserHalProp() local 775 ALOGI("get(): getting value for prop %s from User HAL", PROP_ID_TO_CSTR(propId)); in getUserHalProp() 808 int32_t propId = value.prop; in maybeGetSpecialValue() local [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/aidl_test/ |
D | VehiclePropertyAnnotationJavaTest.java | 26 int propId = field.getInt(/* obj= */ null); in doesAnnotationMapContainsAllProps() local 27 if (propId == VehicleProperty.INVALID) { in doesAnnotationMapContainsAllProps() 31 if (annotationMap.get(propId) == null) { in doesAnnotationMapContainsAllProps()
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/ |
D | SubscriptionManager_test.cpp | 54 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()
|
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/test/ |
D | VehiclePropertyStoreTest.cpp | 276 int propId = toInt(VehicleProperty::INFO_FUEL_CAPACITY); in TEST_F() local 278 .prop = propId, in TEST_F() 286 .prop = propId, in TEST_F() 292 .prop = propId, in TEST_F() 299 auto result = mStore->readValuesForProperty(propId); in TEST_F() 304 auto tokenResult = mStore->readValue(propId, /*areaId=*/0, /*token=*/2); in TEST_F() 556 int propId = toInt(VehicleProperty::TIRE_PRESSURE); in TEST_F() local 559 .prop = propId, in TEST_F() 566 mStore->refreshTimestamp(propId, areaId, VehiclePropertyStore::EventMode::ALWAYS); in TEST_F() 569 ASSERT_EQ(updatedValues[0].prop, propId); in TEST_F() [all …]
|
/hardware/interfaces/automotive/remoteaccess/test_grpc_server/impl/src/ |
D | main.cpp | 119 const char* getSetPropCommand(int propId, int value) { in getSetPropCommand() argument 120 int size = snprintf(nullptr, 0, COMMAND_SET_VHAL_PROP, propId, value); in getSetPropCommand() 122 snprintf(command, size + 1, COMMAND_SET_VHAL_PROP, propId, value); in getSetPropCommand() 126 const char* getSetPropCommand(int propId) { in getSetPropCommand() argument 127 return getSetPropCommand(propId, /*value=*/1); in getSetPropCommand()
|
/hardware/interfaces/automotive/vehicle/aidl/impl/hardware/include/ |
D | IVehicleHardware.h | 45 int32_t propId; member 190 [[maybe_unused]] int32_t propId, [[maybe_unused]] int32_t areaId) { in unsubscribe() argument 220 [[maybe_unused]] int32_t propId, [[maybe_unused]] int32_t areaId, in updateSampleRate() argument
|