/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
D | AnglesClassifier.java | 132 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()
|
D | Point.java | 89 float angle = (float) Math.acos(cos); in getAngle() local 91 angle = 2.0f * (float) Math.PI - angle; in getAngle() 93 return angle; in getAngle()
|
D | SpeedAnglesClassifier.java | 119 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/ |
D | PieRenderer.java | 286 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/ |
D | PieRenderer.java | 287 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/ |
D | AssistantTouchConsumer.java | 266 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/ |
D | ZoomControlWheel.java | 95 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/ |
D | AccelerometerListener.java | 157 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/ |
D | SimulatorRemoteVideo.java | 69 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/ |
D | CropMath.java | 161 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()
|
D | CropObject.java | 85 public void rotateOuter(int angle) { in rotateOuter() argument 86 mRotation = angle % 360; in rotateOuter()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | EclipseControl.java | 272 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()
|
D | GeometryMathUtils.java | 343 float angle = holder.straighten; in getPartialToScreenMatrix() local 346 ImageStraighten.getUntranslatedStraightenCropBounds(rCrop, angle); in getPartialToScreenMatrix() 364 compensation.postRotate(angle, cx, cy); in getPartialToScreenMatrix()
|
D | ImageStraighten.java | 179 float angle = getCurrentTouchAngle(); in computeValue() local 180 mAngle = (mBaseAngle - angle) % 360; in computeValue()
|
/packages/apps/Gallery2/jni/filters/ |
D | tinyplanet.cc | 91 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/ |
D | tinyplanet.cc | 92 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/ |
D | RoundedLine.java | 80 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/ |
D | SpringAnimationBuilder.java | 226 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/ |
D | PhotoTable.java | 359 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/ |
D | FilterTinyPlanetRepresentation.java | 61 public void setAngle(float angle) { in setAngle() argument 62 mAngle = angle; in setAngle()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | BitmapUtil.java | 101 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/ |
D | GLES20Canvas.java | 270 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()
|
D | GLCanvas.java | 44 public abstract void rotate(float angle, float x, float y, float z); in rotate() argument
|
/packages/apps/Camera2/src/com/android/camera/tinyplanet/ |
D | TinyPlanetFragment.java | 419 private void onAngleChange(int angle) { in onAngleChange() argument 420 mCurrentAngle = (float) Math.toRadians(angle); in onAngleChange()
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | GLCanvas.java | 62 public abstract void rotate(float angle, float x, float y, float z); in rotate() argument
|