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

/frameworks/compile/mclinker/lib/Support/
H A DMemoryArea.cpp70 off_t distance = pOffset - space->start(); local
71 void* r_start = space->memory() + distance;
/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
144 native_getPosTan(int native_instance, float distance, float pos[], float tan[]) argument
145 native_getMatrix(int native_instance, float distance, int native_matrix, int flags) argument
[all...]
/frameworks/base/services/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/compile/mclinker/lib/MC/
H A DSymbolCategory.cpp111 int distance = target - source; local
112 if (0 == distance) {
139 // The distance is positive. It means we should bubble sort downward.
140 if (distance > 0) {
161 // The distance is negative. It means we should bubble sort upward.
162 if (distance < 0) {
/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/core/java/android/view/
H A DDisplayList.java261 * Sets the camera distance for the DisplayList
263 * @param distance The distance in z of the camera of the DisplayList
266 public abstract void setCameraDistance(float distance); argument
H A DGLES20DisplayList.java242 public void setCameraDistance(float distance) { argument
244 nSetCameraDistance(mFinalizer.mNativeDisplayList, distance);
314 private static native void nSetCameraDistance(int displayList, float distance); argument
H A DView.java2753 * The distance in pixels from the left edge of this view's parent
2760 * The distance in pixels from the left edge of this view's parent
2767 * The distance in pixels from the top edge of this view's parent
2774 * The distance in pixels from the top edge of this view's parent
2797 * The left padding in pixels, that is the distance in pixels between the
2804 * The right padding in pixels, that is the distance in pixels between the
2811 * The top padding in pixels, that is the distance in pixels between the
2818 * The bottom padding in pixels, that is the distance in pixels between the
2826 * The layout insets in pixels, that is the distance in pixels between the
8887 * Gets the distance alon
8943 setCameraDistance(float distance) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_GLES20DisplayList.cpp138 jobject clazz, DisplayList* displayList, float distance) {
139 displayList->setCameraDistance(distance);
137 android_view_GLES20DisplayList_setCameraDistance(JNIEnv* env, jobject clazz, DisplayList* displayList, float distance) argument
/frameworks/base/libs/hwui/
H A DGradientCache.cpp196 float distance = positions[1] - start; local
214 distance = positions[currentPos] - start;
217 float amount = (pos - start) / distance;
H A DDisplayListRenderer.h292 void setCameraDistance(float distance) { argument
293 if (distance != mCameraDistance) {
294 mCameraDistance = distance;
300 mTransformCamera->setCameraLocation(0, 0, distance);
/frameworks/base/services/java/com/android/server/location/
H A DLocationFudger.java131 * The distance between grids for snap-to-grid. See {@link #createCoarse}.
329 private static double metersToDegreesLatitude(double distance) { argument
330 return distance / APPROXIMATE_METERS_PER_DEGREE_AT_EQUATOR;
334 * Requires latitude since longitudinal distances change with distance from equator.
336 private static double metersToDegreesLongitude(double distance, double lat) { argument
337 return distance / APPROXIMATE_METERS_PER_DEGREE_AT_EQUATOR / Math.cos(Math.toRadians(lat));
/frameworks/native/include/android/
H A Dsensor.h122 float distance; member in union:ASensorEvent::__anon1342
/frameworks/compile/libbcc/lib/Renderscript/runtime/
H A Drs_cl.c865 extern float __attribute__((overloadable)) distance(float lhs, float rhs) { function
868 extern float __attribute__((overloadable)) distance(float2 lhs, float2 rhs) { function
871 extern float __attribute__((overloadable)) distance(float3 lhs, float3 rhs) { function
874 extern float __attribute__((overloadable)) distance(float4 lhs, float4 rhs) { function
/frameworks/native/include/utils/
H A DList.h185 return size_t(distance(begin(), end()));
259 * Measure the distance between two iterators. On exist, "first"
273 ptrdiff_t distance( function in class:android::List
/frameworks/base/core/java/android/widget/
H A DGallery.java1284 int distance = getCenterOfGallery() - getCenterOfView(child);
1285 mFlingRunnable.startUsingDistance(distance);
1459 public void startUsingDistance(int distance) { argument
1460 if (distance == 0) return;
1465 mScroller.startScroll(0, 0, -distance, 0, mAnimationDuration);
H A DOverScroller.java155 * @return The new X offset as an absolute distance from the origin.
164 * @return The new Y offset as an absolute distance from the origin.
184 * @return The start X offset as an absolute distance from the origin.
193 * @return The start Y offset as an absolute distance from the origin.
202 * @return The final X offset as an absolute distance from the origin.
211 * @return The final Y offset as an absolute distance from the origin.
254 * @param newX The new X offset as an absolute distance from the origin.
272 * @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...]
H A DAbsListView.java480 * Maximum distance to record overscroll
605 * Maximum distance to overscroll by during edge effects
610 * Maximum distance to overfling during edge effects
3002 final int distance = Math.abs(deltaY);
3004 if (overscroll || distance > mTouchSlop) {
4000 void startScroll(int distance, int duration, boolean linear) { argument
4001 int initialY = distance < 0 ? Integer.MAX_VALUE : 0;
4004 mScroller.startScroll(0, initialY, 0, distance, duration);
4571 final int distance = (int) (-getHeight() * modifier);
4573 smoothScrollBy(distance, duratio
4691 smoothScrollBy(int distance, int duration) argument
4695 smoothScrollBy(int distance, int duration, boolean linear) argument
[all...]
/frameworks/av/media/libstagefright/mp4/
H A DFragmentedMP4Parser.cpp1063 void FragmentedMP4Parser::skip(off_t distance) { argument
1068 CHECK_LE(distance, (off_t)container->mBytesRemaining);
1070 container->mBytesRemaining -= distance;
1117 if (distance < (off_t)mBuffer->size()) {
1118 mBuffer->setRange(mBuffer->offset() + distance, mBuffer->size() - distance);
1119 mBufferPos += distance;
1124 mBufferPos += distance;
/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/base/services/input/tests/
H A DInputReader_test.cpp1440 float orientation, float distance) {
1450 ASSERT_NEAR(distance, coords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), EPSILON);
2553 void processDistance(SingleTouchInputMapper* mapper, int32_t distance);
2616 SingleTouchInputMapper* mapper, int32_t distance) {
2617 process(mapper, ARBITRARY_TIME, DEVICE_ID, EV_ABS, ABS_DISTANCE, distance);
3196 float distance = float(rawDistance); local
3215 x, y, pressure, size, tool, tool, tool, tool, orientation, distance));
3675 void processDistance(MultiTouchInputMapper* mapper, int32_t distance);
3771 MultiTouchInputMapper* mapper, int32_t distance) {
3772 process(mapper, ARBITRARY_TIME, DEVICE_ID, EV_ABS, ABS_MT_DISTANCE, distance);
1437 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
2615 processDistance( SingleTouchInputMapper* mapper, int32_t distance) argument
3770 processDistance( MultiTouchInputMapper* mapper, int32_t distance) argument
4456 float distance = float(rawDistance); local
[all...]
/frameworks/base/services/input/
H A DInputReader.cpp91 inline static float distance(float x1, float y1, float x2, float y2) { function in namespace:android
1404 distance.clear();
2606 info->addMotionRange(mOrientedRanges.distance);
2656 "orientation=%d, tiltX=%d, tiltY=%d, distance=%d, "
2661 pointer.orientation, pointer.tiltX, pointer.tiltY, pointer.distance,
2672 "orientation=%0.3f, tilt=%0.3f, distance=%0.3f, "
2863 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.distance, "Distance");
3176 mOrientedRanges.distance.axis = AMOTION_EVENT_AXIS_DISTANCE;
3177 mOrientedRanges.distance.source = mSource;
3178 mOrientedRanges.distance
4156 float distance; local
5622 uint64_t distance = uint64_t(deltaX * deltaX + deltaY * deltaY); local
[all...]
H A DInputReader.h185 // The distance in pixels that the pointer is allowed to move from initial down
719 RawAbsoluteAxisInfo distance; member in struct:android::RawPointerAxes
742 int32_t distance; member in struct:android::RawPointerData::Pointer
1392 InputDeviceInfo::MotionRange distance; member in struct:android::TouchInputMapper::OrientedRanges
1437 uint64_t distance : 48; // squared distance member in struct:android::TouchInputMapper::PointerDistanceHeapElement

Completed in 1245 milliseconds