Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/
DWallpaperColors.java151 Size optimalSize = calculateOptimalSize(width, height); in fromDrawable() local
152 Bitmap bitmap = Bitmap.createBitmap(optimalSize.getWidth(), optimalSize.getHeight(), in fromDrawable()
181 Size optimalSize = calculateOptimalSize(bitmap.getWidth(), bitmap.getHeight()); in fromBitmap() local
182 bitmap = Bitmap.createScaledBitmap(bitmap, optimalSize.getWidth(), in fromBitmap()
183 optimalSize.getHeight(), false /* 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());