/packages/wallpapers/NoiseField/src/com/android/noisefield/ |
D | noisefield.rs | 254 float dist = sqrt(particle->position.x*particle->position.x + 256 if(dist < 0.95) { 257 dist = 0; 258 particle->alphaStart *= (1-dist); 260 dist = dist-0.95; 263 particle->alphaStart *= (1-dist);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | OrientationManager.java | 145 int dist = Math.abs(orientation - orientationHistory); 146 dist = Math.min(dist, 360 - dist); 147 changeOrientation = (dist >= 45 + ORIENTATION_HYSTERESIS);
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | OrientationManagerImpl.java | 234 int dist = Math.abs(newRawOrientation - oldDeviceOrientation.getDegrees()); 235 dist = Math.min(dist, 360 - dist); 236 boolean isOrientationChanged = (dist >= 45 + ORIENTATION_HYSTERESIS);
|
/packages/wallpapers/Galaxy4/res/raw/ |
D | bgstar_vs.glsl | 4 float dist = ATTRIB_position.y * UNI_scaleSize; 7 float x = dist * sin(angle); 8 float y = dist * cos(angle) * 0.8; 9 float p = dist * 7.5;
|
D | spacecloud_vs.glsl | 4 float dist = ATTRIB_position.y / 4.0; 7 float x = dist * sin(angle) * 0.8; 8 float y = dist * cos(angle) * 0.8; 9 float p = dist * 7.5;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InvariantDeviceProfile.java | 240 @Thunk float dist(float x0, float y0, float x1, float y1) { in dist() method in InvariantDeviceProfile 255 return (int) (dist(width, height, a.minWidthDps, a.minHeightDps) in findClosestDeviceProfiles() 256 - dist(width, height, b.minWidthDps, b.minHeightDps)); in findClosestDeviceProfiles() 269 if (dist(width, height, p.minWidthDps, p.minHeightDps) == 0) { in invDistWeightedInterpolate() 297 float d = dist(x0, y0, x1, y1); in weight()
|
D | DragLayer.java | 695 final float dist = (float) Math.hypot(to.left - from.left, to.top - from.top); in animateView() local 702 if (dist < maxDist) { in animateView() 703 duration *= mCubicEaseOutInterpolator.getInterpolation(dist / maxDist); in animateView()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | vignette.rs | 69 float dist = strength * (sqrt(radx * radx + rady * rady) - 1.f); 70 float t = (1.f + dist / sqrt(1.f + dist* dist)) * .5f;
|
D | FilterGradRepresentation.java | 218 double dist = Math.hypot(point.xPos1 - x, point.yPos1 - y); in addBand() local 219 if (dist < addDelta) { in addBand()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | KeyboardView.java | 809 int dist = 0; in getKeyIndices() local 816 && (dist = key.squaredDistanceFrom(x, y)) < mProximityThreshold) in getKeyIndices() 820 if (dist < closestKeyDist) { in getKeyIndices() 821 closestKeyDist = dist; in getKeyIndices() 828 if (mDistances[j] > dist) { in getKeyIndices() 835 mDistances[j + c] = dist; in getKeyIndices() 1486 float dist = pastX[i] - oldestX; in computeCurrentVelocity() local 1487 float vel = (dist/dur) * units; in computeCurrentVelocity() 1491 dist = pastY[i] - oldestY; in computeCurrentVelocity() 1492 vel = (dist/dur) * units; in computeCurrentVelocity()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GradControl.java | 100 float dist = dx * dx + dy * dy; in getCloseHandle() local 101 if (dist < min) { in getCloseHandle() 102 min = dist; in getCloseHandle() 113 float dist = (float) Math.hypot(dx, dy); in getCloseHandle() local
|
D | EclipseControl.java | 83 float dist = dx * dx + dy * dy; in getCloseHandle() local 84 if (dist < min) { in getCloseHandle() 85 min = dist; in getCloseHandle() 96 float dist = (float) Math.sqrt(dx * dx + dy * dy); in getCloseHandle() local
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | MoreKeysDetector.java | 47 final int dist = key.squaredDistanceToEdge(touchX, touchY); in detectHitKey() local 48 if (dist < nearestDist) { in detectHitKey() 50 nearestDist = dist; in detectHitKey()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 364 int dist = Math.abs(orientation - orientationHistory); in roundOrientation() local 365 dist = Math.min( dist, 360 - dist ); in roundOrientation() 366 changeOrientation = ( dist >= 45 + ORIENTATION_HYSTERESIS ); in roundOrientation()
|
/packages/apps/Camera/src/com/android/camera/ |
D | Util.java | 414 int dist = Math.abs(orientation - orientationHistory); in roundOrientation() local 415 dist = Math.min( dist, 360 - dist ); in roundOrientation() 416 changeOrientation = ( dist >= 45 + ORIENTATION_HYSTERESIS ); in roundOrientation()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GridViewSpecial.java | 862 int dist = 0; in getEmptyBlock() local 864 dist = index - mEndRow + 1; in getEmptyBlock() 866 dist = mStartRow - index; in getEmptyBlock() 871 if (dist > bestDistance) { in getEmptyBlock() 872 bestDistance = dist; in getEmptyBlock()
|
D | ViewImage.java | 1252 int dist = Math.abs(pos - e.mPos); 1253 if (dist > maxDist) { 1254 maxDist = dist;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state_utils.cpp | 321 const float dist = proximityInfo->getNormalizedSquaredDistanceFromCenterFloatG(k, x, y, in updateNearKeysDistances() local 323 if (dist < ProximityInfoParams::NEAR_KEY_THRESHOLD_FOR_DISTANCE) { in updateNearKeysDistances() 324 currentNearKeysDistances->insert(std::pair<int, float>(k, dist)); in updateNearKeysDistances() 326 if (nearestKeyDistance > dist) { in updateNearKeysDistances() 327 nearestKeyDistance = dist; in updateNearKeysDistances()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTable.java | 787 final float dist = (float) Math.hypot(delta[0], delta[1]); in fling() local 788 final int duration = (int) (1000f * dist / mThrowSpeed); in fling() 859 float dist = (float) Math.hypot(dx, dy); in dropOnTable() local 860 int duration = (int) (1000f * dist / mThrowSpeed); in dropOnTable()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/ |
D | typing_weighting.h | 138 const float dist = traverseSession->getProximityInfoState(0)->getPointToKeyLength( in getInsertionCost() local 140 const float weightedDistance = dist * ScoringParams::DISTANCE_WEIGHT_LENGTH; in getInsertionCost()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | MigrateFromRestoreTask.java | 494 int dist = ignoreMove ? 0 : local 496 if (dist < newDistance) { 499 newDistance = dist;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DragLayer.java | 572 final float dist = (float) Math.sqrt(Math.pow(to.left - from.left, 2) + in animateView() local 580 if (dist < maxDist) { in animateView() 581 duration *= mCubicEaseOutInterpolator.getInterpolation(dist / maxDist); in animateView()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | GestureStrokeRecognitionPoints.java | 237 final int dist = getDistance(lastX, lastY, x, y); in detectFastMove() local 259 return dist; in detectFastMove()
|
/packages/apps/Browser/src/com/android/browser/ |
D | NavTabScroller.java | 478 float dist, float duration) { in ease() argument 479 return start + dist * inter.getInterpolation(value / duration); in ease()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | FilmstripView.java | 819 int dist = Math.abs(viewX - centerX); in findTheNearestView() local 820 if (dist < min) { in findTheNearestView() 821 min = dist; in findTheNearestView()
|