Lines Matching refs:mState
172 private int mState = CAMERA_UNINITIALIZED; field in TestingCamera
346 if (mState == CAMERA_RECORD) { in onPause()
352 if (mState == CAMERA_PREVIEW) { in onPause()
354 mState = CAMERA_OPEN; in onPause()
362 mState = CAMERA_UNINITIALIZED; in onPause()
403 if (mState >= CAMERA_OPEN) { in surfaceChanged()
531 if (mState == CAMERA_PREVIEW) {
547 if (mState == CAMERA_PREVIEW) {
583 if (mState == CAMERA_TAKE_PICTURE) {
603 if (mState == CAMERA_TAKE_PICTURE) {
610 mState = CAMERA_PREVIEW;
615 mState = CAMERA_OPEN;
730 if (mState == CAMERA_PREVIEW) {
731 mState = CAMERA_TAKE_PICTURE;
817 if (mState == CAMERA_PREVIEW) {
819 } else if (mState == CAMERA_RECORD) {
855 if (mState == CAMERA_RECORD) {
905 mState = CAMERA_OPEN;
918 switch (mState) {
939 if (mState == CAMERA_PREVIEW) {
980 if (mState < CAMERA_OPEN) { in setUpCamera()
1001 mState = CAMERA_OPEN; in setUpCamera()
1088 mState = CAMERA_PREVIEW; in setUpCamera()
1090 mState = CAMERA_OPEN; in setUpCamera()
1097 if (mState >= CAMERA_OPEN) { in resetCamera()
1103 mState = CAMERA_UNINITIALIZED; in resetCamera()
1423 if (mState >= CAMERA_OPEN && mCallbacksEnabled) { in configureCallbacks()
1447 if (mState >= CAMERA_OPEN) { in stopCallbacks()
1467 if (mState < CAMERA_PREVIEW || !mCallbacksEnabled) { in onPreviewFrame()
1638 mState = CAMERA_RECORD; in startRecording()
1654 mState = CAMERA_UNINITIALIZED; in startRecording()
1667 if (mState == CAMERA_RECORD) {
1696 mState = CAMERA_UNINITIALIZED; in stopRecording()
1700 mState = CAMERA_PREVIEW; in stopRecording()