/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 | 222 || declination < 0 || declination > Math.PI 223 || inclination < -Math.PI / 2 || inclination > Math.PI / 2) {
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/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 | AnglesClassifier.java | 35 * angle and PI (angles are in radians). It helps with strokes which have few points and punishes 47 * in [0.0, PI - ANGLE_DEVIATION) interval), straight angles 48 * ([PI - ANGLE_DEVIATION, PI + ANGLE_DEVIATION] interval) and right angles 49 * ((PI + ANGLE_DEVIATION, 2 * PI) interval) and then calculates the percentage of angles which are 95 private final float ANGLE_DEVIATION = (float) Math.PI / 20.0f; 116 mPreviousAngle = (float) Math.PI; 141 if (angle < Math.PI - ANGLE_DEVIATION) { 143 } else if (angle <= Math.PI [all...] |
H A D | SpeedAnglesClassifier.java | 34 * angles which value is in [PI - ANGLE_DEVIATION, 2* PI) interval. The reason why the classifier 87 private final float ANGLE_DEVIATION = (float) Math.PI / 10.0f; 101 mPreviousAngle = (float) Math.PI; 130 if (angle >= (float) Math.PI - ANGLE_DEVIATION) {
|
H A D | Point.java | 79 angle = 2.0f * (float) Math.PI - angle;
|
/frameworks/support/wear/src/main/java/androidx/wear/widget/ |
H A D | ScrollManager.java | 187 if (angleRadians < -Math.PI) { 188 angleRadians = (float) (angleRadians + Math.PI * 2); 190 if (angleRadians > Math.PI) { 191 angleRadians = (float) (angleRadians - Math.PI * 2);
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | SweepGradient_Delegate.java | 188 angle = (float) (dy < 0 ? 3 * Math.PI / 2 : Math.PI / 2); 190 angle = (float) (dx < 0 ? Math.PI : 0); 195 angle += Math.PI * 2; 198 angle += Math.PI; 203 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
H A D | KalmanFilterTest.java | 71 private double mStepSizeRadians = Math.PI / 17.01; 82 phi = phi + Math.PI * .75;
|
/frameworks/support/transition/src/androidTest/java/androidx/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/packages/SystemUI/src/com/android/systemui/charging/ |
H A D | WirelessChargingView.java | 132 double angle = ((mCurrAngleOffset) * Math.PI / 180) + (circle * ((2 * Math.PI)
|
/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;
|