/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
MediaEnvReverbTest.java | 167 //Test case 1.1: test decay time and ratio 181 short ratio = mReverb.getDecayHFRatio(); local 182 assertTrue(msg +": got incorrect decay HF ratio", 183 ((float)ratio > (float)(1000 / RATIO_TOLERANCE)) && 184 ((float)ratio < (float)(1000 * RATIO_TOLERANCE)));
|
/frameworks/wilhelm/src/itf/ |
IEqualizer.c | 298 // search for band whose center frequency has the closest ratio to 1.0 311 float ratio = frequency <= band->mCenter ? local 313 if (ratio > bestRatio) { 314 bestRatio = ratio;
|
/packages/apps/Settings/src/com/android/settings/ |
ActivityPicker.java | 379 final float ratio = (float) iconWidth / iconHeight; local 382 height = (int) (width / ratio); 384 width = (int) (height * ratio);
|
/external/eigen/bench/btl/data/ |
gnuplot_common_settings.hh | 44 set size ratio 0 1,1 variable
|
/external/freetype/src/truetype/ |
ttobjs.h | 225 /* - When performing a read or write in the CVT, a ratio factor is used */ 237 /* We compute the current ratio like: */ 240 /* ratio = x_ratio = 1.0 */ 243 /* ratio = y_ratio */ 246 /* ratio = sqrt( (proj.x * x_ratio) ^ 2 + (proj.y * y_ratio) ^ 2 ) */ 249 /* ratio * cvt[index] */ 252 /* cvt[index] / ratio */ 255 /* ratio * ppem */ 271 FT_Long ratio; /* current ratio */ member in struct:TT_Size_Metrics_ [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
Util.java | 397 // Try to find an size match aspect ratio and size 399 double ratio = (double) size.width / size.height; local 400 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; 407 // Cannot find the one match the aspect ratio. This should not happen. 410 Log.w(TAG, "No preview size match the aspect ratio"); 422 // Returns the largest picture size which matches the given aspect ratio. 431 // Try to find a size matches aspect ratio and has the largest width 433 double ratio = (double) size.width / size.height; local 434 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; 440 // Cannot find one that matches the aspect ratio. This should not happen [all...] |
/development/apps/OBJViewer/com/android/objviewer/ |
OBJViewer.java | 196 float ratio = (float)w/h; local 197 glView.setAspectRatio(ratio);
|
/external/oprofile/libpp/ |
profile_container.cpp | 45 // ratio of samples which belongs to this filename. 222 double const ratio = op_ratio(counts[0], total_count[0]); local 223 filename_by_samples const f(*it, ratio);
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
psy_configuration.c | 392 init ratio 394 psyConf->ratio = c_ratio; 474 init ratio 476 psyConf->ratio = c_ratio;
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
DigitalWidgetViewsFactory.java | 274 float ratio = WidgetUtils.getScaleRatio(context, null, mId); local 275 WidgetUtils.setClockSize(context, widget, 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);
|
/external/qemu/audio/ |
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 | 916 sw->ratio = ((int64_t) hw_cap->info.freq << 32) / sw->info.freq; 1027 swlim = (live * sw->ratio) >> 32; 1134 swlim = ((int64_t) dead << 32) / sw->ratio; [all...] |
/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;
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
TiledTexture.java | 268 // a rectangle. The used color is: from * (1 - ratio) + to * ratio. 269 public void drawMixed(GLCanvas canvas, int color, float ratio, 282 canvas.drawMixed(t, color, ratio, mSrcRect, mDestRect);
|
GLES20Canvas.java | 758 public void drawMixed(BasicTexture texture, int toColor, float ratio, int x, int y, int w, int h) { 761 drawMixed(texture, toColor, ratio, mTempSourceRect, mTempTargetRect); 765 public void drawMixed(BasicTexture texture, int toColor, float ratio, RectF source, RectF target) { 772 float cappedRatio = Math.min(1f, Math.max(0f, ratio)); [all...] |
/packages/apps/Camera/src/com/android/camera/ |
Util.java | 453 // Try to find an size match aspect ratio and size 455 double ratio = (double) size.width / size.height; local 456 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; 462 // Cannot find the one match the aspect ratio. This should not happen. 465 Log.w(TAG, "No preview size match the aspect ratio"); 477 // Returns the largest picture size which matches the given aspect ratio. 486 // Try to find a size matches aspect ratio and has the largest width 488 double ratio = (double) size.width / size.height; local 489 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; 495 // Cannot find one that matches the aspect ratio. This should not happen [all...] |
/packages/apps/Gallery2/src/com/android/camera/ |
Util.java | 460 // Try to find an size match aspect ratio and size 462 double ratio = (double) size.width / size.height; local 463 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; 469 // Cannot find the one match the aspect ratio. This should not happen. 472 Log.w(TAG, "No preview size match the aspect ratio"); 484 // Returns the largest picture size which matches the given aspect ratio. 493 // Try to find a size matches aspect ratio and has the largest width 495 double ratio = (double) size.width / size.height; local 496 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; 502 // Cannot find one that matches the aspect ratio. This should not happen [all...] |
/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...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
PositionController.java | 308 // The ratio of the old size and the new size. 310 // If the aspect ratio changes, we don't know if it is because one side 312 // angle of the longer side doesn't change (so the aspect ratio change 315 float ratio = (width > height) local 323 // we change the scale directly. Otherwise adjust the scales by a ratio, 329 b.mCurrentScale *= ratio; 330 b.mFromScale *= ratio; 331 b.mToScale *= ratio; 335 mFocusX /= ratio; 336 mFocusY /= ratio; [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
CameraOrientationActivity.java | 374 // find a supported size with ratio less than tolerance threshold, and 394 double ratio = (double) size.width / size.height; local 395 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) { 410 // ignore aspect ratio requirement 453 // adjust camera preview to match output image's aspect ratio 462 // then calculate height using output image's height/width ratio
|
/external/chromium/chrome/browser/ui/gtk/tabs/ |
dragged_tab_controller_gtk.cc | 275 double ratio = unselected / TabGtk::GetStandardSize().width(); local 276 int threshold = static_cast<int>(ratio * kHorizontalMoveThreshold);
|
/external/oprofile/pp/ |
opreport.cpp | 228 double ratio = op_ratio(count, total_count); local 229 cout << format_percent(ratio * 100, percent_int_width,
|
/external/webkit/Source/WebCore/platform/graphics/gpu/ |
LoopBlinnMathUtils.cpp | 329 bool safeUnitDivide(float numerator, float denominator, float& ratio) 344 ratio = r;
|