Searched defs:degrees (Results 1 - 25 of 33) sorted by relevance

12

/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/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/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/graphics/java/android/graphics/
H A DColorMatrix.java144 public void setRotate(int axis, float degrees) { argument
146 double radians = degrees * Math.PI / 180d;
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
853 native_setRotate(long native_object, float degrees, float px, float py) argument
855 native_setRotate(long native_object, float degrees) argument
874 native_preRotate(long native_object, float degrees, float px, float py) argument
876 native_preRotate(long native_object, float degrees) argument
890 native_postRotate(long native_object, float degrees, float px, float py) argument
892 native_postRotate(long native_object, float degrees) argument
[all...]
/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.cpp82 static void setRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px, jfloat py) { argument
84 obj->setRotate(degrees, px, py);
86 static void setRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) { argument
88 obj->setRotate(degrees);
128 static void preRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px, jfloat py) { argument
130 obj->preRotate(degrees, px, py);
133 static void preRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) { argument
135 obj->preRotate(degrees);
169 static void postRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px, jfloat py) { argument
171 obj->postRotate(degrees, p
174 postRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) argument
[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
160 * Returns an interpolated angle in degrees between a set of start and end
169 * @param start the starting angle in degrees
170 * @param end the ending angle in degrees
173 * @return the interpolated angle in degrees
/frameworks/base/media/java/android/media/
H A DMediaMuxer.java105 long nativeObject, int degrees);
167 * @param degrees the angle to be rotated clockwise in degrees.
168 * The supported angles are 0, 90, 180, and 270 degrees.
172 public void setOrientationHint(int degrees) { argument
173 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) {
174 throw new IllegalArgumentException("Unsupported angle: " + degrees);
104 nativeSetOrientationHint( long nativeObject, int degrees) argument
[all...]
H A DMediaRecorder.java533 * @param degrees the angle to be rotated clockwise in degrees.
534 * The supported angles are 0, 90, 180, and 270 degrees.
538 public void setOrientationHint(int degrees) { argument
539 if (degrees != 0 &&
540 degrees != 90 &&
541 degrees != 180 &&
542 degrees != 270) {
543 throw new IllegalArgumentException("Unsupported angle: " + degrees);
545 setParameter("video-param-rotation-angle-degrees
[all...]
/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
/frameworks/base/libs/hwui/
H A DCanvasState.cpp173 void CanvasState::rotate(float degrees) { argument
174 mSnapshot->transform->rotate(degrees, 0.0f, 0.0f, 1.0f);
H A DDisplayListCanvas.cpp150 void DisplayListCanvas::rotate(float degrees) { argument
151 if (degrees == 0.0f) return;
153 addStateOp(new (alloc()) RotateOp(degrees));
154 mState.rotate(degrees);
H A DRecordingCanvas.cpp199 void RecordingCanvas::rotate(float degrees) { argument
200 if (degrees == 0) return;
202 mState.rotate(degrees);
H A DDisplayListOp.h411 RotateOp(float degrees) argument
412 : mDegrees(degrees) {}
419 OP_LOG("Rotate by %f degrees", mDegrees);
H A DSkiaCanvas.cpp98 virtual void rotate(float degrees) override;
437 void SkiaCanvas::rotate(float degrees) { argument
438 mCanvas->rotate(degrees);
/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/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...]
/frameworks/av/services/camera/libcameraservice/api1/
H A DCamera2Client.cpp1571 status_t Camera2Client::commandSetDisplayOrientationL(int degrees) { argument
1572 int transform = Parameters::degToTransform(degrees,
1576 __FUNCTION__, mCameraId, degrees);
H A DCameraClient.cpp1042 int CameraClient::getOrientation(int degrees, bool mirror) { argument
1044 if (degrees == 0) return 0;
1045 else if (degrees == 90) return HAL_TRANSFORM_ROT_90;
1046 else if (degrees == 180) return HAL_TRANSFORM_ROT_180;
1047 else if (degrees == 270) return HAL_TRANSFORM_ROT_270;
1049 if (degrees == 0) { // FLIP_H and ROT_0
1051 } else if (degrees == 90) { // FLIP_H and ROT_90
1053 } else if (degrees == 180) { // FLIP_H and ROT_180
1055 } else if (degrees == 270) { // FLIP_H and ROT_270
1059 ALOGE("Invalid setDisplayOrientation degrees
[all...]
/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/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp407 status_t StagefrightRecorder::setParamVideoRotation(int32_t degrees) { argument
408 ALOGV("setParamVideoRotation: %d", degrees);
409 if (degrees < 0 || degrees % 90 != 0) {
410 ALOGE("Unsupported video rotation angle: %d", degrees);
413 mRotationDegrees = degrees % 360;
685 } else if (key == "video-param-rotation-angle-degrees") {
686 int32_t degrees; local
687 if (safe_strtoi32(value.string(), &degrees)) {
688 return setParamVideoRotation(degrees);
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp2575 int Parameters::degToTransform(int degrees, bool mirror) { argument
2577 if (degrees == 0) return 0;
2578 else if (degrees == 90) return HAL_TRANSFORM_ROT_90;
2579 else if (degrees == 180) return HAL_TRANSFORM_ROT_180;
2580 else if (degrees == 270) return HAL_TRANSFORM_ROT_270;
2582 if (degrees == 0) { // FLIP_H and ROT_0
2584 } else if (degrees == 90) { // FLIP_H and ROT_90
2586 } else if (degrees == 180) { // FLIP_H and ROT_180
2588 } else if (degrees == 270) { // FLIP_H and ROT_270
2592 ALOGE("%s: Bad input: %d", __FUNCTION__, degrees);
[all...]
/frameworks/base/core/java/android/widget/
H A DRadialTimePickerView.java94 // Prepare mapping to snap touchable degrees to selectable degrees.
193 * Split up the 360 degrees of the circle among the 60 selectable values. Assigns a larger
196 * E.g. the output of 30 degrees should have a higher range of input associated with it than
197 * the output of 24 degrees, because 30 degrees corresponds to a visible number on the clock
202 // output will correspond to a range of 14 associated input degrees, and each non-visible
203 // output will correspond to a range of 4 associate input degrees, so visible numbers
207 // If an output of 30 degrees should correspond to a range of 14 associated degrees, the
252 snapPrefer30s(int degrees) argument
268 snapOnly30s(int degrees, int forceHigherOrLower) argument
499 getHourForDegrees(int degrees, boolean innerCircle) argument
558 getMinuteForDegrees(int degrees) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp144 static void rotate(JNIEnv*, jobject, jlong canvasHandle, jfloat degrees) { argument
145 get_canvas(canvasHandle)->rotate(degrees);

Completed in 3007 milliseconds

12