• Home
  • Raw
  • Download

Lines Matching refs:request

152     public static Uri getDefaultAvatarUriForContact(DefaultImageRequest request) {  in getDefaultAvatarUriForContact()  argument
154 if (request != null) { in getDefaultAvatarUriForContact()
155 if (!TextUtils.isEmpty(request.displayName)) { in getDefaultAvatarUriForContact()
156 builder.appendQueryParameter(DISPLAY_NAME_PARAM_KEY, request.displayName); in getDefaultAvatarUriForContact()
158 if (!TextUtils.isEmpty(request.identifier)) { in getDefaultAvatarUriForContact()
159 builder.appendQueryParameter(IDENTIFIER_PARAM_KEY, request.identifier); in getDefaultAvatarUriForContact()
161 if (request.contactType != TYPE_DEFAULT) { in getDefaultAvatarUriForContact()
163 String.valueOf(request.contactType)); in getDefaultAvatarUriForContact()
165 if (request.scale != SCALE_DEFAULT) { in getDefaultAvatarUriForContact()
166 builder.appendQueryParameter(SCALE_PARAM_KEY, String.valueOf(request.scale)); in getDefaultAvatarUriForContact()
168 if (request.offset != OFFSET_DEFAULT) { in getDefaultAvatarUriForContact()
169 builder.appendQueryParameter(OFFSET_PARAM_KEY, String.valueOf(request.offset)); in getDefaultAvatarUriForContact()
171 if (request.isCircular != IS_CIRCULAR_DEFAULT) { in getDefaultAvatarUriForContact()
173 String.valueOf(request.isCircular)); in getDefaultAvatarUriForContact()
228 final DefaultImageRequest request = new DefaultImageRequest( in getDefaultImageRequestFromUri() local
234 request.contactType = Integer.valueOf(contactType); in getDefaultImageRequestFromUri()
239 request.scale = Float.valueOf(scale); in getDefaultImageRequestFromUri()
244 request.offset = Float.valueOf(offset); in getDefaultImageRequestFromUri()
249 request.isCircular = Boolean.valueOf(isCircular); in getDefaultImageRequestFromUri()
256 return request; in getDefaultImageRequestFromUri()
860 DefaultImageRequest request = getDefaultImageRequestFromUri(uri); in createAndApplyDefaultImageForUri() local
861 request.isCircular = isCircular; in createAndApplyDefaultImageForUri()
862 defaultProvider.applyDefaultImage(view, requestedExtent, darkTheme, request); in createAndApplyDefaultImageForUri()
865 private void loadPhotoByIdOrUri(ImageView view, Request request) { in loadPhotoByIdOrUri() argument
866 boolean loaded = loadCachedPhoto(view, request, false); in loadPhotoByIdOrUri()
870 mPendingRequests.put(view, request); in loadPhotoByIdOrUri()
932 private boolean loadCachedPhoto(ImageView view, Request request, boolean fadeIn) { in loadCachedPhoto() argument
933 BitmapHolder holder = mBitmapHolderCache.get(request.getKey()); in loadCachedPhoto()
936 request.applyDefaultImage(view, request.mIsCircular); in loadCachedPhoto()
941 request.applyDefaultImage(view, request.mIsCircular); in loadCachedPhoto()
949 inflateBitmap(holder, request.getRequestedExtent()); in loadCachedPhoto()
955 request.applyDefaultImage(view, request.mIsCircular); in loadCachedPhoto()
972 layers[1] = getDrawableForBitmap(mContext.getResources(), cachedBitmap, request); in loadCachedPhoto()
978 getDrawableForBitmap(mContext.getResources(), cachedBitmap, request)); in loadCachedPhoto() local
984 mBitmapCache.put(request.getKey(), cachedBitmap); in loadCachedPhoto()
997 private Drawable getDrawableForBitmap(Resources resources, Bitmap bitmap, Request request) { in getDrawableForBitmap() argument
998 if (request.mIsCircular) { in getDrawableForBitmap()
1225 Request request = Request.createFromUri(photoUri, smallerExtent, false /* darkTheme */, in cacheBitmap() local
1229 mBitmapHolderCache.put(request.getKey(), holder); in cacheBitmap()
1231 mBitmapCache.put(request.getKey(), bitmap); in cacheBitmap()
1256 Request request = iterator.next(); in obtainPhotoIdsAndUrisToLoad() local
1257 final BitmapHolder holder = mBitmapHolderCache.get(request.getKey()); in obtainPhotoIdsAndUrisToLoad()
1264 inflateBitmap(holder, request.getRequestedExtent()); in obtainPhotoIdsAndUrisToLoad()
1268 if (request.isUriRequest()) { in obtainPhotoIdsAndUrisToLoad()
1269 uris.add(request); in obtainPhotoIdsAndUrisToLoad()
1271 photoIds.add(request.getId()); in obtainPhotoIdsAndUrisToLoad()
1272 photoIdsAsStrings.add(String.valueOf(request.mId)); in obtainPhotoIdsAndUrisToLoad()
1731 final DefaultImageRequest request; in applyDefaultImage() local
1735 request = ContactPhotoManager.isBusinessContactUri(mUri) in applyDefaultImage()
1739 request = ContactPhotoManager.isBusinessContactUri(mUri) in applyDefaultImage()
1744 request = mDefaultRequest; in applyDefaultImage()
1746 mDefaultProvider.applyDefaultImage(view, mRequestedExtent, mDarkTheme, request); in applyDefaultImage()