Searched defs:distance (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/core/java/android/transition/
H A DCircularPropagation.java25 * A propagation that varies with the distance to the epicenter of the Transition
90 float distance = distance(viewCenterX, viewCenterY, epicenterX, epicenterY);
91 float maxDistance = distance(0, 0, sceneRoot.getWidth(), sceneRoot.getHeight());
92 float distanceFraction = distance/maxDistance;
102 private static float distance(float x1, float y1, float x2, float y2) { method in class:CircularPropagation
H A DPatternPathMotion.java122 float distance = distance(dx, dy);
123 float scale = 1 / distance;
135 float length = distance(dx, dy);
146 private static float distance(float x, float y) { method in class:PatternPathMotion
H A DSidePropagation.java26 * 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
109 float distance = distance(sceneRoot, viewCenterX, viewCenterY, epicenterX, epicenterY,
112 float distanceFraction = distance/maxDistance;
122 private int distance(View sceneRoot, int viewX, int viewY, int epicenterX, int epicenterY, method in class:SidePropagation
134 int distance = 0;
137 distance = right - viewX + Math.abs(epicenterY - viewY);
140 distance = bottom - viewY + Math.abs(epicenterX - viewX);
143 distance
[all...]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DLocationCluster.java115 public void moveAwayCluster(LocationCluster cluster, float distance) { argument
129 double radian = distance / EARTH_RADIUS;
/frameworks/base/graphics/java/android/graphics/
H A DPathMeasure.java76 * 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
150 native_getPosTan(long native_instance, float distance, float pos[], float tan[]) argument
151 native_getMatrix(long native_instance, float distance, long native_matrix, int flags) argument
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DGestureUtils.java27 int timeout, int distance, int actionIndex) {
32 if (deltaMove >= distance) {
26 eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, int timeout, int distance, int actionIndex) argument
/frameworks/wilhelm/src/itf/
H A DI3DLocation.c43 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 Dqpisf_2s.c66 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 DGradientCache.cpp266 float distance = positions[1] - startPos; local
278 distance = positions[currentPos] - startPos;
281 float amount = (pos - startPos) / distance;
H A DRenderProperties.h367 bool setCameraDistance(float distance) { argument
368 if (distance != getCameraDistance()) {
370 mComputedFields.mTransformCamera.setCameraLocation(0, 0, distance);
H A DSpotShadow.cpp113 * @return The distance along the ray if it intersects with the line segment, negative if otherwise
131 float distance = (p1.x * (rayOrigin.y - p2.y) + p2.x * (p1.y - rayOrigin.y) + local
134 return distance; // may be negative in error cases
627 * @param rayDist (In and Out) The distance for each ray.
724 // then check the next one until the distance increase.
735 // currently found smallest distance, so we can simply break here.
762 // That distance ratio b/t Ui to U1 and Ui to U5 decides its paired penumbra
998 // shorter distance to the centroid, b/t the umbra vertex or the intersection point.
/frameworks/base/services/core/java/com/android/server/location/
H A DLocationFudger.java128 * 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 DSymbolCategory.cpp107 int distance = pTarget - pSource; local
108 if (0 == distance) {
142 distance = pTarget - current->type;
154 // The distance is positive. It means we should bubble sort downward.
155 if (distance > 0) {
176 // The distance is negative. It means we should bubble sort upward.
177 if (distance < 0) {
/frameworks/native/include/ui/
H A DTVecHelpers.h365 T PURE distance(const BASE<T>& lv, const BASE<RT>& rv) { function in class:android::TVecFunctions
/frameworks/native/include/android/
H A Dsensor.h163 float distance; member in union:ASensorEvent::__anon1213::__anon1214
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSearchPanelCircleView.java348 public void setDragDistance(float distance) { argument
350 float circleSize = mCircleMinSize + rubberband(distance);
/frameworks/base/core/java/android/widget/
H A DGallery.java1281 int distance = getCenterOfGallery() - getCenterOfView(child);
1282 mFlingRunnable.startUsingDistance(distance);
1456 public void startUsingDistance(int distance) { argument
1457 if (distance == 0) return;
1462 mScroller.startScroll(0, 0, -distance, 0, mAnimationDuration);
H A DOverScroller.java163 * @return The new X offset as an absolute distance from the origin.
172 * @return The new Y offset as an absolute distance from the origin.
192 * @return The start X offset as an absolute distance from the origin.
201 * @return The start Y offset as an absolute distance from the origin.
210 * @return The final X offset as an absolute distance from the origin.
219 * @return The final Y offset as an absolute distance from the origin.
262 * @param newX The new X offset as an absolute distance from the origin.
280 * @param newY The new Y offset as an absolute distance from the origin.
345 * Start scrolling by providing a starting point and the distance to travel.
353 * @param dx Horizontal distance t
681 startScroll(int start, int distance, int duration) argument
[all...]
H A DAbsListView.java498 * Maximum distance to record overscroll
640 * Maximum distance to overscroll by during edge effects
645 * Maximum distance to overfling during edge effects
3321 final int distance = Math.abs(deltaY);
3323 if ((overscroll || distance > mTouchSlop) &&
4451 void startScroll(int distance, int duration, boolean linear) { argument
4452 int initialY = distance < 0 ? Integer.MAX_VALUE : 0;
4455 mScroller.startScroll(0, initialY, 0, distance, duration);
4657 * @param offset Desired distance in pixels of <code>position</code> from the top
4676 * @param offset Desired distance i
4708 smoothScrollBy(int distance, int duration) argument
4712 smoothScrollBy(int distance, int duration, boolean linear) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_RenderNode.cpp267 jobject clazz, jlong renderNodePtr, float distance) {
268 return SET_AND_DIRTY(setCameraDistance, distance, RenderNode::GENERIC);
266 android_view_RenderNode_setCameraDistance(JNIEnv* env, jobject clazz, jlong renderNodePtr, float distance) argument
/frameworks/rs/driver/runtime/
H A Drs_cl.c966 extern float __attribute__((overloadable)) distance(float lhs, float rhs) { function
969 extern float __attribute__((overloadable)) distance(float2 lhs, float2 rhs) { function
972 extern float __attribute__((overloadable)) distance(float3 lhs, float3 rhs) { function
975 extern float __attribute__((overloadable)) distance(float4 lhs, float4 rhs) { function
/frameworks/support/v4/java/android/support/v4/widget/
H A DSwipeRefreshLayout.java535 * Set the distance to trigger a sync in dips
537 * @param distance
539 public void setDistanceToTriggerSync(int distance) { argument
540 mTotalDragDistance = distance;
/frameworks/base/core/java/android/view/
H A DRenderNode.java689 * Sets the camera distance for the display list. Refer to
693 * @param distance The distance in Z of the camera of the display list
698 public boolean setCameraDistance(float distance) { argument
699 return nSetCameraDistance(mNativeRenderNode, distance);
703 * Returns the distance in Z of the camera of the display list.
851 private static native boolean nSetCameraDistance(long renderNode, float distance); argument
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp230 inline float distance(float x, float y, float z) { function in namespace:android
303 *pSphere++ = distance(dx, dy, dz) * 0.5f;
309 float rdist = 1.0f / distance(p[0], p[1], p[2]);
/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp1459 float orientation, float distance) {
1469 ASSERT_NEAR(distance, coords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), EPSILON);
2593 void processDistance(SingleTouchInputMapper* mapper, int32_t distance);
2656 SingleTouchInputMapper* mapper, int32_t distance) {
2657 process(mapper, ARBITRARY_TIME, DEVICE_ID, EV_ABS, ABS_DISTANCE, distance);
3236 float distance = float(rawDistance); local
3255 x, y, pressure, size, tool, tool, tool, tool, orientation, distance));
3739 void processDistance(MultiTouchInputMapper* mapper, int32_t distance);
3835 MultiTouchInputMapper* mapper, int32_t distance) {
3836 process(mapper, ARBITRARY_TIME, DEVICE_ID, EV_ABS, ABS_MT_DISTANCE, distance);
1456 assertPointerCoords(const PointerCoords& coords, float x, float y, float pressure, float size, float touchMajor, float touchMinor, float toolMajor, float toolMinor, float orientation, float distance) argument
2655 processDistance( SingleTouchInputMapper* mapper, int32_t distance) argument
3834 processDistance( MultiTouchInputMapper* mapper, int32_t distance) argument
4520 float distance = float(rawDistance); local
[all...]

Completed in 6719 milliseconds

12