Home
last modified time | relevance | path

Searched refs:CameraUtil (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/
DFatalErrorHandlerImpl.java23 import com.android.camera.util.CameraUtil;
46 CameraUtil.showError(mActivity, reason.getDialogMsgId(), reason.getFeedbackMsgId(), in onMediaStorageFailure()
62 CameraUtil.showError(mActivity, reason.getDialogMsgId(), reason.getFeedbackMsgId(), in onCameraOpenFailure()
78 CameraUtil.showError(mActivity, reason.getDialogMsgId(), reason.getFeedbackMsgId(), in onCameraReconnectFailure()
94 CameraUtil.showError(mActivity, reason.getDialogMsgId(), reason.getFeedbackMsgId(), in onGenericCameraAccessFailure()
111 CameraUtil.showError(mActivity, reason.getDialogMsgId(), reason.getFeedbackMsgId(), in onCameraDisabledFailure()
122 CameraUtil.showError(mActivity, reason.getDialogMsgId(), reason.getFeedbackMsgId(), in handleFatalError()
DFocusOverlayManager.java37 import com.android.camera.util.CameraUtil;
189 mFocusRing.configurePreviewDimensions(CameraUtil.rectToRectF(mPreviewRect)); in setPreviewRect()
197 setPreviewRect(CameraUtil.rectFToRect(previewArea)); in onPreviewAreaChanged()
213 CameraUtil.rectToRectF(mPreviewRect)); in resetCoordinateTransformer()
549 int left = CameraUtil.clamp(x - size / 2, mPreviewRect.left, in computeCameraRectFromPreviewCoordinates()
551 int top = CameraUtil.clamp(y - size / 2, mPreviewRect.top, in computeCameraRectFromPreviewCoordinates()
555 return CameraUtil.rectFToRect(mCoordinateTransformer.toCameraSpace(rectF)); in computeCameraRectFromPreviewCoordinates()
DPhotoModule.java73 import com.android.camera.util.CameraUtil;
295 if (CameraUtil.getDisplayRotation() != mDisplayRotation) { in checkDisplayRotation()
1069 r.title = CameraUtil.instance().createJpegName(date); in nameNewImage()
1135 CameraUtil.setGpsParameters(mCameraSettings, loc); in capture()
1147 CameraUtil.getImageRotation(sensorOrientation, deviceOrientation, isFrontCamera); in capture()
1291 CameraUtil.closeSilently(outputStream); in onCaptureDone()
1296 Bitmap bitmap = CameraUtil.makeBitmap(data, 50 * 1024); in onCaptureDone()
1297 bitmap = CameraUtil.rotate(bitmap, orientation); in onCaptureDone()
1326 CameraUtil.closeSilently(tempStream); in onCaptureDone()
1337 newExtras.putBoolean(CameraUtil.KEY_RETURN_DATA, true); in onCaptureDone()
[all …]
DCaptureModuleUtil.java25 import com.android.camera.util.CameraUtil;
38 int rotation = CameraUtil.getDisplayRotation(); in getDeviceNaturalOrientation()
86 int optimalIndex = CameraUtil in getOptimalPreviewSize()
111 boolean swapDimens = (CameraUtil.getDisplayRotation() % 180) == 90; in pickBufferDimensions()
DVideoModule.java69 import com.android.camera.util.CameraUtil;
259 if ((CameraUtil.getDisplayRotation() != mDisplayRotation) in handleMessage()
366 mShutterIconId = CameraUtil.getCameraShutterIconId( in init()
417 CameraUtil.setGpsParameters(mCameraSettings, loc); in takeASnapshot()
847 Size optimalSize = CameraUtil.getOptimalPreviewSize(sizes, in getDesiredPreviewSize()
867 mDisplayRotation = CameraUtil.getDisplayRotation(); in setDisplayOrientation()
885 if (mDisplayRotation != CameraUtil.getDisplayRotation()) { in updateCameraOrientation()
1180 int rotation = CameraUtil.getImageRotation( in initializeRecorder()
1450 bitmap = CameraUtil.rotateAndMirror(bitmap, 0, isCameraFrontFacing()); in getVideoThumbnail()
1657 CameraUtil.getMaxPreviewFpsRange(mCameraCapabilities.getSupportedPreviewFpsRange()); in setCameraParameters()
[all …]
DTextureViewHelper.java34 import com.android.camera.util.CameraUtil;
107 int rotation = CameraUtil.getDisplayRotation(); in onLayoutChange()
358 mOrientation = CameraUtil.getDisplayRotation();
DCaptureModule.java87 import com.android.camera.util.CameraUtil;
414 mDisplayRotation = CameraUtil.getDisplayRotation(); in init()
557 String title = CameraUtil.instance().createJpegName(sessionTime); in createAndStartCaptureSession()
569 String title = CameraUtil.instance().createJpegName(sessionTime); in createAndStartUntrackedCaptureSession()
1221 int incomingRotation = CameraUtil.getDisplayRotation();
/packages/apps/Camera2/src/com/android/camera/one/v2/
DAutoFocusHelper.java28 import com.android.camera.util.CameraUtil;
40 … (CameraUtil.lerp(MeteringRectangle.METERING_WEIGHT_MIN, MeteringRectangle.METERING_WEIGHT_MAX,
138 PointF nsc = CameraUtil.normalizedSensorCoordsForNormalizedDisplayCoords( in regionsForNormalizedCoord()
150 … meteringRegion.left = CameraUtil.clamp(meteringRegion.left, cropRegion.left, cropRegion.right); in regionsForNormalizedCoord()
151 … meteringRegion.top = CameraUtil.clamp(meteringRegion.top, cropRegion.top, cropRegion.bottom); in regionsForNormalizedCoord()
152 … meteringRegion.right = CameraUtil.clamp(meteringRegion.right, cropRegion.left, cropRegion.right); in regionsForNormalizedCoord()
153 …meteringRegion.bottom = CameraUtil.clamp(meteringRegion.bottom, cropRegion.top, cropRegion.bottom); in regionsForNormalizedCoord()
DOneCameraZslImpl.java65 import com.android.camera.util.CameraUtil;
315 int numEncodingCores = CameraUtil.getNumCpuCores(); in OneCameraZslImpl()
613 int degrees = CameraUtil.getJpegRotation(captureParams.orientation, mCharacteristics); in savePicture()
824 CameraUtil.getJpegRotation(params.orientation, mCharacteristics)); in sendSingleRequest()
/packages/apps/Camera2/tests/src/com/android/camera/unittest/
DCameraUnitTest.java19 import com.android.camera.util.CameraUtil;
33 CameraUtil.prepareMatrix(matrix, false, 0, 800, 480); in testPrepareMatrix()
39 CameraUtil.prepareMatrix(matrix, false, 90, 800, 480); in testPrepareMatrix()
45 CameraUtil.prepareMatrix(matrix, false, 180, 800, 480); in testPrepareMatrix()
51 CameraUtil.prepareMatrix(matrix, true, 180, 800, 480); in testPrepareMatrix()
/packages/apps/Camera2/src/com/android/camera/ui/
DFaceView.java33 import com.android.camera.util.CameraUtil;
166 CameraUtil.prepareMatrix(mMatrix, mMirror, mDisplayOrientation, rw, rh); in onDraw()
179 CameraUtil.dumpRect(mRect, "Original rect"); in onDraw()
183 CameraUtil.dumpRect(mRect, "Transformed rect"); in onDraw()
DMainActivityLayout.java31 import com.android.camera.util.CameraUtil;
153 CameraUtil.getDisplayRotation()); in onMeasure()
169 CameraUtil.getDisplayRotation()); in setNonDecorWindowSizeChangedListener()
DModeListView.java47 import com.android.camera.util.CameraUtil;
1220 .getColor(CameraUtil.getCameraThemeColorId(modeId, getContext()))); in initializeModeSelectorItems()
1223 selectorItem.setImageResource(CameraUtil.getCameraModeIconResId(modeId, getContext())); in initializeModeSelectorItems()
1226 selectorItem.setText(CameraUtil.getCameraModeText(modeId, getContext())); in initializeModeSelectorItems()
1229 selectorItem.setContentDescription(CameraUtil in initializeModeSelectorItems()
1532 int parentMode = CameraUtil.getCameraModeParentModeId(modeId, getContext()); in onVisibilityChanged()
DBottomBar.java38 import com.android.camera.util.CameraUtil;
424 int colorId = CameraUtil.getCameraThemeColorId(index, getContext()); in setupShutterBackgroundForModeIndex()
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateSavingPicture.java27 import com.android.camera.util.CameraUtil;
95 CameraUtil.closeSilently(outputStream); in onEnter()
99 final Bitmap bitmap = CameraUtil.makeBitmap( in onEnter()
/packages/apps/Camera2/src/com/android/camera/session/
DPlaceholderManager.java31 import com.android.camera.util.CameraUtil;
140 CameraUtil.broadcastNewPicture(mContext, resultUri); in finishPlaceholder()
152 CameraUtil.broadcastNewPicture(mContext, session.outputUri); in replacePlaceholder()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java69 public class CameraUtil { class
73 private static final CameraUtil INSTANCE = new CameraUtil(
80 public static CameraUtil instance() { in instance()
132 private CameraUtil(Context context) { in CameraUtil() method in CameraUtil
643 currentActivity.getIntent().getIntExtra(CameraUtil.EXTRAS_CAMERA_FACING, -1); in getCameraFacingIntentExtras()
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/
DImageRotationCalculatorImpl.java28 import com.android.camera.util.CameraUtil;
68 int imageRotation = CameraUtil.getImageRotation(mSensorOrientationDegrees, in toImageRotation()
/packages/apps/Camera2/src/com/android/camera/app/
DCameraAppUI.java63 import com.android.camera.util.CameraUtil;
927 mLastRotation = CameraUtil.getDisplayRotation(); in initDisplayListener()
937 int rotation = CameraUtil.getDisplayRotation( in initDisplayListener()
976 int iconRes = CameraUtil.getCameraModeCoverIconResId(moduleToTransitionTo, in onSwipeDetected()
1048 … int iconId = CameraUtil.getCameraModeCoverIconResId(modeId, mController.getAndroidContext()); in showModeCoverUntilPreviewReady()
1878 int shutterIconId = CameraUtil.getCameraShutterIconId(modeIndex,
DOrientationManagerImpl.java35 import com.android.camera.util.CameraUtil;
111 return DeviceOrientation.from((360 - CameraUtil.getDisplayRotation()) % 360); in getDisplayRotation()
DCameraController.java26 import com.android.camera.util.CameraUtil;
321 CameraUtil.throwIfCameraDisabled(); in checkAndOpenCamera()
/packages/apps/Camera2/src/com/android/camera/widget/
DPeekView.java34 import com.android.camera.util.CameraUtil;
147 Point drawDim = CameraUtil.resizeToFill(mImageDrawable.getIntrinsicWidth(), in startPeekAnimation()
DFilmstripView.java50 import com.android.camera.util.CameraUtil;
80 CameraUtil.playVideo(activity, uri, title); in playVideo()
765 Point dim = CameraUtil.resizeToFill( in measureViewItem()
1502 Point dim = CameraUtil in updateInsertion()
1741 Point dim = CameraUtil.resizeToFill( in update()
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
DResourceCaptureToolsImpl.java38 import com.android.camera.util.CameraUtil;
169 final String fileName = CameraUtil.instance().createJpegName(timestamp); in takePictureNow()
/packages/apps/Camera2/src/com/android/camera/data/
DPhotoItem.java32 import com.android.camera.util.CameraUtil;
240 Point dim = CameraUtil.resizeToFill( in generateThumbnail()

12