/packages/services/Telephony/src/com/android/phone/ |
ContactsAsyncHelper.java | 282 float ratio = ((float) longerEdge) / iconSize; local 283 int newWidth = (int) (orgWidth / ratio); 284 int newHeight = (int) (orgHeight / ratio); 292 // It is sure ratio >= 1.0f in any case and thus the newly created Bitmap
|
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/mod_pywebsocket/ |
extensions.py | 81 # Print inf when ratio is not available. 82 ratio = float('inf') 85 ratio = float(filtered_bytes) / original_bytes 89 logger.debug('Outgoing compress ratio: %f (average: %f)' % 90 (ratio, average_ratio)) 95 # Print inf when ratio is not available. 96 ratio = float('inf') 99 ratio = float(received_bytes) / filtered_bytes 103 logger.debug('Incoming compress ratio: %f (average: %f)' % 104 (ratio, average_ratio) [all...] |
/external/chromium_org/chrome/browser/resources/ntp_android/ |
bookmarks.css | 217 @media screen and (-webkit-min-device-pixel-ratio: 1.32) { 244 @media screen and (-webkit-min-device-pixel-ratio: 1.5) { 259 @media screen and (-webkit-min-device-pixel-ratio: 2.0) {
|
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/imageinfo/ |
info.js | 108 var ratio = src_w / src_h; 110 new_h /= ratio; 112 new_w *= ratio;
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/mod_pywebsocket/ |
extensions.py | 82 # Print inf when ratio is not available. 83 ratio = float('inf') 85 ratio = float(filtered_bytes) / original_bytes 87 logger.debug('Outgoing compression ratio: %f (average: %f)' % 88 (ratio, average_ratio)) 93 # Print inf when ratio is not available. 94 ratio = float('inf') 96 ratio = float(received_bytes) / filtered_bytes 98 logger.debug('Incoming compression ratio: %f (average: %f)' % 99 (ratio, average_ratio) [all...] |
/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/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
SpriteTextRenderer.java | 252 float ratio = (float) w / h; local 255 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
Ray.java | 375 float ratio = numerator / denominator; local 377 if (ratio < FastMath.FLT_EPSILON) { 380 loc.set(direction).multLocal(ratio).addLocal(origin);
|
/frameworks/native/opengl/tests/gl_basic/ |
gl_basic.cpp | 296 float ratio = 320.0f / 480.0f; 300 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
Utilities.java | 139 final float ratio = (float) sourceWidth / sourceHeight; local 141 height = (int) (width / ratio); 143 width = (int) (height * ratio);
|
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/filters/ |
FETurbulence.cpp | 304 float ratio = 1; local 307 turbulenceFunctionResult += noise2D(channel, paintingData, stitchData, noiseVector) / ratio; 309 turbulenceFunctionResult += fabsf(noise2D(channel, paintingData, stitchData, noiseVector)) / ratio; 312 ratio *= 2;
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
FlameChart.js | 553 var ratio = window.devicePixelRatio; variable 554 var canvasWidth = width * ratio; 555 var canvasHeight = height * ratio; 574 context.lineTo(x * ratio, value); 611 var ratio = window.devicePixelRatio; variable 612 var canvasWidth = width * ratio; 613 var canvasHeight = height * ratio; 623 context.scale(ratio, ratio);
|
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/ |
localvideosource.cc | 188 // The aspect ratio in |constraint.value| has been converted to a string and 193 // ratio but small enough to avoid matching wrong aspect ratios. 194 double ratio = static_cast<double>(format_in.width) / format_in.height; local 195 return (value <= ratio + kRoundingTruncation); 198 double ratio = static_cast<double>(format_in.width) / format_in.height; local 201 return (value >= ratio - kRoundingTruncation);
|
/external/chromium_org/third_party/zlib/contrib/minizip/ |
miniunz.c | 231 printf(" Length Method Size Ratio Date Time CRC-32 Name\n"); 237 uLong ratio=0; local 247 ratio = (uLong)((file_info.compressed_size*100)/file_info.uncompressed_size); 278 ratio, 314 uLong ratio=0; local
|
/external/kernel-headers/original/linux/ |
ppp_defs.h | 158 /* the compression ratio is defined as in_count / bytes_out */ 162 double ratio; /* not computed in kernel. */ member in struct:compstat
|
/external/zlib/src/contrib/minizip/ |
miniunz.c | 244 printf(" Length Method Size Ratio Date Time CRC-32 Name\n"); 250 uLong ratio=0; local 260 ratio = (uLong)((file_info.compressed_size*100)/file_info.uncompressed_size); 291 ratio, 327 uLong ratio=0; local
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
CameraPreview.java | 159 * support preview sizes at the same aspect ratio as the device's display. 277 // Try to find an size match aspect ratio and size 279 double ratio = (double) size.width / size.height; local 280 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; 287 // Cannot find the one match the aspect ratio, ignore the requirement
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
CameraFragment.java | 168 * aspect ratio as the device's display. 297 // Try to find an size match aspect ratio and size 299 double ratio = (double) size.width / size.height; local 300 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) 308 // Cannot find the one match the aspect ratio, ignore the requirement
|
/external/chromium_org/content/browser/web_contents/aura/ |
window_slider.cc | 156 float ratio = (fabs(delta_x_) - horiz_start_threshold_) / width; local 157 if (ratio < complete_threshold_) {
|
/external/chromium_org/third_party/WebKit/Source/core/platform/audio/ |
DynamicsCompressor.cpp | 194 float ratio = parameterValue(ParamRatio); local 221 ratio,
|
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/ |
StringTruncator.cpp | 153 float ratio = (keepCountForSmallestKnownToNotFit - keepCountForLargestKnownToFit) 155 keepCount = static_cast<unsigned>(maxWidth * ratio);
|
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/ |
PeriodicWave.cpp | 108 float ratio = fundamentalFrequency > 0 ? fundamentalFrequency / m_lowestFundamentalFrequency : 0.5; local 109 float centsAboveLowestFrequency = log2f(ratio) * 1200;
|
/external/chromium_org/third_party/icu/source/tools/makeconv/ |
gencnvex.c | 332 int32_t u16Length, ratio; local 375 ratio=(u16Length+(m->bLen-1))/m->bLen; 376 if(ratio>extData->maxUCharsPerByte) { 377 extData->maxUCharsPerByte=ratio; 638 int32_t u16Length, ratio; local 691 ratio=(m->bLen+(u16Length-1))/u16Length; 692 if(ratio>extData->maxBytesPerUChar) { 693 extData->maxBytesPerUChar=ratio; [all...] |
/external/icu4c/tools/makeconv/ |
gencnvex.c | 333 int32_t u16Length, ratio; local 376 ratio=(u16Length+(m->bLen-1))/m->bLen; 377 if(ratio>extData->maxUCharsPerByte) { 378 extData->maxUCharsPerByte=ratio; 639 int32_t u16Length, ratio; local 694 ratio=(m->bLen+(u16Length-1))/u16Length; 695 if(ratio>extData->maxBytesPerUChar) { 696 extData->maxBytesPerUChar=ratio; [all...] |
/external/qemu/audio/ |
audio_int.h | 114 int64_t ratio; member in struct:SWVoiceOut 131 int64_t ratio; member in struct:SWVoiceIn
|