/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 | 144 public void setRotate(int axis, float degrees) { in setRotate() argument 146 double radians = degrees * Math.PI / 180d; in setRotate()
|
/frameworks/base/core/java/android/widget/ |
D | RadialTimePickerView.java | 248 for (int degrees = 0; degrees < 361; degrees++) { in preparePrefer30sMap() 250 SNAP_PREFER_30S_MAP[degrees] = snappedOutputDegrees; in preparePrefer30sMap() 276 private static int snapPrefer30s(int degrees) { in snapPrefer30s() argument 280 return SNAP_PREFER_30S_MAP[degrees]; in snapPrefer30s() 292 private static int snapOnly30s(int degrees, int forceHigherOrLower) { in snapOnly30s() argument 294 int floor = (degrees / stepSize) * stepSize; in snapOnly30s() 297 degrees = ceiling; in snapOnly30s() 299 if (degrees == floor) { in snapOnly30s() 302 degrees = floor; in snapOnly30s() 304 if ((degrees - floor) < (ceiling - degrees)) { in snapOnly30s() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | GetBitmapSurfaceViewActivity.java | 101 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()
|
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/media/java/android/media/ |
D | MediaMuxer.java | 105 long nativeObject, int degrees); in nativeSetOrientationHint() argument 172 public void setOrientationHint(int degrees) { in setOrientationHint() argument 173 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { in setOrientationHint() 174 throw new IllegalArgumentException("Unsupported angle: " + degrees); in setOrientationHint() 177 nativeSetOrientationHint(mNativeObject, degrees); in setOrientationHint()
|
D | MediaRecorder.java | 538 public void setOrientationHint(int degrees) { in setOrientationHint() argument 539 if (degrees != 0 && in setOrientationHint() 540 degrees != 90 && in setOrientationHint() 541 degrees != 180 && in setOrientationHint() 542 degrees != 270) { in setOrientationHint() 543 throw new IllegalArgumentException("Unsupported angle: " + degrees); in setOrientationHint() 545 setParameter("video-param-rotation-angle-degrees=" + degrees); in setOrientationHint()
|
/frameworks/av/media/libstagefright/ |
D | MediaMuxer.cpp | 89 status_t MediaMuxer::setOrientationHint(int degrees) { in setOrientationHint() argument 96 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { in setOrientationHint() 101 mFileMeta->setInt32(kKeyRotation, degrees); in setOrientationHint()
|
/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 | 82 …static void setRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px,… in setRotate__FFF() argument 84 obj->setRotate(degrees, px, py); in setRotate__FFF() 86 static void setRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) { in setRotate__F() argument 88 obj->setRotate(degrees); in setRotate__F() 128 …static void preRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px,… in preRotate__FFF() argument 130 obj->preRotate(degrees, px, py); in preRotate__FFF() 133 static void preRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) { in preRotate__F() argument 135 obj->preRotate(degrees); in preRotate__F() 169 …static void postRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px… in postRotate__FFF() argument 171 obj->postRotate(degrees, px, py); in postRotate__FFF() [all …]
|
/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/tools/orientationplot/ |
D | README.txt | 46 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/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/av/services/camera/libcameraservice/api1/ |
D | CameraClient.cpp | 1042 int CameraClient::getOrientation(int degrees, bool mirror) { in getOrientation() argument 1044 if (degrees == 0) return 0; in getOrientation() 1045 else if (degrees == 90) return HAL_TRANSFORM_ROT_90; in getOrientation() 1046 else if (degrees == 180) return HAL_TRANSFORM_ROT_180; in getOrientation() 1047 else if (degrees == 270) return HAL_TRANSFORM_ROT_270; in getOrientation() 1049 if (degrees == 0) { // FLIP_H and ROT_0 in getOrientation() 1051 } else if (degrees == 90) { // FLIP_H and ROT_90 in getOrientation() 1053 } else if (degrees == 180) { // FLIP_H and ROT_180 in getOrientation() 1055 } else if (degrees == 270) { // FLIP_H and ROT_270 in getOrientation() 1059 ALOGE("Invalid setDisplayOrientation degrees=%d", degrees); in getOrientation()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | CameraAgent.java | 727 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/ |
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 | 127 public static float radians(float degrees) { in radians() argument 128 return degrees * DEG_TO_RAD; in radians() 131 public static float degrees(float radians) { in degrees() method in MathUtils
|
/frameworks/base/location/java/android/location/ |
D | Location.java | 214 int degrees = (int) Math.floor(coordinate); in convert() local 215 sb.append(degrees); in convert() 217 coordinate -= degrees; in convert() 260 String degrees = st.nextToken(); in convert() local 263 val = Double.parseDouble(degrees); in convert() 268 int deg = Integer.parseInt(degrees); in convert()
|
/frameworks/av/include/ndk/ |
D | NdkMediaMuxer.h | 84 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer*, 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/base/docs/html/guide/topics/sensors/ |
D | sensors_position.jd | 271 <strong>Azimuth (degrees of rotation about the -z axis).</strong> This is 274 degrees; if the top edge faces south, the azimuth is 180 degrees. Similarly, 275 if the top edge faces east, the azimuth is 90 degrees, and if the top edge 276 faces west, the azimuth is 270 degrees. 279 <strong>Pitch (degrees of rotation about the x axis).</strong> This is the 285 the pitch angle to become negative. The range of values is -180 degrees to 286 180 degrees. 289 <strong>Roll (degrees of rotation about the y axis).</strong> This is the 295 causes the roll angle to become negative. The range of values is -90 degrees 296 to 90 degrees.
|