/frameworks/base/core/java/android/transition/ |
H A D | CircularPropagation.java | 23 * A propagation that varies with the distance to the epicenter of the Transition 88 double distance = distance(viewCenterX, viewCenterY, epicenterX, epicenterY); 89 double maxDistance = distance(0, 0, sceneRoot.getWidth(), sceneRoot.getHeight()); 90 double distanceFraction = distance/maxDistance; 100 private static double distance(float x1, float y1, float x2, float y2) { method in class:CircularPropagation
|
H A D | SidePropagation.java | 25 * A <code>TransitionPropagation</code> that propagates based on the distance to the side 26 * and, orthogonally, the distance to epicenter. If the transitioning View is visible in 108 float distance = distance(sceneRoot, viewCenterX, viewCenterY, epicenterX, epicenterY, 111 float distanceFraction = distance/maxDistance; 121 private int distance(View sceneRoot, int viewX, int viewY, int epicenterX, int epicenterY, method in class:SidePropagation 133 int distance = 0; 136 distance = right - viewX + Math.abs(epicenterY - viewY); 139 distance = bottom - viewY + Math.abs(epicenterX - viewX); 142 distance [all...] |
/frameworks/support/transition/src/android/support/transition/ |
H A D | CircularPropagation.java | 24 * A propagation that varies with the distance to the epicenter of the Transition 88 float distance = distance(viewCenterX, viewCenterY, epicenterX, epicenterY); 89 float maxDistance = distance(0, 0, sceneRoot.getWidth(), sceneRoot.getHeight()); 90 float distanceFraction = distance / maxDistance; 100 private static float distance(float x1, float y1, float x2, float y2) { method in class:CircularPropagation
|
H A D | PatternPathMotion.java | 120 float distance = distance(dx, dy); 121 float scale = 1 / distance; 133 float length = distance(dx, dy); 144 private static float distance(float x, float y) { method in class:PatternPathMotion
|
H A D | SidePropagation.java | 26 * A <code>TransitionPropagation</code> that propagates based on the distance to the side 27 * and, orthogonally, the distance to epicenter. If the transitioning View is visible in 108 float distance = distance(sceneRoot, viewCenterX, viewCenterY, epicenterX, epicenterY, 111 float distanceFraction = distance / maxDistance; 121 private int distance(View sceneRoot, int viewX, int viewY, int epicenterX, int epicenterY, method in class:SidePropagation 135 int distance = 0; 138 distance = right - viewX + Math.abs(epicenterY - viewY); 141 distance = bottom - viewY + Math.abs(epicenterX - viewX); 144 distance [all...] |
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | PathMeasure_Delegate.java | 80 /*package*/ static boolean native_getPosTan(long native_instance, float distance, float pos[], argument 88 /*package*/ static boolean native_getMatrix(long native_instance, float distance, long argument
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
H A D | TouchUtils.java | 227 int distance = (int) Math.sqrt(deltaX * deltaX + deltaY * deltaY); 228 drag(inst, fromX, toX, fromY, toY, calculateStepsForDistance(distance)); 230 return distance; 292 private static int calculateStepsForDistance(int distance) { argument 293 return 1 + Math.abs(distance) / 10;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | PathMeasure.java | 76 * Pins distance to 0 <= distance <= getLength(), and then computes the 81 * @param distance The distance along the current contour to sample 86 public boolean getPosTan(float distance, float pos[], float tan[]) { argument 91 return native_getPosTan(native_instance, distance, pos, tan); 98 * Pins distance to 0 <= distance <= getLength(), and then computes the 102 * @param distance The distance alon 107 getMatrix(float distance, Matrix matrix, int flags) argument 163 native_getPosTan(long native_instance, float distance, float pos[], float tan[]) argument 164 native_getMatrix(long native_instance, float distance, long native_matrix, int flags) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NearestTouchFrame.java | 98 return mClickableChildren.stream().map(v -> new Pair<>(distance(v, event), v)) 102 private int distance(View v, MotionEvent event) { method in class:NearestTouchFrame
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | GestureUtils.java | 27 int timeout, int distance, int actionIndex) { 32 if (deltaMove >= distance) { 26 eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, int timeout, int distance, int actionIndex) argument
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ |
H A D | GridTest.java | 73 void scroll(int distance) { argument 75 mEdges[i] -= distance;
|
/frameworks/wilhelm/src/itf/ |
H A D | I3DLocation.cpp | 43 SLmillidegree azimuth, SLmillidegree elevation, SLmillimeter distance) 49 (0 <= distance) && (distance <= SL_MILLIMETER_MAX))) { 56 thiz->mLocationSpherical.mDistance = distance; 42 I3DLocation_SetLocationSpherical(SL3DLocationItf self, SLmillidegree azimuth, SLmillidegree elevation, SLmillimeter distance) argument
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | qpisf_2s.c | 66 Word32 i, k, temp, min_err, distance; local 78 distance = MAX_32; 93 if(temp < distance) 95 distance = temp; 107 distance = MAX_32; 121 if(temp < distance) 123 distance = temp; 156 Word32 temp, min_err, distance; local 168 distance = MAX_32; 182 if(temp < distance) [all...] |
/frameworks/base/libs/hwui/ |
H A D | GradientCache.cpp | 240 float distance = positions[1] - startPos; local 252 distance = positions[currentPos] - startPos; 255 float amount = (pos - startPos) / distance;
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | LocationFudger.java | 128 * The distance between grids for snap-to-grid. See {@link #createCoarse}. 326 private static double metersToDegreesLatitude(double distance) { argument 327 return distance / APPROXIMATE_METERS_PER_DEGREE_AT_EQUATOR; 331 * Requires latitude since longitudinal distances change with distance from equator. 333 private static double metersToDegreesLongitude(double distance, double lat) { argument 334 return distance / APPROXIMATE_METERS_PER_DEGREE_AT_EQUATOR / Math.cos(Math.toRadians(lat));
|
/frameworks/compile/mclinker/lib/MC/ |
H A D | SymbolCategory.cpp | 101 int distance = pTarget - pSource; local 102 if (distance == 0) { 136 distance = pTarget - current->type; 148 // The distance is positive. It means we should bubble sort downward. 149 if (distance > 0) { 169 // The distance is negative. It means we should bubble sort upward. 170 if (distance < 0) {
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | SwipeDismissBehavior.java | 136 * @param distance a ratio of a view's width, values are clamped to 0 >= x <= 1f; 138 public void setDragDismissDistance(float distance) { argument 139 mDragDismissThreshold = clamp(0f, distance, 1f); 143 * The minimum swipe distance before the view's alpha is modified. 145 * @param fraction the distance as a fraction of the view's width. 152 * The maximum swipe distance for the view's alpha is modified. 154 * @param fraction the distance as a fraction of the view's width. 291 final int distance = child.getLeft() - mOriginalCapturedViewLeft; 293 return Math.abs(distance) >= thresholdDistance; 352 final float distance [all...] |
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/ |
H A D | FadeAndShortSlide.java | 298 * Returns distance to slide. When negative value is returned, it will use 1/4 of 306 * Set distance to slide, default value is -1. when negative value is set, it will use 1/4 of 308 * @param distance Pixels to slide. 310 public void setDistance(float distance) { argument 311 mDistance = distance;
|
H A D | TransitionHelperApi21.java | 116 public static Object createFadeAndShortSlide(int edge, float distance) { argument 118 slide.setDistance(distance);
|
/frameworks/native/include/android/ |
H A D | sensor.h | 116 * The value corresponds to the distance to the nearest object in centimeters. 276 float distance; member in union:ASensorEvent::__anon1569::__anon1570
|
/frameworks/native/include_sensor/android/ |
H A D | sensor.h | 116 * The value corresponds to the distance to the nearest object in centimeters. 276 float distance; member in union:ASensorEvent::__anon1672::__anon1673
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/transition/ |
H A D | TransitionHelper.java | 118 Object createFadeAndShortSlide(int edge, float distance); argument 288 public Object createFadeAndShortSlide(int edge, float distance) { argument 632 public Object createFadeAndShortSlide(int edge, float distance) { argument 633 return TransitionHelperApi21.createFadeAndShortSlide(edge, distance); 911 public static Object createFadeAndShortSlide(int edge, float distance) { argument 912 return sImpl.createFadeAndShortSlide(edge, distance);
|
/frameworks/base/core/java/android/widget/ |
H A D | Gallery.java | 1308 int distance = getCenterOfGallery() - getCenterOfView(child); 1309 mFlingRunnable.startUsingDistance(distance); 1483 public void startUsingDistance(int distance) { argument 1484 if (distance == 0) return; 1489 mScroller.startScroll(0, 0, -distance, 0, mAnimationDuration);
|
H A D | OverScroller.java | 164 * @return The new X offset as an absolute distance from the origin. 173 * @return The new Y offset as an absolute distance from the origin. 191 * @return The start X offset as an absolute distance from the origin. 200 * @return The start Y offset as an absolute distance from the origin. 209 * @return The final X offset as an absolute distance from the origin. 218 * @return The final Y offset as an absolute distance from the origin. 261 * @param newX The new X offset as an absolute distance from the origin. 279 * @param newY The new Y offset as an absolute distance from the origin. 344 * Start scrolling by providing a starting point and the distance to travel. 352 * @param dx Horizontal distance t 680 startScroll(int start, int distance, int duration) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_RenderNode.cpp | 248 static jboolean android_view_RenderNode_setCameraDistance(jlong renderNodePtr, float distance) { argument 249 return SET_AND_DIRTY(setCameraDistance, distance, RenderNode::GENERIC);
|