/frameworks/compile/mclinker/lib/Target/X86/ |
H A D | X86RelocationFunctions.h | 18 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 D | DirectionEvaluator.java | 22 boolean vertical = Math.abs(yDiff) >= Math.abs(xDiff);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSDetailClipper.java | 47 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 D | ScrollbarHelper.java | 46 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 D | GeocoderTest.java | 47 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 D | FlingAnimationUtils.java | 71 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 D | JapanesePhoneNumberFormatter.java | 199 int dashPos2 = rootIndex + (Math.abs(value) % 10); 203 int dashPos1 = rootIndex + (Math.abs(value) / 10);
|
/frameworks/native/libs/gui/tests/ |
H A D | GLTest.cpp | 25 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 D | ImageUtils.java | 119 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 D | ArcMotion.java | 204 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 D | SidePropagation.java | 136 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 D | StraightenFilter.java | 135 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 D | TestUtils.java | 85 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 D | TestUtils.java | 161 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 D | Instance.java | 101 if (Math.abs(delta) < Math.abs(adjustment)) {
|
H A D | GestureStroke.java | 138 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 D | LaunchingTaskPositioner.java | 281 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 D | HeadsUpTouchHelper.java | 99 if (mTouchingHeadsUpView && Math.abs(h) > mTouchSlop 100 && Math.abs(h) > Math.abs(x - mInitialTouchX)) {
|
H A D | NavigationBarGestureHelper.java | 118 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 D | ImageCompare.java | 31 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 D | AUtils.h | 50 inline static T abs(const T &a) { function 91 T err = abs(val) % period;
|
/frameworks/minikin/libs/minikin/ |
H A D | Measurement.cpp | 110 if (std::abs(delta) < bestDist) { 111 bestDist = std::abs(delta);
|
/frameworks/support/v4/donut/android/support/v4/view/ |
H A D | ViewCompatBase.java | 121 final int absOffset = Math.abs(offset); 141 final int absOffset = Math.abs(offset);
|
/frameworks/base/core/java/android/view/ |
H A D | ScaleGestureDetector.java | 319 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 D | ViewAsserts.java | 169 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);
|