Home
last modified time | relevance | path

Searched refs:degrees (Results 1 – 25 of 95) sorted by relevance

1234

/frameworks/base/graphics/java/android/graphics/
DMatrix.java82 public void setRotate(float degrees, float px, float py) {
87 public void setRotate(float degrees) {
136 public boolean preRotate(float degrees, float px, float py) {
142 public boolean preRotate(float degrees) {
184 public boolean postRotate(float degrees, float px, float py) {
190 public boolean postRotate(float degrees) {
344 public void setRotate(float degrees, float px, float py) { in setRotate() argument
345 nSetRotate(native_instance, degrees, px, py); in setRotate()
351 public void setRotate(float degrees) { in setRotate() argument
352 nSetRotate(native_instance, degrees); in setRotate()
[all …]
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java254 for (int degrees = 0; degrees < 361; degrees++) { in preparePrefer30sMap()
256 SNAP_PREFER_30S_MAP[degrees] = snappedOutputDegrees; in preparePrefer30sMap()
282 private static int snapPrefer30s(int degrees) { in snapPrefer30s() argument
286 return SNAP_PREFER_30S_MAP[degrees]; in snapPrefer30s()
298 private static int snapOnly30s(int degrees, int forceHigherOrLower) { in snapOnly30s() argument
300 int floor = (degrees / stepSize) * stepSize; in snapOnly30s()
303 degrees = ceiling; in snapOnly30s()
305 if (degrees == floor) { in snapOnly30s()
308 degrees = floor; in snapOnly30s()
310 if ((degrees - floor) < (ceiling - degrees)) { in snapOnly30s()
[all …]
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DGetBitmapSurfaceViewActivity.java101 int degrees = 0; in setCameraDisplayOrientation() local
104 degrees = 0; in setCameraDisplayOrientation()
107 degrees = 90; in setCameraDisplayOrientation()
110 degrees = 180; in setCameraDisplayOrientation()
113 degrees = 270; in setCameraDisplayOrientation()
119 result = (info.orientation + degrees) % 360; in setCameraDisplayOrientation()
122 result = (info.orientation - degrees + 360) % 360; in setCameraDisplayOrientation()
DTextureViewActivity.java126 int degrees = 0; in getCameraOrientation() local
130 degrees = 0; in getCameraOrientation()
133 degrees = 90; in getCameraOrientation()
136 degrees = 180; in getCameraOrientation()
139 degrees = 270; in getCameraOrientation()
143 return (info.orientation - degrees + 360) % 360; in getCameraOrientation()
/frameworks/base/media/java/android/media/
DMediaMuxer.java297 long nativeObject, int degrees); in nativeSetOrientationHint() argument
408 public void setOrientationHint(int degrees) { in setOrientationHint() argument
409 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { in setOrientationHint()
410 throw new IllegalArgumentException("Unsupported angle: " + degrees); in setOrientationHint()
413 nativeSetOrientationHint(mNativeObject, degrees); in setOrientationHint()
DMediaRecorder.java910 public void setOrientationHint(int degrees) { in setOrientationHint() argument
911 if (degrees != 0 && in setOrientationHint()
912 degrees != 90 && in setOrientationHint()
913 degrees != 180 && in setOrientationHint()
914 degrees != 270) { in setOrientationHint()
915 throw new IllegalArgumentException("Unsupported angle: " + degrees); in setOrientationHint()
917 setParameter("video-param-rotation-angle-degrees=" + degrees); in setOrientationHint()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/ribbon/ui/composable/
DRibbon.kt50 degrees: Int = 45, in <lambda>()
54 check(degrees in 1..89) in <lambda>()
57 val radians = degrees * (PI / 180) in <lambda>()
74 rotationZ = 360f - degrees in <lambda>()
/frameworks/base/libs/hwui/jni/
DCamera.cpp38 static void Camera_rotateX(JNIEnv* env, jobject obj, jfloat degrees) { in Camera_rotateX() argument
41 v->rotateX(degrees); in Camera_rotateX()
44 static void Camera_rotateY(JNIEnv* env, jobject obj, jfloat degrees) { in Camera_rotateY() argument
47 v->rotateY(degrees); in Camera_rotateY()
50 static void Camera_rotateZ(JNIEnv* env, jobject obj, jfloat degrees) { in Camera_rotateZ() argument
53 v->rotateZ(degrees); in Camera_rotateZ()
Dandroid_graphics_Matrix.cpp179 static void setRotate__FFF(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees, jfloat px, in setRotate__FFF() argument
182 obj->setRotate(degrees, px, py); in setRotate__FFF()
185 static void setRotate__F(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees) { in setRotate__F() argument
187 obj->setRotate(degrees); in setRotate__F()
236 static void preRotate__FFF(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees, jfloat px, in preRotate__FFF() argument
239 obj->preRotate(degrees, px, py); in preRotate__FFF()
242 static void preRotate__F(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees) { in preRotate__F() argument
244 obj->preRotate(degrees); in preRotate__F()
280 … static void postRotate__FFF(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees, jfloat px, in postRotate__FFF() argument
283 obj->postRotate(degrees, px, py); in postRotate__FFF()
[all …]
/frameworks/av/media/libstagefright/
DMediaMuxer.cpp142 status_t MediaMuxer::setOrientationHint(int degrees) { in setOrientationHint() argument
149 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { in setOrientationHint()
154 mFileMeta->setInt32(kKeyRotation, degrees); in setOrientationHint()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/animation/
DPipResizeAnimator.java114 final float degrees = (1.0f - fraction) * mDelta; in onAnimationUpdate() local
115 setBoundsAndRotation(tx, mLeash, mBaseBounds, mAnimatedRect, degrees); in onAnimationUpdate()
127 Rect baseBounds, Rect targetBounds, float degrees) { in setBoundsAndRotation() argument
134 transformTensor.postRotate(degrees, targetBounds.centerX(), targetBounds.centerY()); in setBoundsAndRotation()
/frameworks/base/core/java/com/android/internal/graphics/cam/
DHctSolver.java700 public static double sanitizeDegreesDouble(double degrees) { in sanitizeDegreesDouble() argument
701 degrees = degrees % 360.0; in sanitizeDegreesDouble()
702 if (degrees < 0) { in sanitizeDegreesDouble()
703 degrees = degrees + 360.0; in sanitizeDegreesDouble()
705 return degrees; in sanitizeDegreesDouble()
/frameworks/base/tools/orientationplot/
DREADME.txt46 it 90 degrees to a different orientation. Compared the rapid changes in the
52 it 90 degrees. Note that the confidence intervals will all drop to 0 at some
58 over end to a midpoint about 45 degrees between two opposing orientations.
67 angle (say, 45 degrees) is between the current orientation's ideal angle
68 (say, 0 degrees) and an adjacent orientation's ideal angle (say, 90 degrees).
77 degrees (refer to MAX_TILT constant). Consequently, you should expect there
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipSurfaceTransactionHelper.java102 Rect sourceBounds, Rect destinationBounds, float degrees) { in scale() argument
104 return scale(tx, leash, sourceBounds, mTmpDestinationRectF, degrees); in scale()
112 Rect sourceBounds, RectF destinationBounds, float degrees) { in scale() argument
119 mTmpTransform.postRotate(degrees, in scale()
174 float degrees, float positionX, float positionY, boolean isExpanding, in rotateAndScaleWithCrop() argument
206 mTmpTransform.postRotate(degrees); in rotateAndScaleWithCrop()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/
DPipSurfaceTransactionHelper.java102 Rect sourceBounds, Rect destinationBounds, float degrees) { in scale() argument
104 return scale(tx, leash, sourceBounds, mTmpDestinationRectF, degrees); in scale()
112 Rect sourceBounds, RectF destinationBounds, float degrees) { in scale() argument
119 mTmpTransform.postRotate(degrees, in scale()
171 float degrees, float positionX, float positionY, boolean isExpanding, in rotateAndScaleWithCrop() argument
203 mTmpTransform.postRotate(degrees); in rotateAndScaleWithCrop()
/frameworks/base/core/java/android/view/animation/
DRotateAnimation.java167 float degrees = mFromDegrees + ((mToDegrees - mFromDegrees) * interpolatedTime); in applyTransformation() local
171 t.getMatrix().setRotate(degrees); in applyTransformation()
173 t.getMatrix().setRotate(degrees, mPivotX * scale, mPivotY * scale); in applyTransformation()
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DRectUtils.java59 public static void rotateRect(final int degrees, final int px, final int py, final Rect rect) { in rotateRect() argument
62 matrix.setRotate(degrees, px, py); in rotateRect()
/frameworks/libs/systemui/monet/src/com/android/systemui/monet/
DColorScheme.java320 private static int wrapDegrees(int degrees) { in wrapDegrees() argument
321 if (degrees < 0) { in wrapDegrees()
322 return (degrees % 360) + 360; in wrapDegrees()
323 } else if (degrees >= 360) { in wrapDegrees()
324 return degrees % 360; in wrapDegrees()
326 return degrees; in wrapDegrees()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/qrcode/
DQrCamera.java206 int degrees = 0; in startPreview() local
209 degrees = 0; in startPreview()
212 degrees = 90; in startPreview()
215 degrees = 180; in startPreview()
218 degrees = 270; in startPreview()
221 final int rotateDegrees = (mCameraOrientation - degrees + 360) % 360; in startPreview()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraAgent.java727 public void setDisplayOrientation(final int degrees) { in setDisplayOrientation() argument
728 setDisplayOrientation(degrees, true); in setDisplayOrientation()
741 public void setDisplayOrientation(final int degrees, final boolean capture) { in setDisplayOrientation() argument
747 .obtainMessage(CameraActions.SET_DISPLAY_ORIENTATION, degrees, in setDisplayOrientation()
756 public void setJpegOrientation(final int degrees) { in setJpegOrientation() argument
762 .obtainMessage(CameraActions.SET_JPEG_ORIENTATION, degrees, 0) in setJpegOrientation()
/frameworks/av/media/ndk/
DNdkMediaMuxer.cpp70 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer *muxer, int degrees) { in AMediaMuxer_setOrientationHint() argument
71 return translate_error(muxer->mImpl->setOrientationHint(degrees)); in AMediaMuxer_setOrientationHint()
/frameworks/native/services/inputflinger/docs/
Dinput_coordinates.md71 *It is important to note that rotating the device 90 degrees is NOT equivalent
72 to rotating the continuous coordinate space by 90 degrees.*
90 90 degrees, the touched point would correspond to the location (2, 3), shown
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DNavigationBarView.java205 float degrees = useAltBack ? (isRtl ? 90 : -90) : 0; in orientBackButton() local
206 if (drawable.getRotation() == degrees) { in orientBackButton()
211 drawable.setRotation(degrees); in orientBackButton()
221 PropertyValuesHolder.ofFloat(KeyButtonDrawable.KEY_DRAWABLE_ROTATE, degrees), in orientBackButton()
/frameworks/base/core/java/android/util/
DMathUtils.java136 public static float radians(float degrees) { in radians() argument
137 return degrees * DEG_TO_RAD; in radians()
140 public static float degrees(float radians) { in degrees() method in MathUtils
/frameworks/base/core/java/android/app/
DWallpaperColors.java396 private static int wrapDegrees(int degrees) { in wrapDegrees() argument
397 if (degrees < 0) { in wrapDegrees()
398 return (degrees % 360) + 360; in wrapDegrees()
399 } else if (degrees >= 360) { in wrapDegrees()
400 return degrees % 360; in wrapDegrees()
402 return degrees; in wrapDegrees()

1234