HomeSort by relevance Sort by last modified time
    Searched defs:photo (Results 1 - 17 of 17) sorted by null

  /gdk/samples/PhotoEditor/src/com/android/photoeditor/
SaveCopyTask.java 36 * Asynchronous task for loading source photo in target dimensions and saving edits as a new copy.
38 public class SaveCopyTask extends AsyncTask<Photo, Void, Uri> {
74 * The task should be executed with one given photo to be saved.
77 protected Uri doInBackground(Photo... params) {
78 // TODO: Support larger dimensions for photo saving.
82 Photo photo = params[0]; local
83 File file = save(photo);
85 photo.clear();
98 private File save(Photo photo)
    [all...]
PhotoView.java 33 * Displays photo in the view. All its methods should be called from UI thread.
39 private Photo photo; field in class:PhotoView
51 if (photo != null) {
57 canvas.drawBitmap(photo.bitmap(), 0, 0, paint);
63 * Maps x and y to a percentage position relative to displayed photo.
66 if ((photo == null) || (photo.width() == 0) || (photo.height() == 0)) {
73 return new PointF(point[0] / photo.width(), point[1] / photo.height())
    [all...]
  /packages/apps/Tag/canon/src/com/android/apps/tagcanon/
TagCanon.java 85 Bitmap photo = ((BitmapDrawable) drawable).getBitmap(); local
86 final int size = photo.getWidth() * photo.getHeight() * 4;
90 photo.compress(Bitmap.CompressFormat.PNG, 100, out);
  /packages/apps/Contacts/src/com/android/contacts/editor/
AggregationSuggestionView.java 84 ImageView photo = (ImageView) findViewById(R.id.aggregation_suggestion_photo); local
85 if (suggestion.photo != null) {
86 photo.setImageBitmap(BitmapFactory.decodeByteArray(
87 suggestion.photo, 0, suggestion.photo.length));
89 photo.setImageResource(R.drawable.ic_contact_picture_holo_light);
PhotoEditorView.java 29 import android.provider.ContactsContract.CommonDataKinds.Photo;
36 * Simple editor for {@link Photo}.
66 // Never called, since the user never adds a new photo-editor;
75 mPhotoImageView = (ImageView) findViewById(R.id.photo);
103 // Try decoding photo if actual entry
104 final byte[] photoBytes = values.getAsByteArray(Photo.PHOTO);
106 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, local
109 mPhotoImageView.setImageBitmap(photo);
122 * Return true if a valid {@link Photo} has been set
    [all...]
AggregationSuggestionEngine.java 34 import android.provider.ContactsContract.CommonDataKinds.Photo;
78 public byte[] photo; field in class:AggregationSuggestionEngine.Suggestion
85 + nickname + (photo != null ? " [has photo]" : "");
266 + Photo.CONTENT_ITEM_TYPE + "')"
279 Photo.PHOTO,
294 public static final int PHOTO = 9;
421 } else if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) {
424 if (dataId == photoId && !mDataCursor.isNull(DataQuery.PHOTO)) {
    [all...]
  /packages/apps/Email/src/com/android/email/activity/
ContactStatusLoader.java 27 import android.provider.ContactsContract.CommonDataKinds.Photo;
38 * Loader to load presence statuses and the contact photo.
44 /** email address -> photo id, presence */
52 /** photo id -> photo data */
54 Photo.PHOTO
67 /** Contact photo. Null if unknown */
76 public Result(Bitmap photo, int presenceResId, Uri lookupUri) {
77 mPhoto = photo;
128 Bitmap photo = null; local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
FilterStack.java 28 * A stack of filters to be applied onto a photo.
46 // Use two photo buffers as in and out in turns to apply filters in the stack.
47 private final Photo[] buffers = new Photo[2];
51 private Photo source;
79 buffers[target] = Photo.create(buffers[other].width(), buffers[other].height());
83 // In/out buffers need redrawn by re-applying filters on source photo.
91 buffers[0] = Photo.create(source.width(), source.height());
94 // Source photo will be displayed if there is no filter stacked.
95 Photo photo = source local
    [all...]
PhotoView.java 30 * Renders and displays photo in the surface view.
77 * Sets photo for display; this method must be queued for GL thread.
79 public void setPhoto(Photo photo, boolean clearTransform) {
80 renderer.setPhoto(photo, clearTransform);
84 * Rotates displayed photo; this method must be queued for GL thread.
91 * Flips displayed photo; this method must be queued for GL thread.
105 Photo photo; field in class:PhotoView.PhotoRenderer
112 void setPhoto(Photo photo, boolean clearTransform)
    [all...]
  /packages/apps/Phone/src/com/android/phone/
ContactsAsyncHelper.java 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; field in class:ContactsAsyncHelper.WorkerArgs
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)
    [all...]
  /packages/apps/Email/src/com/android/email/
NotificationController.java 409 Bitmap photo = ContactStatusLoader.getContactInfo(mContext, email).mPhoto; local
411 if (photo != null) {
418 if (photo.getHeight() < idealIconHeight) {
420 photo = Bitmap.createScaledBitmap(
421 photo, idealIconWidth, idealIconHeight, true);
424 return photo;
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/
ContactLoader.java 49 import android.provider.ContactsContract.CommonDataKinds.Photo;
500 // If the photo was loaded using the URI, create an entry for the photo
503 ContentValues photo = new ContentValues(); local
504 photo.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE);
505 photo.put(Photo.PHOTO, mPhotoBinaryData);
506 result.add(photo);
    [all...]
  /frameworks/base/core/java/com/google/android/util/
AbstractMessageParser.java 212 // Look for photo links.
213 Photo photo = Photo.matchURL(url, text); local
214 if (photo != null) {
215 return photo;
218 // Look for photo links.
665 PHOTO ("p"),
952 /** Represents a link to a Picasa photo or album. */
953 public static class Photo extends Token
962 private String photo; \/\/ null for albums field in class:AbstractMessageParser.Photo
1031 private String photo; \/\/ null for user album field in class:AbstractMessageParser.FlickrPhoto
    [all...]
  /frameworks/ex/chips/src/com/android/ex/chips/
BaseRecipientAdapter.java 33 import android.provider.ContactsContract.CommonDataKinds.Photo;
115 Photo.PHOTO
118 public static final int PHOTO = 0;
229 // Note: At this point each entry doesn't contain any photo
653 * fetch a cached photo for each contact entry (other than separators), or request another
706 Log.d(TAG, "No photo cache for " + entry.getDisplayName()
723 final byte[] photoBytes = photoCursor.getBlob(PhotoQuery.PHOTO);
755 photoBytes = photoCursor.getBlob(PhotoQuery.PHOTO);
872 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, local
    [all...]
RecipientEditTextView.java 520 // There may not be a photo yet if anything but the first contact address
529 Bitmap photo; local
531 photo = BitmapFactory.decodeByteArray(photoBytes, 0, photoBytes.length);
533 // TODO: can the scaled down default photo be cached?
534 photo = mDefaultContactPhoto;
536 // Draw the photo on the left side.
537 if (photo != null) {
538 RectF src = new RectF(0, 0, photo.getWidth(), photo.getHeight());
547 canvas.drawBitmap(photo, matrix, paint)
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
BaseContactsProvider2Test.java 49 import android.provider.ContactsContract.CommonDataKinds.Photo;
402 values.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE);
403 values.put(Photo.PHOTO, loadTestPhoto());
411 values.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE);
412 values.put(Photo.PHOTO, loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL));
1287 private final byte[] photo; field in class:BaseContactsProvider2Test.GoldenContact
1406 private byte[] photo; field in class:BaseContactsProvider2Test.GoldenContactBuilder
1452 public GoldenContactBuilder photo(byte[] value) { method in class:BaseContactsProvider2Test.GoldenContactBuilder
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
PhotoPage.java 109 // E.g., viewing a photo in gmail attachment
244 MediaItem photo = mModel.getMediaItem(0);
245 if (photo != null) updateCurrentPhoto(photo);
253 MediaItem photo = mModel.getMediaItem(0);
254 if (photo != null) updateCurrentPhoto(photo);
340 private void updateCurrentPhoto(MediaItem photo) {
341 if (mCurrentPhoto == photo) return;
342 mCurrentPhoto = photo;
    [all...]

Completed in 877 milliseconds