Lines Matching refs:thiz
63 CameraServiceListener* thiz = reinterpret_cast<CameraServiceListener*>(obj); in onAvailable() local
64 std::lock_guard<std::mutex> lock(thiz->mMutex); in onAvailable()
65 thiz->mOnAvailableCount++; in onAvailable()
66 thiz->mAvailableMap[cameraId] = true; in onAvailable()
75 CameraServiceListener* thiz = reinterpret_cast<CameraServiceListener*>(obj); in onUnavailable() local
76 std::lock_guard<std::mutex> lock(thiz->mMutex); in onUnavailable()
77 thiz->mOnUnavailableCount++; in onUnavailable()
78 thiz->mAvailableMap[cameraId] = false; in onUnavailable()
88 CameraServiceListener* thiz = reinterpret_cast<CameraServiceListener*>(obj); in onCameraAccessPrioritiesChanged() local
89 std::lock_guard<std::mutex> lock(thiz->mMutex); in onCameraAccessPrioritiesChanged()
90 thiz->mOnCameraAccessPrioritiesChangedCount++; in onCameraAccessPrioritiesChanged()
140 CameraDeviceListener* thiz = reinterpret_cast<CameraDeviceListener*>(obj); in onDisconnected() local
141 std::lock_guard<std::mutex> lock(thiz->mMutex); in onDisconnected()
142 thiz->mOnDisconnect++; in onDisconnected()
151 CameraDeviceListener* thiz = reinterpret_cast<CameraDeviceListener*>(obj); in onError() local
152 std::lock_guard<std::mutex> lock(thiz->mMutex); in onError()
153 thiz->mOnError++; in onError()
154 thiz->mLatestError = errorCode; in onError()
174 CaptureSessionListener* thiz = reinterpret_cast<CaptureSessionListener*>(obj); in onClosed() local
175 std::lock_guard<std::mutex> lock(thiz->mMutex); in onClosed()
176 thiz->mIsClosed = true; in onClosed()
177 thiz->mOnClosed++; // Should never > 1 in onClosed()
185 CaptureSessionListener* thiz = reinterpret_cast<CaptureSessionListener*>(obj); in onReady() local
186 std::lock_guard<std::mutex> lock(thiz->mMutex); in onReady()
190 if (ret != ACAMERA_OK && !thiz->mIsClosed) { in onReady()
193 thiz->mInError = true; in onReady()
196 thiz->mIsIdle = true; in onReady()
197 thiz->mOnReady++; in onReady()
205 CaptureSessionListener* thiz = reinterpret_cast<CaptureSessionListener*>(obj); in onActive() local
206 std::lock_guard<std::mutex> lock(thiz->mMutex); in onActive()
212 thiz->mInError = true; in onActive()
215 thiz->mIsIdle = false; in onActive()
216 thiz->mOnActive; in onActive()
293 CaptureResultListener* thiz = reinterpret_cast<CaptureResultListener*>(obj); in onCaptureCompleted() local
294 std::lock_guard<std::mutex> lock(thiz->mMutex); in onCaptureCompleted()
317 if (thiz->mSaveCompletedRequests) { in onCaptureCompleted()
318 thiz->mCompletedRequests.push_back(ACaptureRequest_copy(request)); in onCaptureCompleted()
321 thiz->mLastCompletedFrameNumber = entry.data.i64[0]; in onCaptureCompleted()
322 thiz->mResultCondition.notify_one(); in onCaptureCompleted()
333 CaptureResultListener* thiz = reinterpret_cast<CaptureResultListener*>(obj); in onLogicalCameraCaptureCompleted() local
334 std::lock_guard<std::mutex> lock(thiz->mMutex); in onLogicalCameraCaptureCompleted()
356 if (thiz->mRegisteredPhysicalIds.size() != physicalResultCount) { in onLogicalCameraCaptureCompleted()
358 " physical camera Ids %zu", thiz->mRegisteredPhysicalIds.size(), in onLogicalCameraCaptureCompleted()
385 auto foundId = std::find(thiz->mRegisteredPhysicalIds.begin(), in onLogicalCameraCaptureCompleted()
386 thiz->mRegisteredPhysicalIds.end(), physicalCameraIds[i]); in onLogicalCameraCaptureCompleted()
387 if (foundId == thiz->mRegisteredPhysicalIds.end()) { in onLogicalCameraCaptureCompleted()
395 if (thiz->mSaveCompletedRequests) { in onLogicalCameraCaptureCompleted()
396 thiz->mCompletedRequests.push_back(ACaptureRequest_copy(request)); in onLogicalCameraCaptureCompleted()
399 thiz->mLastCompletedFrameNumber = entry.data.i64[0]; in onLogicalCameraCaptureCompleted()
400 thiz->mResultCondition.notify_one(); in onLogicalCameraCaptureCompleted()
409 CaptureResultListener* thiz = reinterpret_cast<CaptureResultListener*>(obj); in onCaptureFailed() local
410 std::lock_guard<std::mutex> lock(thiz->mMutex); in onCaptureFailed()
411 thiz->mFailedFrameNumbers.insert(failure->frameNumber); in onCaptureFailed()
412 thiz->mResultCondition.notify_one(); in onCaptureFailed()
424 CaptureResultListener* thiz = reinterpret_cast<CaptureResultListener*>(obj); in onLogicalCameraCaptureFailed() local
425 std::lock_guard<std::mutex> lock(thiz->mMutex); in onLogicalCameraCaptureFailed()
426 thiz->mFailedFrameNumbers.insert(failure->captureFailure.frameNumber); in onLogicalCameraCaptureFailed()
427 thiz->mResultCondition.notify_one(); in onLogicalCameraCaptureFailed()
436 CaptureResultListener* thiz = reinterpret_cast<CaptureResultListener*>(obj); in onCaptureSequenceCompleted() local
437 std::lock_guard<std::mutex> lock(thiz->mMutex); in onCaptureSequenceCompleted()
438 thiz->mLastSequenceIdCompleted = sequenceId; in onCaptureSequenceCompleted()
439 thiz->mLastSequenceFrameNumber = frameNumber; in onCaptureSequenceCompleted()
440 thiz->mResultCondition.notify_one(); in onCaptureSequenceCompleted()
454 CaptureResultListener* thiz = reinterpret_cast<CaptureResultListener*>(obj); in onCaptureBufferLost() local
455 std::lock_guard<std::mutex> lock(thiz->mMutex); in onCaptureBufferLost()
456 thiz->mLastLostFrameNumber = frameNumber; in onCaptureBufferLost()
457 thiz->mResultCondition.notify_one(); in onCaptureBufferLost()
575 ImageReaderListener* thiz = reinterpret_cast<ImageReaderListener*>(obj); in validateImageCb() local
576 std::lock_guard<std::mutex> lock(thiz->mMutex); in validateImageCb()
577 thiz->mOnImageAvailableCount++; in validateImageCb()
596 if (thiz->mDumpFilePathBase && format == AIMAGE_FORMAT_JPEG) { in validateImageCb()
635 sprintf(dumpFilePath, "%s/%dx%d.jpg", thiz->mDumpFilePathBase, width, height); in validateImageCb()
656 ImageReaderListener* thiz = reinterpret_cast<ImageReaderListener*>(obj); in acquireImageCb() local
657 std::lock_guard<std::mutex> lock(thiz->mMutex); in acquireImageCb()
658 thiz->mOnImageAvailableCount++; in acquireImageCb()