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

/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A DLLand.java238 mFlipped = frand() > 0.5f;
256 boolean showingSun = (mTimeOfDay == DAY || mTimeOfDay == SUNSET) && frand() > 0.25;
261 sun.setTranslationX(frand(w, mWidth-w));
263 sun.setTranslationY(frand(w, (mHeight * 0.66f)));
266 sun.setTranslationY(frand(mHeight * 0.66f, mHeight - w));
275 final float ff = frand();
280 moon.setScaleX(frand() > 0.5 ? -1 : 1);
281 moon.setRotation(moon.getScaleX() * frand(5, 30));
283 moon.setTranslationX(frand(w, mWidth - w));
284 moon.setTranslationY(frand(
415 public static final float frand() { method in class:LLand
419 public static final float frand(float a, float b) { method in class:LLand
[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 62 milliseconds