Lines Matching refs:uri
508 Uri uri = Uri.parse(drawableId);
509 drawable = getDrawable(uri);
524 private Drawable getDrawable(Uri uri) {
526 String scheme = uri.getScheme();
530 return getDrawableFromResourceUri(uri);
532 throw new FileNotFoundException("Resource does not exist: " + uri);
536 InputStream stream = mProviderContext.getContentResolver().openInputStream(uri);
538 throw new FileNotFoundException("Failed to open " + uri);
546 Log.e(LOG_TAG, "Error closing icon stream for " + uri, ex);
551 Log.w(LOG_TAG, "Icon not found: " + uri + ", " + fnfe.getMessage());
674 Drawable getDrawableFromResourceUri(Uri uri) throws FileNotFoundException {
675 String authority = uri.getAuthority();
678 throw new FileNotFoundException("No authority: " + uri);
683 throw new FileNotFoundException("No package found for authority: " + uri);
686 List<String> path = uri.getPathSegments();
688 throw new FileNotFoundException("No path: " + uri);
696 throw new FileNotFoundException("Single path segment is not a resource ID: " + uri);
701 throw new FileNotFoundException("More than two path segments: " + uri);
704 throw new FileNotFoundException("No resource found for: " + uri);
751 Uri uri = uriBuilder.build();
754 return mContext.getContentResolver().query(uri, null, selection, selArgs, null);