Home | History | Annotate | Download | only in phone

Lines Matching refs:photo

39  * Helper class for loading contacts photo asynchronously.
55 * @param photo Drawable object obtained by the async load.
61 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon,
80 args.listener.onImageLoadComplete(msg.what, args.photo, args.photoIcon,
89 /** Handler run on a worker thread to load photo asynchronously. */
103 public Drawable photo;
173 * representing the Photo file recorded in the attached
185 * Simple setter for the Photo state.
192 * Simple getter for the Photo state.
219 Log.e(LOG_TAG, "Error opening photo input stream", e);
223 args.photo = Drawable.createFromStream(inputStream, args.uri.toString());
227 args.photoIcon = getPhotoIconWhenAppropriate(args.context, args.photo);
232 args.photo = null;
254 private Bitmap getPhotoIconWhenAppropriate(Context context, Drawable photo) {
255 if (!(photo instanceof BitmapDrawable)) {
260 Bitmap orgBitmap = ((BitmapDrawable) photo).getBitmap();
272 Log.w(LOG_TAG, "Photo icon's width or height become 0.");
302 * @param personUri Uri to be used to fetch the photo