/packages/apps/Camera2/src/com/android/camera/ |
D | FatalErrorHandlerImpl.java | 23 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()
|
D | CaptureModuleUtil.java | 26 import com.android.camera.util.CameraUtil; 39 int rotation = CameraUtil.getDisplayRotation(context); in getDeviceNaturalOrientation() 87 int optimalIndex = CameraUtil in getOptimalPreviewSize() 112 boolean swapDimens = (CameraUtil.getDisplayRotation(context) % 180) == 90; in pickBufferDimensions()
|
D | FocusOverlayManager.java | 37 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()
|
D | PhotoModule.java | 73 import com.android.camera.util.CameraUtil; 295 if (CameraUtil.getDisplayRotation(mActivity) != 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 …]
|
D | VideoModule.java | 69 import com.android.camera.util.CameraUtil; 256 if ((CameraUtil.getDisplayRotation(mActivity) != mDisplayRotation) in handleMessage() 363 mShutterIconId = CameraUtil.getCameraShutterIconId( in init() 414 CameraUtil.setGpsParameters(mCameraSettings, loc); in takeASnapshot() 845 Size optimalSize = CameraUtil.getOptimalPreviewSize(sizes, in getDesiredPreviewSize() 865 mDisplayRotation = CameraUtil.getDisplayRotation(mActivity); in setDisplayOrientation() 883 if (mDisplayRotation != CameraUtil.getDisplayRotation(mActivity)) { in updateCameraOrientation() 1182 int rotation = CameraUtil.getImageRotation( in initializeRecorder() 1444 bitmap = CameraUtil.rotateAndMirror(bitmap, 0, isCameraFrontFacing()); in getVideoThumbnail() 1646 CameraUtil.getMaxPreviewFpsRange(mCameraCapabilities.getSupportedPreviewFpsRange()); in setCameraParameters() [all …]
|
D | TextureViewHelper.java | 35 import com.android.camera.util.CameraUtil; 108 int rotation = CameraUtil.getDisplayRotation((Activity) mPreview.getContext()); in onLayoutChange() 359 mOrientation = CameraUtil.getDisplayRotation((Activity) mPreview.getContext());
|
D | CaptureModule.java | 87 import com.android.camera.util.CameraUtil; 414 mDisplayRotation = CameraUtil.getDisplayRotation(activity); 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(mUI.getActivity());
|
/packages/apps/Camera2/tests/src/com/android/camera/unittest/ |
D | CameraUnitTest.java | 19 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/one/v2/ |
D | AutoFocusHelper.java | 28 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()
|
D | OneCameraZslImpl.java | 65 import com.android.camera.util.CameraUtil; 316 int numEncodingCores = CameraUtil.getNumCpuCores(); in OneCameraZslImpl() 614 int degrees = CameraUtil.getJpegRotation(captureParams.orientation, mCharacteristics); in savePicture() 825 CameraUtil.getJpegRotation(params.orientation, mCharacteristics)); in sendSingleRequest()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | FaceView.java | 33 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()
|
D | MainActivityLayout.java | 31 import com.android.camera.util.CameraUtil; 153 CameraUtil.getDisplayRotation((Activity) getContext())); in onMeasure() 169 CameraUtil.getDisplayRotation((Activity) getContext())); in setNonDecorWindowSizeChangedListener()
|
D | ModeListView.java | 47 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()
|
D | BottomBar.java | 38 import com.android.camera.util.CameraUtil; 424 int colorId = CameraUtil.getCameraThemeColorId(index, getContext()); in setupShutterBackgroundForModeIndex()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/state/ |
D | StateSavingPicture.java | 27 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/ |
D | PlaceholderManager.java | 31 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/one/v2/photo/ |
D | ImageRotationCalculatorImpl.java | 28 import com.android.camera.util.CameraUtil; 68 int imageRotation = CameraUtil.getImageRotation(mSensorOrientationDegrees, in toImageRotation()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 69 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 648 currentActivity.getIntent().getIntExtra(CameraUtil.EXTRAS_CAMERA_FACING, -1); in getCameraFacingIntentExtras()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | PeekView.java | 34 import com.android.camera.util.CameraUtil; 147 Point drawDim = CameraUtil.resizeToFill(mImageDrawable.getIntrinsicWidth(), in startPeekAnimation()
|
D | FilmstripView.java | 50 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/app/ |
D | OrientationManagerImpl.java | 35 import com.android.camera.util.CameraUtil; 111 return DeviceOrientation.from((360 - CameraUtil.getDisplayRotation(mActivity)) % 360); in getDisplayRotation()
|
D | CameraController.java | 26 import com.android.camera.util.CameraUtil; 321 CameraUtil.throwIfCameraDisabled(); in checkAndOpenCamera()
|
D | CameraAppUI.java | 64 import com.android.camera.util.CameraUtil; 928 mLastRotation = CameraUtil.getDisplayRotation((Activity) mAppRootView.getContext()); in initDisplayListener() 938 int rotation = CameraUtil.getDisplayRotation( in initDisplayListener() 977 int iconRes = CameraUtil.getCameraModeCoverIconResId(moduleToTransitionTo, in onSwipeDetected() 1049 … int iconId = CameraUtil.getCameraModeCoverIconResId(modeId, mController.getAndroidContext()); in showModeCoverUntilPreviewReady() 1879 int shutterIconId = CameraUtil.getCameraShutterIconId(modeIndex,
|
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/ |
D | ResourceCaptureToolsImpl.java | 38 import com.android.camera.util.CameraUtil; 169 final String fileName = CameraUtil.instance().createJpegName(timestamp); in takePictureNow()
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | PhotoItem.java | 32 import com.android.camera.util.CameraUtil; 240 Point dim = CameraUtil.resizeToFill( in generateThumbnail()
|