/frameworks/compile/mclinker/lib/Target/X86/ |
H A D | X86RelocationFunctions.h | 15 DECL_X86_32_APPLY_RELOC_FUNC(abs) \ 32 { &abs, 1, "R_386_32", 32 }, \ 51 { &abs, 20, "R_386_16", 16 }, \ 53 { &abs, 22, "R_386_8", 8 }, \ 82 DECL_X86_64_APPLY_RELOC_FUNC(abs) \ 91 { &abs, 1, "R_X86_64_64", 64 }, \ 100 { &abs, 10, "R_X86_64_32", 32 }, \ 102 { &abs, 12, "R_X86_64_16", 16 }, \ 104 { &abs, 14, "R_X86_64_8", 8 }, \
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ImageUtils.java | 116 return Math.abs(r - g) < TOLERANCE 117 && Math.abs(r - b) < TOLERANCE 118 && Math.abs(g - b) < TOLERANCE;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NavigationBarViewTaskSwitchHelper.java | 71 int xDiff = Math.abs(x - mTouchDownX); 72 int yDiff = Math.abs(y - mTouchDownY); 94 float absVelX = Math.abs(velocityX); 95 float absVelY = Math.abs(velocityY);
|
/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/av/include/media/stagefright/foundation/ |
H A D | AUtils.h | 50 inline static T abs(const T &a) { function 67 T err = abs(val) % period;
|
/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/Keyguard/src/com/android/keyguard/ |
H A D | CheckLongPressHelper.java | 63 boolean xMoved = Math.abs(mDownX - x) > mScaledTouchSlop; 64 boolean yMoved = Math.abs(mDownY - y) > mScaledTouchSlop;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | FlingAnimationUtils.java | 77 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); 91 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); 135 * Math.sqrt(Math.abs(endValue - currValue) / maxDistance)); 136 float diff = Math.abs(endValue - currValue); 137 float velAbs = Math.abs(velocity); 203 * Math.pow(Math.abs(endValue - currValue) / maxDistance, 0.5f)); 204 float diff = Math.abs(endValue - currValue); 205 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/android/transition/ |
H A D | ArcMotion.java | 206 ey = startY + mMinimumHorizontalTangent * Math.abs(endX - startX) / 2; 208 ex = startX + mMinimumVerticalTangent * Math.abs(endY - startY) / 2; 225 if (Math.abs(deltaX) < Math.abs(deltaY)) {
|
H A D | SidePropagation.java | 137 distance = right - viewX + Math.abs(epicenterY - viewY); 140 distance = bottom - viewY + Math.abs(epicenterX - viewX); 143 distance = viewX - left + Math.abs(epicenterY - viewY); 146 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/base/core/java/android/gesture/ |
H A D | Instance.java | 101 if (Math.abs(delta) < Math.abs(adjustment)) {
|
H A D | GestureStroke.java | 139 float dx = Math.abs(x - mX); 140 float dy = Math.abs(y - mY); 188 float dx = Math.abs(x - mX); 189 float dy = Math.abs(y - mY);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | SwipeHelper.java | 200 if (Math.abs(delta) > mPagingTouchSlop) { 234 (int) (Math.abs(newPos - getTranslation(view)) * 235 1000f / Math.abs(velocity))); 325 if (Math.abs(amount) >= size) { 359 Math.abs(translation) > 0.6 * getSize(mCurrView); 360 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocity) && 361 (Math.abs(velocity) > Math.abs(perpendicularVelocity)) &&
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
H A D | TouchHandler.java | 89 if (Math.abs(dy) <= 2.0f) { 92 if (Math.abs(dx) <= 2.0f) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SwipeHelper.java | 268 if (Math.abs(delta) > mPagingTouchSlop) { 331 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math 332 .abs(velocity)) 417 float absDelta = Math.abs(delta); 448 Math.abs(getTranslation(mCurrAnimView)) > 0.4 * getSize(mCurrAnimView); 449 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocity) && 450 (Math.abs(velocity) > Math.abs(perpendicularVelocity)) &&
|
/frameworks/base/test-runner/src/android/test/ |
H A D | ViewAsserts.java | 161 assertEquals("views are not right aligned", Math.abs(firstRight - secondRight), margin); 198 assertEquals("views are not left aligned", Math.abs(firstLeft - secondLeft), margin); 235 assertEquals("views are not bottom aligned", Math.abs(firstBottom - secondBottom), margin); 272 assertEquals("views are not top aligned", Math.abs(firstTop - secondTop), margin);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | WaveTriggerFilter.java | 70 value = -Math.abs(mTime - 1f) + 1f;
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | ErrorCalculator.java | 159 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor)); 160 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor)); 161 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor)); 162 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor));
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
H A D | AArch64RelocationFunctions.h | 15 DECL_AARCH64_APPLY_RELOC_FUNC(abs) \ 29 ValueType(0x101, MappedType(&abs, "R_AARCH64_ABS64", 64)), \ 30 ValueType(0x102, MappedType(&abs, "R_AARCH64_ABS32", 32)), \ 31 ValueType(0x103, MappedType(&abs, "R_AARCH64_ABS16", 16)), \
|
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/ |
H A D | GL2JNIView.java | 155 int distance = Math.abs(r - mRedSize) 156 + Math.abs(g - mGreenSize) 157 + Math.abs(b - mBlueSize) 158 + Math.abs(a - mAlphaSize);
|
/frameworks/native/opengl/tests/gl_perfapp/src/com/android/glperf/ |
H A D | GLPerfView.java | 155 int distance = Math.abs(r - mRedSize) 156 + Math.abs(g - mGreenSize) 157 + Math.abs(b - mBlueSize) 158 + Math.abs(a - mAlphaSize);
|
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
H A D | GLDualGL2View.java | 158 int distance = Math.abs(r - mRedSize) 159 + Math.abs(g - mGreenSize) 160 + Math.abs(b - mBlueSize) 161 + Math.abs(a - mAlphaSize);
|