/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
D | RadialPickerLayout.java | 355 for (int degrees = 0; degrees < 361; degrees++) { in preparePrefer30sMap() 357 mSnapPrefer30sMap[degrees] = snappedOutputDegrees; in preparePrefer30sMap() 383 private int snapPrefer30s(int degrees) { in snapPrefer30s() argument 387 return mSnapPrefer30sMap[degrees]; in snapPrefer30s() 399 private static int snapOnly30s(int degrees, int forceHigherOrLower) { in snapOnly30s() argument 401 int floor = (degrees / stepSize) * stepSize; in snapOnly30s() 404 degrees = ceiling; in snapOnly30s() 406 if (degrees == floor) { in snapOnly30s() 409 degrees = floor; in snapOnly30s() 411 if ((degrees - floor) < (ceiling - degrees)) { in snapOnly30s() [all …]
|
D | RadialSelectorView.java | 254 int degrees = (int) (radians * 180 / Math.PI); in getDegreesFromCoords() local 260 degrees = 90 - degrees; in getDegreesFromCoords() 262 degrees = 90 + degrees; in getDegreesFromCoords() 264 degrees = 270 - degrees; in getDegreesFromCoords() 266 degrees = 270 + degrees; in getDegreesFromCoords() 268 return degrees; in getDegreesFromCoords()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Matrix.java | 69 public void setRotate(float degrees, float px, float py) { 74 public void setRotate(float degrees) { 123 public boolean preRotate(float degrees, float px, float py) { 129 public boolean preRotate(float degrees) { 171 public boolean postRotate(float degrees, float px, float py) { 177 public boolean postRotate(float degrees) { 325 public void setRotate(float degrees, float px, float py) { in setRotate() argument 326 native_setRotate(native_instance, degrees, px, py); in setRotate() 332 public void setRotate(float degrees) { in setRotate() argument 333 native_setRotate(native_instance, degrees); in setRotate() [all …]
|
D | ColorMatrix.java | 124 public void setRotate(int axis, float degrees) { in setRotate() argument 126 float radians = degrees * (float)Math.PI / 180; in setRotate()
|
/frameworks/base/media/java/android/media/ |
D | MediaMuxer.java | 91 int degrees); in nativeSetOrientationHint() argument 155 public void setOrientationHint(int degrees) { in setOrientationHint() argument 156 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { in setOrientationHint() 157 throw new IllegalArgumentException("Unsupported angle: " + degrees); in setOrientationHint() 160 nativeSetOrientationHint(mNativeObject, degrees); in setOrientationHint()
|
D | MediaRecorder.java | 453 public void setOrientationHint(int degrees) { in setOrientationHint() argument 454 if (degrees != 0 && in setOrientationHint() 455 degrees != 90 && in setOrientationHint() 456 degrees != 180 && in setOrientationHint() 457 degrees != 270) { in setOrientationHint() 458 throw new IllegalArgumentException("Unsupported angle: " + degrees); in setOrientationHint() 460 setParameter("video-param-rotation-angle-degrees=" + degrees); in setOrientationHint()
|
/frameworks/base/core/java/android/widget/ |
D | RadialTimePickerView.java | 252 for (int degrees = 0; degrees < 361; degrees++) { in preparePrefer30sMap() 254 sSnapPrefer30sMap[degrees] = snappedOutputDegrees; in preparePrefer30sMap() 280 private static int snapPrefer30s(int degrees) { in snapPrefer30s() argument 284 return sSnapPrefer30sMap[degrees]; in snapPrefer30s() 296 private static int snapOnly30s(int degrees, int forceHigherOrLower) { in snapOnly30s() argument 298 int floor = (degrees / stepSize) * stepSize; in snapOnly30s() 301 degrees = ceiling; in snapOnly30s() 303 if (degrees == floor) { in snapOnly30s() 306 degrees = floor; in snapOnly30s() 308 if ((degrees - floor) < (ceiling - degrees)) { in snapOnly30s() [all …]
|
/frameworks/av/media/libstagefright/ |
D | MediaMuxer.cpp | 104 status_t MediaMuxer::setOrientationHint(int degrees) { in setOrientationHint() argument 111 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { in setOrientationHint() 116 mFileMeta->setInt32(kKeyRotation, degrees); in setOrientationHint()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | TextureViewActivity.java | 126 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/core/jni/android/graphics/ |
D | Camera.cpp | 41 static void Camera_rotateX(JNIEnv* env, jobject obj, jfloat degrees) { in Camera_rotateX() argument 44 v->rotateX(degrees); in Camera_rotateX() 47 static void Camera_rotateY(JNIEnv* env, jobject obj, jfloat degrees) { in Camera_rotateY() argument 50 v->rotateY(degrees); in Camera_rotateY() 53 static void Camera_rotateZ(JNIEnv* env, jobject obj, jfloat degrees) { in Camera_rotateZ() argument 56 v->rotateZ(degrees); in Camera_rotateZ()
|
D | Matrix.cpp | 85 …static void setRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px,… in setRotate__FFF() argument 87 obj->setRotate(degrees, px, py); in setRotate__FFF() 89 static void setRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) { in setRotate__F() argument 91 obj->setRotate(degrees); in setRotate__F() 131 …static void preRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px,… in preRotate__FFF() argument 133 obj->preRotate(degrees, px, py); in preRotate__FFF() 136 static void preRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) { in preRotate__F() argument 138 obj->preRotate(degrees); in preRotate__F() 172 …static void postRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px… in postRotate__FFF() argument 174 obj->postRotate(degrees, px, py); in postRotate__FFF() [all …]
|
/frameworks/base/tools/orientationplot/ |
D | README.txt | 44 it 90 degrees to a different orientation. Compared the rapid changes in the 50 it 90 degrees. Note that the confidence intervals will all drop to 0 at some 56 over end to a midpoint about 45 degrees between two opposing orientations. 65 angle (say, 45 degrees) is between the current orientation's ideal angle 66 (say, 0 degrees) and an adjacent orientation's ideal angle (say, 90 degrees). 75 degrees (refer to MAX_TILT constant). Consequently, you should expect there
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Matrix_Delegate.java | 290 … /*package*/ static void native_setRotate(long native_object, float degrees, float px, float py) { in native_setRotate() argument 296 d.mValues = getRotate(degrees, px, py); in native_setRotate() 300 /*package*/ static void native_setRotate(long native_object, float degrees) { in native_setRotate() argument 306 setRotate(d.mValues, degrees); in native_setRotate() 411 /*package*/ static void native_preRotate(long native_object, float degrees, in native_preRotate() argument 415 d.preTransform(getRotate(degrees, px, py)); in native_preRotate() 420 /*package*/ static void native_preRotate(long native_object, float degrees) { in native_preRotate() argument 424 double rad = Math.toRadians(degrees); in native_preRotate() 484 /*package*/ static void native_postRotate(long native_object, float degrees, in native_postRotate() argument 488 d.postTransform(getRotate(degrees, px, py)); in native_postRotate() [all …]
|
/frameworks/base/core/java/android/view/animation/ |
D | RotateAnimation.java | 167 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/ |
D | RectUtils.java | 59 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/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | CameraAgent.java | 655 public void setDisplayOrientation(final int degrees) { in setDisplayOrientation() argument 656 setDisplayOrientation(degrees, true); in setDisplayOrientation() 669 public void setDisplayOrientation(final int degrees, final boolean capture) { in setDisplayOrientation() argument 674 .obtainMessage(CameraActions.SET_DISPLAY_ORIENTATION, degrees, in setDisplayOrientation() 680 public void setJpegOrientation(final int degrees) { in setJpegOrientation() argument 685 .obtainMessage(CameraActions.SET_JPEG_ORIENTATION, degrees, 0) in setJpegOrientation()
|
/frameworks/av/services/camera/libcameraservice/api1/ |
D | CameraClient.cpp | 978 int CameraClient::getOrientation(int degrees, bool mirror) { in getOrientation() argument 980 if (degrees == 0) return 0; in getOrientation() 981 else if (degrees == 90) return HAL_TRANSFORM_ROT_90; in getOrientation() 982 else if (degrees == 180) return HAL_TRANSFORM_ROT_180; in getOrientation() 983 else if (degrees == 270) return HAL_TRANSFORM_ROT_270; in getOrientation() 985 if (degrees == 0) { // FLIP_H and ROT_0 in getOrientation() 987 } else if (degrees == 90) { // FLIP_H and ROT_90 in getOrientation() 989 } else if (degrees == 180) { // FLIP_H and ROT_180 in getOrientation() 991 } else if (degrees == 270) { // FLIP_H and ROT_270 in getOrientation() 995 ALOGE("Invalid setDisplayOrientation degrees=%d", degrees); in getOrientation()
|
/frameworks/av/media/ndk/ |
D | NdkMediaMuxer.cpp | 76 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer *muxer, int degrees) { in AMediaMuxer_setOrientationHint() argument 77 return translate_error(muxer->mImpl->setOrientationHint(degrees)); in AMediaMuxer_setOrientationHint()
|
/frameworks/base/core/java/android/util/ |
D | MathUtils.java | 119 public static float radians(float degrees) { in radians() argument 120 return degrees * DEG_TO_RAD; in radians() 123 public static float degrees(float radians) { in degrees() method in MathUtils
|
/frameworks/base/location/java/android/location/ |
D | Location.java | 200 int degrees = (int) Math.floor(coordinate); in convert() local 201 sb.append(degrees); in convert() 203 coordinate -= degrees; in convert() 244 String degrees = st.nextToken(); in convert() local 247 val = Double.parseDouble(degrees); in convert() 252 int deg = Integer.parseInt(degrees); in convert()
|
/frameworks/av/include/ndk/ |
D | NdkMediaMuxer.h | 84 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer*, int degrees);
|
/frameworks/av/include/media/stagefright/ |
D | MediaMuxer.h | 80 status_t setOrientationHint(int degrees);
|
/frameworks/base/media/jni/ |
D | android_media_MediaMuxer.cpp | 149 JNIEnv *env, jclass clazz, jlong nativeObject, jint degrees) { in android_media_MediaMuxer_setOrientationHint() argument 156 status_t err = muxer->setOrientationHint(degrees); in android_media_MediaMuxer_setOrientationHint()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
D | ExifInterface.java | 1860 public static short getOrientationValueForRotation(int degrees) { in getOrientationValueForRotation() argument 1861 degrees %= 360; in getOrientationValueForRotation() 1862 if (degrees < 0) { in getOrientationValueForRotation() 1863 degrees += 360; in getOrientationValueForRotation() 1865 if (degrees < 90) { in getOrientationValueForRotation() 1867 } else if (degrees < 180) { in getOrientationValueForRotation() 1869 } else if (degrees < 270) { in getOrientationValueForRotation() 1911 double degrees = coordinate[0].toDouble(); in convertLatOrLongToDouble() local 1914 double result = degrees + minutes / 60.0 + seconds / 3600.0; in convertLatOrLongToDouble() 2033 int degrees = (int) value; in toExifLatLong() local [all …]
|
/frameworks/av/media/libmediaplayerservice/ |
D | StagefrightRecorder.cpp | 381 status_t StagefrightRecorder::setParamVideoRotation(int32_t degrees) { in setParamVideoRotation() argument 382 ALOGV("setParamVideoRotation: %d", degrees); in setParamVideoRotation() 383 if (degrees < 0 || degrees % 90 != 0) { in setParamVideoRotation() 384 ALOGE("Unsupported video rotation angle: %d", degrees); in setParamVideoRotation() 387 mRotationDegrees = degrees % 360; in setParamVideoRotation() 656 int32_t degrees; in setParameter() local 657 if (safe_strtoi32(value.string(), °rees)) { in setParameter() 658 return setParamVideoRotation(degrees); in setParameter()
|