Loading services/camera/libcameraservice/CameraService.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -276,7 +276,10 @@ sp<ICameraServiceProxy> CameraService::getCameraServiceProxy() { sp<ICameraServiceProxy> proxyBinder = nullptr; #ifndef __BRILLO__ sp<IServiceManager> sm = defaultServiceManager(); sp<IBinder> binder = sm->getService(String16("media.camera.proxy")); // Use checkService because cameraserver normally starts before the // system server and the proxy service. So the long timeout that getService // has before giving up is inappropriate. sp<IBinder> binder = sm->checkService(String16("media.camera.proxy")); if (binder != nullptr) { proxyBinder = interface_cast<ICameraServiceProxy>(binder); } Loading Loading
services/camera/libcameraservice/CameraService.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -276,7 +276,10 @@ sp<ICameraServiceProxy> CameraService::getCameraServiceProxy() { sp<ICameraServiceProxy> proxyBinder = nullptr; #ifndef __BRILLO__ sp<IServiceManager> sm = defaultServiceManager(); sp<IBinder> binder = sm->getService(String16("media.camera.proxy")); // Use checkService because cameraserver normally starts before the // system server and the proxy service. So the long timeout that getService // has before giving up is inappropriate. sp<IBinder> binder = sm->checkService(String16("media.camera.proxy")); if (binder != nullptr) { proxyBinder = interface_cast<ICameraServiceProxy>(binder); } Loading