Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5769163d authored by Steven Moreland's avatar Steven Moreland
Browse files

VehicleManager: use with RefBase

RefBase with sp<>

Bug: 232557259
Test: build
Merged-In: Id6b3b7e222980fd0e82b2d94ff2518e92d42a4d9
Change-Id: Id6b3b7e222980fd0e82b2d94ff2518e92d42a4d9
(cherry picked from commit 3b8e60af)
parent ac42d601
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -33,7 +33,7 @@ int main(int /* argc */, char* /* argv */ []) {
    auto store = std::make_unique<VehiclePropertyStore>();
    auto store = std::make_unique<VehiclePropertyStore>();
    auto connector = std::make_unique<DefaultVehicleConnector>();
    auto connector = std::make_unique<DefaultVehicleConnector>();
    auto hal = std::make_unique<DefaultVehicleHal>(store.get(), connector.get());
    auto hal = std::make_unique<DefaultVehicleHal>(store.get(), connector.get());
    auto service = std::make_unique<VehicleHalManager>(hal.get());
    auto service = android::sp<VehicleHalManager>::make(hal.get());
    connector->setValuePool(hal->getValuePool());
    connector->setValuePool(hal->getValuePool());


    android::hardware::configureRpcThreadpool(4, true /* callerWillJoin */);
    android::hardware::configureRpcThreadpool(4, true /* callerWillJoin */);