Home
last modified time | relevance | path

Searched full:ratio (Results 1 – 25 of 1888) sorted by relevance

12345678910>>...76

/external/libcxx/test/std/utilities/ratio/ratio.comparison/
Dratio_less.pass.cpp12 #include <ratio>
28 typedef std::ratio<1, 1> R1; in main()
29 typedef std::ratio<1, 1> R2; in main()
33 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
34 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
38 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
39 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
43 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R1; in main()
44 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R2; in main()
48 typedef std::ratio<1, 1> R1; in main()
[all …]
Dratio_less_equal.pass.cpp12 #include <ratio>
28 typedef std::ratio<1, 1> R1; in main()
29 typedef std::ratio<1, 1> R2; in main()
33 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
34 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
38 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
39 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
43 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R1; in main()
44 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R2; in main()
48 typedef std::ratio<1, 1> R1; in main()
[all …]
Dratio_not_equal.pass.cpp12 #include <ratio>
28 typedef std::ratio<1, 1> R1; in main()
29 typedef std::ratio<1, 1> R2; in main()
33 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
34 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
38 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
39 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
43 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R1; in main()
44 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R2; in main()
48 typedef std::ratio<1, 1> R1; in main()
[all …]
Dratio_greater.pass.cpp12 #include <ratio>
28 typedef std::ratio<1, 1> R1; in main()
29 typedef std::ratio<1, 1> R2; in main()
33 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
34 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
38 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
39 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
43 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R1; in main()
44 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R2; in main()
48 typedef std::ratio<1, 1> R1; in main()
[all …]
Dratio_equal.pass.cpp12 #include <ratio>
28 typedef std::ratio<1, 1> R1; in main()
29 typedef std::ratio<1, 1> R2; in main()
33 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
34 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
38 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
39 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
43 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R1; in main()
44 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R2; in main()
48 typedef std::ratio<1, 1> R1; in main()
[all …]
Dratio_greater_equal.pass.cpp12 #include <ratio>
28 typedef std::ratio<1, 1> R1; in main()
29 typedef std::ratio<1, 1> R2; in main()
33 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
34 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
38 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1; in main()
39 typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R2; in main()
43 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R1; in main()
44 typedef std::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R2; in main()
48 typedef std::ratio<1, 1> R1; in main()
[all …]
/external/libcxx/include/
Dratio2 //===---------------------------- ratio -----------------------------------===//
15 ratio synopsis
21 class ratio
26 typedef ratio<num, den> type;
29 // ratio arithmetic
35 // ratio comparison
44 typedef ratio<1, 1000000000000000000000000> yocto; // not supported
45 typedef ratio<1, 1000000000000000000000> zepto; // not supported
46 typedef ratio<1, 1000000000000000000> atto;
47 typedef ratio<1, 1000000000000000> femto;
[all …]
/external/libcxx/test/std/utilities/ratio/ratio.arithmetic/
Dratio_subtract.pass.cpp12 #include <ratio>
17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
23 typedef std::ratio<1, 2> R1; in main()
24 typedef std::ratio<1, 1> R2; in main()
29 typedef std::ratio<-1, 2> R1; in main()
30 typedef std::ratio<1, 1> R2; in main()
35 typedef std::ratio<1, -2> R1; in main()
36 typedef std::ratio<1, 1> R2; in main()
41 typedef std::ratio<1, 2> R1; in main()
[all …]
Dratio_add.pass.cpp12 #include <ratio>
17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
23 typedef std::ratio<1, 2> R1; in main()
24 typedef std::ratio<1, 1> R2; in main()
29 typedef std::ratio<-1, 2> R1; in main()
30 typedef std::ratio<1, 1> R2; in main()
35 typedef std::ratio<1, -2> R1; in main()
36 typedef std::ratio<1, 1> R2; in main()
41 typedef std::ratio<1, 2> R1; in main()
[all …]
Dratio_divide.pass.cpp12 #include <ratio>
17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
23 typedef std::ratio<1, 2> R1; in main()
24 typedef std::ratio<1, 1> R2; in main()
29 typedef std::ratio<-1, 2> R1; in main()
30 typedef std::ratio<1, 1> R2; in main()
35 typedef std::ratio<1, -2> R1; in main()
36 typedef std::ratio<1, 1> R2; in main()
41 typedef std::ratio<1, 2> R1; in main()
[all …]
Dratio_multiply.pass.cpp12 #include <ratio>
17 typedef std::ratio<1, 1> R1; in main()
18 typedef std::ratio<1, 1> R2; in main()
23 typedef std::ratio<1, 2> R1; in main()
24 typedef std::ratio<1, 1> R2; in main()
29 typedef std::ratio<-1, 2> R1; in main()
30 typedef std::ratio<1, 1> R2; in main()
35 typedef std::ratio<1, -2> R1; in main()
36 typedef std::ratio<1, 1> R2; in main()
41 typedef std::ratio<1, 2> R1; in main()
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
DV_D_M_X_.py10 numRatios: H # Number of aspect ratio groupings
13 # ratio ranges);
17 xRatio: B # Value to use for x-Ratio
18 yStartRatio: B # Starting y-Ratio value
19 yEndRatio: B # Ending y-Ratio value
22 # VDMX Group for this ratio range (offsets will be re-calculated on compile);
47 ratio, data = sstruct.unpack2(VDMX_RatRangeFmt, data)
49 # the mapping between a ratio and a group is defined further below
50 ratio['groupIndex'] = None
51 self.ratRanges.append(ratio)
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DAspectRatioFrameLayout.java28 /** A {@link FrameLayout} that resizes itself to match a specified aspect ratio. */
35 * Called when either the target aspect ratio or the view aspect ratio is updated.
37 * @param targetAspectRatio The aspect ratio that has been set in {@link #setAspectRatio(float)}
38 * @param naturalAspectRatio The natural aspect ratio of this view (before its width and height
39 * are modified to satisfy the target aspect ratio).
63 /** Either the width or height is decreased to obtain the desired aspect ratio. */
66 * The width is fixed and the height is increased or decreased to obtain the desired aspect ratio.
70 * The height is fixed and the width is increased or decreased to obtain the desired aspect ratio.
73 /** The specified aspect ratio is ignored. */
75 /** Either the width or height is increased to obtain the desired aspect ratio. */
[all …]
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DAspectRatioFrameLayout.java29 * A {@link FrameLayout} that resizes itself to match a specified aspect ratio.
37 * Called when either the target aspect ratio or the view aspect ratio is updated.
39 * @param targetAspectRatio The aspect ratio that has been set in {@link #setAspectRatio(float)}
40 * @param naturalAspectRatio The natural aspect ratio of this view (before its width and height
41 * are modified to satisfy the target aspect ratio).
67 * Either the width or height is decreased to obtain the desired aspect ratio.
71 * The width is fixed and the height is increased or decreased to obtain the desired aspect ratio.
75 * The height is fixed and the width is increased or decreased to obtain the desired aspect ratio.
79 * The specified aspect ratio is ignored.
83 * Either the width or height is increased to obtain the desired aspect ratio.
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DAspectRatioFrameLayout.java31 /** A {@link FrameLayout} that resizes itself to match a specified aspect ratio. */
38 * Called when either the target aspect ratio or the view aspect ratio is updated.
40 * @param targetAspectRatio The aspect ratio that has been set in {@link #setAspectRatio(float)}
41 * @param naturalAspectRatio The natural aspect ratio of this view (before its width and height
42 * are modified to satisfy the target aspect ratio).
67 /** Either the width or height is decreased to obtain the desired aspect ratio. */
70 * The width is fixed and the height is increased or decreased to obtain the desired aspect ratio.
74 * The height is fixed and the width is increased or decreased to obtain the desired aspect ratio.
77 /** The specified aspect ratio is ignored. */
79 /** Either the width or height is increased to obtain the desired aspect ratio. */
[all …]
/external/pdfium/testing/tools/
Dsafetynet_conclusions.py90 ratio = None
93 ratio = (float(after) / before) - 1.0
94 if ratio > self.threshold_significant:
96 elif ratio < self.threshold_significant_negative:
98 elif ratio == 0:
103 case_result = CaseResult(case_name, before, after, ratio, rating)
138 "ratio": None,
144 "ratio": 0.2,
150 "ratio": 19.0,
156 "ratio": 0.005,
[all …]
/external/libcxx/test/std/utilities/time/time.traits/time.traits.specializations/
Dduration.pass.cpp30 test<std::chrono::duration<int, std::ratio<1, 100> >, in main()
31 std::chrono::duration<long, std::ratio<1, 1000> >, in main()
32 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main()
33 test<std::chrono::duration<long, std::ratio<1, 100> >, in main()
34 std::chrono::duration<int, std::ratio<1, 1000> >, in main()
35 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main()
36 test<std::chrono::duration<char, std::ratio<1, 30> >, in main()
37 std::chrono::duration<short, std::ratio<1, 1000> >, in main()
38 std::chrono::duration<int, std::ratio<1, 3000> > >(); in main()
39 test<std::chrono::duration<double, std::ratio<21, 1> >, in main()
[all …]
Dtime_point.pass.cpp34 test<std::chrono::duration<int, std::ratio<1, 100> >, in main()
35 std::chrono::duration<long, std::ratio<1, 1000> >, in main()
36 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main()
37 test<std::chrono::duration<long, std::ratio<1, 100> >, in main()
38 std::chrono::duration<int, std::ratio<1, 1000> >, in main()
39 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main()
40 test<std::chrono::duration<char, std::ratio<1, 30> >, in main()
41 std::chrono::duration<short, std::ratio<1, 1000> >, in main()
42 std::chrono::duration<int, std::ratio<1, 3000> > >(); in main()
43 test<std::chrono::duration<double, std::ratio<21, 1> >, in main()
[all …]
/external/libcxx/test/std/utilities/time/time.duration/time.duration.nonmember/
Dop_-.pass.cpp39 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
40 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main()
41 std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; in main()
45 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
46 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main()
47 std::chrono::duration<double, std::ratio<1, 15> > r = s1 - s2; in main()
64 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
65 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main()
66 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; in main()
70 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
[all …]
Dop_+.pass.cpp38 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
39 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main()
40 std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; in main()
44 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
45 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main()
46 std::chrono::duration<double, std::ratio<1, 15> > r = s1 + s2; in main()
63 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
64 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main()
65 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; in main()
69 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
[all …]
/external/zstd/contrib/linux-kernel/
Dbtrfs-benchmark.sh41 echo "Approximate compression ratio"
57 # min time and ratio.
64 # ratio: 0.99
69 # ratio: 1.66
74 # ratio : 2.58
79 # ratio : 2.57
84 # ratio : 2.71
89 # ratio : 2.87
94 # ratio : 2.92
99 # ratio : 2.93
[all …]
Dbtrfs-extract-benchmark.sh41 echo "Approximate tarred compression ratio"
59 echo "Approximate extracted compression ratio"
71 # min time and ratio.
77 # tarball ratio: 0.97
78 # extracted ratio: 0.78
84 # tarball ratio: 2.06
85 # extracted ratio: 1.38
91 # tarball ratio : 3.40
92 # extracted ratio: 1.86
98 # tarball ratio : 3.57
[all …]
/external/volley/core/src/main/java/com/android/volley/toolbox/
DImageRequest.java63 * aspect ratio. If both width and height are nonzero, the image will be decoded to be fit in
64 * the rectangle of dimensions width x height while keeping its aspect ratio.
123 * Scales one side of a rectangle to fit aspect ratio.
126 * to maintain aspect ratio with secondary dimension
127 * @param maxSecondary Maximum size of the secondary dimension, or zero to maintain aspect ratio
145 // If ScaleType.FIT_XY fill the whole rectangle, ignore ratio. in getResizedDimension()
153 // If primary is unspecified, scale primary to match secondary's scaling ratio. in getResizedDimension()
155 double ratio = (double) maxSecondary / (double) actualSecondary; in getResizedDimension() local
156 return (int) (actualPrimary * ratio); in getResizedDimension()
163 double ratio = (double) actualSecondary / (double) actualPrimary; in getResizedDimension() local
[all …]
/external/autotest/client/common_lib/perf_expectations/
Dexpectation_checker.py107 ratio = 1 - divide(trace_perf_value, improve)
108 return 'improve', ratio
110 ratio = divide(trace_perf_value, regress) - 1
111 return 'regress', ratio
115 ratio = divide(trace_perf_value, improve) - 1
116 return 'improve', ratio
118 ratio = 1 - divide(trace_perf_value, regress)
119 return 'regress', ratio
134 where the float number is the regress/improve ratio.
139 # (key, ratio) is like ('regress', 2.83)
[all …]
/external/libcxx/test/std/utilities/time/time.duration/time.duration.comparisons/
Dop_equal.pass.cpp56 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main()
57 std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main()
62 std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main()
63 std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main()
68 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main()
69 std::chrono::duration<double, std::ratio<3, 5> > s2(10); in main()
99 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main()
100 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main()
105 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main()
106 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main()
[all …]

12345678910>>...76