[go: nahoru, domu]

Searched refs:abs (Results 1 - 25 of 244) sorted by relevance

12345678910

/frameworks/compile/mclinker/lib/Target/X86/
H A DX86RelocationFunctions.h18 DECL_X86_32_APPLY_RELOC_FUNC(abs) \
34 { &abs, 1, "R_386_32", 32 }, \
53 { &abs, 20, "R_386_16", 16 }, \
55 { &abs, 22, "R_386_8", 8 }, \
85 DECL_X86_64_APPLY_RELOC_FUNC(abs) \
94 { &abs, 1, "R_X86_64_64", 64 }, \
103 { &abs, 10, "R_X86_64_32", 32 }, \
105 { &abs, 12, "R_X86_64_16", 16 }, \
107 { &abs, 14, "R_X86_64_8", 8 }, \
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DDirectionEvaluator.java22 boolean vertical = Math.abs(yDiff) >= Math.abs(xDiff);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSDetailClipper.java47 innerR = Math.abs(x);
48 innerR = Math.min(innerR, Math.abs(y));
49 innerR = Math.min(innerR, Math.abs(w));
50 innerR = Math.min(innerR, Math.abs(h));
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DScrollbarHelper.java46 final int laidOutArea = Math.abs(orientation.getDecoratedEnd(endChild) -
48 final int itemRange = Math.abs(lm.getPosition(startChild) -
68 return Math.abs(lm.getPosition(startChild) - lm.getPosition(endChild)) + 1;
92 final int laidOutRange = Math.abs(lm.getPosition(startChild) -
/frameworks/base/location/tests/locationtests/src/android/location/
H A DGeocoderTest.java47 assertFalse(Math.abs(addr.getLatitude() - 37.4240385) > 0.1);
61 assertFalse(Math.abs(addr.getLatitude() - 37.77916) > 0.1);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DFlingAnimationUtils.java71 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue));
85 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue));
129 * Math.sqrt(Math.abs(endValue - currValue) / maxDistance));
130 float diff = Math.abs(endValue - currValue);
131 float velAbs = Math.abs(velocity);
197 * Math.pow(Math.abs(endValue - currValue) / maxDistance, 0.5f));
198 float diff = Math.abs(endValue - currValue);
199 float velAbs = Math.abs(velocity);
/frameworks/base/telephony/java/android/telephony/
H A DJapanesePhoneNumberFormatter.java199 int dashPos2 = rootIndex + (Math.abs(value) % 10);
203 int dashPos1 = rootIndex + (Math.abs(value) / 10);
/frameworks/native/libs/gui/tests/
H A DGLTest.cpp25 static int abs(int value) { function in namespace:android
188 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
191 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
197 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
203 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) {
220 if (abs(r1.left - r2.left) > tolerance) {
223 if (abs(r1.top - r2.top) > tolerance) {
229 if (abs(r1.right - r2.right) > tolerance) {
235 if (abs(r1.bottom - r2.bottom) > tolerance) {
/frameworks/base/core/java/com/android/internal/util/
H A DImageUtils.java119 return Math.abs(r - g) < TOLERANCE
120 && Math.abs(r - b) < TOLERANCE
121 && Math.abs(g - b) < TOLERANCE;
/frameworks/base/core/java/android/transition/
H A DArcMotion.java204 ey = startY + mMinimumHorizontalTangent * Math.abs(endX - startX) / 2;
206 ex = startX + mMinimumVerticalTangent * Math.abs(endY - startY) / 2;
224 if ((Math.abs(deltaX) < Math.abs(deltaY))) {
H A DSidePropagation.java136 distance = right - viewX + Math.abs(epicenterY - viewY);
139 distance = bottom - viewY + Math.abs(epicenterX - viewX);
142 distance = viewX - left + Math.abs(epicenterY - viewY);
145 distance = viewY - top + Math.abs(epicenterX - viewX);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DStraightenFilter.java135 float maxWidth = (float) Math.max(Math.abs(p0.x), Math.abs(p1.x));
136 float maxHeight = (float) Math.max(Math.abs(p0.y), Math.abs(p1.y));
/frameworks/support/design/tests/src/android/support/design/testutils/
H A DTestUtils.java85 int varianceAlpha = Math.abs(sourceAlpha - expectedAlpha);
86 int varianceRed = Math.abs(sourceRed - expectedRed);
87 int varianceGreen = Math.abs(sourceGreen - expectedGreen);
88 int varianceBlue = Math.abs(sourceBlue - expectedBlue);
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
H A DTestUtils.java161 int varianceAlpha = Math.abs(sourceAlpha - expectedAlpha);
162 int varianceRed = Math.abs(sourceRed - expectedRed);
163 int varianceGreen = Math.abs(sourceGreen - expectedGreen);
164 int varianceBlue = Math.abs(sourceBlue - expectedBlue);
/frameworks/base/core/java/android/gesture/
H A DInstance.java101 if (Math.abs(delta) < Math.abs(adjustment)) {
H A DGestureStroke.java138 float dx = Math.abs(x - mX);
139 float dy = Math.abs(y - mY);
187 float dx = Math.abs(x - mX);
188 float dy = Math.abs(y - mY);
/frameworks/base/services/core/java/com/android/server/am/
H A DLaunchingTaskPositioner.java281 return Math.abs(first.left - second.left) < BOUNDS_CONFLICT_MIN_DISTANCE
282 && Math.abs(first.top - second.top) < BOUNDS_CONFLICT_MIN_DISTANCE;
286 return Math.abs(first.right - second.right) < BOUNDS_CONFLICT_MIN_DISTANCE
287 && Math.abs(first.top - second.top) < BOUNDS_CONFLICT_MIN_DISTANCE;
291 return Math.abs(first.left - second.left) < BOUNDS_CONFLICT_MIN_DISTANCE
292 && Math.abs(first.bottom - second.bottom) < BOUNDS_CONFLICT_MIN_DISTANCE;
296 return Math.abs(first.right - second.right) < BOUNDS_CONFLICT_MIN_DISTANCE
297 && Math.abs(first.bottom - second.bottom) < BOUNDS_CONFLICT_MIN_DISTANCE;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DHeadsUpTouchHelper.java99 if (mTouchingHeadsUpView && Math.abs(h) > mTouchSlop
100 && Math.abs(h) > Math.abs(x - mInitialTouchX)) {
H A DNavigationBarGestureHelper.java118 int xDiff = Math.abs(x - mTouchDownX);
119 int yDiff = Math.abs(y - mTouchDownY);
190 int xDiff = Math.abs(x - mTouchDownX);
191 int yDiff = Math.abs(y - mTouchDownY);
281 float absVelX = Math.abs(velocityX);
282 float absVelY = Math.abs(velocityY);
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
H A DImageCompare.java31 int error = Math.abs(v1 - v2);
63 int error = Math.abs(v1 - v2);
128 int error = Math.abs(v1 - v2);
/frameworks/av/include/media/stagefright/foundation/
H A DAUtils.h50 inline static T abs(const T &a) { function
91 T err = abs(val) % period;
/frameworks/minikin/libs/minikin/
H A DMeasurement.cpp110 if (std::abs(delta) < bestDist) {
111 bestDist = std::abs(delta);
/frameworks/support/v4/donut/android/support/v4/view/
H A DViewCompatBase.java121 final int absOffset = Math.abs(offset);
141 final int absOffset = Math.abs(offset);
/frameworks/base/core/java/android/view/
H A DScaleGestureDetector.java319 devSumX += Math.abs(event.getX(i) - focusX);
320 devSumY += Math.abs(event.getY(i) - focusY);
356 (wasInProgress || Math.abs(span - mInitialSpan) > mSpanSlop)) {
552 final float spanDiff = (Math.abs(1 - (mCurrSpan / mPrevSpan)) * SCALE_FACTOR);
/frameworks/base/test-runner/src/android/test/
H A DViewAsserts.java169 assertEquals("views are not right aligned", Math.abs(firstRight - secondRight), margin);
206 assertEquals("views are not left aligned", Math.abs(firstLeft - secondLeft), margin);
243 assertEquals("views are not bottom aligned", Math.abs(firstBottom - secondBottom), margin);
280 assertEquals("views are not top aligned", Math.abs(firstTop - secondTop), margin);

Completed in 727 milliseconds

12345678910