Home
last modified time | relevance | path

Searched refs:angle (Results 1 – 25 of 47) 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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DCompositeCircleViewLabeler.java122 double angle = Math.toRadians(360 - ccv.getPartialCircleCenterAngle(i)); in onLayout() local
123 double x = ccvCenterX + (Math.cos(angle) * labelRadius); in onLayout()
124 double y = ccvCenterY - (Math.sin(angle) * labelRadius); in onLayout()
127 if (angle < (Math.PI * 0.5d)) { in onLayout()
129 } else if (angle < Math.PI) { in onLayout()
132 } else if (angle < (Math.PI * 1.5d)) { in onLayout()
DCompositeCircleView.java165 float angle = mPartialCircleCenterAngles[index]; in spreadPreviousLabelBumps() local
166 angle -= spread; in spreadPreviousLabelBumps()
167 angle += 360; in spreadPreviousLabelBumps()
168 angle %= 360; in spreadPreviousLabelBumps()
169 mPartialCircleCenterAngles[index] = angle; in spreadPreviousLabelBumps()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DOneHandedModeInputConsumer.java171 final float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidStartAngle() local
172 return angle > -(ANGLE_MAX) && angle < -(ANGLE_MIN); in isValidStartAngle()
176 final float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidExitAngle() local
177 return angle > ANGLE_MIN && angle < ANGLE_MAX; in isValidExitAngle()
DAssistantInputConsumer.java258 float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidAssistantGestureAngle() local
262 angle = angle > 90 ? 180 - angle : angle; in isValidAssistantGestureAngle()
263 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/Launcher3/quickstep/src/com/android/quickstep/interaction/
DNavBarGestureHandler.java273 float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidAssistantGestureAngle() local
277 angle = angle > 90 ? 180 - angle : angle; in isValidAssistantGestureAngle()
278 return (angle > mAssistantAngleThreshold && angle < 90); in isValidAssistantGestureAngle()
/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()
/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/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()
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/
DResponderLocation.java604 double angle; in decodeLciLatLng() local
609 angle = Math.scalb((double) fields[offset] - Math.pow(2, bitFieldSizes[offset]), in decodeLciLatLng()
613 angle = Math.scalb((double) fields[offset], -LATLNG_FRACTION_BITS); in decodeLciLatLng()
615 if (angle > limit) { in decodeLciLatLng()
616 angle = limit; in decodeLciLatLng()
617 } else if (angle < -limit) { in decodeLciLatLng()
618 angle = -limit; in decodeLciLatLng()
620 return angle; in decodeLciLatLng()
/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.java230 double angle = t * gamma; in cosSin() local
231 return cosFactor * Math.cos(angle) + sinFactor * Math.sin(angle); in cosSin()
/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/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/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/services/Car/tests/SampleRearViewCamera/src/com/google/android/car/rvc/
DGLES20TriangleRenderer.java72 float angle = 0.090f * ((int) time); in onDrawFrame() local
73 Matrix.setRotateM(mMMatrix, 0, angle, 0, 0, 1.0f); in onDrawFrame()
/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()

12