HomeSort by relevance Sort by last modified time
    Searched refs:mNeedlePos (Results 1 - 2 of 2) sorted by null

  /packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis4/
Visualization4RS.java 51 private int mNeedlePos = 0;
233 // mNeedlePos + mSpringForceAtOrigin is for the force of the spring pushing the needle back
234 int netforce = volt - mNeedleSpeed * 3 - (mNeedlePos + mSpringForceAtOrigin) ;
237 mNeedlePos += mNeedleSpeed;
238 if (mNeedlePos < 0) {
239 mNeedlePos = 0;
241 } else if (mNeedlePos > 32767) {
242 if (mNeedlePos > 33333) {
245 mNeedlePos = 32767;
252 mWorldState.mAngle = 131f - (mNeedlePos / 410f); // ~80 degree rang
    [all...]
  /packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/
Visualization5RS.java 53 private int mNeedlePos = 0;
361 // mNeedlePos + mSpringForceAtOrigin is for the force of the spring pushing the needle back
362 int netforce = volt - mNeedleSpeed * 3 - (mNeedlePos + mSpringForceAtOrigin) ;
365 mNeedlePos += mNeedleSpeed;
366 if (mNeedlePos < 0) {
367 mNeedlePos = 0;
369 } else if (mNeedlePos > 32767) {
370 if (mNeedlePos > 33333) {
373 mNeedlePos = 32767;
380 mWorldState.mAngle = 131f - (mNeedlePos / 410f); // ~80 degree rang
    [all...]

Completed in 12 milliseconds