HomeSort by relevance Sort by last modified time
    Searched refs:ratio (Results 51 - 75 of 97) sorted by null

1 23 4

  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
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
CubeMapActivity.java 110 float ratio = (float) width / height; local
113 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);
MatrixPaletteRenderer.java 377 float ratio = (float) w / h; local
380 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7);
  /external/chromium/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 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/qemu/audio/
audio_int.h 112 int64_t ratio; member in struct:SWVoiceOut
129 int64_t ratio; member in struct:SWVoiceIn
audio_template.h 114 samples = ((int64_t) sw->hw->samples << 32) / sw->ratio;
150 sw->ratio = ((int64_t) sw->hw->info.freq << 32) / sw->info.freq;
154 sw->ratio = ((int64_t) sw->info.freq << 32) / sw->hw->info.freq;
audio.c 917 sw->ratio = ((int64_t) hw_cap->info.freq << 32) / sw->info.freq;
1006 swlim = (live * sw->ratio) >> 32;
1124 swlim = ((int64_t) dead << 32) / sw->ratio;
1338 live, (((int64_t) live << 32) / sw->ratio) << sw->info.shift
1341 return (((int64_t) live << 32) / sw->ratio) << sw->info.shift;
1364 live, dead, (((int64_t) dead << 32) / sw->ratio) << sw->info.shift);
1367 return (((int64_t) dead << 32) / sw->ratio) << sw->info.shift;
    [all...]
  /external/webkit/WebCore/platform/graphics/
StringTruncator.cpp 144 float ratio = (keepCountForSmallestKnownToNotFit - keepCountForLargestKnownToFit)
146 keepCount = static_cast<unsigned>(maxWidth * ratio);
  /frameworks/base/media/libeffects/lvm/wrapper/Reverb/
EffectReverb.cpp 1736 int16_t ratio; local
    [all...]
  /frameworks/base/core/java/android/app/
LauncherActivity.java 287 final float ratio = (float) iconWidth / iconHeight; local
290 height = (int) (width / ratio);
292 width = (int) (height * ratio);
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
MediaEnvReverbTest.java 158 //Test case 1.1: test decay time and ratio
172 short ratio = mReverb.getDecayHFRatio(); local
173 assertTrue(msg +": got incorrect decay HF ratio",
174 ((float)ratio > (float)(1000 / RATIO_TOLERANCE)) &&
175 ((float)ratio < (float)(1000 * RATIO_TOLERANCE)));
  /packages/apps/Launcher2/src/com/android/launcher2/
Utilities.java 128 final float ratio = (float) sourceWidth / sourceHeight; local
130 height = (int) (width / ratio);
132 width = (int) (height * ratio);
  /packages/apps/Settings/src/com/android/settings/
ActivityPicker.java 375 final float ratio = (float) iconWidth / iconHeight; local
378 height = (int) (width / ratio);
380 width = (int) (height * ratio);
  /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;
  /external/freetype/src/truetype/
ttobjs.h 224 /* - When performing a read or write in the CVT, a ratio factor is used */
236 /* We compute the current ratio like: */
239 /* ratio = x_ratio = 1.0 */
242 /* ratio = y_ratio */
245 /* ratio = sqrt( (proj.x * x_ratio) ^ 2 + (proj.y * y_ratio) ^ 2 ) */
248 /* ratio * cvt[index] */
251 /* cvt[index] / ratio */
254 /* ratio * ppem */
270 FT_Long ratio; /* current ratio */ member in struct:TT_Size_Metrics_
    [all...]
  /packages/apps/Gallery3D/src/com/cooliris/media/
TimeBar.java 349 final float ratio = Math.min(1f, 10f * dt); local
350 final float invRatio = 1f - ratio;
351 mPositionAnim = ratio * mPosition + invRatio * mPositionAnim;
352 mScrollAnim = ratio * mScroll + invRatio * mScrollAnim;
GridDrawManager.java 538 float ratio = timeElapsedSinceGridView;
545 ratio = mFocusMixRatio;
547 ratio = timeElapsedSinceStackView;
551 drawDisplayItem(view, gl, itemDrawn, textureToUse, PASS_FRAME, previousTexture, ratio);
    [all...]
RenderView.java 385 public boolean bindMixed(Texture from, Texture to, float ratio) {
407 final float[] color = { 1f, 1f, 1f, ratio };
430 public void drawMixed2D(Texture from, Texture to, float ratio, float x, float y, float z, float width, float height) {
448 final float[] color = { 1f, 1f, 1f, ratio };
    [all...]
  /development/apps/OBJViewer/com/android/objviewer/
OBJViewer.java 196 float ratio = (float)w/h; local
197 glView.setAspectRatio(ratio);
  /frameworks/base/media/libstagefright/codecs/aacenc/src/
psy_configuration.c 392 init ratio
394 psyConf->ratio = c_ratio;
474 init ratio
476 psyConf->ratio = c_ratio;
  /external/blktrace/btt/
output.c 171 double ratio, q2c_n, d2c_n; local
182 ratio = 1.0;
184 ratio = q2c_n / d2c_n;
191 ratio,
203 ratio,
227 fprintf(ofp, "%10s | %8s %8s %7s | %8s %8s %8s %8s\n", "DEV", "#Q", "#D", "Ratio", "BLKmin", "BLKavg", "BLKmax", "Total");
232 fprintf(ofp, "%10s | %8s %8s %7s | %8s %8s %8s %8s\n", "DEV", "#Q", "#D", "Ratio", "BLKmin", "BLKavg", "BLKmax", "Total");
  /development/samples/Home/src/com/example/android/home/
Home.java 640 final float ratio = (float) iconWidth / iconHeight; local
643 height = (int) (width / ratio);
645 width = (int) (height * ratio);
  /frameworks/base/core/java/android/gesture/
GestureUtils.java 65 * The scaling does not necessarily keep the aspect ratio of the gesture.
84 * aspect ratio
298 float ratio = (increment - distanceSoFar) / distance; local
299 float nx = lstPointX + ratio * deltaX;
300 float ny = lstPointY + ratio * deltaY;
  /external/speex/libspeex/
sb_celp.c 428 float ratio; local
449 ratio = 2*log((1.f+e_high)/(1.f+e_low));
452 if (ratio<-4)
453 ratio=-4;
454 if (ratio>2)
455 ratio=2;
456 /*if (ratio>-2)*/
461 st->relative_quality+=1.0*(ratio+2);
499 /*fprintf (stderr, "%f %f\n", ratio, low_qual);*/
1007 /* Calculate reponse ratio between the low and high filter in the middl
    [all...]

Completed in 584 milliseconds

1 23 4