Home
last modified time | relevance | path

Searched refs:angle (Results 1 – 25 of 41) sorted by relevance

12

/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DAnglesClassifier.java132 float angle = in addPoint() local
136 if (angle < Math.PI - ANGLE_DEVIATION) { in addPoint()
138 } else if (angle <= Math.PI + ANGLE_DEVIATION) { in addPoint()
144 float difference = angle - previousAngle; in addPoint()
149 if (biggestAngle < angle) { in addPoint()
150 biggestAngle = angle; in addPoint()
165 previousAngle = angle; in addPoint()
DPoint.java89 float angle = (float) Math.acos(cos); in getAngle() local
91 angle = 2.0f * (float) Math.PI - angle; in getAngle()
93 return angle; in getAngle()
DSpeedAnglesClassifier.java119 float angle = in addPoint() local
123 if (angle >= (float) Math.PI - ANGLE_DEVIATION) { in addPoint()
127 float difference = angle - previousAngle; in addPoint()
131 previousAngle = angle; in addPoint()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieRenderer.java286 float angle = centerAngle - PIE_SWEEP / 2 + emptyangle + sweep / 2; in layoutItems() local
302 angle = item.getCenter(); in layoutItems()
308 int x = (int) (r * Math.cos(angle)); in layoutItems()
309 int y = mCenter.y - (int) (r * Math.sin(angle)) - h / 2; in layoutItems()
312 float itemstart = angle - sweep / 2; in layoutItems()
315 layoutItems(item.getItems(), angle, inner, in layoutItems() local
318 angle += sweep; in layoutItems()
341 private float getDegrees(double angle) { in getDegrees() argument
342 return (float) (360 - 180 * angle / Math.PI); in getDegrees()
667 private void drawLine(Canvas canvas, int angle, Paint p) { in drawLine() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieRenderer.java287 float angle = centerAngle - PIE_SWEEP / 2 + emptyangle + sweep / 2; in layoutItems() local
302 angle = item.getCenter(); in layoutItems()
308 int x = (int) (r * Math.cos(angle)); in layoutItems()
309 int y = center.y - (int) (r * Math.sin(angle)) - h / 2; in layoutItems()
312 float itemstart = angle - sweep / 2; in layoutItems()
315 layoutItems(item.getItems(), angle, inner, outer + radiusInc / 2, gap); in layoutItems() local
317 angle += sweep; in layoutItems()
337 private float getDegrees(double angle) { in getDegrees() argument
338 return (float) (360 - 180 * angle / Math.PI); in getDegrees()
668 private void drawLine(Canvas canvas, int angle, Paint p) { in drawLine() argument
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/
DAssistantTouchConsumer.java266 float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidAssistantGestureAngle() local
267 mDirection = angle > 90 ? UPLEFT : UPRIGHT; in isValidAssistantGestureAngle()
271 angle = angle > 90 ? 180 - angle : angle; in isValidAssistantGestureAngle()
272 return (angle > mAngleThreshold && angle < 90); in isValidAssistantGestureAngle()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControlWheel.java95 double angle = Math.atan2(dy, dx); in dispatchTouchEvent() local
96 if (angle < 0) angle += (2 * Math.PI); in dispatchTouchEvent()
97 mSliderRadians = getSliderDrawAngle(angle); in dispatchTouchEvent()
181 public void rotate(double angle) { in rotate() argument
182 mRotateAngle = angle; in rotate()
/packages/apps/Dialer/java/com/android/incallui/
DAccelerometerListener.java157 double angle = Math.atan2(xy, z); in onSensorEvent() local
159 angle = angle * 180.0 / Math.PI; in onSensorEvent()
161 (angle > VERTICAL_ANGLE ? ORIENTATION_VERTICAL : ORIENTATION_HORIZONTAL); in onSensorEvent()
163 LogUtil.d(TAG, "angle: " + angle + " orientation: " + orientation); in onSensorEvent()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorRemoteVideo.java69 private double angle; field in SimulatorRemoteVideo.Renderer
118 angle = Math.PI / 4.0; in moveCircle()
121 circleX += (float) Math.cos(angle) * CIRCLE_STEP; in moveCircle()
122 circleY += (float) Math.sin(angle) * CIRCLE_STEP; in moveCircle()
128 angle += Math.PI / 2.0; in moveCircle()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropMath.java161 float angle = getUnrotated(rotatedRect, center, unrotated); in pointInRotatedRect() local
162 return pointInRotatedRect(point, unrotated, angle); in pointInRotatedRect()
251 float angle = (float) (Math.atan(dy / dx) * 180 / Math.PI); in getUnrotated() local
253 m.setRotate(-angle, center[0], center[1]); in getUnrotated()
257 return angle; in getUnrotated()
DCropObject.java85 public void rotateOuter(int angle) { in rotateOuter() argument
86 mRotation = angle % 360; in rotateOuter()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DEclipseControl.java272 double angle = Math.PI * i / 180.; in paintOvallines() local
273 float x = cx + (float) (rx * Math.cos(angle)); in paintOvallines()
274 float y = cy + (float) (ry * Math.sin(angle)); in paintOvallines()
290 double angle = Math.PI * i / 180.; in fillHandles() local
292 float x = cx + (float) (rx * Math.cos(angle)); in fillHandles()
293 float y = cy + (float) (ry * Math.sin(angle)); in fillHandles()
DGeometryMathUtils.java343 float angle = holder.straighten; in getPartialToScreenMatrix() local
346 ImageStraighten.getUntranslatedStraightenCropBounds(rCrop, angle); in getPartialToScreenMatrix()
364 compensation.postRotate(angle, cx, cy); in getPartialToScreenMatrix()
DImageStraighten.java179 float angle = getCurrentTouchAngle(); in computeValue() local
180 mAngle = (mBaseAngle - angle) % 360; in computeValue()
/packages/apps/Gallery2/jni/filters/
Dtinyplanet.cc91 void StereographicProjection(float scale, float angle, unsigned char* input_image, in StereographicProjection() argument
110 float theta = angle+atan2(yf, xf); in StereographicProjection()
132 …itmap_in, jint width, jint height, jobject bitmap_out, jint output_size, jfloat scale,jfloat angle) in JNIFUNCF() argument
141 StereographicProjection(scale,angle, rgb_in, width, height, rgb_out, output_size, output_size); in JNIFUNCF()
/packages/apps/Camera2/jni/
Dtinyplanet.cc92 void StereographicProjection(float scale, float angle, unsigned char* input_image, in StereographicProjection() argument
111 float theta = angle+atan2(yf, xf); in StereographicProjection()
135 jint output_size, jfloat scale, jfloat angle) in Java_com_android_camera_tinyplanet_TinyPlanetNative_process() argument
144 StereographicProjection(scale, angle, rgb_in, width, height, rgb_out, output_size, output_size); in Java_com_android_camera_tinyplanet_TinyPlanetNative_process()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DRoundedLine.java80 final float angle = (float)(aa * RADIAN_TO_DEGREE); in makePath() local
93 mPath.arcTo(mArc1, angle, a1); in makePath()
96 mPath.arcTo(mArc2, angle, a2); in makePath()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DSpringAnimationBuilder.java226 double angle = t * gamma; in cosSin() local
227 return cosFactor * Math.cos(angle) + sinFactor * Math.sin(angle); in cosSin()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java359 public View moveFocus(View focus, float direction, float angle) { in moveFocus() argument
366 final double beta = Math.toRadians(Math.min(angle, 180f) / 2f); in moveFocus()
389 if (angle < 180f) { in moveFocus()
840 float angle = randfrange(-mImageRotationLimit, mImageRotationLimit); in dropOnTable() local
870 .rotation(angle) in dropOnTable()
917 private float wrapAngle(float angle) { in wrapAngle() argument
918 float result = angle + 180; in wrapAngle()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterTinyPlanetRepresentation.java61 public void setAngle(float angle) { in setAngle() argument
62 mAngle = angle; in setAngle()
/packages/apps/Contacts/src/com/android/contacts/util/
DBitmapUtil.java101 android.content.res.Resources resources, int resourceId, float angle) { in getRotatedDrawable() argument
110 tempCanvas.rotate(angle, original.getWidth()/2, original.getHeight()/2); in getRotatedDrawable()
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java270 public void rotate(float angle, float x, float y, float z) { in rotate() argument
271 if (angle == 0f) { in rotate()
275 Matrix.setRotateM(temp, 0, angle, x, y, z); in rotate()
DGLCanvas.java44 public abstract void rotate(float angle, float x, float y, float z); in rotate() argument
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
DTinyPlanetFragment.java419 private void onAngleChange(int angle) { in onAngleChange() argument
420 mCurrentAngle = (float) Math.toRadians(angle); in onAngleChange()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLCanvas.java62 public abstract void rotate(float angle, float x, float y, float z); in rotate() argument

12