/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
D | RadialPickerLayout.java | 357 for (int degrees = 0; degrees < 361; degrees++) { in preparePrefer30sMap() 359 mSnapPrefer30sMap[degrees] = snappedOutputDegrees; in preparePrefer30sMap() 385 private int snapPrefer30s(int degrees) { in snapPrefer30s() argument 389 return mSnapPrefer30sMap[degrees]; in snapPrefer30s() 401 private static int snapOnly30s(int degrees, int forceHigherOrLower) { in snapOnly30s() argument 403 int floor = (degrees / stepSize) * stepSize; in snapOnly30s() 406 degrees = ceiling; in snapOnly30s() 408 if (degrees == floor) { in snapOnly30s() 411 degrees = floor; in snapOnly30s() 413 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 | 76 public void setRotate(float degrees, float px, float py) { 81 public void setRotate(float degrees) { 130 public boolean preRotate(float degrees, float px, float py) { 136 public boolean preRotate(float degrees) { 178 public boolean postRotate(float degrees, float px, float py) { 184 public boolean postRotate(float degrees) { 342 public void setRotate(float degrees, float px, float py) { in setRotate() argument 343 nSetRotate(native_instance, degrees, px, py); in setRotate() 349 public void setRotate(float degrees) { in setRotate() argument 350 nSetRotate(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 | 249 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/ |
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 | 300 long nativeObject, int degrees); in nativeSetOrientationHint() argument 393 public void setOrientationHint(int degrees) { in setOrientationHint() argument 394 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { in setOrientationHint() 395 throw new IllegalArgumentException("Unsupported angle: " + degrees); in setOrientationHint() 398 nativeSetOrientationHint(mNativeObject, degrees); in setOrientationHint()
|
D | MediaRecorder.java | 661 public void setOrientationHint(int degrees) { in setOrientationHint() argument 662 if (degrees != 0 && in setOrientationHint() 663 degrees != 90 && in setOrientationHint() 664 degrees != 180 && in setOrientationHint() 665 degrees != 270) { in setOrientationHint() 666 throw new IllegalArgumentException("Unsupported angle: " + degrees); in setOrientationHint() 668 setParameter("video-param-rotation-angle-degrees=" + degrees); in setOrientationHint()
|
/frameworks/av/media/libstagefright/ |
D | MediaMuxer.cpp | 105 status_t MediaMuxer::setOrientationHint(int degrees) { in setOrientationHint() argument 112 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { in setOrientationHint() 117 mFileMeta->setInt32(kKeyRotation, degrees); in setOrientationHint()
|
/frameworks/base/core/jni/android/graphics/ |
D | Matrix.cpp | 184 static void setRotate__FFF(jlong objHandle, jfloat degrees, jfloat px, in setRotate__FFF() argument 187 obj->setRotate(degrees, px, py); in setRotate__FFF() 190 static void setRotate__F(jlong objHandle, jfloat degrees) { in setRotate__F() argument 192 obj->setRotate(degrees); in setRotate__F() 241 static void preRotate__FFF(jlong objHandle, jfloat degrees, jfloat px, in preRotate__FFF() argument 244 obj->preRotate(degrees, px, py); in preRotate__FFF() 247 static void preRotate__F(jlong objHandle, jfloat degrees) { in preRotate__F() argument 249 obj->preRotate(degrees); in preRotate__F() 285 static void postRotate__FFF(jlong objHandle, jfloat degrees, jfloat px, in postRotate__FFF() argument 288 obj->postRotate(degrees, px, py); in postRotate__FFF() [all …]
|
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()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Matrix_Delegate.java | 296 /*package*/ static void nSetRotate(long native_object, float degrees, float px, float py) { in nSetRotate() argument 302 d.mValues = getRotate(degrees, px, py); in nSetRotate() 306 /*package*/ static void nSetRotate(long native_object, float degrees) { in nSetRotate() argument 312 setRotate(d.mValues, degrees); in nSetRotate() 417 /*package*/ static void nPreRotate(long native_object, float degrees, in nPreRotate() argument 421 d.preTransform(getRotate(degrees, px, py)); in nPreRotate() 426 /*package*/ static void nPreRotate(long native_object, float degrees) { in nPreRotate() argument 430 double rad = Math.toRadians(degrees); in nPreRotate() 490 /*package*/ static void nPostRotate(long native_object, float degrees, in nPostRotate() argument 494 d.postTransform(getRotate(degrees, px, py)); in nPostRotate() [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/media/ndk/ |
D | NdkMediaMuxer.cpp | 67 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer *muxer, int degrees) { in AMediaMuxer_setOrientationHint() argument 68 return translate_error(muxer->mImpl->setOrientationHint(degrees)); in AMediaMuxer_setOrientationHint()
|
/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/base/packages/CarSystemUI/src/com/android/systemui/statusbar/hvac/ |
D | TemperatureTextAnimator.java | 156 float degrees = isLeft == up ? -ROTATION_DEGREES : ROTATION_DEGREES; in createRotateFadeAnimation() local 159 new RotateAnimation(in ? -degrees : 0f, in ? 0f : degrees, Animation.ABSOLUTE, in createRotateFadeAnimation()
|
/frameworks/av/services/camera/libcameraservice/api1/ |
D | CameraClient.cpp | 1147 int CameraClient::getOrientation(int degrees, bool mirror) { in getOrientation() argument 1149 if (degrees == 0) return 0; in getOrientation() 1150 else if (degrees == 90) return HAL_TRANSFORM_ROT_90; in getOrientation() 1151 else if (degrees == 180) return HAL_TRANSFORM_ROT_180; in getOrientation() 1152 else if (degrees == 270) return HAL_TRANSFORM_ROT_270; in getOrientation() 1154 if (degrees == 0) { // FLIP_H and ROT_0 in getOrientation() 1156 } else if (degrees == 90) { // FLIP_H and ROT_90 in getOrientation() 1158 } else if (degrees == 180) { // FLIP_H and ROT_180 in getOrientation() 1160 } else if (degrees == 270) { // FLIP_H and ROT_270 in getOrientation() 1164 ALOGE("Invalid setDisplayOrientation degrees=%d", degrees); in getOrientation()
|
/frameworks/base/core/java/android/util/ |
D | MathUtils.java | 135 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/location/java/android/location/ |
D | Location.java | 250 int degrees = (int) Math.floor(coordinate); in convert() local 251 sb.append(degrees); in convert() 253 coordinate -= degrees; in convert() 296 String degrees = st.nextToken(); in convert() local 299 val = Double.parseDouble(degrees); in convert() 304 int deg = Integer.parseInt(degrees); in convert()
|
/frameworks/av/media/ndk/include/media/ |
D | NdkMediaMuxer.h | 94 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer*, int degrees) __INTRODUCED_IN(21);
|
/frameworks/base/media/jni/ |
D | android_media_MediaMuxer.cpp | 174 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jint degrees) { in android_media_MediaMuxer_setOrientationHint() argument 181 status_t err = muxer->setOrientationHint(degrees); in android_media_MediaMuxer_setOrientationHint()
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | ExifUtils.cpp | 154 virtual bool setOrientation(uint16_t degrees); 277 ExifLong degrees = static_cast<ExifLong>(num); in setLatitudeOrLongitudeData() local 278 ExifLong minutes = static_cast<ExifLong>(60 * (num - degrees)); in setLatitudeOrLongitudeData() 280 static_cast<ExifLong>(3600000000u * (num - degrees - minutes / 60.0)); in setLatitudeOrLongitudeData() 281 exif_set_rational(data, EXIF_BYTE_ORDER_INTEL, {degrees, 1}); in setLatitudeOrLongitudeData() 637 bool ExifUtilsImpl::setOrientation(uint16_t degrees) { in setOrientation() argument 639 switch (degrees) { in setOrientation()
|