/frameworks/base/graphics/java/android/graphics/drawable/ |
RippleForeground.java | 357 final double angle = Math.atan2(dY, dX); local 358 mClampedStartingX = cX + (float) (Math.cos(angle) * r); 359 mClampedStartingY = cY + (float) (Math.sin(angle) * r);
|
/frameworks/base/services/core/java/com/android/server/ |
AnyMotionDetector.java | 91 /** Threshold angle in degrees beyond which the device is considered moving. */ 267 float angle = previousGravityVectorNormalized.angleBetween(currentGravityVectorNormalized); local 268 if (DEBUG) Slog.d(TAG, "getStationaryStatus: angle = " + angle 270 if ((angle < mThresholdAngle) && (mRunningStats.getEnergy() < THRESHOLD_ENERGY)) { 272 } else if (Float.isNaN(angle)) { 274 * Floating point rounding errors have caused the angle calcuation's dot product to 387 * Returns the angle between this 3D vector and another given 3D vector. 391 * @return angle between this vector and the other given one.
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
ViewMatrix.java | 328 double angle = Quaternion.calcAngle(mStartV, mMoveToV);
local 329 if (angle < 0.0001) {
338 mQ.set(angle, axis);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
EclipseControl.java | 272 double angle = Math.PI * i / 180.; local 273 float x = cx + (float) (rx * Math.cos(angle)); 274 float y = cy + (float) (ry * Math.sin(angle)); 290 double angle = Math.PI * i / 180.; local 292 float x = cx + (float) (rx * Math.cos(angle)); 293 float y = cy + (float) (ry * Math.sin(angle));
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
GCWrapper.java | 589 // Compute angle: 592 double angle = Math.atan2(dy, dx); local 595 // Imagine a line of the same length as the arrow, but with angle 0. 602 int rx = (int) (Math.cos(angle) * (ax-x1) - Math.sin(angle) * (ay-y1) + x1); 603 int ry = (int) (Math.sin(angle) * (ax-x1) + Math.cos(angle) * (ay-y1) + y1); 607 rx = (int) (Math.cos(angle) * (ax-x1) - Math.sin(angle) * (ay-y1) + x1); 608 ry = (int) (Math.sin(angle) * (ax-x1) + Math.cos(angle) * (ay-y1) + y1) [all...] |
/cts/tests/sensor/src/android/hardware/cts/ |
SensorManagerStaticTest.java | 156 float angle; local 157 angle = (data.nextFloat()-0.5f) * FLOAT_PI; 158 R = mat9Rot(SensorManager.AXIS_X, -angle); 165 i, angle, angler), 166 angle, angler, 1e-4f); 299 // by rotate local y axis around -x axis by incline angle. However, I matrix is 677 private static float [] mat9Rot(int axis, float angle) { 682 m[4] = m[8] = (float) Math.cos(angle); 683 m[5] = - (m[7] = (float) Math.sin(angle)); 687 m[0] = m[8] = (float) Math.cos(angle); [all...] |
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
PlanetsRenderer.java | 159 float angle = 0.090f * ((int) (currentTime % 4000L)); local 160 Matrix.setRotateM(mMMatrix, 0, angle, 0, 0, 1.0f);
|
/external/ImageMagick/MagickCore/ |
distort.c | 660 a angle of rotation (argument required) 2804 angle; local [all...] |
draw.h | 175 angle; member in struct:_GradientInfo
|
/external/ImageMagick/MagickWand/ |
operation.c | 2922 angle; local [all...] |
/external/ImageMagick/coders/ |
pdf.c | 408 angle; 527 angle=0.0; 543 count=(ssize_t) sscanf(command,"Rotate %lf",&angle); 672 if ((fabs(angle) == 90.0) || (fabs(angle) == 270.0)) 402 angle; local [all...] |
svg.c | 124 angle; 901 svg_info->element.angle= 1088 svg_info->element.angle); 122 angle; member in struct:_ElementInfo 1373 angle; local 1546 angle; local 1989 angle, local 2305 angle; local [all...] |
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
vktTextureMipmapTests.cpp | 241 const float angle = 2.0f*DE_PI * ((float)cellNdx / 16.0f); local 242 const tcu::Mat2 rotMatrix = tcu::rotationMatrix(angle); [all...] |
/external/deqp/modules/gles2/functional/ |
es2fMultisampleTests.cpp | 551 float angle = 2.0f*DE_PI * (float)i / (float)numLines + 0.001f*(float)m_currentIteration; local 552 renderLine(Vec2(0.0f, 0.0f), Vec2(deFloatCos(angle)*0.95f, deFloatSin(angle)*0.95f), Vec4(1.0f)); 659 // \note First and second iteration get exact 0 (and 90, 180, 270) and 45 (and 135, 225, 315) angle quads, as they are kind of a special case. 673 float angle = 0.5f * DE_PI * (float)(m_currentIteration-1) / (float)(m_numIterations-1); local 674 angleCos = deFloatCos(angle); 675 angleSin = deFloatSin(angle); 689 // First four are rotated at angles angle+0, angle+90, angle+180 and angle+270 747 float angle = 0.5f * DE_PI * (float)(m_currentIteration-1) \/ (float)(m_numIterations-1); local 928 float angle = 2.0f * DE_PI * (float)i \/ (float)numPolygons + 0.001f*(float)m_currentIteration; local [all...] |
es2fTextureMipmapTests.cpp | 230 float angle = 2.0f*DE_PI * ((float)cellNdx / 16.0f); local 231 tcu::Mat2 rotMatrix = tcu::rotationMatrix(angle); [all...] |
/external/icu/icu4c/source/i18n/ |
astro.cpp | 219 * Normalize an angle so that it's in the range 0 - 2pi. 220 * For positive angles this is just (angle % 2pi), but the Java 223 inline static double norm2PI(double angle) { 224 return normalize(angle, CalendarAstronomer::PI * 2.0); 228 * Normalize an angle into the range -PI - PI 230 inline static double normPI(double angle) { 231 return normalize(angle + CalendarAstronomer::PI, CalendarAstronomer::PI * 2.0) - CalendarAstronomer::PI; 505 double H = getLocalSidereal()*CalendarAstronomer::PI/12 - equatorial.ascension; // Hour-angle 925 // // where 15 degrees corresponds to one hour. Since LST really is an angle, 1322 double angle = func.eval(*this); local 1386 double angle = ::acos(-tanL * ::tan(pos.declination)); local [all...] |
/external/libopus/src/ |
analysis.c | 322 float * OPUS_RESTRICT A = tonal->angle; 427 float angle, d_angle, d2_angle; local 435 angle = (float)(.5f/M_PI)*fast_atan2f(X1i, X1r); 436 d_angle = angle - A[i]; 440 d_angle2 = angle2 - angle; [all...] |
/external/libxaac/decoder/drc_src/ |
impd_drc_eq.c | 331 WORD32 config, FLOAT32 radius, FLOAT32 angle, 348 zReal = radius * (FLOAT32)cos(M_PI * angle); 349 zImag = radius * (FLOAT32)sin(M_PI * angle); 434 FLOAT32 angle = (FLOAT32)element->zero_sign[i + 1]; local 436 FLOAT32 angle2 = angle; 455 // FLOAT32 angle = 0.0f; 471 FLOAT32 angle = element->generic_zero_angle[i]; local 472 zReal = radius * (FLOAT32)cos(M_PI * angle); 480 zReal = (FLOAT32)cos(M_PI * angle) / radius; 509 FLOAT32 angle = element->complex_pole_angle[i] local [all...] |
/external/opencv/cv/src/ |
cvsurf.cpp | 347 float X[81], Y[81], angle[81]; local 352 CvMat _angle = cvMat(1, 81, CV_32F, angle); 392 int d = abs(cvRound(angle[j]) - i);
|
/external/opencv/cxcore/src/ |
cxmathfuncs.cpp | 102 (const float *__y, const float *__x, float *angle, int len ), (__y, __x, angle, len) ) 107 if( !(y && x && angle && len >= 0) ) 161 angle[i] = z0; 162 angle[i+1] = z1; 163 angle[i+2] = z2; 164 angle[i+3] = z3; 170 angle[i] = cvFastArctan( __y[i], __x[i] ); 332 CvMat anglestub, *angle = (CvMat*)anglearr; local 367 if( angle ) 572 CvMat anglestub, *angle = (CvMat*)anglearr; local [all...] |
/external/python/cpython2/Mac/Modules/cg/ |
_CGmodule.c | 190 float angle; local 192 &angle)) 195 angle); 1071 PyDoc_STR("(float angle) -> None")}, [all...] |
/external/skia/samplecode/ |
SamplePathFuzz.cpp | 197 SkScalar angle; local 198 angle = fRand.nextF(); 199 return angle;
|
/external/skia/tests/ |
PathOpsAngleIdeas.cpp | 108 double angle = (atan2(pt.fY, pt.fX) + SK_ScalarPI) * 8 / (SK_ScalarPI * 2); local 109 REPORTER_ASSERT(reporter, angle >= 0 && angle <= 8); 110 return angle; 137 // straight angle when : v2.x * (dq1.y - q1[0].y) == v2.y * (dq1.x - q1[0].x) 402 double angle = fabs(lowerRange.a2 - lowerRange.a1); local 403 REPORTER_ASSERT(reporter, angle > 3.998 || ccw == upperRange.ccw); 760 // how close is the angle from inflecting in the opposite direction? 768 // straight angle when : v2.x * (dq1.y - q1[0].y) == v2.y * (dq1.x - q1[0].x) [all...] |
PathOpsDebug.cpp | 211 const SkOpAngle* SkPathOpsDebug::DebugAngleAngle(const SkOpAngle* angle, int id) { 212 return angle->debugAngle(id); 215 SkOpContour* SkPathOpsDebug::DebugAngleContour(SkOpAngle* angle, int id) { 216 return angle->debugContour(id); 219 const SkOpPtT* SkPathOpsDebug::DebugAnglePtT(const SkOpAngle* angle, int id) { 220 return angle->debugPtT(id); 223 const SkOpSegment* SkPathOpsDebug::DebugAngleSegment(const SkOpAngle* angle, int id) { 224 return angle->debugSegment(id); 227 const SkOpSpanBase* SkPathOpsDebug::DebugAngleSpan(const SkOpAngle* angle, int id) { 228 return angle->debugSpan(id) 1390 SkOpAngle* angle = span->fromAngle(); local 1400 SkOpAngle* angle = tail->fromAngle(); local [all...] |
/external/skqp/samplecode/ |
SamplePathFuzz.cpp | 197 SkScalar angle; local 198 angle = fRand.nextF(); 199 return angle;
|