Home
last modified time | relevance | path

Searched refs:angle (Results 1 – 9 of 9) sorted by relevance

/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
DPolarClockWallpaper.java495 float angle; in drawFrame() local
501 angle = (float) (millis % 60000) / 60000.0f; in drawFrame()
503 paint.setColor(mPalette.getSecondColor(angle)); in drawFrame()
509 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint); in drawFrame()
516 angle = ((calendar.minute * 60.0f + calendar.second) % 3600) / 3600.0f; in drawFrame()
517 paint.setColor(mPalette.getMinuteColor(angle)); in drawFrame()
523 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint); in drawFrame()
529 angle = ((calendar.hour * 60.0f + calendar.minute) % 1440) / 1440.0f; in drawFrame()
530 paint.setColor(mPalette.getHourColor(angle)); in drawFrame()
536 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint); in drawFrame()
[all …]
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DVUMeter.java62 float angle = minAngle; in onDraw() local
64 angle += (float)(maxAngle - minAngle)*mRecorder.getMaxAmplitude()/32768; in onDraw()
66 if (angle > mCurrentAngle) in onDraw()
67 mCurrentAngle = angle; in onDraw()
69 mCurrentAngle = Math.max(angle, mCurrentAngle - DROPOFF_STEP); in onDraw()
/packages/apps/Phone/src/com/android/phone/
DAccelerometerListener.java125 double angle = Math.atan2(xy, z); in onSensorEvent() local
127 angle = angle * 180.0 / Math.PI; in onSensorEvent()
128 int orientation = (angle > VERTICAL_ANGLE ? ORIENTATION_VERTICAL : ORIENTATION_HORIZONTAL); in onSensorEvent()
129 if (VDEBUG) Log.d(TAG, "angle: " + angle + " orientation: " + orientation); in onSensorEvent()
/packages/wallpapers/Basic/res/raw/
Dgrass.rs93 float angle = bladeStruct->angle;
101 angle = clampf(angle + (newAngle + bladeStruct->offset - angle) * 0.15f, -MAX_BEND, MAX_BEND);
108 float d = angle * bladeStruct->hardness;
161 bladeStruct->angle = angle;
Dgalaxy.rs27 float angle;
33 angle = 50.0f;
100 angle = 0.0f;
146 float a = offset * angle;
Dfall.rs43 float angle;
80 leaf->angle = randf2(0.0f, 360.0f);
148 float r = leaf->angle;
217 leaf->angle = r;
222 leaf->angle = r;
Ddistort.rs81 leaf->angle = randf2(0.0f, 360.0f);
314 float r = leaf->angle;
381 leaf->angle = r;
386 leaf->angle = r;
/packages/apps/Gallery3D/src/com/cooliris/media/
DMatrixStack.java123 public void glRotatef(float angle, float x, float y, float z) { in glRotatef() argument
124 Matrix.setRotateM(mTemp, 0, angle, x, y, z); in glRotatef()
129 public void glRotatex(int angle, int x, int y, int z) { in glRotatex() argument
130 glRotatef(angle, fixedToFloat(x), fixedToFloat(y), fixedToFloat(z)); in glRotatex()
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
DGrassRS.java67 public float angle; field in GrassRS.BladesStruct
332 blades.angle = 0.0f; in createBlade()