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

/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A DMLand.java397 mFlipped = frand() > 0.5f;
414 boolean showingSun = (mTimeOfDay == DAY || mTimeOfDay == SUNSET) && frand() > 0.25;
419 sun.setTranslationX(frand(w, mWidth-w));
421 sun.setTranslationY(frand(w, (mHeight * 0.66f)));
424 sun.setTranslationY(frand(mHeight * 0.66f, mHeight - w));
433 final float ff = frand();
438 moon.setScaleX(frand() > 0.5 ? -1 : 1);
439 moon.setRotation(moon.getScaleX() * frand(5, 30));
441 moon.setTranslationX(frand(w, mWidth - w));
442 moon.setTranslationY(frand(
641 public static final float frand() { method in class:MLand
645 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.java295 final float which = frand();
348 final float rnd = frand();
465 static float frand() { method in class:DessertCaseView
469 static float frand(float a, float b) { method in class:DessertCaseView
470 return (frand() * (b-a) + a);
474 return (int)(frand(a, b));

Completed in 66 milliseconds