/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
|
/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/core/java/android/hardware/ |
H A D | SensorAdditionalInfo.java | 205 || declination < 0 || declination > Math.PI 206 || inclination < -Math.PI / 2 || inclination > Math.PI / 2) {
|
/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); 99 final double solarLng = trueAnomaly + 1.796593063d + Math.PI; 128 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/support/wear/src/android/support/wear/widget/ |
H A D | ScrollManager.java | 190 if (angleRadians < -Math.PI) { 191 angleRadians = (float) (angleRadians + Math.PI * 2); 193 if (angleRadians > Math.PI) { 194 angleRadians = (float) (angleRadians - Math.PI * 2);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | SweepGradient_Delegate.java | 187 angle = (float) (dy < 0 ? 3 * Math.PI / 2 : Math.PI / 2); 189 angle = (float) (dx < 0 ? Math.PI : 0); 194 angle += Math.PI * 2; 197 angle += Math.PI; 202 data[index++] = getGradientColor((float) (angle / (2 * Math.PI)));
|
/frameworks/data-binding/compilerCommon/src/main/xml-gen/android/databinding/parser/ |
H A D | XMLParser.java | 22 STRING=15, Name=16, S=17, PI=18; field in class:XMLParser 38 "EQUALS", "STRING", "Name", "S", "PI" 140 while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << COMMENT) | (1L << SEA_WS) | (1L << PI))) != 0)) { 156 while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << COMMENT) | (1L << SEA_WS) | (1L << PI))) != 0)) { 269 public List<TerminalNode> PI() { return getTokens(XMLParser.PI); } method in class:XMLParser.ContentContext 270 public TerminalNode PI(int i) { method in class:XMLParser.ContentContext 271 return getToken(XMLParser.PI, i); 341 case PI: 344 match(PI); 649 public TerminalNode PI() { return getToken(XMLParser.PI, 0); } method in class:XMLParser.MiscContext [all...] |
H A D | XMLLexer.java | 22 STRING=15, Name=16, S=17, PI=18; field in class:XMLLexer 33 "PI", "IGNORE" 43 "EQUALS", "STRING", "Name", "S", "PI"
|
/frameworks/support/transition/tests/src/android/support/transition/ |
H A D | ArcMotionTest.java | 113 float ratio = (float) Math.tan(Math.PI / 8); 129 float ey = (float) (Math.tan(Math.PI / 4) * 50); 146 ey = (float) (Math.tan(Math.PI / 4) * 62.5f); 185 ex = (float) (Math.tan(Math.PI / 4) * 37.5f);
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | SensorNotificationService.java | 149 (float)(field.getDeclination() * Math.PI / 180), // from degree to rad 150 (float)(field.getInclination() * Math.PI / 180)); // from degree to rad
|
/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/rs/support/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 | 339 lat1 *= Math.PI / 180.0; 340 lat2 *= Math.PI / 180.0; 341 lon1 *= Math.PI / 180.0; 342 lon2 *= Math.PI / 180.0; 421 initialBearing *= 180.0 / Math.PI; 425 finalBearing *= 180.0 / Math.PI;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/shadowutil/ |
H A D | SpotShadow.java | 434 double angle = 2 * i * Math.PI / points; 548 double step = Math.PI * 2 / rays; 558 float dx = (float) Math.cos(Math.PI / 4 + step * i); 559 float dy = (float) Math.sin(Math.PI / 4 + step * i); 569 float dx = (float) Math.cos(Math.PI / 4 + step * i); 570 float dy = (float) Math.sin(Math.PI / 4 + step * i); 608 float dx = (float) Math.cos(Math.PI / 4 + step * i); 609 float dy = (float) Math.sin(Math.PI / 4 + step * i);
|
/frameworks/av/media/libeffects/lvm/lib/Eq/src/ |
H A D | LVEQNB_CalcCoef.c | 33 #define PI 3.14159265358979 macro
|