Lines Matching refs:thiz
57 CameraServiceListener* thiz = reinterpret_cast<CameraServiceListener*>(obj); in onAvailable() local
58 std::lock_guard<std::mutex> lock(thiz->mMutex); in onAvailable()
59 thiz->mOnAvailableCount++; in onAvailable()
60 thiz->mAvailableMap[cameraId] = true; in onAvailable()
69 CameraServiceListener* thiz = reinterpret_cast<CameraServiceListener*>(obj); in onUnavailable() local
70 std::lock_guard<std::mutex> lock(thiz->mMutex); in onUnavailable()
71 thiz->mOnUnavailableCount++; in onUnavailable()
72 thiz->mAvailableMap[cameraId] = false; in onUnavailable()
115 CameraDeviceListener* thiz = reinterpret_cast<CameraDeviceListener*>(obj); in onDisconnected() local
116 std::lock_guard<std::mutex> lock(thiz->mMutex); in onDisconnected()
117 thiz->mOnDisconnect++; in onDisconnected()
126 CameraDeviceListener* thiz = reinterpret_cast<CameraDeviceListener*>(obj); in onError() local
127 std::lock_guard<std::mutex> lock(thiz->mMutex); in onError()
128 thiz->mOnError++; in onError()
129 thiz->mLatestError = errorCode; in onError()
149 CaptureSessionListener* thiz = reinterpret_cast<CaptureSessionListener*>(obj); in onClosed() local
150 std::lock_guard<std::mutex> lock(thiz->mMutex); in onClosed()
151 thiz->mIsClosed = true; in onClosed()
152 thiz->mOnClosed++; // Should never > 1 in onClosed()
160 CaptureSessionListener* thiz = reinterpret_cast<CaptureSessionListener*>(obj); in onReady() local
161 std::lock_guard<std::mutex> lock(thiz->mMutex); in onReady()
165 if (ret != ACAMERA_OK && !thiz->mIsClosed) { in onReady()
168 thiz->mInError = true; in onReady()
171 thiz->mIsIdle = true; in onReady()
172 thiz->mOnReady++; in onReady()
180 CaptureSessionListener* thiz = reinterpret_cast<CaptureSessionListener*>(obj); in onActive() local
181 std::lock_guard<std::mutex> lock(thiz->mMutex); in onActive()
187 thiz->mInError = true; in onActive()
190 thiz->mIsIdle = false; in onActive()
191 thiz->mOnActive; in onActive()
267 CaptureResultListener* thiz = reinterpret_cast<CaptureResultListener*>(obj); in onCaptureCompleted() local
268 std::lock_guard<std::mutex> lock(thiz->mMutex); in onCaptureCompleted()
276 if (thiz->mSaveCompletedRequests) { in onCaptureCompleted()
277 thiz->mCompletedRequests.push_back(ACaptureRequest_copy(request)); in onCaptureCompleted()
280 thiz->mLastCompletedFrameNumber = entry.data.i64[0]; in onCaptureCompleted()
281 thiz->mResultCondition.notify_one(); in onCaptureCompleted()
290 CaptureResultListener* thiz = reinterpret_cast<CaptureResultListener*>(obj); in onCaptureFailed() local
291 std::lock_guard<std::mutex> lock(thiz->mMutex); in onCaptureFailed()
292 thiz->mLastFailedFrameNumber = failure->frameNumber; in onCaptureFailed()
293 thiz->mResultCondition.notify_one(); in onCaptureFailed()
302 CaptureResultListener* thiz = reinterpret_cast<CaptureResultListener*>(obj); in onCaptureSequenceCompleted() local
303 std::lock_guard<std::mutex> lock(thiz->mMutex); in onCaptureSequenceCompleted()
304 thiz->mLastSequenceIdCompleted = sequenceId; in onCaptureSequenceCompleted()
305 thiz->mLastSequenceFrameNumber = frameNumber; in onCaptureSequenceCompleted()
306 thiz->mResultCondition.notify_one(); in onCaptureSequenceCompleted()
320 CaptureResultListener* thiz = reinterpret_cast<CaptureResultListener*>(obj); in onCaptureBufferLost() local
321 std::lock_guard<std::mutex> lock(thiz->mMutex); in onCaptureBufferLost()
322 thiz->mLastLostFrameNumber = frameNumber; in onCaptureBufferLost()
323 thiz->mResultCondition.notify_one(); in onCaptureBufferLost()
420 ImageReaderListener* thiz = reinterpret_cast<ImageReaderListener*>(obj); in validateImageCb() local
421 std::lock_guard<std::mutex> lock(thiz->mMutex); in validateImageCb()
422 thiz->mOnImageAvailableCount++; in validateImageCb()
441 if (thiz->mDumpFilePathBase && format == AIMAGE_FORMAT_JPEG) { in validateImageCb()
480 sprintf(dumpFilePath, "%s/%dx%d.jpg", thiz->mDumpFilePathBase, width, height); in validateImageCb()
501 ImageReaderListener* thiz = reinterpret_cast<ImageReaderListener*>(obj); in acquireImageCb() local
502 std::lock_guard<std::mutex> lock(thiz->mMutex); in acquireImageCb()
503 thiz->mOnImageAvailableCount++; in acquireImageCb()