Home
last modified time | relevance | path

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

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DBitmapWorkerTask.java127 BitmapWorkerOptions outputOptions) throws IOException { in getBitmapFromResource() argument
135 return decodeBitmap((InputStream)drawable, outputOptions); in getBitmapFromResource()
137 return createIconBitmap((Drawable) drawable, outputOptions); in getBitmapFromResource()
158 private Bitmap scaleBitmapIfNecessary(BitmapWorkerOptions outputOptions, Bitmap bitmap) { in scaleBitmapIfNecessary() argument
165 if (bitmap.getHeight() > outputOptions.getHeight()) { in scaleBitmapIfNecessary()
166 heightScale = (float) outputOptions.getHeight() / (float) bitmap.getHeight(); in scaleBitmapIfNecessary()
172 if (bitmap.getWidth() > outputOptions.getWidth()) { in scaleBitmapIfNecessary()
173 widthScale = (float) outputOptions.getWidth() / (float) bitmap.getWidth(); in scaleBitmapIfNecessary()
183 Log.d(TAG, "Scaling bitmap " + ((outputOptions.getResourceUri() != null) in scaleBitmapIfNecessary()
184 ? outputOptions.getResourceUri().toString() in scaleBitmapIfNecessary()
[all …]
DDrawableLoader.java153 BitmapWorkerOptions outputOptions) throws IOException { in getBitmapFromResource() argument
158 Object drawable = loadDrawable(outputOptions.getContext(), iconResource); in getBitmapFromResource()
161 return decodeBitmap((InputStream)drawable, outputOptions); in getBitmapFromResource()