/frameworks/base/core/java/android/gesture/ |
H A D | Instance.java | 30 0, (float) (Math.PI / 4), (float) (Math.PI / 2), (float) (Math.PI * 3 / 4), 31 (float) Math.PI, -0, (float) (-Math.PI / 4), (float) (-Math.PI / 2), 32 (float) (-Math.PI * 3 / 4), (float) -Math.PI
|
H A D | GestureUtils.java | 422 * @return the distance between 0 and Math.PI 439 * @return the distance between the two instances (between 0 and Math.PI) 452 if (numOrientations > 2 && Math.abs(angle) >= Math.PI / numOrientations) { 460 return (float) Math.PI / 2; 507 angle = (float) -Math.PI/2; 508 } else { // -PI<alpha<PI 534 return new OrientedBoundingBox((float) (angle * 180 / Math.PI), centroid[0], centroid[1], maxx - minx, maxy - miny);
|
/frameworks/data-binding/compilerCommon/ |
H A D | XMLParser.g4 | 39 ((element | reference | CDATA | PI | COMMENT) chardata?)* ; 54 misc : COMMENT | PI | SEA_WS ;
|
H A D | XMLLexer.g4 | 92 PI : '?>' -> popMode ; // close <?...?>
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | TwilightCalculator.java | 30 private static final float DEGREES_TO_RADIANS = (float) (Math.PI / 180.0f); 81 final double solarLng = trueAnomaly + 1.796593063d + Math.PI; 110 float hourAngle = (float) (Math.acos(cosHourAngle) / (2 * Math.PI));
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | TwilightCalculator.java | 43 private static final float DEGREES_TO_RADIANS = (float) (Math.PI / 180.0f); 96 final double solarLng = trueAnomaly + 1.796593063d + Math.PI; 125 float hourAngle = (float) (Math.acos(cosHourAngle) / (2 * Math.PI));
|
/frameworks/base/core/java/android/view/animation/ |
H A D | AccelerateDecelerateInterpolator.java | 41 return (float)(Math.cos((input + 1) * Math.PI) / 2.0f) + 0.5f;
|
H A D | CycleInterpolator.java | 60 return (float)(Math.sin(2 * mCycles * Math.PI * input));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | SpeedAnglesClassifier.java | 32 * angles which value is in [PI - ANGLE_DEVIATION, 2* PI) interval. The reason why the classifier 81 private final float ANGLE_DEVIATION = (float) Math.PI / 10.0f; 95 mPreviousAngle = (float) Math.PI; 124 if (angle >= (float) Math.PI - ANGLE_DEVIATION) {
|
H A D | AnglesClassifier.java | 32 * angle and PI (angles are in radians). It helps with strokes which have few points and punishes 44 * in [0.0, PI - ANGLE_DEVIATION) interval), straight angles 45 * ([PI - ANGLE_DEVIATION, PI + ANGLE_DEVIATION] interval) and right angles 46 * ((PI + ANGLE_DEVIATION, 2 * PI) interval) and then calculates the percentage of angles which are 87 private final float ANGLE_DEVIATION = (float) Math.PI / 20.0f; 108 mPreviousAngle = (float) Math.PI; 133 if (angle < Math.PI - ANGLE_DEVIATION) { 135 } else if (angle <= Math.PI [all...] |
H A D | Point.java | 79 angle = 2.0f * (float) Math.PI - angle;
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | SweepGradient_Delegate.java | 183 angle = (float) (dy < 0 ? 3 * Math.PI / 2 : Math.PI / 2); 185 angle = (float) (dx < 0 ? Math.PI : 0); 190 angle += Math.PI * 2; 193 angle += Math.PI; 198 data[index++] = getGradientColor((float) (angle / (2 * Math.PI)));
|
/frameworks/data-binding/compilerCommon/src/main/xml-gen/android/databinding/parser/ |
H A D | XMLParser.java | 13 DTD=3, Name=16, EQUALS=14, PI=18, S=17, SLASH_CLOSE=12, TEXT=9, COMMENT=1, field in class:XMLParser 18 "STRING", "Name", "S", "PI" 95 while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << COMMENT) | (1L << SEA_WS) | (1L << PI))) != 0)) { 109 while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << COMMENT) | (1L << SEA_WS) | (1L << PI))) != 0)) { 197 public List<? extends TerminalNode> PI() { return getTokens(XMLParser.PI); } method in class:XMLParser.ContentContext 202 public TerminalNode PI(int i) { method in class:XMLParser.ContentContext 203 return getToken(XMLParser.PI, i); 288 case PI: 290 setState(47); match(PI); 579 public TerminalNode PI() { return getToken(XMLParser.PI, 0); } method in class:XMLParser.MiscContext [all...] |
H A D | XMLLexer.java | 14 STRING=15, Name=16, S=17, PI=18; field in class:XMLLexer 30 "PI", "IGNORE"
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Matrix2f.java | 105 rot *= (float)(java.lang.Math.PI / 180.0f);
|
H A D | Matrix3f.java | 115 rot *= (float)(java.lang.Math.PI / 180.0f); 152 rot *= (float)(java.lang.Math.PI / 180.0f);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | RotateFilter.java | 75 Quad targetQuad = mSourceRect.rotated((float) (mRotateAngle / 180 * Math.PI));
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Matrix2f.java | 108 rot *= (float)(java.lang.Math.PI / 180.0f);
|
H A D | Matrix3f.java | 118 rot *= (float)(java.lang.Math.PI / 180.0f); 155 rot *= (float)(java.lang.Math.PI / 180.0f);
|
/frameworks/native/opengl/tests/angeles/ |
H A D | demo.c | 39 #undef PI macro 40 #define PI 3.1415926535897932f macro 230 float t1 = -PI + longitude * 2 * PI / resol1; 231 float t2 = -PI + (longitude + 1) * 2 * PI / resol1; 232 float p1 = -PI / 2 + latitude * 2 * PI / resol2; 233 float p2 = -PI / 2 + (latitude + 1) * 2 * PI / resol [all...] |
/frameworks/base/location/java/android/location/ |
H A D | Location.java | 317 lat1 *= Math.PI / 180.0; 318 lat2 *= Math.PI / 180.0; 319 lon1 *= Math.PI / 180.0; 320 lon2 *= Math.PI / 180.0; 399 initialBearing *= 180.0 / Math.PI; 403 finalBearing *= 180.0 / Math.PI;
|
/frameworks/base/services/core/java/com/android/server/power/ |
H A D | WirelessChargerDetector.java | 93 private static final double MOVEMENT_ANGLE_COS_THRESHOLD = Math.cos(5 * Math.PI / 180); 329 + ", angle=" + (Math.acos(dotProduct / mag1 / mag2) * 180 / Math.PI)
|
/frameworks/av/media/libeffects/lvm/lib/Eq/src/ |
H A D | LVEQNB_CalcCoef.c | 33 #define PI 3.14159265358979 macro
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | ColorMatrix.java | 146 double radians = degrees * Math.PI / 180d;
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | StraightenFilter.java | 51 private static final float DEGREE_TO_RADIAN = (float) Math.PI / 180.0f;
|