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

1 2 3

  /packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
PhotoTable.java 342 private double[] getCenter(View photo) {
343 float width = (float) ((Integer) photo.getTag(R.id.photo_width)).intValue();
344 float height = (float) ((Integer) photo.getTag(R.id.photo_height)).intValue();
345 double[] center = { photo.getX() + width / 2f,
346 - (photo.getY() + height / 2f) };
430 for (View photo: mOnTable) {
431 if (photo != getSelection()) {
432 dropOnTable(photo);
458 View photo = inflater.inflate(R.layout.photo, null) local
    [all...]
PhotoCarousel.java 149 public void onPostExecute(Bitmap photo) {
150 if (photo != null) {
151 mBitmapQueue.offer(photo);
184 Bitmap photo = mBitmapQueue.poll(); local
185 if (photo != null) {
187 int width = photo.getWidth();
188 int height = photo.getHeight();
191 destination.setImageBitmap(photo);
197 Bitmap old = mBitmapStore.put(destination, photo);
206 private void setScaleType(View photo) {
    [all...]
  /frameworks/opt/photoviewer/src/com/android/ex/photo/
PhotoViewCallbacks.java 1 package com.android.ex.photo;
6 import com.android.ex.photo.adapters.PhotoPagerAdapter;
7 import com.android.ex.photo.fragments.PhotoViewFragment;
46 * Called when the cursor that contains the photo list data
49 * @param cursor the cursor containing the photo list data
Intents.java 18 package com.android.ex.photo;
25 import com.android.ex.photo.fragments.PhotoViewFragment;
41 * Gets a photo view intent builder to display the photos from phone activity.
51 * Gets a photo view intent builder to display the photo view fragment
60 /** Gets a new photo view intent builder */
66 /** Builder to create a photo view intent */
70 /** The index of the photo to show */
72 /** The URI of the initial photo to show */
76 /** The URL of the photo to display *
    [all...]
PhotoViewActivity.java 18 package com.android.ex.photo;
41 import com.android.ex.photo.PhotoViewPager.InterceptType;
42 import com.android.ex.photo.PhotoViewPager.OnInterceptTouchListener;
43 import com.android.ex.photo.adapters.PhotoPagerAdapter;
44 import com.android.ex.photo.fragments.PhotoViewFragment;
45 import com.android.ex.photo.loaders.PhotoPagerLoader;
46 import com.android.ex.photo.provider.PhotoContract;
71 /** Count used when the real photo count is unknown [but, may be determined] */
81 /** The URI of the initial photo to display */
83 /** The index of the currently viewed photo */
    [all...]
  /frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
PhotoPagerAdapter.java 18 package com.android.ex.photo.adapters;
24 import com.android.ex.photo.Intents;
25 import com.android.ex.photo.Intents.PhotoViewIntentBuilder;
26 import com.android.ex.photo.fragments.PhotoViewFragment;
27 import com.android.ex.photo.provider.PhotoContract;
30 * Pager adapter for the photo view
  /frameworks/opt/photoviewer/sample/src/com/example/photoviewersample/
MainActivity.java 8 import com.android.ex.photo.Intents;
9 import com.android.ex.photo.Intents.PhotoViewIntentBuilder;
  /frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
PhotoPagerLoader.java 18 package com.android.ex.photo.loaders;
25 import com.android.ex.photo.provider.PhotoContract;
28 * Loader for a set of photo IDs.
PhotoBitmapLoader.java 18 package com.android.ex.photo.loaders;
27 import com.android.ex.photo.fragments.PhotoViewFragment;
28 import com.android.ex.photo.loaders.PhotoBitmapLoader.BitmapResult;
29 import com.android.ex.photo.util.ImageUtils;
32 * Loader for the bitmap of a photo.
  /packages/apps/Contacts/src/com/android/contacts/editor/
PhotoEditorView.java 22 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);
  /frameworks/opt/photoviewer/src/com/android/ex/photo/provider/
PhotoContract.java 18 package com.android.ex.photo.provider;
  /packages/apps/Phone/src/com/android/phone/
ContactsAsyncHelper.java 40 * Helper class for loading contacts photo asynchronously.
56 * @param photo Drawable object obtained by the async load.
62 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon,
81 args.listener.onImageLoadComplete(msg.what, args.photo, args.photoIcon,
90 /** Handler run on a worker thread to load photo asynchronously. */
104 public Drawable photo; field in class:ContactsAsyncHelper.WorkerArgs
174 * representing the Photo file recorded in the attached
186 * Simple setter for the Photo state.
193 * Simple getter for the Photo state.
221 Log.e(LOG_TAG, "Error opening photo input stream", e)
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
PhotoStoreTest.java 69 byte[] photo = loadPhotoFromResource(R.drawable.earth_small, PhotoSize.ORIGINAL);
71 // Since the photo is already thumbnail-sized, no file will be stored.
72 assertEquals(0, mPhotoStore.insert(newPhotoProcessor(photo, false)));
76 // As 200 is below the full photo size, we don't want to see it upscaled
86 // As 300x200 is below the full photo size, we don't want to see it upscaled
92 // As 600x400 is above the full photo size, we expect the picture to be cropped and then
114 * - Loads the given photo resource.
115 * - Inserts it into the photo store.
116 * - Checks that the photo has a photo file ID
    [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...]
  /development/samples/ApiDemos/src/com/example/android/apis/app/
PresentationActivity.java 201 Log.d(TAG, "Showing presentation photo #" + contents.photo
227 final int photo = mNextImageNumber; local
229 return photo;
418 final int photo = mContents.photo; local
423 photo, displayId, display.getName()));
427 image.setImageDrawable(r.getDrawable(PHOTOS[photo]));
446 final int photo; field in class:PresentationActivity.PresentationContents
462 public PresentationContents(int photo) {
    [all...]
  /frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/
PhotoViewFragment.java 18 package com.android.ex.photo.fragments;
43 import com.android.ex.photo.Intents;
44 import com.android.ex.photo.PhotoViewCallbacks;
45 import com.android.ex.photo.PhotoViewCallbacks.CursorChangedListener;
46 import com.android.ex.photo.PhotoViewCallbacks.OnScreenListener;
47 import com.android.ex.photo.R;
48 import com.android.ex.photo.adapters.PhotoPagerAdapter;
49 import com.android.ex.photo.loaders.PhotoBitmapLoader;
50 import com.android.ex.photo.loaders.PhotoBitmapLoader.BitmapResult;
51 import com.android.ex.photo.util.ImageUtils
    [all...]
  /frameworks/opt/photoviewer/src/com/android/ex/photo/views/
ProgressBarWrapper.java 18 package com.android.ex.photo.views;
  /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/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
GeometryMetadata.java 358 public static Matrix buildPhotoMatrix(RectF photo, RectF crop, float rotation,
361 m.setRotate(straighten, photo.centerX(), photo.centerY());
362 concatMirrorMatrix(m, photo.right, photo.bottom, type);
422 * Builds a matrix that rotates photo rect about it's center by the
424 * the crop center by the rotation angle, and re-centers the photo rect.
426 * @param photo
434 public static Matrix buildCenteredPhotoMatrix(RectF photo, RectF crop, float rotation,
436 Matrix m = buildPhotoMatrix(photo, crop, rotation, straighten, type)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/socialwidget/
SocialWidgetProvider.java 142 byte[] photo = contactData.getPhotoBinaryData();
143 setPhoto(views, photo != null
144 ? BitmapFactory.decodeByteArray(photo, 0, photo.length)
164 private static void setPhoto(RemoteViews views, Bitmap photo) {
165 views.setImageViewBitmap(R.id.image, photo);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ShortcutIntentBuilder.java 36 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);
  /packages/apps/Calendar/src/com/android/calendar/event/
EventLocationAdapter.java 72 // photo icon).
75 // The contact photo to use for the icon. This will override the default icon.
214 // Use photo in cache.
217 // Asynchronously load photo and update.
233 Bitmap photo = null;
237 photo = BitmapFactory.decodeStream(imageStream);
238 mPhotoCache.put(contactPhotoUri, photo);
240 return photo;
244 public void onPostExecute(Bitmap photo) {
248 if (photo != null && imageView.getTag() == contactPhotoUri)
    [all...]

Completed in 372 milliseconds

1 2 3