Searched refs:sensorStore (Results 1 – 4 of 4) sorted by relevance
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/ |
D | FakeObd2Frame.cpp | 36 std::unique_ptr<Obd2SensorStore> sensorStore( in fillDefaultObd2Frame() local 39 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::FUEL_SYSTEM_STATUS, in fillDefaultObd2Frame() 41 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::MALFUNCTION_INDICATOR_LIGHT_ON, 0); in fillDefaultObd2Frame() 42 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::IGNITION_MONITORS_SUPPORTED, in fillDefaultObd2Frame() 44 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::IGNITION_SPECIFIC_MONITORS, in fillDefaultObd2Frame() 49 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::INTAKE_AIR_TEMPERATURE, 35); in fillDefaultObd2Frame() 50 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::COMMANDED_SECONDARY_AIR_STATUS, in fillDefaultObd2Frame() 52 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::NUM_OXYGEN_SENSORS_PRESENT, 1); in fillDefaultObd2Frame() 53 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::RUNTIME_SINCE_ENGINE_START, 500); in fillDefaultObd2Frame() 54 sensorStore->setIntegerSensor( in fillDefaultObd2Frame() [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/obd2frame/src/ |
D | FakeObd2Frame.cpp | 51 std::unique_ptr<Obd2SensorStore> sensorStore(new Obd2SensorStore( in fillDefaultObd2Frame() local 54 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::FUEL_SYSTEM_STATUS, in fillDefaultObd2Frame() 56 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::MALFUNCTION_INDICATOR_LIGHT_ON, 0); in fillDefaultObd2Frame() 57 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::IGNITION_MONITORS_SUPPORTED, in fillDefaultObd2Frame() 59 sensorStore->setIntegerSensor( in fillDefaultObd2Frame() 65 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::INTAKE_AIR_TEMPERATURE, 35); in fillDefaultObd2Frame() 66 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::COMMANDED_SECONDARY_AIR_STATUS, in fillDefaultObd2Frame() 68 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::NUM_OXYGEN_SENSORS_PRESENT, 1); in fillDefaultObd2Frame() 69 sensorStore->setIntegerSensor(DiagnosticIntegerSensorIndex::RUNTIME_SINCE_ENGINE_START, 500); in fillDefaultObd2Frame() 70 sensorStore->setIntegerSensor( in fillDefaultObd2Frame() [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/obd2frame/test/ |
D | Obd2SensorStoreTest.cpp | 38 Obd2SensorStore sensorStore(valuePool, 1, 1); in TEST() local 50 ASSERT_EQ(sensorStore.setIntegerSensor(systemIntSensorIndex, 1), StatusCode::OK); in TEST() 51 ASSERT_EQ(sensorStore.setIntegerSensor(vendorIntSensorIndex, 2), StatusCode::OK); in TEST() 52 ASSERT_EQ(sensorStore.setFloatSensor(systemFloatSensorIndex, 3.0), StatusCode::OK); in TEST() 53 ASSERT_EQ(sensorStore.setFloatSensor(vendorFloatSensorIndex, 4.0), StatusCode::OK); in TEST() 56 auto propValue = sensorStore.getSensorProperty(dtc); in TEST() 69 Obd2SensorStore sensorStore(valuePool, 1, 1); in TEST() local 71 EXPECT_EQ(sensorStore.setIntegerSensor( in TEST() 74 EXPECT_EQ(sensorStore.setIntegerSensor(static_cast<size_t>(-1), 1), StatusCode::INVALID_ARG); in TEST() 75 EXPECT_EQ(sensorStore.setFloatSensor( in TEST() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/fuzzer/ |
D | VehicleManager_fuzzer.cpp | 303 std::unique_ptr<Obd2SensorStore> sensorStore( in invokeObd2SensorStore() local 306 if (!sensorStore.get()) { in invokeObd2SensorStore() 320 sensorStore->setIntegerSensor( in invokeObd2SensorStore() 332 sensorStore->setFloatSensor( in invokeObd2SensorStore() 336 [&]() { sensorStore->getIntegerSensors(); }, in invokeObd2SensorStore() 337 [&]() { sensorStore->getFloatSensors(); }, in invokeObd2SensorStore() 338 [&]() { sensorStore->getSensorsBitmask(); }, in invokeObd2SensorStore() 350 sensorStore->fillPropValue(dtc, freezeFrame.get()); in invokeObd2SensorStore()
|