Home
last modified time | relevance | path

Searched refs:scaleFactor (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Mms/src/com/android/mms/ui/
DUriImage.java262 float scaleFactor = 1.F; in getResizedImageData() local
263 while ((outWidth * scaleFactor > widthLimit) || (outHeight * scaleFactor > heightLimit)) { in getResizedImageData()
264 scaleFactor *= .75F; in getResizedImageData()
271 ", initialScaleFactor=" + scaleFactor + in getResizedImageData()
331 int scaledWidth = (int)(outWidth * scaleFactor); in getResizedImageData()
332 int scaledHeight = (int)(outHeight * scaleFactor); in getResizedImageData()
370 + " with smaller scale factor, cur scale factor: " + scaleFactor); in getResizedImageData()
376 + " width=" + outWidth * scaleFactor in getResizedImageData()
377 + " height=" + outHeight * scaleFactor in getResizedImageData()
378 + " scaleFactor=" + scaleFactor in getResizedImageData()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java200 float scaleFactor = ((float) maxDim) / Math.max(width, height); in getScaledBitmap() local
201 if (scaleFactor < 1.0f || cropLeft != 0 || cropTop != 0) { in getScaledBitmap()
204 if (scaleFactor < 1.0f) matrix.setScale(scaleFactor, scaleFactor); in getScaledBitmap()
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DAudioTrackView.java199 double scaleFactor = 1.0; in setWaveformData() local
201 scaleFactor = 255 / maxGain; in setWaveformData()
208 int smoothedGain = (int)(smoothedGains[i] * scaleFactor); in setWaveformData()
248 double value = (smoothedGains[i] * scaleFactor - minGain) / range; in setWaveformData()
/packages/apps/Browser/src/com/android/browser/
DPhoneUi.java285 float scaleFactor = width / (float) mContentView.getWidth(); in showNavScreen() local
301 1f, scaleFactor); in showNavScreen()
375 float scaleFactor = mContentView.getWidth() / (float) width; in hideNavScreen() local
376 int toBottom = toTop + (int) (height * scaleFactor); in hideNavScreen()
397 1f, scaleFactor); in hideNavScreen()
/packages/apps/VideoEditor/src/com/android/videoeditor/
DVideoEditorActivity.java357 final float scaleFactor = detector.getScaleFactor(); in onCreate()
358 final float deltaScaleFactor = scaleFactor - mLastScaleFactor; in onCreate()
360 if (scaleFactor < 1.0f) { in onCreate()
368 } else if (scaleFactor > 1.0f) { in onCreate()
379 mLastScaleFactor = scaleFactor; in onCreate()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncher.java2263 private void setPivotsForZoom(View view, float scaleFactor) { in setPivotsForZoom() argument
2545 final float scaleFactor = (float) in hideAppsCustomizeHelper() local
2560 setPivotsForZoom(fromView, scaleFactor); in hideAppsCustomizeHelper()
2567 scaleX(scaleFactor).scaleY(scaleFactor). in hideAppsCustomizeHelper()
DWorkspace.java1832 float scaleFactor = Math.min((w - padding) / (float) orig.getWidth(),
1834 int scaledWidth = (int) (scaleFactor * orig.getWidth());
1835 int scaledHeight = (int) (scaleFactor * orig.getHeight());