Searched refs:frand (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A DMLand.java396 mFlipped = frand() > 0.5f;
413 boolean showingSun = (mTimeOfDay == DAY || mTimeOfDay == SUNSET) && frand() > 0.25;
418 sun.setTranslationX(frand(w, mWidth-w));
420 sun.setTranslationY(frand(w, (mHeight * 0.66f)));
423 sun.setTranslationY(frand(mHeight * 0.66f, mHeight - w));
432 final float ff = frand();
437 moon.setScaleX(frand() > 0.5 ? -1 : 1);
438 moon.setRotation(moon.getScaleX() * frand(5, 30));
440 moon.setTranslationX(frand(w, mWidth - w));
441 moon.setTranslationY(frand(
640 public static final float frand() { method in class:MLand
644 public static final float frand(float a, float b) { method in class:MLand
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DDessertCaseView.java302 final float which = frand();
355 final float rnd = frand();
472 static float frand() { method in class:DessertCaseView
476 static float frand(float a, float b) { method in class:DessertCaseView
477 return (frand() * (b-a) + a);
481 return (int)(frand(a, b));

Completed in 62 milliseconds