/packages/apps/Camera2/tests/src/com/android/camera/unittest/ |
CameraUnitTest.java | 19 import com.android.camera.util.CameraUtil; 29 int h = CameraUtil.ORIENTATION_HYSTERESIS; 30 assertEquals(0, CameraUtil.roundOrientation(0, 0)); 31 assertEquals(0, CameraUtil.roundOrientation(359, 0)); 32 assertEquals(0, CameraUtil.roundOrientation(0 + 44 + h, 0)); 33 assertEquals(90, CameraUtil.roundOrientation(0 + 45 + h, 0)); 34 assertEquals(0, CameraUtil.roundOrientation(360 - 44 - h, 0)); 35 assertEquals(270, CameraUtil.roundOrientation(360 - 45 - h, 0)); 37 assertEquals(90, CameraUtil.roundOrientation(90, 90)); 38 assertEquals(90, CameraUtil.roundOrientation(90 + 44 + h, 90)) [all...] |
/packages/apps/Camera2/src/com/android/camera/app/ |
CameraApp.java | 21 import com.android.camera.util.CameraUtil; 30 CameraUtil.initialize(this);
|
PlaceholderManager.java | 27 import com.android.camera.util.CameraUtil; 178 CameraUtil.broadcastNewPicture(mContext, session.outputUri);
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
RotateTextToast.java | 26 import com.android.camera.util.CameraUtil; 49 CameraUtil.fadeOut(mToast);
|
RotatableLayout.java | 28 import com.android.camera.util.CameraUtil; 73 mIsDefaultToPortrait = CameraUtil.isDefaultToPortrait((Activity) getContext()); 94 int rotation = CameraUtil.getDisplayRotation((Activity) getContext()); 114 int rotation = CameraUtil.getDisplayRotation((Activity) getContext()); 122 int currentRotation = CameraUtil.getDisplayRotation((Activity) getContext());
|
FaceView.java | 34 import com.android.camera.util.CameraUtil; 197 CameraUtil.prepareMatrix(mMatrix, mMirror, mDisplayOrientation, rw, rh); 212 if (LOGV) CameraUtil.dumpRect(mRect, "Original rect"); 214 if (LOGV) CameraUtil.dumpRect(mRect, "Transformed rect");
|
CameraRootView.java | 31 import com.android.camera.util.CameraUtil; 124 int rotation = CameraUtil.getDisplayRotation((Activity) getContext());
|
ModuleSwitcher.java | 37 import com.android.camera.util.CameraUtil; 306 int orientation = CameraUtil.getDisplayRotation((Activity) getContext());
|
FilmStripView.java | 44 import com.android.camera.util.CameraUtil; [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
FocusOverlayManager.java | 31 import com.android.camera.util.CameraUtil; 153 mFocusAreaSupported = CameraUtil.isFocusAreaSupported(parameters); 154 mMeteringAreaSupported = CameraUtil.isMeteringAreaSupported(parameters); 155 mLockAeAwbNeeded = (CameraUtil.isAutoExposureLockSupported(mParameters) || 156 CameraUtil.isAutoWhiteBalanceLockSupported(mParameters)); 192 CameraUtil.prepareMatrix(matrix, mMirror, mDisplayOrientation, getPreviewRect()); 460 if (CameraUtil.isSupported(mode, supportedFocusModes)) { 467 if (!CameraUtil.isSupported(mFocusMode, supportedFocusModes)) { 470 if (CameraUtil.isSupported(Parameters.FOCUS_MODE_AUTO, 504 if (CameraUtil.FOCUS_MODE_CONTINUOUS_PICTURE.equals(mFocusMode)) [all...] |
PhotoModule.java | 67 import com.android.camera.util.CameraUtil; 270 if (CameraUtil.getDisplayRotation(mActivity) != mDisplayRotation) { 339 CameraUtil.showErrorAndFinish(mActivity, 346 CameraUtil.showErrorAndFinish(mActivity, 469 mCameraDevice = CameraUtil.openCamera( 693 if (mSceneMode == CameraUtil.SCENE_MODE_HDR) { 829 r.title = CameraUtil.createJpegName(date); 886 final boolean animateBefore = (mSceneMode == CameraUtil.SCENE_MODE_HDR); 901 mJpegRotation = CameraUtil.getJpegRotation(mCameraId, orientation); 904 CameraUtil.setGpsParameters(mParameters, loc) [all...] |
VideoModule.java | 63 import com.android.camera.util.CameraUtil; 208 mCameraDevice = CameraUtil.openCamera( 247 if ((CameraUtil.getDisplayRotation(mActivity) != mDisplayRotation) 307 int intentCameraId = CameraUtil.getCameraFacingIntentExtras(mActivity); 386 if (CameraUtil.isVideoSnapshotSupported(mParameters) && !mIsVideoCaptureIntent) { 396 int rotation = CameraUtil.getJpegRotation(mCameraId, mOrientation); 399 CameraUtil.setGpsParameters(mParameters, loc); 434 int newOrientation = CameraUtil.roundOrientation(orientation, mOrientation); 619 Size optimalSize = CameraUtil.getOptimalPreviewSize(mActivity, sizes, 692 mDisplayRotation = CameraUtil.getDisplayRotation(mActivity) [all...] |
VideoUI.java | 52 import com.android.camera.util.CameraUtil; 126 if (CameraUtil.getDisplayRotation(mActivity) % 180 != 0) { 272 int orientation = CameraUtil.getDisplayRotation(mActivity); 604 CameraUtil.fadeOut(mShutterButton); 605 CameraUtil.fadeIn(mReviewDoneButton); 606 CameraUtil.fadeIn(mReviewPlayButton); 617 CameraUtil.fadeOut(mReviewDoneButton); 618 CameraUtil.fadeOut(mReviewPlayButton); 619 CameraUtil.fadeIn(mShutterButton);
|
ListPreference.java | 29 import com.android.camera.util.CameraUtil; 54 mKey = CameraUtil.checkNotNull( 142 if (CameraUtil.equals(mEntryValues[i], value)) return i;
|
WideAnglePanoramaModule.java | 51 import com.android.camera.util.CameraUtil; 192 mDeviceOrientation = CameraUtil.roundOrientation(orientation, mDeviceOrientation); 196 + CameraUtil.getDisplayRotation(mActivity) % 360; 358 mCameraDevice = CameraUtil.openCamera(mActivity, cameraId, 363 mCameraOrientation = CameraUtil.getCameraOrientation(cameraId); 423 parameters.set(CameraUtil.RECORDING_HINT, CameraUtil.FALSE); 535 int degrees = CameraUtil.getDisplayRotation(mActivity); 537 int orientation = CameraUtil.getDisplayOrientation(degrees, cameraId); [all...] |
PhotoUI.java | 58 import com.android.camera.util.CameraUtil; 154 Bitmap bitmap = CameraUtil.downSample(mData, DOWN_SAMPLE_FACTOR); 278 mController.onPreviewRectChanged(CameraUtil.rectFToRect(previewRect)); 670 CameraUtil.fadeIn(mReviewDoneButton); 672 CameraUtil.fadeIn(mReviewRetakeButton); 683 CameraUtil.fadeOut(mReviewDoneButton); 685 CameraUtil.fadeOut(mReviewRetakeButton);
|
CameraActivity.java | 85 import com.android.camera.util.CameraUtil; 238 CameraUtil.showErrorAndFinish(CameraActivity.this, 247 CameraUtil.showErrorAndFinish(CameraActivity.this, 256 CameraUtil.showErrorAndFinish(CameraActivity.this, [all...] |
CameraSettings.java | 32 import com.android.camera.util.CameraUtil; 201 if (!CameraUtil.isFocusAreaSupported(mParameters)) { 223 || !CameraUtil.isCameraHdrSupported(mParameters))) {
|
CameraHolder.java | 19 import static com.android.camera.util.CameraUtil.Assert;
|
WideAnglePanoramaUI.java | 46 import com.android.camera.util.CameraUtil; 443 int displayRotation = CameraUtil.getDisplayRotation(mActivity);
|
AndroidCameraManagerImpl.java | 19 import static com.android.camera.util.CameraUtil.Assert;
|
/packages/apps/Camera2/src/com/android/camera/util/ |
CameraUtil.java | 74 public class CameraUtil { 159 private CameraUtil() { 608 currentActivity.getIntent().getIntExtra(CameraUtil.EXTRAS_CAMERA_FACING, -1); [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
LocalMediaData.java | 42 import com.android.camera.util.CameraUtil; 765 CameraUtil.playVideo(activity, getContentUri(), mTitle); [all...] |