Loading usb/1.0/default/service.cpp +11 −3 Original line number Diff line number Diff line Loading @@ -27,13 +27,21 @@ using android::hardware::joinRpcThreadpool; using android::hardware::usb::V1_0::IUsb; using android::hardware::usb::V1_0::implementation::Usb; using android::status_t; using android::OK; int main() { android::sp<IUsb> service = new Usb(); configureRpcThreadpool(1, true /*callerWillJoin*/); service->registerAsService(); status_t status = service->registerAsService(); if (status == OK) { ALOGI("USB HAL Ready."); joinRpcThreadpool(); } ALOGE("Cannot register USB HAL service"); return 1; } Loading
usb/1.0/default/service.cpp +11 −3 Original line number Diff line number Diff line Loading @@ -27,13 +27,21 @@ using android::hardware::joinRpcThreadpool; using android::hardware::usb::V1_0::IUsb; using android::hardware::usb::V1_0::implementation::Usb; using android::status_t; using android::OK; int main() { android::sp<IUsb> service = new Usb(); configureRpcThreadpool(1, true /*callerWillJoin*/); service->registerAsService(); status_t status = service->registerAsService(); if (status == OK) { ALOGI("USB HAL Ready."); joinRpcThreadpool(); } ALOGE("Cannot register USB HAL service"); return 1; }