Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/app/
DPlatLogoActivity.java119 final float warpFrac = (mStarfield.getWarp() - MIN_WARP) / (MAX_WARP - MIN_WARP);
121 mLogo.setTranslationX(mRandom.nextFloat() * warpFrac * 5 * mDp);
122 mLogo.setTranslationY(mRandom.nextFloat() * warpFrac * 5 * mDp);
124 if (warpFrac > 0f) {
125 mRumble.rumble(warpFrac);
145 final float warpFrac = msg.arg1 / 100f; in handleMessage() local
151 .addPrimitive(PRIMITIVE_SPIN, (float) Math.pow(warpFrac, 3.0)) in handleMessage()
156 if (mRandom.nextFloat() < warpFrac) { in handleMessage()
176 private void rumble(float warpFrac) { in rumble() argument
181 msg.arg1 = (int) (warpFrac * 100); in rumble()