VehicleManager: use with RefBase am: 3b8e60afa3 am: 7a96e33640

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19300534

Change-Id: I3b795177938a388719a4d2942f5a15b1ce38dcca
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Steven Moreland 2022-07-16 07:41:02 +00:00 committed by Automerger Merge Worker
commit 20405515a2

View file

@ -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 */);