/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/ratio/ratio.arithmetic/ |
ratio_add.fail.cpp | 12 #include <ratio> 16 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; 17 typedef std::ratio<1, 1> R2;
|
ratio_divide.fail.cpp | 12 #include <ratio> 16 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; 17 typedef std::ratio<1, 2> R2;
|
ratio_multiply.fail.cpp | 12 #include <ratio> 16 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; 17 typedef std::ratio<2, 1> R2;
|
ratio_subtract.fail.cpp | 12 #include <ratio> 16 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; 17 typedef std::ratio<1, 1> R2;
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/ratio/ratio.ratio/ |
ratio1.fail.cpp | 10 // test ratio: The template argument D shall not be zero 12 #include <ratio> 17 const std::intmax_t t1 = std::ratio<1, 0>::num;
|
ratio2.fail.cpp | 10 // test ratio: the absolute values of the template arguments N and D 13 #include <ratio> 18 const std::intmax_t t1 = std::ratio<0x8000000000000000ULL, 1>::num;
|
ratio3.fail.cpp | 10 // test ratio: the absolute values of the template arguments N and D 13 #include <ratio> 18 const std::intmax_t t1 = std::ratio<1, 0x8000000000000000ULL>::num;
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/ |
ratio.fail.cpp | 14 // Period shall be a specialization of ratio, diagnostic required. 19 class Ratio 28 typedef std::chrono::duration<int, Ratio<1> > D;
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.comparisons/ |
op_equal.pass.cpp | 54 std::chrono::duration<int, std::ratio<2, 3> > s1(9); 55 std::chrono::duration<int, std::ratio<3, 5> > s2(10); 60 std::chrono::duration<int, std::ratio<2, 3> > s1(10); 61 std::chrono::duration<int, std::ratio<3, 5> > s2(9); 66 std::chrono::duration<int, std::ratio<2, 3> > s1(9); 67 std::chrono::duration<double, std::ratio<3, 5> > s2(10); 97 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(9); 98 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(10); 103 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(10); 104 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(9) [all...] |
op_less.pass.cpp | 72 std::chrono::duration<int, std::ratio<2, 3> > s1(9); 73 std::chrono::duration<int, std::ratio<3, 5> > s2(10); 80 std::chrono::duration<int, std::ratio<2, 3> > s1(10); 81 std::chrono::duration<int, std::ratio<3, 5> > s2(9); 88 std::chrono::duration<int, std::ratio<2, 3> > s1(9); 89 std::chrono::duration<double, std::ratio<3, 5> > s2(10); 129 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(9); 130 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(10); 137 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(10); 138 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(9) [all...] |
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/ |
LMonestep.h | 26 RealScalar ratio; local 122 /* compute the ratio of the actual to the predicted */ 124 ratio = 0.; 126 ratio = actred / prered; 129 if (ratio <= Scalar(.25)) { 139 } else if (!(m_par != 0. && ratio < RealScalar(.75))) { 145 if (ratio >= RealScalar(1e-4)) { 156 if (abs(actred) <= m_ftol && prered <= m_ftol && Scalar(.5) * ratio <= 1. && m_delta <= m_xtol * xnorm) 161 if (abs(actred) <= m_ftol && prered <= m_ftol && Scalar(.5) * ratio <= 1.) 178 if (abs(actred) <= NumTraits<Scalar>::epsilon() && prered <= NumTraits<Scalar>::epsilon() && Scalar(.5) * ratio <= 1. [all...] |
/external/chromium_org/third_party/libjingle/source/talk/media/base/ |
videocommon_unittest.cc | 210 // Request 16:9 but VGA has 3:8 pixel aspect ratio. Expect no crop. 214 3, 8, // Pixel aspect ratio is tall 220 // Request 16:9 but QVGA has 15:11 pixel aspect ratio. Expect horizontal crop. 224 15, 11, // Pixel aspect ratio is wide 230 // Request 16:10 but QVGA has 15:11 pixel aspect ratio. 235 15, 11, // Pixel aspect ratio is wide 241 // Request 16:9 but VGA has 6:5 pixel aspect ratio. Expect vertical crop. 245 6, 5, // Pixel aspect ratio is wide 255 1, 1, // Pixel aspect ratio is wide 261 // Request 16:9 but HD has 3:4 pixel aspect ratio. Expect vertical crop [all...] |
/external/chromium_org/third_party/skia/experimental/Intersection/ |
QuadraticUtilities.cpp | 118 double ratio = Q / A; 119 if (approximately_zero_or_more(ratio) && approximately_one_or_less(ratio)) { 120 if (approximately_less_than_zero(ratio)) { 121 ratio = 0; 122 } else if (approximately_greater_than_one(ratio)) { 123 ratio = 1; 125 t[0] = ratio; 128 ratio = C / Q; 129 if (approximately_zero_or_more(ratio) && approximately_one_or_less(ratio)) [all...] |
/external/skia/experimental/Intersection/ |
QuadraticUtilities.cpp | 118 double ratio = Q / A; 119 if (approximately_zero_or_more(ratio) && approximately_one_or_less(ratio)) { 120 if (approximately_less_than_zero(ratio)) { 121 ratio = 0; 122 } else if (approximately_greater_than_one(ratio)) { 123 ratio = 1; 125 t[0] = ratio; 128 ratio = C / Q; 129 if (approximately_zero_or_more(ratio) && approximately_one_or_less(ratio)) [all...] |
/developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
FixedAspectSurfaceView.java | 30 * A SurfaceView that maintains its aspect ratio to be a desired target value. 33 * requested aspect ratio. This can happen if both the width and the height are exactly 36 * the dimension that is best adjusted to maintain the aspect ratio.</p> 41 * Desired width/height ratio 50 // Get initial aspect ratio from custom attributes 60 * Set the desired aspect ratio for this view. 62 * @param aspect the desired width/height ratio in the current UI orientation. Must be a 67 throw new IllegalArgumentException("Aspect ratio must be positive"); 92 // General goal: Adjust dimensions to maintain the requested aspect ratio as much 111 // Maximize the View's area while maintaining aspect ratio [all...] |
/developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
FixedAspectSurfaceView.java | 30 * A SurfaceView that maintains its aspect ratio to be a desired target value. 33 * requested aspect ratio. This can happen if both the width and the height are exactly 36 * the dimension that is best adjusted to maintain the aspect ratio.</p> 41 * Desired width/height ratio 50 // Get initial aspect ratio from custom attributes 60 * Set the desired aspect ratio for this view. 62 * @param aspect the desired width/height ratio in the current UI orientation. Must be a 67 throw new IllegalArgumentException("Aspect ratio must be positive"); 92 // General goal: Adjust dimensions to maintain the requested aspect ratio as much 111 // Maximize the View's area while maintaining aspect ratio [all...] |
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
FixedAspectSurfaceView.java | 30 * A SurfaceView that maintains its aspect ratio to be a desired target value. 33 * requested aspect ratio. This can happen if both the width and the height are exactly 36 * the dimension that is best adjusted to maintain the aspect ratio.</p> 41 * Desired width/height ratio 50 // Get initial aspect ratio from custom attributes 60 * Set the desired aspect ratio for this view. 62 * @param aspect the desired width/height ratio in the current UI orientation. Must be a 67 throw new IllegalArgumentException("Aspect ratio must be positive"); 92 // General goal: Adjust dimensions to maintain the requested aspect ratio as much 111 // Maximize the View's area while maintaining aspect ratio [all...] |
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/ |
FixedAspectSurfaceView.java | 28 * A SurfaceView that maintains its aspect ratio to be a desired target value. 31 * requested aspect ratio. This can happen if both the width and the height are exactly 34 * the dimension that is best adjusted to maintain the aspect ratio.</p> 41 * Desired width/height ratio 48 // Get initial aspect ratio from custom attributes 58 * Set the desired aspect ratio for this view. 60 * @param aspect the desired width/height ratio in the current UI orientation. Must be a 65 throw new IllegalArgumentException("Aspect ratio must be positive"); 79 // General goal: Adjust dimensions to maintain the requested aspect ratio as much 98 // Maximize the View's area while maintaining aspect ratio [all...] |
/frameworks/volley/src/com/android/volley/toolbox/ |
ImageRequest.java | 57 * ratio. If both width and height are nonzero, the image will be decoded to 59 * aspect ratio. 86 * Scales one side of a rectangle to fit aspect ratio. 89 * max width), or zero to maintain aspect ratio with secondary 92 * maintain aspect ratio with primary dimension 103 // If primary is unspecified, scale primary to match secondary's scaling ratio. 105 double ratio = (double) maxSecondary / (double) actualSecondary; local 106 return (int) (actualPrimary * ratio); 113 double ratio = (double) actualSecondary / (double) actualPrimary; local 115 if (resized * ratio > maxSecondary) 203 double ratio = Math.min(wr, hr); local [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/ |
ratio | 0 // ratio -*- C++ -*- 25 /** @file include/ratio 48 * @defgroup ratio Rational Arithmetic 253 * type intmax_t. The ratio is simplified when instantiated. 257 * std::ratio<7,-21>::num == -1; 258 * std::ratio<7,-21>::den == 3; 263 struct ratio 276 typedef ratio<num, den> type; 280 constexpr intmax_t ratio<_Num, _Den>::num; 283 constexpr intmax_t ratio<_Num, _Den>::den [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/ |
ratio | 0 // ratio -*- C++ -*- 25 /** @file include/ratio 48 * @defgroup ratio Rational Arithmetic 253 * type intmax_t. The ratio is simplified when instantiated. 257 * std::ratio<7,-21>::num == -1; 258 * std::ratio<7,-21>::den == 3; 263 struct ratio 276 typedef ratio<num, den> type; 280 constexpr intmax_t ratio<_Num, _Den>::num; 283 constexpr intmax_t ratio<_Num, _Den>::den [all...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.7/include/ |
ratio | 0 // ratio -*- C++ -*- 25 /** @file include/ratio 48 * @defgroup ratio Rational Arithmetic 256 * type intmax_t. The ratio is simplified when instantiated. 260 * std::ratio<7,-21>::num == -1; 261 * std::ratio<7,-21>::den == 3; 266 struct ratio 279 typedef ratio<num, den> type; 283 constexpr intmax_t ratio<_Num, _Den>::num; 286 constexpr intmax_t ratio<_Num, _Den>::den [all...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.7/include/ |
ratio | 0 // ratio -*- C++ -*- 25 /** @file include/ratio 48 * @defgroup ratio Rational Arithmetic 256 * type intmax_t. The ratio is simplified when instantiated. 260 * std::ratio<7,-21>::num == -1; 261 * std::ratio<7,-21>::den == 3; 266 struct ratio 279 typedef ratio<num, den> type; 283 constexpr intmax_t ratio<_Num, _Den>::num; 286 constexpr intmax_t ratio<_Num, _Den>::den [all...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.8/include/ |
ratio | 0 // ratio -*- C++ -*- 25 /** @file include/ratio 48 * @defgroup ratio Rational Arithmetic 253 * type intmax_t. The ratio is simplified when instantiated. 257 * std::ratio<7,-21>::num == -1; 258 * std::ratio<7,-21>::den == 3; 263 struct ratio 276 typedef ratio<num, den> type; 280 constexpr intmax_t ratio<_Num, _Den>::num; 283 constexpr intmax_t ratio<_Num, _Den>::den [all...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.9/include/ |
ratio | 0 // ratio -*- C++ -*- 25 /** @file include/ratio 48 * @defgroup ratio Rational Arithmetic 253 * type intmax_t. The ratio is simplified when instantiated. 257 * std::ratio<7,-21>::num == -1; 258 * std::ratio<7,-21>::den == 3; 263 struct ratio 276 typedef ratio<num, den> type; 280 constexpr intmax_t ratio<_Num, _Den>::num; 283 constexpr intmax_t ratio<_Num, _Den>::den [all...] |