Searched refs:degrees (Results 1 - 25 of 53) sorted by relevance

123

/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DRadialPickerLayout.java125 // Prepare mapping to snap touchable degrees to selectable degrees.
321 * Split up the 360 degrees of the circle among the 60 selectable values. Assigns a larger
324 * E.g. the output of 30 degrees should have a higher range of input associated with it than
325 * the output of 24 degrees, because 30 degrees corresponds to a visible number on the clock
330 // output will correspond to a range of 14 associated input degrees, and each non-visible
331 // output will correspond to a range of 4 associate input degrees, so visible numbers
335 // If an output of 30 degrees should correspond to a range of 14 associated degrees, the
383 snapPrefer30s(int degrees) argument
399 snapOnly30s(int degrees, int forceHigherOrLower) argument
433 reselectSelector(int degrees, boolean isInnerCircle, boolean forceToVisibleValue, boolean forceDrawDot) argument
[all...]
H A DRadialSelectorView.java90 * @param selectionDegrees The initial degrees to be selected.
159 * @param selectionDegrees The degrees to be selected.
163 * drawn. If false, the dot will be drawn only when the degrees is not a multiple of 30, i.e.
254 int degrees = (int) (radians * 180 / Math.PI);
260 degrees = 90 - degrees;
262 degrees = 90 + degrees;
264 degrees = 270 - degrees;
[all...]
/frameworks/av/media/libstagefright/
H A DMediaMuxer.cpp89 status_t MediaMuxer::setOrientationHint(int degrees) { argument
96 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) {
97 ALOGE("setOrientationHint() get invalid degrees");
101 mFileMeta->setInt32(kKeyRotation, degrees);
/frameworks/base/graphics/java/android/graphics/
H A DMatrix.java69 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) {
260 * degrees.
321 * Set the matrix to rotate by the specified number of degrees, with a pivot
325 public void setRotate(float degrees, float px, float py) { argument
326 native_setRotate(native_instance, degrees, p
332 setRotate(float degrees) argument
411 preRotate(float degrees, float px, float py) argument
420 preRotate(float degrees) argument
483 postRotate(float degrees, float px, float py) argument
492 postRotate(float degrees) argument
852 native_setRotate(long native_object, float degrees, float px, float py) argument
854 native_setRotate(long native_object, float degrees) argument
873 native_preRotate(long native_object, float degrees, float px, float py) argument
875 native_preRotate(long native_object, float degrees) argument
889 native_postRotate(long native_object, float degrees, float px, float py) argument
891 native_postRotate(long native_object, float degrees) argument
[all...]
H A DColorMatrix.java144 public void setRotate(int axis, float degrees) { argument
146 double radians = degrees * Math.PI / 180d;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTextureViewActivity.java126 int degrees = 0;
130 degrees = 0;
133 degrees = 90;
136 degrees = 180;
139 degrees = 270;
143 return (info.orientation - degrees + 360) % 360;
/frameworks/av/include/ndk/
H A DNdkMediaMuxer.h66 * Both values are specified in degrees.
81 * The angle is specified in degrees, clockwise.
82 * The supported angles are 0, 90, 180, and 270 degrees.
84 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer*, int degrees);
/frameworks/base/media/java/android/media/
H A DMediaMuxer.java105 long nativeObject, int degrees);
166 * @param degrees the angle to be rotated clockwise in degrees.
167 * The supported angles are 0, 90, 180, and 270 degrees.
169 public void setOrientationHint(int degrees) { argument
170 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) {
171 throw new IllegalArgumentException("Unsupported angle: " + degrees);
104 nativeSetOrientationHint( long nativeObject, int degrees) argument
[all...]
H A DMediaRecorder.java483 * @param degrees the angle to be rotated clockwise in degrees.
484 * The supported angles are 0, 90, 180, and 270 degrees.
488 public void setOrientationHint(int degrees) { argument
489 if (degrees != 0 &&
490 degrees != 90 &&
491 degrees != 180 &&
492 degrees != 270) {
493 throw new IllegalArgumentException("Unsupported angle: " + degrees);
495 setParameter("video-param-rotation-angle-degrees
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DRectUtils.java59 public static void rotateRect(final int degrees, final int px, final int py, final Rect rect) { argument
62 matrix.setRotate(degrees, px, py);
/frameworks/base/core/java/android/widget/
H A DRadialTimePickerView.java101 // Prepare mapping to snap touchable degrees to selectable degrees.
194 * Split up the 360 degrees of the circle among the 60 selectable values. Assigns a larger
197 * E.g. the output of 30 degrees should have a higher range of input associated with it than
198 * the output of 24 degrees, because 30 degrees corresponds to a visible number on the clock
203 // output will correspond to a range of 14 associated input degrees, and each non-visible
204 // output will correspond to a range of 4 associate input degrees, so visible numbers
208 // If an output of 30 degrees should correspond to a range of 14 associated degrees, the
253 snapPrefer30s(int degrees) argument
269 snapOnly30s(int degrees, int forceHigherOrLower) argument
494 getHourForDegrees(int degrees, boolean innerCircle) argument
553 getMinuteForDegrees(int degrees) argument
[all...]
/frameworks/base/core/java/android/view/animation/
H A DRotateAnimation.java167 float degrees = mFromDegrees + ((mToDegrees - mFromDegrees) * interpolatedTime);
171 t.getMatrix().setRotate(degrees);
173 t.getMatrix().setRotate(degrees, mPivotX * scale, mPivotY * scale);
/frameworks/av/media/ndk/
H A DNdkMediaMuxer.cpp76 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer *muxer, int degrees) { argument
77 return translate_error(muxer->mImpl->setOrientationHint(degrees));
/frameworks/base/core/jni/android/graphics/
H A DCamera.cpp41 static void Camera_rotateX(JNIEnv* env, jobject obj, jfloat degrees) { argument
44 v->rotateX(degrees);
47 static void Camera_rotateY(JNIEnv* env, jobject obj, jfloat degrees) { argument
50 v->rotateY(degrees);
53 static void Camera_rotateZ(JNIEnv* env, jobject obj, jfloat degrees) { argument
56 v->rotateZ(degrees);
H A DMatrix.cpp85 static void setRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px, jfloat py) { argument
87 obj->setRotate(degrees, px, py);
89 static void setRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) { argument
91 obj->setRotate(degrees);
131 static void preRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px, jfloat py) { argument
133 obj->preRotate(degrees, px, py);
136 static void preRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) { argument
138 obj->preRotate(degrees);
172 static void postRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px, jfloat py) { argument
174 obj->postRotate(degrees, p
177 postRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DMatrix_Delegate.java290 /*package*/ static void native_setRotate(long native_object, float degrees, float px, float py) { argument
296 d.mValues = getRotate(degrees, px, py);
300 /*package*/ static void native_setRotate(long native_object, float degrees) { argument
306 setRotate(d.mValues, degrees);
411 /*package*/ static void native_preRotate(long native_object, float degrees, argument
415 d.preTransform(getRotate(degrees, px, py));
420 /*package*/ static void native_preRotate(long native_object, float degrees) { argument
424 double rad = Math.toRadians(degrees);
484 /*package*/ static void native_postRotate(long native_object, float degrees, argument
488 d.postTransform(getRotate(degrees, p
493 native_postRotate(long native_object, float degrees) argument
995 getRotate(float degrees) argument
1007 setRotate(float[] dest, float degrees) argument
1028 getRotate(float degrees, float px, float py) argument
[all...]
/frameworks/av/include/media/stagefright/
H A DMediaMuxer.h75 * @param degrees The rotation degrees. It has to be either 0,
79 status_t setOrientationHint(int degrees);
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DCameraAgent.java724 * @param degrees The counterclockwise rotation in degrees, relative to the device's natural
727 public void setDisplayOrientation(final int degrees) { argument
728 setDisplayOrientation(degrees, true);
737 * @param degrees The counterclockwise rotation in degrees, relative to the device's natural
741 public void setDisplayOrientation(final int degrees, final boolean capture) { argument
747 .obtainMessage(CameraActions.SET_DISPLAY_ORIENTATION, degrees,
756 public void setJpegOrientation(final int degrees) { argument
762 .obtainMessage(CameraActions.SET_JPEG_ORIENTATION, degrees,
[all...]
/frameworks/base/core/java/android/util/
H A DMathUtils.java127 public static float radians(float degrees) { argument
128 return degrees * DEG_TO_RAD;
131 public static float degrees(float radians) { method in class:MathUtils
/frameworks/av/services/camera/libcameraservice/api1/
H A DCameraClient.cpp973 int CameraClient::getOrientation(int degrees, bool mirror) { argument
975 if (degrees == 0) return 0;
976 else if (degrees == 90) return HAL_TRANSFORM_ROT_90;
977 else if (degrees == 180) return HAL_TRANSFORM_ROT_180;
978 else if (degrees == 270) return HAL_TRANSFORM_ROT_270;
980 if (degrees == 0) { // FLIP_H and ROT_0
982 } else if (degrees == 90) { // FLIP_H and ROT_90
984 } else if (degrees == 180) { // FLIP_H and ROT_180
986 } else if (degrees == 270) { // FLIP_H and ROT_270
990 ALOGE("Invalid setDisplayOrientation degrees
[all...]
/frameworks/base/location/java/android/location/
H A DLocation.java44 * in the form "[+-]DDD.DDDDD where D indicates degrees.
50 * in the form "[+-]DDD:MM.MMMMM" where D indicates degrees and
57 * in the form "DDD:MM:SS.SSSSS" where D indicates degrees, M
203 int degrees = (int) Math.floor(coordinate);
204 sb.append(degrees);
206 coordinate -= degrees;
249 String degrees = st.nextToken();
252 val = Double.parseDouble(degrees);
257 int deg = Integer.parseInt(degrees);
272 // deg must be in [0, 179] except for the case of -180 degrees
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DAnyMotionDetector.java61 /** Threshold angle in degrees beyond which the device is considered moving. */
330 double degrees = Math.toDegrees(Math.acos(this.dotProduct(other)));
331 float returnValue = (float) degrees;
334 Slog.d(TAG, " degrees = " + degrees + ", returnValue = " + returnValue);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DRotateDrawable.java162 * @param fromDegrees starting angle in degrees
174 * @return starting angle for rotation in degrees
185 * @param toDegrees ending angle in degrees
197 * @return ending angle for rotation in degrees
310 final float degrees = MathUtils.lerp(mState.mFromDegrees, mState.mToDegrees, value);
311 mState.mCurrentDegrees = degrees;
/frameworks/base/libs/hwui/
H A DCanvasState.cpp124 void CanvasState::rotate(float degrees) { argument
125 mSnapshot->transform->rotate(degrees, 0.0f, 0.0f, 1.0f);
/frameworks/base/media/jni/
H A Dandroid_media_MediaMuxer.cpp149 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jint degrees) {
156 status_t err = muxer->setOrientationHint(degrees);
148 android_media_MediaMuxer_setOrientationHint( JNIEnv *env, jclass , jlong nativeObject, jint degrees) argument

Completed in 826 milliseconds

123