Home
last modified time | relevance | path

Searched refs:propValue (Results 1 – 25 of 41) sorted by relevance

12

/hardware/interfaces/automotive/vehicle/2.0/utils/
DUserHalHelper.cpp39 Result<void> verifyPropValue(const VehiclePropValue& propValue, VehicleProperty vehicleProperty, in verifyPropValue() argument
41 auto prop = verifyAndCast<VehicleProperty>(propValue.prop); in verifyPropValue()
49 if (propValue.value.int32Values.size() < minInt32Values) { in verifyPropValue()
51 << " values, received " << propValue.value.int32Values.size(); in verifyPropValue()
163 Result<InitialUserInfoRequest> toInitialUserInfoRequest(const VehiclePropValue& propValue) { in toInitialUserInfoRequest() argument
164 auto ret = verifyPropValue(propValue, VehicleProperty::INITIAL_USER_INFO, 2); in toInitialUserInfoRequest()
169 request.requestId = propValue.value.int32Values[0]; in toInitialUserInfoRequest()
170 auto requestType = verifyAndCast<InitialUserInfoRequestType>(propValue.value.int32Values[1]); in toInitialUserInfoRequest()
175 ret = parseUsersInfo(propValue.value.int32Values, 2, &request.usersInfo); in toInitialUserInfoRequest()
182 Result<SwitchUserRequest> toSwitchUserRequest(const VehiclePropValue& propValue) { in toSwitchUserRequest() argument
[all …]
DUserHalHelper.h42 const VehiclePropValue& propValue);
43 android::base::Result<SwitchUserRequest> toSwitchUserRequest(const VehiclePropValue& propValue);
44 android::base::Result<CreateUserRequest> toCreateUserRequest(const VehiclePropValue& propValue);
45 android::base::Result<RemoveUserRequest> toRemoveUserRequest(const VehiclePropValue& propValue);
47 const VehiclePropValue& propValue);
49 const VehiclePropValue& propValue);
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/userhal/src/
DUserHalHelper.cpp64 Result<void> verifyPropValue(const VehiclePropValue& propValue, VehicleProperty vehicleProperty, in verifyPropValue() argument
66 auto prop = verifyAndCast<VehicleProperty>(propValue.prop); in verifyPropValue()
74 if (propValue.value.int32Values.size() < minInt32Values) { in verifyPropValue()
76 << " values, received " << propValue.value.int32Values.size(); in verifyPropValue()
182 Result<InitialUserInfoRequest> toInitialUserInfoRequest(const VehiclePropValue& propValue) { in toInitialUserInfoRequest() argument
183 auto ret = verifyPropValue(propValue, VehicleProperty::INITIAL_USER_INFO, /*minInt32Values=*/2); in toInitialUserInfoRequest()
188 request.requestId = propValue.value.int32Values[0]; in toInitialUserInfoRequest()
189 auto requestType = verifyAndCast<InitialUserInfoRequestType>(propValue.value.int32Values[1]); in toInitialUserInfoRequest()
194 ret = parseUsersInfo(propValue.value.int32Values, 2, &request.usersInfo); in toInitialUserInfoRequest()
201 Result<SwitchUserRequest> toSwitchUserRequest(const VehiclePropValue& propValue) { in toSwitchUserRequest() argument
[all …]
/hardware/interfaces/automotive/vehicle/2.0/utils/tests/
DUserHalHelper_test.cpp80 VehiclePropValue propValue{ in TEST() local
93 auto actual = toInitialUserInfoRequest(propValue); in TEST()
100 VehiclePropValue propValue{ in TEST() local
111 auto actual = toInitialUserInfoRequest(propValue); in TEST()
119 VehiclePropValue propValue{ in TEST() local
132 auto actual = toInitialUserInfoRequest(propValue); in TEST()
140 VehiclePropValue propValue{ in TEST() local
146 auto actual = toInitialUserInfoRequest(propValue); in TEST()
152 VehiclePropValue propValue{ in TEST() local
158 auto actual = toInitialUserInfoRequest(propValue); in TEST()
[all …]
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/src/
DVehiclePropertyStore.cpp79 const VehiclePropValue& propValue, const VehiclePropertyStore::Record& record) const in getRecordIdLocked() argument
82 .area = isGlobalProp(propValue.prop) ? 0 : propValue.areaId, .token = 0}; in getRecordIdLocked()
85 recId.token = record.tokenFunction(propValue); in getRecordIdLocked()
109 VhalResult<void> VehiclePropertyStore::writeValue(VehiclePropValuePool::RecyclableType propValue, in writeValue() argument
125 propValue->timestamp = elapsedRealtimeNano(); in writeValue()
128 propId = propValue->prop; in writeValue()
129 areaId = propValue->areaId; 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()
142 VehiclePropertyStore::RecordId recId = getRecordIdLocked(*propValue, *record); in writeValue()
[all …]
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/userhal/test/
DUserHalHelper_test.cpp97 VehiclePropValue propValue{ in TEST() local
108 auto actual = toInitialUserInfoRequest(propValue); in TEST()
116 VehiclePropValue propValue{ in TEST() local
127 auto actual = toInitialUserInfoRequest(propValue); in TEST()
134 VehiclePropValue propValue{ in TEST() local
140 auto actual = toInitialUserInfoRequest(propValue); in TEST()
146 VehiclePropValue propValue{ in TEST() local
152 auto actual = toInitialUserInfoRequest(propValue); in TEST()
158 VehiclePropValue propValue{ in TEST() local
164 auto actual = toInitialUserInfoRequest(propValue); in TEST()
[all …]
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/obd2frame/test/
DObd2SensorStoreTest.cpp56 auto propValue = sensorStore.getSensorProperty(dtc); in TEST() local
58 ASSERT_GE(propValue->timestamp, timestamp); in TEST()
59 ASSERT_EQ(propValue->value.int32Values[toInt(systemIntSensorIndex)], 1); in TEST()
60 ASSERT_EQ(propValue->value.int32Values[vendorIntSensorIndex], 2); in TEST()
61 ASSERT_EQ(propValue->value.floatValues[toInt(systemFloatSensorIndex)], 3.0); in TEST()
62 ASSERT_EQ(propValue->value.floatValues[vendorFloatSensorIndex], 4.0); in TEST()
63 ASSERT_EQ(propValue->value.byteValues, bitMask); in TEST()
64 ASSERT_EQ(propValue->value.stringValue, dtc); in TEST()
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DDefaultVehicleHal.cpp43 const VehicleAreaConfig* getAreaConfig(const VehiclePropValue& propValue, in getAreaConfig() argument
45 if (isGlobalProp(propValue.prop)) { in getAreaConfig()
52 if (c.areaId == propValue.areaId) { in getAreaConfig()
332 StatusCode DefaultVehicleHal::setUserHalProp(const VehiclePropValue& propValue) { in setUserHalProp() argument
333 ALOGI("onSetProperty(): property %d will be handled by UserHal", propValue.prop); in setUserHalProp()
335 const auto& ret = mFakeUserHal.onSetProperty(propValue); in setUserHalProp()
349 StatusCode DefaultVehicleHal::set(const VehiclePropValue& propValue) { in set() argument
350 if (propValue.status != VehiclePropertyStatus::AVAILABLE) { in set()
357 if (mFakeUserHal.isSupported(propValue.prop)) { in set()
358 return setUserHalProp(propValue); in set()
[all …]
DDefaultVehicleHal.h46 StatusCode set(const VehiclePropValue& propValue) override;
77 StatusCode checkPropValue(const VehiclePropValue& propValue, const VehiclePropConfig* config);
79 StatusCode checkValueRange(const VehiclePropValue& propValue,
88 StatusCode setUserHalProp(const VehiclePropValue& propValue);
DFakeObd2Frame.cpp155 const VehiclePropValue& propValue) { in clearObd2FreezeFrames() argument
156 if (propValue.value.int64Values.size() == 0) { in clearObd2FreezeFrames()
160 for (int64_t timestamp : propValue.value.int64Values) { in clearObd2FreezeFrames()
DFakeObd2Frame.h37 const VehiclePropValue& propValue);
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DVehiclePropertyStore.cpp45 bool VehiclePropertyStore::writeValueLocked(const VehiclePropValue& propValue, bool updateStatus) { in writeValueLocked() argument
46 if (!mConfigs.count(propValue.prop)) return false; in writeValueLocked()
48 RecordId recId = getRecordIdLocked(propValue); in writeValueLocked()
51 mPropertyValues.insert({ recId, propValue }); in writeValueLocked()
56 if (valueToUpdate->timestamp > propValue.timestamp) { in writeValueLocked()
62 valueToUpdate->timestamp = propValue.timestamp; in writeValueLocked()
63 valueToUpdate->value = propValue.value; in writeValueLocked()
65 valueToUpdate->status = propValue.status; in writeValueLocked()
70 bool VehiclePropertyStore::writeValue(const VehiclePropValue& propValue, bool updateStatus) { in writeValue() argument
73 return writeValueLocked(propValue, updateStatus); in writeValue()
[all …]
DObd2SensorStore.cpp96 void Obd2SensorStore::fillPropValue(const std::string& dtc, VehiclePropValue* propValue) const { in fillPropValue()
97 propValue->timestamp = elapsedRealtimeNano(); in fillPropValue()
98 propValue->value.int32Values = getIntegerSensors(); in fillPropValue()
99 propValue->value.floatValues = getFloatSensors(); in fillPropValue()
100 propValue->value.bytes = getSensorsBitmask(); in fillPropValue()
101 propValue->value.stringValue = dtc; in fillPropValue()
DWatchdogClient.cpp111 VehiclePropValue propValue = {.prop = (int32_t)VehicleProperty::PERF_VEHICLE_SPEED}; in isClientHealthy() local
113 mVhalManager->get(propValue, in isClientHealthy()
114 [&propValue, &status](StatusCode s, const VehiclePropValue& v) { in isClientHealthy()
117 propValue = v; in isClientHealthy()
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/userhal/include/
DUserHalHelper.h44 const aidl::android::hardware::automotive::vehicle::VehiclePropValue& propValue);
47 const aidl::android::hardware::automotive::vehicle::VehiclePropValue& propValue);
50 const aidl::android::hardware::automotive::vehicle::VehiclePropValue& propValue);
53 const aidl::android::hardware::automotive::vehicle::VehiclePropValue& propValue);
56 const aidl::android::hardware::automotive::vehicle::VehiclePropValue& propValue);
59 const aidl::android::hardware::automotive::vehicle::VehiclePropValue& propValue);
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/obd2frame/src/
DObd2SensorStore.cpp130 auto propValue = mValuePool->obtain(VehiclePropertyType::MIXED); in getSensorProperty() local
131 propValue->timestamp = elapsedRealtimeNano(); in getSensorProperty()
132 propValue->value.int32Values = getIntegerSensors(); in getSensorProperty()
133 propValue->value.floatValues = getFloatSensors(); in getSensorProperty()
134 propValue->value.byteValues = getSensorsBitmask(); in getSensorProperty()
135 propValue->value.stringValue = dtc; in getSensorProperty()
136 return propValue; in getSensorProperty()
DFakeObd2Frame.cpp171 VhalResult<void> FakeObd2Frame::clearObd2FreezeFrames(const VehiclePropValue& propValue) { in clearObd2FreezeFrames() argument
172 if (propValue.value.int64Values.size() == 0) { in clearObd2FreezeFrames()
176 for (int64_t timestamp : propValue.value.int64Values) { in clearObd2FreezeFrames()
/hardware/interfaces/automotive/vehicle/2.0/default/tests/fuzzer/
DVehicleManager_fuzzer.h48 StatusCode set(const VehiclePropValue& propValue) override { in set() argument
49 if (toInt(VehicleProperty::MIRROR_FOLD) == propValue.prop && in set()
54 mValues[makeKey(propValue)] = propValue; in set()
DVehicleManager_fuzzer.cpp509 VehiclePropValue propValue{}; in invokeVehiclePropStore() local
510 propValue.prop = vehicleProp; in invokeVehiclePropStore()
511 propValue.areaId = mFuzzedDataProvider->ConsumeIntegral<int32_t>(); in invokeVehiclePropStore()
516 [&]() { store->writeValue(propValue, shouldWriteStatus); }, in invokeVehiclePropStore()
521 [&]() { store->readValueOrNull(propValue); }, in invokeVehiclePropStore()
523 store->readValueOrNull(propValue.prop, propValue.areaId, in invokeVehiclePropStore()
528 [&]() { store->removeValue(propValue); }, in invokeVehiclePropStore()
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DVehiclePropertyStore.h71 bool writeValue(const VehiclePropValue& propValue, bool updateStatus);
83 void removeValue(const VehiclePropValue& propValue);
108 bool writeValueLocked(const VehiclePropValue& propValue, bool updateStatus);
/hardware/nxp/nfc/snxxx/halimpl/hal/
DphNxpNciHal_IoctlOperations.cc84 string propValue; in property_get_intf() local
88 propValue = phNxpNciHal_getSystemProperty(propName); in property_get_intf()
89 if (propValue.length() > 0) { in property_get_intf()
91 propName, propValue.c_str(), propValue.length()); in property_get_intf()
92 len = propValue.length(); in property_get_intf()
93 strlcpy(valueStr, propValue.c_str(), PROPERTY_VALUE_MAX); in property_get_intf()
273 string propValue; in phNxpNciHal_getSystemProperty() local
281 propValue = prop->second; in phNxpNciHal_getSystemProperty()
286 return propValue; in phNxpNciHal_getSystemProperty()
/hardware/qcom/sm7250/media/libplatformconfig/
DConfigParser.cpp56 std::string propValue(attr[3]); in processProperty() local
58 configMap[propName] = propValue; in processProperty()
/hardware/qcom/sm8150/media/libplatformconfig/
DConfigParser.cpp56 std::string propValue(attr[3]); in processProperty() local
58 configMap[propName] = propValue; in processProperty()
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/include/
DVehiclePropertyStore.h109 VhalResult<void> writeValue(VehiclePropValuePool::RecyclableType propValue,
127 const aidl::android::hardware::automotive::vehicle::VehiclePropValue& propValue)
211 const aidl::android::hardware::automotive::vehicle::VehiclePropValue& propValue,
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/obd2frame/include/
DFakeObd2Frame.h46 const aidl::android::hardware::automotive::vehicle::VehiclePropValue& propValue);

12