Home
last modified time | relevance | path

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

12

/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DDistanceMeasurementResult.java443 public Builder setAzimuthAngle(@FloatRange(from = 0.0, to = 360.0) double angle) { in setAzimuthAngle()
444 if (angle > 360.0 || angle < 0.0) { in setAzimuthAngle()
446 "angle must be in the range from 0.0 to 360.0 : " + angle); in setAzimuthAngle()
448 mAzimuthAngle = angle; in setAzimuthAngle()
461 public Builder setErrorAzimuthAngle(@FloatRange(from = 0.0, to = 360.0) double angle) { in setErrorAzimuthAngle()
462 if (angle > 360.0 || angle < 0.0) { in setErrorAzimuthAngle()
464 "error angle must be in the range from 0.0 to 360.0 : " + angle); in setErrorAzimuthAngle()
466 mErrorAzimuthAngle = angle; in setErrorAzimuthAngle()
479 public Builder setAltitudeAngle(@FloatRange(from = -90.0, to = 90.0) double angle) { in setAltitudeAngle()
480 if (angle > 90.0 || angle < -90.0) { in setAltitudeAngle()
[all …]
/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/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/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/
DCompositeCircleViewLabeler.java124 double angle = Math.toRadians(360 - ccv.getPartialCircleCenterAngle(i)); in onLayout() local
125 double x = ccvCenterX + (Math.cos(angle) * labelRadius); in onLayout()
126 double y = ccvCenterY - (Math.sin(angle) * labelRadius); in onLayout()
129 if (angle < (Math.PI * 0.5d)) { in onLayout()
131 } else if (angle < Math.PI) { in onLayout()
134 } else if (angle < (Math.PI * 1.5d)) { in onLayout()
DCompositeCircleView.java177 float angle = mPartialCircleCenterAngles[index]; in spreadPreviousLabelBumps() local
178 angle -= spread; in spreadPreviousLabelBumps()
179 angle += 360; in spreadPreviousLabelBumps()
180 angle %= 360; in spreadPreviousLabelBumps()
181 mPartialCircleCenterAngles[index] = angle; in spreadPreviousLabelBumps()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DOneHandedModeInputConsumer.java170 final float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidStartAngle() local
171 return angle > -(ANGLE_MAX) && angle < -(ANGLE_MIN); in isValidStartAngle()
175 final float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidExitAngle() local
176 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/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/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/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/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/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/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/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/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/modules/Wifi/framework/java/android/net/wifi/rtt/
DResponderLocation.java607 double angle; in decodeLciLatLng() local
612 angle = Math.scalb((double) fields[offset] - Math.pow(2, bitFieldSizes[offset]), in decodeLciLatLng()
616 angle = Math.scalb((double) fields[offset], -LATLNG_FRACTION_BITS); in decodeLciLatLng()
618 if (angle > limit) { in decodeLciLatLng()
619 angle = limit; in decodeLciLatLng()
620 } else if (angle < -limit) { in decodeLciLatLng()
621 angle = -limit; in decodeLciLatLng()
623 return angle; in decodeLciLatLng()
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DReorderPreviewAnimation.kt96 val angle = atan((dY.toFloat() / dX)) constant
97 finalDeltaX = (-dir * sign(dX.toFloat()) * abs(cos(angle) * reorderMagnitude))
98 finalDeltaY = (-dir * sign(dY.toFloat()) * abs(sin(angle) * reorderMagnitude))
/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/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/
DVector3Test.java60 float angle = Vector3.angleBetweenVectors(v1, v2); in testAngleBetweenVectors() local
61 assertEquals(F_HALF_PI, angle, TOLERANCE); in testAngleBetweenVectors()
/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/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()

12