Lines Matching refs:activity

392             Activity activity = getActivity();
393 if (null != activity) {
394 activity.finish();
591 Activity activity = getActivity();
592 if (activity != null) {
593 Toast.makeText(activity, (String) msg.obj, Toast.LENGTH_SHORT).show();
680 Activity activity = getActivity(); in onClick() local
681 if (null != activity) { in onClick()
682 new AlertDialog.Builder(activity) in onClick()
696 Activity activity = getActivity(); in setUpCameraOutputs() local
697 CameraManager manager = (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE); in setUpCameraOutputs()
775 Activity activity = getActivity(); in openCamera() local
776 CameraManager manager = (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE); in openCamera()
844 Activity activity = getActivity(); in showMissingPermissionError() local
845 if (activity != null) { in showMissingPermissionError()
846 Toast.makeText(activity, R.string.request_permission, Toast.LENGTH_SHORT).show(); in showMissingPermissionError()
847 activity.finish(); in showMissingPermissionError()
1038 Activity activity = getActivity(); in configureTransform() local
1040 if (null == mTextureView || null == activity) { in configureTransform()
1052 int deviceRotation = activity.getWindowManager().getDefaultDisplay().getRotation(); in configureTransform()
1054 activity.getWindowManager().getDefaultDisplay().getSize(displaySize); in configureTransform()
1207 final Activity activity = getActivity(); in captureStillPictureLocked() local
1208 if (null == activity || null == mCameraDevice) { in captureStillPictureLocked()
1222 int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); in captureStillPictureLocked()
1233 ImageSaver.ImageSaverBuilder jpegBuilder = new ImageSaver.ImageSaverBuilder(activity) in captureStillPictureLocked()
1235 ImageSaver.ImageSaverBuilder rawBuilder = new ImageSaver.ImageSaverBuilder(activity) in captureStillPictureLocked()
1542 final Activity activity = getActivity(); in onCreateDialog() local
1543 return new AlertDialog.Builder(activity) in onCreateDialog()
1548 activity.finish(); in onCreateDialog()