Lines Matching refs:session

148         /*out*/ACameraCaptureSession** session) {
160 // Create new session
163 ALOGE("Fail to create new session. cannot configure streams");
170 // set new session as current session
174 *session = newSession;
180 sp<ACameraCaptureSession> session,
185 session, cbs, numRequests, requests, captureSequenceId, /*isRepeating*/false);
190 sp<ACameraCaptureSession> session,
195 session, cbs, numRequests, requests, captureSequenceId, /*isRepeating*/true);
200 sp<ACameraCaptureSession> session,
248 CallbackHolder cbHolder(session, requestsV, isRepeating, cbs);
264 msg->setPointer(kContextKey, session->mUserSessionCallback.context);
265 msg->setObject(kSessionSpKey, session);
266 msg->setPointer(kCallbackFpKey, (void*) session->mUserSessionCallback.onActive);
270 mBusySession = session;
325 CameraDevice::notifySessionEndOfLifeLocked(ACameraCaptureSession* session) {
331 if (session != mCurrentSession) {
338 if (!session->mIsClosed) {
339 ALOGE("Error: unclosed session %p reaches end of life!", session);
344 // No new session, unconfigure now
397 CameraDevice::flushLocked(ACameraCaptureSession* session) {
404 // This should never happen because creating a new session will close
405 // previous one and thus reject any API call from previous session.
407 if (session != mCurrentSession) {
408 ALOGE("Camera %s session %p is not current active session!", getId(), session);
420 msg->setPointer(kContextKey, session->mUserSessionCallback.context);
421 msg->setObject(kSessionSpKey, session);
422 msg->setPointer(kCallbackFpKey, (void*) session->mUserSessionCallback.onActive);
428 msg->setPointer(kContextKey, session->mUserSessionCallback.context);
429 msg->setObject(kSessionSpKey, session);
430 msg->setPointer(kCallbackFpKey, (void*) session->mUserSessionCallback.onReady);
557 // Send onReady to previous session
559 // mCurrentSession is the session to be replaced by a new session
562 ALOGE("Current session != busy session");
699 sp<ACameraCaptureSession> session = cbh.mSession;
726 msg->setObject(kSessionSpKey, session);
745 msg->setObject(kSessionSpKey, session);
841 ALOGE("%s: Cannot find session pointer!", __FUNCTION__);
844 sp<ACameraCaptureSession> session(static_cast<ACameraCaptureSession*>(obj.get()));
872 (*onState)(context, session.get());
893 (*onStart)(context, session.get(), request, timestamp);
916 (*onResult)(context, session.get(), request, result.get());
942 (*onFail)(context, session.get(), request, failure);
970 (*onSeqEnd)(context, session.get(), seqId, frameNumber);
990 (*onSeqAbort)(context, session.get(), seqId);
1020 (*onBufferLost)(context, session.get(), request, anw, frameNumber);
1031 sp<ACameraCaptureSession> session,
1035 mSession(session), mRequests(requests),
1109 // Clear the session sp before we send out the message
1111 // before cbh goes out of scope and causing we call the session
1148 // Camera is disconnected, close the session and expect no more callbacks
1216 ALOGE("Current session != busy session");
1224 // Make sure we clear the sp first so the session destructor can
1225 // only happen on handler thread (where we don't hold device/session lock)
1256 sp<ACameraCaptureSession> session = cbh.mSession;
1265 msg->setObject(kSessionSpKey, session);
1316 sp<ACameraCaptureSession> session = cbh.mSession;
1328 msg->setObject(kSessionSpKey, session);