/frameworks/base/docs/html/training/graphics/opengl/ |
projection.jd | 83 float ratio = (float) width / height; 87 Matrix.frustumM(mProjectionMatrix, 0, -ratio, ratio, -1, 1, 3, 7);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/ |
SurfaceRenderFilter.java | 55 * RENDERMODE_FIT: Keep aspect ratio and fit without cropping. May 57 * RENDERMODE_FILL_CROP: Keep aspect ratio and fit without black 160 if (mLogVerbose) Log.v(TAG, "New aspect ratio: " + currentAspectRatio +", previously: " + mAspectRatio);
|
/frameworks/native/opengl/tests/gl_basic/ |
gl_basic.cpp | 297 float ratio = 320.0f / 480.0f; 301 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
|
/hardware/samsung_slsi/exynos5/original-kernel-headers/linux/ |
fimg2d.h | 155 * @SCALING_PIXELS: ratio in pixels 156 * @SCALING_RATIO: ratio in fixed point 16 293 /* ratio in pixels */
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/ |
LetterTileDrawable.java | 114 // height ratio. 220 * Scale the drawn letter tile to a ratio of its default size 222 * @param scale The ratio the letter tile should be scaled to as a percentage of its default
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
Utilities.java | 121 final float ratio = (float) sourceWidth / sourceHeight; local 123 height = (int) (width / ratio); 125 width = (int) (height * ratio);
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
ConversationWebView.java | 233 * determined by the ratio of actual screen pixels to logical HTML pixels. 240 // in overview mode (aka auto-fit mode), the base ratio is screen px : viewport px 243 // in no-zoom mode, the base ratio is just screen px : mdpi css px (i.e. density)
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
AttachmentTile.java | 188 // ratio of the image 189 final float ratio = Math.min((float) width / height, (float) height / width); local 195 ratio < skinnyThresholdRatio &&
|
/cts/suite/audio_quality/test_description/ |
dut_playback_spectrum.xml | 30 <!-- input: host record, device record, samping rate, low frequency in Hz, high frequency in Hz, allowed error for pass in smaller side, allowed error in bigger side%, output: min value in lower side calculated normalized to 1.0, max value in higher side, calculated amplitude ratio in mannitude only between low f to high f -->
|
dut_recording_spectrum.xml | 34 <!-- input: host record, device record, samping rate, low frequency in Hz, high frequency in Hz, allowed error for pass in smaller side, allowed error in bigger side%, output: min value in lower side calculated normalized to 1.0, max value in higher side, calculated amplitude ratio in mannitude only between low f to high f -->
|
/cts/suite/audio_quality/test_description/experimental/ |
dut_playback_spectrum_chirp.xml | 29 <!-- input: host record, device record, samping rate, low frequency in Hz, high frequency in Hz, allowed error for pass in smaller side, allowed error in bigger side%, output: min value in lower side calculated normalized to 1.0, max value in higher side, calculated amplitude ratio in mannitude only between low f to high f -->
|
ref_playback_spectrum.xml | 29 <!-- input: host record, device record, samping rate, low frequency in Hz, high frequency in Hz, allowed error for pass in smaller side, allowed error in bigger side%, output: min value in lower side calculated normalized to 1.0, max value in higher side, calculated amplitude ratio in mannitude only between low f to high f -->
|
ref_playback_spectrum_chirp.xml | 29 <!-- input: host record, device record, samping rate, low frequency in Hz, high frequency in Hz, allowed error for pass in smaller side, allowed error in bigger side%, output: min value in lower side calculated normalized to 1.0, max value in higher side, calculated amplitude ratio in mannitude only between low f to high f -->
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
PSNRComparer.java | 22 * Uses the Peak Signal-to-Noise Ratio approach to determine if two images are considered the same.
|
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageResizer.java | 112 * @return A bitmap sampled down from the original with the same aspect ratio and dimensions 145 * @return A bitmap sampled down from the original with the same aspect ratio and dimensions 176 * @return A bitmap sampled down from the original with the same aspect ratio and dimensions 252 // aspect ratio. For example, a panorama may have a much larger
|
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageResizer.java | 112 * @return A bitmap sampled down from the original with the same aspect ratio and dimensions 145 * @return A bitmap sampled down from the original with the same aspect ratio and dimensions 176 * @return A bitmap sampled down from the original with the same aspect ratio and dimensions 252 // aspect ratio. For example, a panorama may have a much larger
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
ImageResizer.java | 112 * @return A bitmap sampled down from the original with the same aspect ratio and dimensions 145 * @return A bitmap sampled down from the original with the same aspect ratio and dimensions 176 * @return A bitmap sampled down from the original with the same aspect ratio and dimensions 252 // aspect ratio. For example, a panorama may have a much larger
|
/external/aac/libSBRenc/src/ |
resampler.cpp | 307 int ratio) /*!< downsampler ratio (only 2 supported at the momment) */ 313 FDK_ASSERT(ratio == 2); 338 DownSampler->ratio = ratio; 339 DownSampler->pending = ratio-1; 498 for(i=0; i<numInSamples; i+=DownSampler->ratio) 500 *outSamples = AdvanceFilter(&(DownSampler->downFilter), &inSamples[i*inStride], DownSampler->ratio, inStride); 503 *numOutSamples = numInSamples/DownSampler->ratio;
|
/external/chromium_org/chrome/browser/chromeos/bluetooth/ |
bluetooth_pairing_dialog.cc | 23 // Default width/height ratio of screen size.
|
/external/chromium_org/chrome/browser/profiles/ |
profile_avatar_icon_util.cc | 31 // specified width, to preserve the aspect ratio. 33 // Multiply the width by the inverted aspect ratio (height over 274 // resized to a square aspect ratio it looks pretty. 280 // If not the avatar icon's aspect ratio, the image should be square.
|
/external/chromium_org/chrome/browser/thumbnails/ |
simple_thumbnail_crop.h | 37 // Gets the clipped bitmap from |bitmap| per the aspect ratio of the
|
/external/chromium_org/chrome/utility/ |
chrome_content_utility_client_unittest.cc | 48 // 1.5 for width/height ratio, 4 for bytes/pixel
|
/external/chromium_org/content/browser/renderer_host/ |
overscroll_controller.cc | 171 float ratio, threshold; local 174 ratio = fabs(overscroll_delta_x_) / bounds.width(); 177 ratio = fabs(overscroll_delta_y_) / bounds.height(); 181 return ratio >= threshold;
|
/external/chromium_org/content/test/data/media/ |
getusermedia.html | 143 // Gets a video stream up, analyses it and returns the aspect ratio to the 372 // This function tries to calculate the aspect ratio shown by the fake capture 378 // the aspect ratio is calculated and the test fails if the number of green 436 failTest("Aspect ratio corrupted. X " + maxLightGreenPixelsX +
|
/external/chromium_org/media/base/ |
audio_buffer_converter.h | 92 // Ratio of sample rates, in/out.
|