HomeSort by relevance Sort by last modified time
    Searched full:ratio (Results 126 - 150 of 2022) sorted by null

1 2 3 4 56 7 8 91011>>

  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/ratio/
version.pass.cpp 10 // <ratio>
12 #include <ratio>
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/
default_ratio.pass.cpp 16 // template <class Rep, class Period = ratio<1>>
24 static_assert((std::is_same<std::chrono::duration<int, std::ratio<1> >,
types.pass.cpp 24 typedef std::chrono::duration<long, std::ratio<3, 2> > D;
26 static_assert((std::is_same<D::period, std::ratio<3, 2> >::value), "");
  /cts/tests/tests/media/src/android/media/cts/
EnvReverbTest.java 110 //Test case 1.1: test decay time and ratio
124 short ratio = mReverb.getDecayHFRatio(); local
125 ratio = (short)((ratio == 500) ? 1000 : 500);
126 mReverb.setDecayHFRatio(ratio);
128 assertTrue("got incorrect decay HF ratio",
129 ((float)ratio2 > (float)(ratio / RATIO_TOLERANCE)) &&
130 ((float)ratio2 < (float)(ratio * RATIO_TOLERANCE)));
228 short ratio = mReverb.getDiffusion(); local
229 ratio = (short)((ratio == 500) ? 1000 : 500)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/platform/audio/
DynamicsCompressorKernel.h 55 float ratio,
105 float updateStaticCurveParameters(float dbThreshold, float dbKnee, float ratio);
110 float m_slope; // Inverse ratio.
116 // m_dbKnee is the number of dB above the threshold before we enter the "ratio" portion of the curve.
119 // which transitions smoothly from the linear portion to the ratio portion.
  /frameworks/base/media/mca/filterfw/native/core/
geometry.cpp 72 bool Rect::ExpandToAspectRatio(float ratio) {
73 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) {
78 if (current_ratio < ratio) {
79 const float dx = width * (ratio / current_ratio - 1.0f);
83 const float dy = height * (current_ratio / ratio - 1.0f);
  /external/chromium_org/third_party/freetype/src/truetype/
ttobjs.h 227 /* - When performing a read or write in the CVT, a ratio factor is used */
239 /* We compute the current ratio like: */
242 /* ratio = x_ratio = 1.0 */
245 /* ratio = y_ratio */
248 /* ratio = sqrt( (proj.x * x_ratio) ^ 2 + (proj.y * y_ratio) ^ 2 ) */
251 /* ratio * cvt[index] */
254 /* cvt[index] / ratio */
257 /* ratio * ppem */
273 FT_Long ratio; /* current ratio */ member in struct:TT_Size_Metrics_
    [all...]
  /external/freetype/src/truetype/
ttobjs.h 227 /* - When performing a read or write in the CVT, a ratio factor is used */
239 /* We compute the current ratio like: */
242 /* ratio = x_ratio = 1.0 */
245 /* ratio = y_ratio */
248 /* ratio = sqrt( (proj.x * x_ratio) ^ 2 + (proj.y * y_ratio) ^ 2 ) */
251 /* ratio * cvt[index] */
254 /* cvt[index] / ratio */
257 /* ratio * ppem */
273 FT_Long ratio; /* current ratio */ member in struct:TT_Size_Metrics_
    [all...]
  /external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/truetype/
ttobjs.h 227 /* - When performing a read or write in the CVT, a ratio factor is used */
239 /* We compute the current ratio like: */
242 /* ratio = x_ratio = 1.0 */
245 /* ratio = y_ratio */
248 /* ratio = sqrt( (proj.x * x_ratio) ^ 2 + (proj.y * y_ratio) ^ 2 ) */
251 /* ratio * cvt[index] */
254 /* cvt[index] / ratio */
257 /* ratio * ppem */
273 FT_Long ratio; /* current ratio */ member in struct:TT_Size_Metrics_
    [all...]
  /developers/build/prebuilts/gradle/AdapterTransition/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 173 * Blend {@code color1} and {@code color2} using the given ratio.
175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend,
178 private static int blendColors(int color1, int color2, float ratio) {
179 final float inverseRation = 1f - ratio;
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation);
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation);
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
  /developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/com/example/android/common/media/
CameraHelper.java 40 * dimensions of the given view while maintaining the aspect ratio. If none can,
41 * be lenient with the aspect ratio.
64 // Try to find a preview size that matches aspect ratio and the target view size.
66 // still maintain the aspect ratio.
68 double ratio = (double) size.width / size.height; local
69 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE)
77 // Cannot find preview size that matches the aspect ratio, ignore the requirement
  /developers/build/prebuilts/gradle/BasicRenderScript/Application/src/main/java/com/example/android/common/media/
CameraHelper.java 40 * dimensions of the given view while maintaining the aspect ratio. If none can,
41 * be lenient with the aspect ratio.
64 // Try to find a preview size that matches aspect ratio and the target view size.
66 // still maintain the aspect ratio.
68 double ratio = (double) size.width / size.height; local
69 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE)
77 // Cannot find preview size that matches the aspect ratio, ignore the requirement
  /developers/build/prebuilts/gradle/BasicTransition/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 173 * Blend {@code color1} and {@code color2} using the given ratio.
175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend,
178 private static int blendColors(int color1, int color2, float ratio) {
179 final float inverseRation = 1f - ratio;
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation);
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation);
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
  /developers/build/prebuilts/gradle/FragmentTransition/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 173 * Blend {@code color1} and {@code color2} using the given ratio.
