Home
last modified time | relevance | path

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

1234

/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DRadialPickerLayout.java357 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 …]
DRadialSelectorView.java254 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/
DMatrix.java76 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 …]
DColorMatrix.java144 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/
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.java300 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()
DMediaRecorder.java661 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/
DMediaMuxer.cpp105 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/
DMatrix.cpp184 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 …]
DCamera.cpp41 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/
DMatrix_Delegate.java296 /*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/
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/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/av/media/ndk/
DNdkMediaMuxer.cpp67 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/
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/base/packages/CarSystemUI/src/com/android/systemui/statusbar/hvac/
DTemperatureTextAnimator.java156 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/
DCameraClient.cpp1147 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/
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/location/java/android/location/
DLocation.java250 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/
DNdkMediaMuxer.h94 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer*, int degrees) __INTRODUCED_IN(21);
/frameworks/base/media/jni/
Dandroid_media_MediaMuxer.cpp174 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/
DExifUtils.cpp154 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()

1234