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

1 2 3 4 56 7 8 91011>>

  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
FrameBufferObjectActivity.java 100 float ratio = (float) width / height; local
103 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7);
138 float ratio = (float) width / height; local
141 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);
  /developers/samples/android/common/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
  /external/chromium_org/chrome/test/functional/perf/endure_graphs/js/
coordinates.js 134 var ratio = this.heightMax / (this.heightMax - position);
135 return this.yLowerLimitValue() + (this.yValueRange() / ratio);
  /external/chromium_org/ui/keyboard/resources/
constants.js 6 * Aspect ratio of keyboard.
12 * Ratio of key height and font size.
  /external/chromium_org/ui/keyboard/resources/webui/
constants.js 7 * Aspect ratio of keyboard.
13 * Ratio of key height and font size.
  /external/clang/INPUTS/
all-std-headers.cpp 72 #include <ratio>
  /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
GLCanvas.java 109 // from * (1 - ratio) + to * ratio
112 float ratio, int x, int y, int w, int h);
115 // rectangle. The actual color used is from * (1 - ratio) + to * ratio.
119 float ratio, RectF src, RectF target);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/widget/
ProportionalLayout.java 143 public void setRatio(float ratio) {
144 mRatio = ratio;
  /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
GLCanvas.java 109 // from * (1 - ratio) + to * ratio
112 float ratio, int x, int y, int w, int h);
115 // rectangle. The actual color used is from * (1 - ratio) + to * ratio.
119 float ratio, RectF src, RectF target);
  /packages/apps/Launcher3/src/com/android/gallery3d/glrenderer/
GLCanvas.java 109 // from * (1 - ratio) + to * ratio
112 float ratio, int x, int y, int w, int h);
115 // rectangle. The actual color used is from * (1 - ratio) + to * ratio.
119 float ratio, RectF src, RectF target);
  /packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
PhotoSource.java 180 float ratio = (outsideRatio / insideRatio < mMaxCropRatio ? local
183 while (ratio < 0.5) {
185 ratio *= 2;
203 ratio = Math.max((float) longSide / (float) rawLongSide,
206 if (Math.abs(ratio - 1.0f) > 0.001) {
207 log(TAG, "still too big, scaling down by " + ratio);
208 options.outWidth = (int) (ratio * options.outWidth);
209 options.outHeight = (int) (ratio * options.outHeight);
  /packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
HoloSpiralView.java 130 float ratio = realPosition / (mWallpaperWidth * 4); local
131 mWallpaperRS.setOffset(ratio, 0, 0, 0);
  /external/chromium/net/disk_cache/
stats.cc 321 int64 ratio = GetCounter(hit) * 100; local
322 if (!ratio)
325 ratio /= (GetCounter(hit) + GetCounter(miss));
326 return static_cast<int>(ratio);
  /external/chromium_org/cc/layers/
scrollbar_layer_impl.h 57 void SetVisibleToTotalLengthRatio(float ratio);
  /external/chromium_org/net/disk_cache/
stats.cc 301 int64 ratio = GetCounter(hit) * 100; local
302 if (!ratio)
305 ratio /= (GetCounter(hit) + GetCounter(miss));
306 return static_cast<int>(ratio);
  /external/chromium_org/third_party/opus/src/celt/tests/
test_unit_mathops.c 83 double ratio; local
86 ratio = val/sqrt(i);
87 if (fabs(ratio - 1) > .0005 && fabs(val-sqrt(i)) > 2)
89 fprintf (stderr, "sqrt failed: sqrt(%d)="WORD" (ratio = %f)\n", i, val, ratio);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowMapView.java 132 double ratio = offsetPixels / ((double) maxPixel); local
134 return (int) (minDegrees + spanDegrees * ratio);
140 double ratio = offsetDegrees / ((double) spanDegrees); local
142 return (int) (minPixel + spanPixels * ratio);
  /frameworks/base/media/mca/filterfw/native/core/
geometry.h 86 bool ExpandToAspectRatio(float ratio);
  /frameworks/base/media/mca/filterpacks/native/base/
geometry.h 103 bool ExpandToAspectRatio(float ratio);
  /ndk/tests/device/issue39680-chrono-resolution/jni/
issue39680-chrono-resolution.cpp 3 #include <ratio>
  /external/chromium_org/third_party/WebKit/Source/core/platform/audio/
DynamicsCompressorKernel.cpp 112 // Full compression curve with constant ratio after knee.
120 // Constant ratio after knee.
131 // This slope is equal to the inverse of the compression "ratio".
132 // In other words, a compression ratio of 20 would be a slope of 1/20.
180 float DynamicsCompressorKernel::updateStaticCurveParameters(float dbThreshold, float dbKnee, float ratio)
182 if (dbThreshold != m_dbThreshold || dbKnee != m_dbKnee || ratio != m_ratio) {
189 m_ratio = ratio;
211 float ratio,
231 float k = updateStaticCurveParameters(dbThreshold, dbKnee, ratio);
392 // This is linear up to the threshold, then enters a "knee" portion followed by the "ratio" portion
    [all...]
  /external/valgrind/main/drd/tests/
matinv.c 319 double ratio; local
351 ratio = error / (eps * matrix_size);
355 error, eps, ratio);
357 if (isfinite(ratio) && ratio < 100)
omp_matinv.c 295 double ratio; local
331 ratio = error / (eps * matrix_size);
335 error, eps, ratio);
337 if (isfinite(ratio) && ratio < 100)
  /external/chromium_org/third_party/cld/encodings/compact_lang_det/
cldutil.cc 785 // ratio = max(top/mainstream, mainstream/top)
786 // ratio > 4.0 is 0% reliable, <= 2.0 is 100% reliable
794 double ratio; local
797 ratio = (1.0 * top_kb) / mean_score;
800 ratio = (1.0 * mean_score) / top_kb;
803 if (ratio <= ratio_cutoff - 2.0) {return 100;}
804 if (ratio > ratio_cutoff) {return 0;}
806 int iratio = static_cast<int>(100 * (ratio_cutoff - ratio) / 2.0);
810 // Calculate ratio of score per 1KB vs. expected score per 1KB
831 double ratio = our_score / expected_score local
    [all...]
  /external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/resources/
sunspider-compare-results.js 308 var ratio = isFaster ? (mean1 / mean2) : (mean2 / mean1);
309 var fixedRatio = (ratio < 1.2) ? ratio.toFixed(3).toString() : ((ratio < 10) ? ratio.toFixed(2).toString() : ratio.toFixed(1).toString());

Completed in 925 milliseconds

1 2 3 4 56 7 8 91011>>