Lines Matching refs:cp
71 CameraProvider* cp = const_cast<CameraProvider*>( in sCameraDeviceStatusChange() local
74 if (cp == nullptr) { in sCameraDeviceStatusChange()
79 Mutex::Autolock _l(cp->mCbLock); in sCameraDeviceStatusChange()
83 cp->mCameraStatusMap[cameraIdStr] = (camera_device_status_t) new_status; in sCameraDeviceStatusChange()
84 if (cp->mCallbacks != nullptr) { in sCameraDeviceStatusChange()
86 for (auto const& deviceNamePair : cp->mCameraDeviceNames) { in sCameraDeviceStatusChange()
88 cp->mCallbacks->cameraDeviceStatusChange( in sCameraDeviceStatusChange()
99 CameraProvider* cp = const_cast<CameraProvider*>( in sTorchModeStatusChange() local
102 if (cp == nullptr) { in sTorchModeStatusChange()
107 Mutex::Autolock _l(cp->mCbLock); in sTorchModeStatusChange()
108 if (cp->mCallbacks != nullptr) { in sTorchModeStatusChange()
111 for (auto const& deviceNamePair : cp->mCameraDeviceNames) { in sTorchModeStatusChange()
113 cp->mCallbacks->torchModeStatusChange( in sTorchModeStatusChange()