Home
last modified time | relevance | path

Searched refs:getResourceUri (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapWorkerTask.java82 } else if (workerOptions.getResourceUri() != null) { in retrieveBitmap()
83 if (UriUtils.isAndroidResourceUri(workerOptions.getResourceUri()) in retrieveBitmap()
84 || UriUtils.isShortcutIconResourceUri(workerOptions.getResourceUri())) { in retrieveBitmap()
87 UriUtils.getIconResource(workerOptions.getResourceUri()), in retrieveBitmap()
89 } else if (UriUtils.isWebUri(workerOptions.getResourceUri())) { in retrieveBitmap()
91 } else if (UriUtils.isContentUri(workerOptions.getResourceUri())) { in retrieveBitmap()
93 } else if (UriUtils.isAccountImageUri(workerOptions.getResourceUri())) { in retrieveBitmap()
97 + workerOptions.getResourceUri()); in retrieveBitmap()
103 Log.e(TAG, "Error loading url " + workerOptions.getResourceUri(), e); in retrieveBitmap()
106 Log.e(TAG, "Critical Error loading url " + workerOptions.getResourceUri(), e); in retrieveBitmap()
[all …]
DDrawableLoader.java98 } else if (workerOptions.getResourceUri() != null) { in retrieveDrawable()
99 if (UriUtils.isAndroidResourceUri(workerOptions.getResourceUri()) in retrieveDrawable()
100 || UriUtils.isShortcutIconResourceUri(workerOptions.getResourceUri())) { in retrieveDrawable()
103 UriUtils.getIconResource(workerOptions.getResourceUri()), in retrieveDrawable()
105 } else if (UriUtils.isWebUri(workerOptions.getResourceUri())) { in retrieveDrawable()
107 } else if (UriUtils.isContentUri(workerOptions.getResourceUri())) { in retrieveDrawable()
109 } else if (UriUtils.isAccountImageUri(workerOptions.getResourceUri())) { in retrieveDrawable()
113 + workerOptions.getResourceUri()); in retrieveDrawable()
119 Log.e(TAG, "Error loading url " + workerOptions.getResourceUri(), e); in retrieveDrawable()
122 Log.e(TAG, "Critical Error loading url " + workerOptions.getResourceUri(), e); in retrieveDrawable()
[all …]
DBitmapWorkerOptions.java159 public Uri getResourceUri() { in getResourceUri() method in BitmapWorkerOptions
177 UriUtils.isAndroidResourceUri(getResourceUri()) in isFromResource()
178 || UriUtils.isShortcutIconResourceUri(getResourceUri()); in isFromResource()
DBitmapDownloader.java126 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri()); in loadBitmapBlocking()
156 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri()); in loadBitmap()
189 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri()); in getBitmap()
DDrawableDownloader.java219 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri()); in loadBitmapBlocking()
248 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri()); in loadBitmap()
281 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri()); in getBitmap()
DAccountImageChangeObserver.java112 Uri imageUri = options.getResourceUri(); in registerChangeUriIfPresent()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DUtil.java47 public static Uri getResourceUri(Context packageContext, int res) { in getResourceUri() method in Util
50 return getResourceUri(resources, packageContext.getPackageName(), res); in getResourceUri()
57 public static Uri getResourceUri(Context context, ApplicationInfo appInfo, int res) { in getResourceUri() method in Util
60 return getResourceUri(resources, appInfo.packageName, res); in getResourceUri()
70 private static Uri getResourceUri(Resources resources, String appPkg, int res) in getResourceUri() method in Util
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.java173 return Utils.getResourceUri(context, R.raw.alarm_expire);
180 return Utils.getResourceUri(context, R.raw.alarm_expire);
DUtils.java163 public static Uri getResourceUri(Context context, @AnyRes int resourceId) { in getResourceUri() method in Utils
/packages/apps/DeskClock/src/com/android/deskclock/data/
DSettingsModel.java110 mDefaultTimerRingtoneUri = Utils.getResourceUri(mContext, R.raw.timer_expire); in getDefaultTimerRingtoneUri()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DPackageIconLoader.java131 return Util.getResourceUri(mPackageContext, resourceId); in getIconUri()