Home
last modified time | relevance | path

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

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DBitmapWorkerTask.java81 protected Bitmap retrieveBitmap(BitmapWorkerOptions workerOptions) { in retrieveBitmap() argument
83 if (workerOptions.getIconResource() != null) { in retrieveBitmap()
84 return getBitmapFromResource(workerOptions.getContext(), in retrieveBitmap()
85 workerOptions.getIconResource(), in retrieveBitmap()
86 workerOptions); in retrieveBitmap()
87 } else if (workerOptions.getResourceUri() != null) { in retrieveBitmap()
88 if (UriUtils.isAndroidResourceUri(workerOptions.getResourceUri()) in retrieveBitmap()
89 || UriUtils.isShortcutIconResourceUri(workerOptions.getResourceUri())) { in retrieveBitmap()
91 return getBitmapFromResource(workerOptions.getContext(), in retrieveBitmap()
92 UriUtils.getIconResource(workerOptions.getResourceUri()), in retrieveBitmap()
[all …]
DDrawableLoader.java99 protected Drawable retrieveDrawable(BitmapWorkerOptions workerOptions) { in retrieveDrawable() argument
101 if (workerOptions.getIconResource() != null) { in retrieveDrawable()
102 return getBitmapFromResource(workerOptions.getIconResource(), workerOptions); in retrieveDrawable()
103 } else if (workerOptions.getResourceUri() != null) { in retrieveDrawable()
104 if (UriUtils.isAndroidResourceUri(workerOptions.getResourceUri()) in retrieveDrawable()
105 || UriUtils.isShortcutIconResourceUri(workerOptions.getResourceUri())) { in retrieveDrawable()
108 UriUtils.getIconResource(workerOptions.getResourceUri()), in retrieveDrawable()
109 workerOptions); in retrieveDrawable()
110 } else if (UriUtils.isWebUri(workerOptions.getResourceUri())) { in retrieveDrawable()
111 return getBitmapFromHttp(workerOptions); in retrieveDrawable()
[all …]