HomeSort by relevance Sort by last modified time
    Searched refs:photo (Results 1 - 25 of 41) sorted by null

1 2

  /gdk/samples/PhotoEditor/src/com/android/photoeditor/
PhotoOutputCallback.java 20 * Callback of photo output that will only be called in UI thread.
24 void onReady(Photo photo);
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...]
Toolbar.java 31 * Toolbar that contains all tools and handles all operations for editing photo.
82 public void onReady(Photo photo) {
85 photoView.update(photo);
122 public void onReady(Photo photo) {
125 photoView.update(photo);
161 // clearPhotoSource() should be called before loading a new source photo to avoid OOM.
168 filterStack.setPhotoSource(Photo.create(bitmap));
172 public void onReady(Photo photo)
    [all...]
Photo.java 23 * Photo that is used for editing/display and should be synchronized for concurrent access.
25 public class Photo {
30 * Factory method to ensure every Photo instance holds a non-null bitmap.
32 public static Photo create(Bitmap bitmap) {
33 return (bitmap != null) ? new Photo(bitmap) : null;
36 private Photo(Bitmap bitmap) {
44 public Photo copy(Bitmap.Config config) {
46 return (copy != null) ? new Photo(copy) : null;
49 public boolean matchDimension(Photo photo) {
    [all...]
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...]
  /packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
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...]
Photo.java 22 * Photo that holds a GL texture and all its methods must be only accessed from the GL thread.
24 public class Photo {
31 * Factory method to ensure every Photo instance holds a valid texture.
33 public static Photo create(Bitmap bitmap) {
34 return (bitmap != null) ? new Photo(
38 public static Photo create(int width, int height) {
39 return new Photo(RendererUtils.createTexture(), width, height);
42 private Photo(int texture, int width, int height) {
52 public boolean matchDimension(Photo photo) {
    [all...]
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...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
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...]
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);
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/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...]
NotificationMgr.java 304 * 3. For each caller, try obtaining photo.
395 // Now try to obtain a photo for this person.
402 log("Failed to find Uri for obtaining photo."
405 // We couldn't find person Uri, so we're sure we cannot obtain a photo.
420 int token, Drawable photo, Bitmap photoIcon, Object cookie) {
421 if (DBG) log("Finished loading image: " + photo);
423 notifyMissedCall(n.name, n.number, n.type, photo, photoIcon, n.date);
472 * @param photo picture which may be used for the notification (when photoIcon is null).
482 String name, String number, String type, Drawable photo, Bitmap photoIcon, long date) {
497 + ", label: " + type + ", photo: " + photo + ", photoIcon: " + photoIco
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
PhotoStoreTest.java 71 byte[] photo = loadPhotoFromResource(R.drawable.earth_small, PhotoSize.ORIGINAL);
73 // Since the photo is already thumbnail-sized, no file will be stored.
74 assertEquals(0, mPhotoStore.insert(newPhotoProcessor(photo, false)));
78 // As 200 is below the full photo size, we don't want to see it upscaled
88 // As 300x200 is below the full photo size, we don't want to see it upscaled
94 // As 600x400 is above the full photo size, we expect the picture to be cropped and then
116 * - Loads the given photo resource.
117 * - Inserts it into the photo store.
118 * - Checks that the photo has a photo file ID
    [all...]
GlobalSearchSupportTest.java 68 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo(
75 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo(
113 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo(
339 * Whether to set Icon1, which in practice is the contact's photo.
343 * "content://com.android.contacts/contacts/2015/photo"
  /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...]
  /external/markdown/markdown/extensions/
imagelinks.py 17 Into mini-photo galleries.
105 album, photo = line.split("/")
106 photo_url = url.get_photo(album, photo,
  /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...]
  /packages/apps/Contacts/src/com/android/contacts/socialwidget/
SocialWidgetProvider.java 144 byte[] photo = contactData.getPhotoBinaryData();
145 setPhoto(views, photo != null
146 ? BitmapFactory.decodeByteArray(photo, 0, photo.length)
166 private static void setPhoto(RemoteViews views, Bitmap photo) {
167 views.setImageViewBitmap(R.id.image, photo);
  /packages/apps/Contacts/src/com/android/contacts/list/
ShortcutIntentBuilder.java 39 import android.provider.ContactsContract.CommonDataKinds.Photo;
74 Photo.PHOTO,
79 private static final String PHOTO_SELECTION = Photo._ID + "=?";
136 * An asynchronous task that loads name, photo and other data from the database.
327 private Bitmap generateQuickContactIcon(Bitmap photo) {
333 // Copy in the photo
337 Rect src = new Rect(0,0, photo.getWidth(),photo.getHeight());
339 canvas.drawBitmap(photo, src, dst, photoPaint)
    [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);
  /gdk/samples/PhotoEditor/src/com/android/photoeditor/actions/
FilterAction.java 24 import com.android.photoeditor.Photo;
32 * An action binding UI controls and filter operation for editing photo.
175 public void onReady(Photo photo) {
176 photoView.update(photo);
  /packages/apps/Gallery2/src/com/android/gallery3d/gadget/
PhotoAppWidgetProvider.java 100 views.setImageViewBitmap(R.id.photo, bitmap);
112 views.setOnClickPendingIntent(R.id.photo, pendingClickIntent);
  /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...]
  /packages/apps/Contacts/src/com/android/contacts/group/
SuggestedMemberListAdapter.java 28 import android.provider.ContactsContract.CommonDataKinds.Photo;
68 Photo.PHOTO, // 4
178 // to add supplementary data to the contact (photo, phone, email) to the members based
249 // (as well as the photo, email, and phone mimetypes)
251 selectionArgs.add(Photo.CONTENT_ITEM_TYPE);
258 // Perform a second query to retrieve a photo and possibly a phone number or email
275 if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) {
276 // Set photo
366 public void setPhotoByteArray(byte[] photo) {
    [all...]

Completed in 827 milliseconds

1 2