/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
CubeRenderer.java | 76 float ratio = (float) width / height; local 79 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);
|
CameraPreview.java | 82 * support preview sizes at the same aspect ratio as the device's display. 186 // Try to find an size match aspect ratio and size 188 double ratio = (double) size.width / size.height; local 189 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; 196 // Cannot find the one match the aspect ratio, ignore the requirement
|
StaticTriangleRenderer.java | 176 float ratio = (float) w / h; local 179 glFrustumf(-ratio, ratio, -1, 1, 3, 7);
|
TouchRotateActivity.java | 146 float ratio = (float) width / height; local 149 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);
|
TriangleRenderer.java | 164 float ratio = (float) w / h; local 167 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7);
|
/development/samples/BrowserPlugin/src/com/android/sampleplugin/graphics/ |
CubeRenderer.java | 76 float ratio = (float) width / height; local 79 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);
|
/external/webkit/WebCore/page/wince/ |
FrameWince.cpp | 86 float ratio = (float)printRect.height() / (float)printRect.width(); local 89 float pageHeight = pageWidth * ratio;
|
/frameworks/base/media/libstagefright/codecs/aacenc/inc/ |
psy_configuration.h | 45 Word16 ratio; member in struct:__anon9294 75 Word16 ratio; member in struct:__anon9295
|
/packages/apps/Gallery3D/src/com/cooliris/media/ |
FloatAnim.java | 69 float ratio = (float) (currentTime - mStartTime) * 0.001f / mDuration; local 70 if (ratio >= 1f) { // CR: 1.0f 74 ratio = 0.5f - 0.5f * FloatMath.cos(ratio * 3.14159265f); // CR: 76 return mValue + (1f - ratio) * mDelta;
|
/cts/apps/CtsVerifier/jni/audioquality/ |
MeasureRms.cpp | 134 float ratio = 10.0 * log10(sumSampleSquares / calMedian); local 135 if (ratio > onsetThresh) { 152 float ratio = 10.0 * log10(sumSampleSquares / calMedian); local 154 if (ratio < (-onsetThresh)) { // found signal end
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/ |
KubeRenderer.java | 85 float ratio = (float)width / height; local 88 gl.glFrustumf(-ratio, ratio, -1, 1, 2, 12);
|
/frameworks/base/core/java/android/gesture/ |
OrientedBoundingBox.java | 42 float ratio = w / h; local 43 if (ratio > 1) { 44 squareness = 1 / ratio; 46 squareness = ratio;
|
/external/webkit/WebCore/page/ |
PrintContext.cpp | 68 float ratio = printRect.height() / printRect.width(); local 71 float pageHeight = pageWidth * ratio;
|
/external/webkit/WebCore/rendering/ |
RenderVideo.cpp | 132 int ratio = renderBox.width() * elementSize.height() - renderBox.height() * elementSize.width(); local 133 if (ratio > 0) { 139 } else if (ratio < 0) {
|
/frameworks/base/opengl/tests/gl_jni/jni/ |
gl_code.cpp | 93 float ratio = width / height; local 98 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
|
/frameworks/base/opengl/tests/gldual/src/com/android/gldual/ |
TriangleRenderer.java | 100 float ratio = (float) w / h; local 103 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7);
|
/system/media/opensles/libopensles/ |
IEqualizer.c | 295 // search for band whose center frequency has the closest ratio to 1.0 308 float ratio = frequency <= band->mCenter ? local 310 if (ratio > bestRatio) { 311 bestRatio = ratio;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
AccelerometerTestRenderer.java | 278 float ratio = (float) w / h; local 281 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7);
|
/development/samples/Compass/src/com/example/android/compass/ |
CompassActivity.java | 135 float ratio = (float) width / height; local 138 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);
|
/external/chromium/net/disk_cache/ |
stats.cc | 282 int64 ratio = GetCounter(hit) * 100; local 283 if (!ratio) 286 ratio /= (GetCounter(hit) + GetCounter(miss)); 287 return static_cast<int>(ratio);
|
/external/chromium/third_party/zlib/contrib/minizip/ |
miniunz.c | 178 printf(" Length Method Size Ratio Date Time CRC-32 Name\n"); 184 uLong ratio=0; local 194 ratio = (file_info.compressed_size*100)/file_info.uncompressed_size; 220 ratio, 256 uLong ratio=0; local
|
/frameworks/base/core/java/android/widget/ |
RatingBar.java | 267 final float ratio = getProgressPerStar(); local 268 if (ratio > 0) { 269 final float progressInStars = progress / ratio; 270 final int secondaryProgress = (int) (Math.ceil(progressInStars) * ratio);
|
/frameworks/base/opengl/tests/tritex/ |
tritex.cpp | 186 float ratio = 320.0f / 480.0f; local 191 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
IconUtilities.java | 131 final float ratio = (float) sourceWidth / sourceHeight; local 133 height = (int) (width / ratio); 135 width = (int) (height * ratio);
|
/packages/apps/Calculator/src/com/android/calculator2/ |
Calculator.java | 180 float ratio = (float)h/HVGA_WIDTH_PIXELS; local 181 view.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontPixelSize*ratio);
|