/external/chromium_org/third_party/libwebp/dsp/ |
enc.c | 14 #include <stdlib.h> // for abs() 57 const int v = abs(out[k]) >> 3; // TODO(skal): add rounding? 595 sum += w[ 0] * abs(b0); 596 sum += w[ 4] * abs(b1); 597 sum += w[ 8] * abs(b2); 598 sum += w[12] * abs(b3); 607 return abs(sum2 - sum1) >> 5;
|
/external/chromium_org/third_party/protobuf/python/google/protobuf/internal/ |
message_test.py | 350 message.repeated_int32.sort(lambda x,y: cmp(abs(x), abs(y))) 410 abs_cmp = lambda a, b: cmp(abs(a), abs(b)) 414 message.repeated_int32.sort(key=abs) 416 message.repeated_int32.sort(key=abs, reverse=True)
|
/external/replicaisland/src/com/replica/replicaisland/ |
CollisionSystem.java | 290 distance = Math.abs(deltaX) + 1; 293 distance = Math.abs(deltaY) + 1; 360 final int lateralDelta = (endTileX > 0 && endTileX < worldWidth - 1) ? Math.abs(deltaX) + 1 : Math.abs(deltaX); 361 final int verticalDelta = (endTileY > 0 && endTileY < worldHeight - 1) ? Math.abs(deltaY) + 1 : Math.abs(deltaY); [all...] |
/external/stlport/stlport/stl/ |
_complex.h | 735 _Tp _STLP_CALL abs(const complex<_Tp>& __z); 756 _STLP_DECLSPEC float _STLP_CALL abs(const complex<float>&); 758 _STLP_DECLSPEC double _STLP_CALL abs(const complex<double>&); 769 _Tp _STLP_CALL abs(const complex<_Tp>& __z) function 770 { return _Tp(abs(complex<double>(double(__z.real()), double(__z.imag())))); } 786 _STLP_DECLSPEC long double _STLP_CALL abs(const complex<long double>&);
|
/external/webp/src/dsp/ |
enc.c | 14 #include <stdlib.h> // for abs() 57 const int v = abs(out[k]) >> 3; // TODO(skal): add rounding? 595 sum += w[ 0] * abs(b0); 596 sum += w[ 4] * abs(b1); 597 sum += w[ 8] * abs(b2); 598 sum += w[12] * abs(b3); 607 return abs(sum2 - sum1) >> 5;
|
/frameworks/base/core/java/com/android/internal/widget/ |
LockPatternView.java | 530 if (Math.abs(dRow) == 2 && Math.abs(dColumn) != 1) { 534 if (Math.abs(dColumn) == 2 && Math.abs(dRow) != 1) { 692 final float dx = Math.abs(x - mInProgressX); 693 final float dy = Math.abs(y - mInProgressY); [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
WallpaperCropActivity.java | 358 rotatedInSize[0] = Math.abs(rotatedInSize[0]); 359 rotatedInSize[1] = Math.abs(rotatedInSize[1]); 594 rotatedBounds[0] = Math.abs(rotatedBounds[0]); 595 rotatedBounds[1] = Math.abs(rotatedBounds[1]); 703 dimsAfter[0] = Math.abs(dimsAfter[0]); 704 dimsAfter[1] = Math.abs(dimsAfter[1]); [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
PhotoView.java | [all...] |
/ndk/sources/cxx-stl/stlport/stlport/stl/ |
_complex.h | 735 _Tp _STLP_CALL abs(const complex<_Tp>& __z); 756 _STLP_DECLSPEC float _STLP_CALL abs(const complex<float>&); 758 _STLP_DECLSPEC double _STLP_CALL abs(const complex<double>&); 769 _Tp _STLP_CALL abs(const complex<_Tp>& __z) function 770 { return _Tp(abs(complex<double>(double(__z.real()), double(__z.imag())))); } 786 _STLP_DECLSPEC long double _STLP_CALL abs(const complex<long double>&);
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
WallpaperCropActivity.java | 363 rotatedInSize[0] = Math.abs(rotatedInSize[0]); 364 rotatedInSize[1] = Math.abs(rotatedInSize[1]); 592 rotatedBounds[0] = Math.abs(rotatedBounds[0]); 593 rotatedBounds[1] = Math.abs(rotatedBounds[1]); 701 dimsAfter[0] = Math.abs(dimsAfter[0]); 702 dimsAfter[1] = Math.abs(dimsAfter[1]); [all...] |
/prebuilts/ndk/5/sources/cxx-stl/stlport/stlport/stl/ |
_complex.h | 735 _Tp _STLP_CALL abs(const complex<_Tp>& __z); 756 _STLP_DECLSPEC float _STLP_CALL abs(const complex<float>&); 758 _STLP_DECLSPEC double _STLP_CALL abs(const complex<double>&); 769 _Tp _STLP_CALL abs(const complex<_Tp>& __z) function 770 { return _Tp(abs(complex<double>(double(__z.real()), double(__z.imag())))); } 786 _STLP_DECLSPEC long double _STLP_CALL abs(const complex<long double>&);
|
/prebuilts/ndk/6/sources/cxx-stl/stlport/stlport/stl/ |
_complex.h | 735 _Tp _STLP_CALL abs(const complex<_Tp>& __z); 756 _STLP_DECLSPEC float _STLP_CALL abs(const complex<float>&); 758 _STLP_DECLSPEC double _STLP_CALL abs(const complex<double>&); 769 _Tp _STLP_CALL abs(const complex<_Tp>& __z) function 770 { return _Tp(abs(complex<double>(double(__z.real()), double(__z.imag())))); } 786 _STLP_DECLSPEC long double _STLP_CALL abs(const complex<long double>&);
|
/prebuilts/ndk/7/sources/cxx-stl/stlport/stlport/stl/ |
_complex.h | 735 _Tp _STLP_CALL abs(const complex<_Tp>& __z); 756 _STLP_DECLSPEC float _STLP_CALL abs(const complex<float>&); 758 _STLP_DECLSPEC double _STLP_CALL abs(const complex<double>&); 769 _Tp _STLP_CALL abs(const complex<_Tp>& __z) function 770 { return _Tp(abs(complex<double>(double(__z.real()), double(__z.imag())))); } 786 _STLP_DECLSPEC long double _STLP_CALL abs(const complex<long double>&);
|
/prebuilts/ndk/8/sources/cxx-stl/stlport/stlport/stl/ |
_complex.h | 735 _Tp _STLP_CALL abs(const complex<_Tp>& __z); 756 _STLP_DECLSPEC float _STLP_CALL abs(const complex<float>&); 758 _STLP_DECLSPEC double _STLP_CALL abs(const complex<double>&); 769 _Tp _STLP_CALL abs(const complex<_Tp>& __z) function 770 { return _Tp(abs(complex<double>(double(__z.real()), double(__z.imag())))); } 786 _STLP_DECLSPEC long double _STLP_CALL abs(const complex<long double>&);
|
/prebuilts/ndk/9/sources/cxx-stl/EH/stlport/stlport/stl/ |
_complex.h | 735 _Tp _STLP_CALL abs(const complex<_Tp>& __z); 756 _STLP_DECLSPEC float _STLP_CALL abs(const complex<float>&); 758 _STLP_DECLSPEC double _STLP_CALL abs(const complex<double>&); 769 _Tp _STLP_CALL abs(const complex<_Tp>& __z) function 770 { return _Tp(abs(complex<double>(double(__z.real()), double(__z.imag())))); } 786 _STLP_DECLSPEC long double _STLP_CALL abs(const complex<long double>&);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_complex.py | 31 if abs(x) > abs(y): 34 return abs(x) < eps 36 return abs(y) < eps 38 self.assertTrue(abs((x-y)/y) < eps) 448 self.assertAlmostEqual((num.real**2 + num.imag**2) ** 0.5, abs(num))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_complex.py | 31 if abs(x) > abs(y): 34 return abs(x) < eps 36 return abs(y) < eps 38 self.assertTrue(abs((x-y)/y) < eps) 448 self.assertAlmostEqual((num.real**2 + num.imag**2) ** 0.5, abs(num))
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nvc0/codegen/ |
nv50_ir_emit_nvc0.cpp | 184 if (i->src(1).mod.abs()) code[0] |= 1 << 6; 185 if (i->src(0).mod.abs()) code[0] |= 1 << 7; 528 code[0] |= i->src(0).mod.abs() << 7; 531 if (i->src(1).mod.abs()) 549 !i->src(0).mod.abs() && 550 !i->src(1).mod.neg() && !i->src(1).mod.abs()); 564 assert(!i->src(0).mod.abs() && !i->src(1).mod.abs()); 710 if (i->src(0).mod.abs()) code[0] |= 1 << 6; 733 if (i->src(0).mod.abs()) code[0] |= 1 << 7 809 const bool abs = (i->op == OP_ABS) || i->src(0).mod.abs(); local [all...] |
/external/mesa3d/src/gallium/drivers/nvc0/codegen/ |
nv50_ir_emit_nvc0.cpp | 184 if (i->src(1).mod.abs()) code[0] |= 1 << 6; 185 if (i->src(0).mod.abs()) code[0] |= 1 << 7; 528 code[0] |= i->src(0).mod.abs() << 7; 531 if (i->src(1).mod.abs()) 549 !i->src(0).mod.abs() && 550 !i->src(1).mod.neg() && !i->src(1).mod.abs()); 564 assert(!i->src(0).mod.abs() && !i->src(1).mod.abs()); 710 if (i->src(0).mod.abs()) code[0] |= 1 << 6; 733 if (i->src(0).mod.abs()) code[0] |= 1 << 7 809 const bool abs = (i->op == OP_ABS) || i->src(0).mod.abs(); local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nv50/codegen/ |
nv50_ir_emit_nv50.cpp | 855 code[1] |= i->src(0).mod.abs() << 20; 856 code[1] |= i->src(1).mod.abs() << 19; 889 assert(!(i->src(0).mod | i->src(1).mod).abs()); 1077 if (i->src(0).mod.abs()) code[1] |= 0x00100000; 1078 if (i->src(1).mod.abs()) code[1] |= 0x00080000; 1216 code[1] |= i->src(0).mod.abs() << 20; 1231 code[1] |= i->src(0).mod.abs() << 20; 1244 code[0] |= i->src(0).mod.abs() << 15; 1249 code[1] |= i->src(0).mod.abs() << 20; [all...] |
/external/mesa3d/src/gallium/drivers/nv50/codegen/ |
nv50_ir_emit_nv50.cpp | 855 code[1] |= i->src(0).mod.abs() << 20; 856 code[1] |= i->src(1).mod.abs() << 19; 889 assert(!(i->src(0).mod | i->src(1).mod).abs()); 1077 if (i->src(0).mod.abs()) code[1] |= 0x00100000; 1078 if (i->src(1).mod.abs()) code[1] |= 0x00080000; 1216 code[1] |= i->src(0).mod.abs() << 20; 1231 code[1] |= i->src(0).mod.abs() << 20; 1244 code[0] |= i->src(0).mod.abs() << 15; 1249 code[1] |= i->src(0).mod.abs() << 20; [all...] |
/external/chromium_org/ui/gfx/codec/ |
png_codec_unittest.cc | 239 return abs(static_cast<int>(SkColorGetB(a) - SkColorGetB(b))) < 2 && 240 abs(static_cast<int>(SkColorGetG(a) - SkColorGetG(b))) < 2 && 241 abs(static_cast<int>(SkColorGetR(a) - SkColorGetR(b))) < 2 && 242 abs(static_cast<int>(SkColorGetA(a) - SkColorGetA(b))) < 2; 247 return abs(static_cast<int>(SkColorGetB(a) - SkColorGetB(b))) < 2 && 248 abs(static_cast<int>(SkColorGetG(a) - SkColorGetG(b))) < 2 && 249 abs(static_cast<int>(SkColorGetR(a) - SkColorGetR(b))) < 2; [all...] |
/external/libvorbis/lib/ |
floor1.c | 279 int ady=abs(dy); 365 int ady=abs(dy); 372 ady-=abs(base*adx); 394 int ady=abs(dy); 401 ady-=abs(base*adx); 536 int ady=abs(dy); 546 ady-=abs(base*adx);
|
/external/libyuv/files/unit_test/ |
planar_test.cc | 68 abs(static_cast<int>(dst_argb_c[i * kWidth * BPP_B + j]) - \ 145 abs(static_cast<int>(dst_argb_c[i * kWidth * BPP_B + j]) - \ 202 abs(static_cast<int>(dst_y_c[i * kWidth + j]) - \ 213 abs(static_cast<int>(dst_u_c[i * kWidth / SUBSAMP_X + j]) - \ 224 abs(static_cast<int>(dst_v_c[i * kWidth / SUBSAMP_X + j]) - \ 293 abs(static_cast<int>(dst_argb_c[i]) - \ 354 abs(static_cast<int>(dst_argb_c[i]) - \ [all...] |
/packages/apps/Camera/src/com/android/camera/ |
PanoramaModule.java | 381 d = Math.abs(d); 548 || (Math.abs(accumulatedHorizontalAngle) >= DEFAULT_SWEEP_ANGLE) 549 || (Math.abs(accumulatedVerticalAngle) >= DEFAULT_SWEEP_ANGLE)) { 639 if ((Math.abs(panningRateXInDegree) > PANNING_SPEED_THRESHOLD) 640 || (Math.abs(panningRateYInDegree) > PANNING_SPEED_THRESHOLD)) { 653 (Math.abs(mProgressAngle[0]) > Math.abs(mProgressAngle[1])) [all...] |