Home
last modified time | relevance | path

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

1234

/frameworks/base/graphics/java/android/graphics/
DMatrix.java79 public void setRotate(float degrees, float px, float py) {
84 public void setRotate(float degrees) {
133 public boolean preRotate(float degrees, float px, float py) {
139 public boolean preRotate(float degrees) {
181 public boolean postRotate(float degrees, float px, float py) {
187 public boolean postRotate(float degrees) {
341 public void setRotate(float degrees, float px, float py) { in setRotate() argument
342 nSetRotate(native_instance, degrees, px, py); in setRotate()
348 public void setRotate(float degrees) { in setRotate() argument
349 nSetRotate(native_instance, degrees); in setRotate()
[all …]
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java249 for (int degrees = 0; degrees < 361; degrees++) { in preparePrefer30sMap()
251 SNAP_PREFER_30S_MAP[degrees] = snappedOutputDegrees; in preparePrefer30sMap()
277 private static int snapPrefer30s(int degrees) { in snapPrefer30s() argument
281 return SNAP_PREFER_30S_MAP[degrees]; in snapPrefer30s()
293 private static int snapOnly30s(int degrees, int forceHigherOrLower) { in snapOnly30s() argument
295 int floor = (degrees / stepSize) * stepSize; in snapOnly30s()
298 degrees = ceiling; in snapOnly30s()
300 if (degrees == floor) { in snapOnly30s()
303 degrees = floor; in snapOnly30s()
305 if ((degrees - floor) < (ceiling - degrees)) { in snapOnly30s()
[all …]
/frameworks/base/tests/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
405 public void setOrientationHint(int degrees) { in setOrientationHint() argument
406 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { in setOrientationHint()
407 throw new IllegalArgumentException("Unsupported angle: " + degrees); in setOrientationHint()
410 nativeSetOrientationHint(mNativeObject, degrees); in setOrientationHint()
DMediaRecorder.java909 public void setOrientationHint(int degrees) { in setOrientationHint() argument
910 if (degrees != 0 && in setOrientationHint()
911 degrees != 90 && in setOrientationHint()
912 degrees != 180 && in setOrientationHint()
913 degrees != 270) { in setOrientationHint()
914 throw new IllegalArgumentException("Unsupported angle: " + degrees); in setOrientationHint()
916 setParameter("video-param-rotation-angle-degrees=" + degrees); in setOrientationHint()
/frameworks/av/media/libstagefright/
DMediaMuxer.cpp118 status_t MediaMuxer::setOrientationHint(int degrees) { in setOrientationHint() argument
125 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { in setOrientationHint()
130 mFileMeta->setInt32(kKeyRotation, degrees); in setOrientationHint()
/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.cpp181 static void setRotate__FFF(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees, jfloat px, in setRotate__FFF() argument
184 obj->setRotate(degrees, px, py); in setRotate__FFF()
187 static void setRotate__F(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees) { in setRotate__F() argument
189 obj->setRotate(degrees); in setRotate__F()
238 static void preRotate__FFF(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees, jfloat px, in preRotate__FFF() argument
241 obj->preRotate(degrees, px, py); in preRotate__FFF()
244 static void preRotate__F(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees) { in preRotate__F() argument
246 obj->preRotate(degrees); in preRotate__F()
282 … static void postRotate__FFF(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees, jfloat px, in postRotate__FFF() argument
285 obj->postRotate(degrees, px, py); in postRotate__FFF()
[all …]
/frameworks/base/packages/SystemUI/monet/src/com/android/systemui/monet/
DColorScheme.kt449 private fun wrapDegrees(degrees: Int): Int { in wrapDegrees()
451 degrees < 0 -> { in wrapDegrees()
452 (degrees % 360) + 360 in wrapDegrees()
454 degrees >= 360 -> { in wrapDegrees()
455 degrees % 360 in wrapDegrees()
458 degrees in wrapDegrees()
463 public fun wrapDegreesDouble(degrees: Double): Double { in wrapDegreesDouble()
465 degrees < 0 -> { in wrapDegreesDouble()
466 (degrees % 360) + 360 in wrapDegreesDouble()
468 degrees >= 360 -> { in wrapDegreesDouble()
[all …]
/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/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/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/base/packages/SettingsLib/src/com/android/settingslib/qrcode/
DQrCamera.java200 int degrees = 0; in startPreview() local
203 degrees = 0; in startPreview()
206 degrees = 90; in startPreview()
209 degrees = 180; in startPreview()
212 degrees = 270; in startPreview()
215 final int rotateDegrees = (mCameraOrientation - degrees + 360) % 360; in startPreview()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipSurfaceTransactionHelper.java92 Rect sourceBounds, Rect destinationBounds, float degrees) { in scale() argument
99 mTmpTransform.postRotate(degrees, in scale()
151 float degrees, float positionX, float positionY, boolean isExpanding, in rotateAndScaleWithCrop() argument
183 mTmpTransform.postRotate(degrees); in rotateAndScaleWithCrop()
/frameworks/av/media/libstagefright/tests/fuzzers/
DMediaMuxerFuzzer.cpp74 int degrees = fdp.ConsumeIntegral<int>(); in LLVMFuzzerTestOneInput() local
75 mMuxer->setOrientationHint(degrees); in LLVMFuzzerTestOneInput()
/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/base/core/java/android/inputmethodservice/navigationbar/
DNavigationBarView.java201 float degrees = useAltBack ? (isRtl ? 90 : -90) : 0; in orientBackButton() local
202 if (drawable.getRotation() == degrees) { in orientBackButton()
207 drawable.setRotation(degrees); in orientBackButton()
217 PropertyValuesHolder.ofFloat(KeyButtonDrawable.KEY_DRAWABLE_ROTATE, degrees), in orientBackButton()
/frameworks/base/core/java/android/util/
DMathUtils.java135 public static float radians(float degrees) { in radians() argument
136 return degrees * DEG_TO_RAD; in radians()
139 public static float degrees(float radians) { in degrees() method in MathUtils
/frameworks/base/core/java/android/app/
DWallpaperColors.java384 private static int wrapDegrees(int degrees) { in wrapDegrees() argument
385 if (degrees < 0) { in wrapDegrees()
386 return (degrees % 360) + 360; in wrapDegrees()
387 } else if (degrees >= 360) { in wrapDegrees()
388 return degrees % 360; in wrapDegrees()
390 return degrees; in wrapDegrees()
/frameworks/base/libs/hwui/apex/java/android/graphics/
DColorMatrix.java144 public void setRotate(int axis, float degrees) { in setRotate() argument
146 double radians = degrees * Math.PI / 180d; in setRotate()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaMuxerBase.h73 virtual status_t setOrientationHint(int degrees) = 0;
/frameworks/av/media/ndk/include/media/
DNdkMediaMuxer.h112 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer*, int degrees) __INTRODUCED_IN(21);

1234