Home
last modified time | relevance | path

Searched refs:mValuePool (Results 1 – 13 of 13) sorted by relevance

/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/test/
DVehicleObjectPoolTest.cpp121 mValuePool.reset(new VehiclePropValuePool); in SetUp()
132 std::unique_ptr<VehiclePropValuePool> mValuePool; member in android::hardware::automotive::vehicle::VehicleObjectPoolTest
152 auto value = mValuePool->obtain(info.type, info.vecSize); in TEST_P()
156 ASSERT_EQ(mValuePool->obtain(info.type, info.vecSize).get(), raw); in TEST_P()
168 auto value = mValuePool->obtain(info.type, info.vecSize); in TEST_P()
178 auto value = mValuePool->obtain(VehiclePropertyType::INT32); in TEST_F()
182 ASSERT_EQ(mValuePool->obtain(VehiclePropertyType::INT32).get(), raw); in TEST_F()
184 ASSERT_NE(mValuePool->obtain(VehiclePropertyType::FLOAT).get(), raw); in TEST_F()
191 mValuePool->obtain(VehiclePropertyType::STRING); in TEST_F()
192 auto stringProp = mValuePool->obtain(VehiclePropertyType::STRING); in TEST_F()
[all …]
DVehiclePropertyStoreTest.cpp88 mValuePool = std::make_shared<VehiclePropValuePool>(); in SetUp()
89 mStore.reset(new VehiclePropertyStore(mValuePool)); in SetUp()
95 std::shared_ptr<VehiclePropValuePool> mValuePool; member in android::hardware::automotive::vehicle::VehiclePropertyStoreTest
144 ASSERT_RESULT_OK(mStore->writeValue(mValuePool->obtain(values[0]))); in TEST_F()
150 ASSERT_RESULT_OK(mStore->writeValue(mValuePool->obtain(value))); in TEST_F()
161 ASSERT_RESULT_OK(mStore->writeValue(mValuePool->obtain(value))); in TEST_F()
173 ASSERT_RESULT_OK(mStore->writeValue(mValuePool->obtain(value))); in TEST_F()
193 ASSERT_RESULT_OK(mStore->writeValue(mValuePool->obtain(value))); in TEST_F()
210 ASSERT_RESULT_OK(mStore->writeValue(mValuePool->obtain(value))); in TEST_F()
221 ASSERT_RESULT_OK(mStore->writeValue(mValuePool->obtain(value))); in TEST_F()
[all …]
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/userhal/src/
DFakeUserHal.cpp136 auto newValue = mValuePool->obtain(*mSetUserIdentificationAssociationResponseFromCmd); in onGetUserIdentificationAssociation()
161 mInitialUserResponseFromCmd = mValuePool->obtain(value); in onSetInitialUserInfoResponse()
174 *mValuePool, InitialUserInfoResponse{ in onSetInitialUserInfoResponse()
205 return mValuePool->obtain(value); in onSetSwitchUserResponse()
209 mSwitchUserResponseFromCmd = mValuePool->obtain(value); in onSetSwitchUserResponse()
228 *mValuePool, SwitchUserResponse{ in onSetSwitchUserResponse()
250 mCreateUserResponseFromCmd = mValuePool->obtain(value); in onSetCreateUserResponse()
263 *mValuePool, CreateUserResponse{ in onSetCreateUserResponse()
285 mSetUserIdentificationAssociationResponseFromCmd = mValuePool->obtain(value); in onSetUserIdentificationAssociation()
294 auto copy = mValuePool->obtain(*mSetUserIdentificationAssociationResponseFromCmd); in onSetUserIdentificationAssociation()
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DVehicleHal.h97 mValuePool = valueObjectPool; in init()
105 return mValuePool; in getValuePool()
123 VehiclePropValuePool* mValuePool; variable
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/include/
DVehiclePropertyStore.h77 : mValuePool(valuePool) {} in VehiclePropertyStore()
177 inline std::shared_ptr<VehiclePropValuePool> getValuePool() { return mValuePool; } in getValuePool()
200 std::shared_ptr<VehiclePropValuePool> mValuePool; variable
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/userhal/include/
DFakeUserHal.h44 explicit FakeUserHal(std::shared_ptr<VehiclePropValuePool> valuePool) : mValuePool(valuePool) {} in FakeUserHal()
70 const std::shared_ptr<VehiclePropValuePool> mValuePool;
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/obd2frame/src/
DObd2SensorStore.cpp75 : mValuePool(valuePool) { in Obd2SensorStore()
130 auto propValue = mValuePool->obtain(VehiclePropertyType::MIXED); in getSensorProperty()
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/src/
DVehiclePropertyStore.cpp63 mValuePool.reset(); in ~VehiclePropertyStore()
93 return mValuePool->obtain(*(it->second)); in readValueLocked()
292 allValues.push_back(std::move(mValuePool->obtain(*value))); in readAllValues()
311 values.push_back(std::move(mValuePool->obtain(*value))); in readValuesForProperty()
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DDefaultVehicleHalServer.h96 VehiclePropValuePool* mValuePool{nullptr};
DDefaultVehicleHalServer.cpp104 if (!mValuePool) { in getValuePool()
107 return mValuePool; in getValuePool()
114 mValuePool = valuePool; in setValuePool()
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/obd2frame/include/
DObd2SensorStore.h92 std::shared_ptr<VehiclePropValuePool> mValuePool; variable
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/hardware/src/
DFakeVehicleHardware.cpp338 mServerSidePropStore->writeValue(mValuePool->obtain(prop), /*updateStatus=*/true); in storePropInitialValue()
351 : mValuePool(std::make_unique<VehiclePropValuePool>()), in FakeVehicleHardware()
352 mServerSidePropStore(new VehiclePropertyStore(mValuePool)), in FakeVehicleHardware()
356 mFakeUserHal(new FakeUserHal(mValuePool)), in FakeVehicleHardware()
439 auto req = mValuePool->obtain(VehiclePropertyType::INT32_VEC, 2); in createApPowerStateReq()
453 auto req = mValuePool->obtain(VehiclePropertyType::INT32); in createAdasStateReq()
482 auto updatedValue = mValuePool->obtain(value); in setApPowerStateReport()
610 auto updatedValue = mValuePool->obtain(hvacTemperatureValueSuggestion); in setHvacTemperatureValueSuggestion()
821 result = mValuePool->obtainInt32(/* value= */ 5); in maybeGetSpecialValue()
925 auto result = mValuePool->obtainBoolean(response.isvehicleinuse()); in getVehicleInUse()
[all …]
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/hardware/include/
DFakeVehicleHardware.h106 const std::shared_ptr<VehiclePropValuePool> mValuePool;