175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend,
178 private static int blendColors(int color1, int color2, float ratio) {
179 final float inverseRation = 1f - ratio;
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation);
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation);
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
  /developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/common/media/
CameraHelper.java 40 * dimensions of the given view while maintaining the aspect ratio. If none can,
41 * be lenient with the aspect ratio.
64 // Try to find a preview size that matches aspect ratio and the target view size.
66 // still maintain the aspect ratio.
68 double ratio = (double) size.width / size.height; local
69 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE)
77 // Cannot find preview size that matches the aspect ratio, ignore the requirement
  /developers/build/prebuilts/gradle/SlidingTabsBasic/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 173 * Blend {@code color1} and {@code color2} using the given ratio.
175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend,
178 private static int blendColors(int color1, int color2, float ratio) {
179 final float inverseRation = 1f - ratio;
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation);
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation);
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
  /developers/build/prebuilts/gradle/SlidingTabsColors/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 173 * Blend {@code color1} and {@code color2} using the given ratio.
175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend,
178 private static int blendColors(int color1, int color2, float ratio) {
179 final float inverseRation = 1f - ratio;
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation);
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation);
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
  /developers/build/prebuilts/gradle/SwipeRefreshLayoutBasic/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 173 * Blend {@code color1} and {@code color2} using the given ratio.
175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend,
178 private static int blendColors(int color1, int color2, float ratio) {
179 final float inverseRation = 1f - ratio;
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation);
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation);
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
  /developers/build/prebuilts/gradle/SwipeRefreshListFragment/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 173 * Blend {@code color1} and {@code color2} using the given ratio.
175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend,
178 private static int blendColors(int color1, int color2, float ratio) {
179 final float inverseRation = 1f - ratio;
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation);
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation);
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
  /developers/build/prebuilts/gradle/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 173 * Blend {@code color1} and {@code color2} using the given ratio.
175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend,
178 private static int blendColors(int color1, int color2, float ratio) {
179 final float inverseRation = 1f - ratio;
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation);
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation);
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
  /developers/samples/android/common/src/java/com/example/android/common/media/
CameraHelper.java 40 * dimensions of the given view while maintaining the aspect ratio. If none can,
41 * be lenient with the aspect ratio.
64 // Try to find a preview size that matches aspect ratio and the target view size.
66 // still maintain the aspect ratio.
68 double ratio = (double) size.width / size.height; local
69 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE)
77 // Cannot find preview size that matches the aspect ratio, ignore the requirement
  /developers/samples/android/common/src/java/com/example/android/common/view/
SlidingTabStrip.java 173 * Blend {@code color1} and {@code color2} using the given ratio.
175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend,
178 private static int blendColors(int color1, int color2, float ratio) {
179 final float inverseRation = 1f - ratio;
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation);
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation);
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
  /development/samples/browseable/AdapterTransition/src/com.example.android.common/view/
SlidingTabStrip.java 173 * Blend {@code color1} and {@code color2} using the given ratio.
175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend,
178 private static int blendColors(int color1, int color2, float ratio) {
179 final float inverseRation = 1f - ratio;
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation);
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation);
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
  /development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
CameraHelper.java 40 * dimensions of the given view while maintaining the aspect ratio. If none can,
41 * be lenient with the aspect ratio.
64 // Try to find a preview size that matches aspect ratio and the target view size.
66 // still maintain the aspect ratio.
68 double ratio = (double) size.width / size.height; local
69 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE)
77 // Cannot find preview size that matches the aspect ratio, ignore the requirement
  /development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
CameraHelper.java 40 * dimensions of the given view while maintaining the aspect ratio. If none can,
41 * be lenient with the aspect ratio.
64 // Try to find a preview size that matches aspect ratio and the target view size.
66 // still maintain the aspect ratio.
68 double ratio = (double) size.width / size.height; local
69 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE)
77 // Cannot find preview size that matches the aspect ratio, ignore the requirement

Completed in 757 milliseconds

1 2 3 4 56 7 8 91011>>