Searched refs:PI (Results 1 - 25 of 63) sorted by relevance

123

/frameworks/base/core/java/android/gesture/
H A DInstance.java30 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 DXMLParser.g439 ((element | reference | CDATA | PI | COMMENT) chardata?)* ;
54 misc : COMMENT | PI | SEA_WS ;
H A DXMLLexer.g492 PI : '?>' -> popMode ; // close <?...?>
/frameworks/base/core/java/android/hardware/
H A DSensorAdditionalInfo.java205 || 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 DTwilightCalculator.java43 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 DAccelerateDecelerateInterpolator.java41 return (float)(Math.cos((input + 1) * Math.PI) / 2.0f) + 0.5f;
H A DCycleInterpolator.java60 return (float)(Math.sin(2 * mCycles * Math.PI * input));
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DSpeedAnglesClassifier.java32 * 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 DAnglesClassifier.java32 * 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 DPoint.java79 angle = 2.0f * (float) Math.PI - angle;
/frameworks/support/wear/src/android/support/wear/widget/
H A DScrollManager.java190 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 DSweepGradient_Delegate.java187 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 DXMLParser.java22 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 DXMLLexer.java22 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 DArcMotionTest.java113 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 DSensorNotificationService.java149 (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 DMatrix2f.java105 rot *= (float)(java.lang.Math.PI / 180.0f);
H A DMatrix3f.java115 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 DRotateFilter.java75 Quad targetQuad = mSourceRect.rotated((float) (mRotateAngle / 180 * Math.PI));
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DMatrix2f.java108 rot *= (float)(java.lang.Math.PI / 180.0f);
H A DMatrix3f.java118 rot *= (float)(java.lang.Math.PI / 180.0f);
155 rot *= (float)(java.lang.Math.PI / 180.0f);
/frameworks/native/opengl/tests/angeles/
H A Ddemo.c39 #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 DLocation.java339 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 DSpotShadow.java434 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 DLVEQNB_CalcCoef.c33 #define PI 3.14159265358979 macro

Completed in 474 milliseconds

123