Home
last modified time | relevance | path

Searched refs:optimalSize (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/app/
DWallpaperColors.java133 Size optimalSize = calculateOptimalSize(width, height); in fromDrawable() local
134 Bitmap bitmap = Bitmap.createBitmap(optimalSize.getWidth(), optimalSize.getHeight(), in fromDrawable()
163 Size optimalSize = calculateOptimalSize(bitmap.getWidth(), bitmap.getHeight()); in fromBitmap() local
164 bitmap = Bitmap.createScaledBitmap(bitmap, optimalSize.getWidth(), in fromBitmap()
165 optimalSize.getHeight(), true /* filter */); in fromBitmap()
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/
DCameraTooActivity.java263 Size optimalSize = chooseBigEnoughSize(
267 Log.i(TAG, "Preview size: " + optimalSize);
269 surfaceHolder.setFixedSize(optimalSize.getWidth(),
270 optimalSize.getHeight());