Lines Matching refs:mActivity
124 private CameraActivity mActivity;
249 mActivity.mCameraDevice = Util.openCamera(mActivity, mCameraId);
250 mParameters = mActivity.mCameraDevice.getParameters();
252 mActivity.mOpenCameraFail = true;
254 mActivity.mCameraDisabled = true;
270 mActivity.getWindow().clearFlags(
286 if ((Util.getDisplayRotation(mActivity) != mDisplayRotation)
307 ((CameraScreenNail) mActivity.mCameraScreenNail).animateSwitchCamera();
335 Toast.makeText(mActivity,
336 mActivity.getResources().getString(R.string.wait), Toast.LENGTH_LONG).show();
344 mActivity.getString(R.string.video_file_name_format));
350 int intentCameraId = Util.getCameraFacingIntentExtras(mActivity);
385 mPieRenderer = new PieRenderer(mActivity);
386 mVideoControl = new VideoController(mActivity, this, mPieRenderer);
392 mZoomRenderer = new ZoomRenderer(mActivity);
396 mGestures = new PreviewGestures(mActivity, this, mZoomRenderer, mPieRenderer);
418 mActivity = activity;
420 mPreferences = new ComboPreferences(mActivity);
424 mPreferences.setLocalId(mActivity, mCameraId);
427 mActivity.mNumberOfCameras = CameraHolder.instance().getNumberOfCameras();
428 mPrefVideoEffectDefault = mActivity.getString(R.string.pref_video_effect_default);
438 mContentResolver = mActivity.getContentResolver();
440 mActivity.getLayoutInflater().inflate(R.layout.video_module, (ViewGroup) mRootView);
446 mActivity.reuseCameraScreenNail(!mIsVideoCaptureIntent);
448 mActivity.createCameraScreenNail(!mIsVideoCaptureIntent);
455 if (mActivity.mOpenCameraFail) {
456 Util.showErrorAndFinish(mActivity, R.string.cannot_connect_camera);
458 } else if (mActivity.mCameraDisabled) {
459 Util.showErrorAndFinish(mActivity, R.string.camera_disabled);
478 mQuickCapture = mActivity.getIntent().getBooleanExtra(EXTRA_QUICK_CAPTURE, false);
479 mLocationManager = new LocationManager(mActivity, null);
497 CameraSettings settings = new CameraSettings(mActivity, mParameters,
613 mActivity.startActivity(intent);
654 ((CameraScreenNail) mActivity.mCameraScreenNail).animateCapture(mDisplayRotation);
694 mActivity.getResources().getString(R.string.pref_video_quality_default));
701 Intent intent = mActivity.getIntent();
719 mMaxVideoDurationInMs = CameraSettings.getMaxVideoDuration(mActivity);
738 mActivity.getString(R.string.pref_video_time_lapse_frame_interval_default));
751 mActivity.getString(R.string.pref_video_effect_default));
757 mParameters = mActivity.mCameraDevice.getParameters();
774 Size optimalSize = Util.getOptimalPreviewSize(mActivity, sizes,
800 mActivity.registerReceiver(mReceiver, intentFilter);
810 if (mActivity.mOpenCameraFail || mActivity.mCameraDisabled)
823 if (mActivity.mOpenCameraFail) {
824 Util.showErrorAndFinish(mActivity,
827 } else if (mActivity.mCameraDisabled) {
828 Util.showErrorAndFinish(mActivity, R.string.camera_disabled);
856 PopupManager.getInstance(mActivity).notifyShowPopup(null);
862 mDisplayRotation = Util.getDisplayRotation(mActivity);
871 mActivity.getGLRoot().requestLayoutContentPane();
877 mActivity.mCameraDevice.setErrorCallback(mErrorCallback);
889 mActivity.mCameraDevice.setDisplayOrientation(mCameraDisplayOrientation);
895 SurfaceTexture surfaceTexture = ((CameraScreenNail) mActivity.mCameraScreenNail)
900 mActivity.mCameraDevice.setPreviewTextureAsync(surfaceTexture);
902 mActivity.mCameraDevice.setPreviewDisplayAsync(mPreviewSurfaceView.getHolder());
904 mActivity.mCameraDevice.startPreviewAsync();
913 mActivity.runOnUiThread(new Runnable() {
916 if (mActivity.mOpenCameraFail) {
917 Util.showErrorAndFinish(mActivity, R.string.cannot_connect_camera);
918 } else if (mActivity.mCameraDisabled) {
919 Util.showErrorAndFinish(mActivity, R.string.camera_disabled);
927 mActivity.mCameraDevice.stopPreview();
963 if (mActivity.mCameraDevice == null) {
974 mActivity.mCameraDevice.setZoomChangeListener(null);
975 mActivity.mCameraDevice.setErrorCallback(null);
977 mActivity.mCameraDevice = null;
984 CameraScreenNail screenNail = (CameraScreenNail) mActivity.mCameraScreenNail;
1025 mActivity.unregisterReceiver(mReceiver);
1047 if (!mMediaRecorderRecording && !mActivity.isFinishing()) {
1104 String action = mActivity.getIntent().getAction();
1117 mActivity.setResultEx(resultCode, resultIntent);
1118 mActivity.finish();
1139 mActivity.mCameraDevice.setPreviewDisplayAsync(mPreviewSurfaceView.getHolder());
1147 mActivity.mCameraDevice.setDisplayOrientation(
1149 mActivity.mCameraDevice.startPreviewAsync();
1159 if (mActivity.mCameraDevice == null) return;
1170 Intent intent = mActivity.getIntent();
1193 mActivity.mCameraDevice.unlock();
1194 mMediaRecorder.setCamera(mActivity.mCameraDevice.getCamera());
1219 long maxFileSize = mActivity.getStorageSpace() - Storage.LOW_STORAGE_THRESHOLD;
1280 if (mActivity.mCameraDevice == null) return;
1282 boolean inLandscape = (mActivity.getResources().getConfiguration().orientation
1288 mEffectsRecorder = new EffectsRecorder(mActivity);
1293 mEffectsRecorder.setCamera(mActivity.mCameraDevice);
1310 CameraScreenNail screenNail = (CameraScreenNail) mActivity.mCameraScreenNail;
1325 Intent intent = mActivity.getIntent();
1364 long maxFileSize = mActivity.getStorageSpace() - Storage.LOW_STORAGE_THRESHOLD;
1438 mActivity.addSecureAlbumItemIfNeeded(true, mCurrentVideoUri);
1452 mActivity.sendBroadcast(new Intent(Util.ACTION_NEW_VIDEO,
1479 mActivity.updateStorageSpaceAndHint();
1492 Intent intent = mActivity.getIntent();
1512 mActivity.updateStorageSpaceAndHint();
1525 Toast.makeText(mActivity, R.string.video_reach_size_limit,
1540 mActivity.sendBroadcast(i);
1550 mActivity.setSwipingEnabled(false);
1552 mActivity.updateStorageSpaceAndHint();
1553 if (mActivity.getStorageSpace() <= Storage.LOW_STORAGE_THRESHOLD) {
1590 mActivity.mCameraDevice.lock();
1598 mActivity.getString(R.string.video_recording_started));
1605 mParameters = mActivity.mCameraDevice.getParameters();
1611 mActivity.getOrientationManager().lockOrientation();
1624 mActivity.hideSwitcher();
1639 mActivity.showSwitcher();
1698 mActivity.setSwipingEnabled(true);
1699 mActivity.showSwitcher();
1722 mActivity.getString(R.string.video_recording_stopped));
1729 mActivity.getOrientationManager().unlockOrientation();
1763 mActivity.mCameraDevice.lock();
1768 ((CameraScreenNail) mActivity.mCameraScreenNail).setOneTimeOnFrameDrawnListener(
1776 if (!mPaused) mParameters = mActivity.mCameraDevice.getParameters();
1782 mActivity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
1787 mActivity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
1793 mActivity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
1885 int color = mActivity.getResources().getColor(countdownRemainingTime
1908 if (mActivity.mShowCameraAppView) {
1911 mActivity.getString(R.string.pref_camera_video_flashmode_default));
1921 flashMode = mActivity.getString(
1929 mActivity.getString(R.string.pref_camera_whitebalance_default));
1979 mActivity.mCameraDevice.setParameters(mParameters);
1981 mParameters = mActivity.mCameraDevice.getParameters();
1995 CameraScreenNail screenNail = (CameraScreenNail) mActivity.mCameraScreenNail;
2002 mActivity.notifyScreenNailChanged();
2119 mActivity.hideSwitcher();
2161 mPreviewFrameLayout.setOnLayoutChangeListener(mActivity);
2164 mShutterButton = mActivity.getShutterButton();
2195 LayoutInflater inflater = mActivity.getLayoutInflater();
2211 onFullScreenChanged(mActivity.isInCameraApp());
2235 if (mActivity.mCameraDevice == null) return;
2298 mPreferences.setLocalId(mActivity, mCameraId);
2356 mActivity.startActivityForResult(i, REQUEST_EFFECT_BACKDROPPER);
2396 return mActivity.superDispatchTouchEvent(m);
2409 mActivity.mCameraDevice.setParametersAsync(mParameters);
2410 Parameters p = mActivity.mCameraDevice.getParameters();
2436 mActivity.setSingleTapUpListener(mPreviewFrameLayout);
2444 mActivity.setSingleTapUpListener(null);
2451 ((CameraScreenNail) mActivity.mCameraScreenNail).animateCapture(mDisplayRotation);
2463 new RotateTextToast(mActivity, R.string.disable_video_snapshot_hint,
2485 mActivity.mCameraDevice.setParameters(mParameters);
2488 mActivity.mCameraDevice.takePicture(null, null, null, new JpegPictureCallback(loc));
2498 if (!mActivity.mShowCameraAppView) {
2538 if (mActivity.mCameraScreenNail != null) {
2539 ((CameraScreenNail) mActivity.mCameraScreenNail).setFullScreen(full);
2574 Util.broadcastNewPicture(mActivity, uri);
2617 new RotateTextToast(mActivity, R.string.video_snapshot_hint, 0)
2723 mActivity.mCameraDevice.setPreviewDisplayAsync(mPreviewSurfaceView.getHolder());
2757 ((CameraScreenNail) mActivity.mCameraScreenNail).copyTexture();
2772 mActivity.cancelActivityTouchHandling();
2773 mActivity.setSwipingEnabled(false);
2778 mActivity.setSwipingEnabled(true);
2782 mActivity.hideUI();
2799 mActivity.showUI();