Home | History | Annotate | Download | only in common

Lines Matching refs:PHOTO

42 import android.provider.ContactsContract.Contacts.Photo;
144 Log.e(TAG, "No contact photo service in context: " + applicationContext);
154 * Load thumbnail image into the supplied image view. If the photo is already cached,
155 * it is displayed immediately. Otherwise a request is sent to load the photo
170 * Load photo into the supplied image view. If the photo is already cached,
171 * it is displayed immediately. Otherwise a request is sent to load the photo
174 * @param photoUri The uri of the photo to load
204 * Remove photo from the supplied image view. This also cancels current pending load request
205 * inside this photo manager.
228 * @param photoUri The URI of the photo (for future requests).
275 private static final String[] COLUMNS = new String[] { Photo._ID, Photo.PHOTO };
278 * Maintains the state of a particular photo.
323 * A map from ImageView to the corresponding photo ID or uri, encapsulated in a request.
324 * The request may swapped out before the photo loading request is started.
358 /** For debug: How many times we had to reload cached photo for a stale entry */
361 /** For debug: How many times we had to reload cached photo for a fresh entry. Should be 0. */
471 // No photo is needed
485 // No photo is needed
528 * Checks if the photo is present in cache. If so, sets the photo on the view.
530 * @return false if the photo needs to be (re)loaded from the provider.
644 // Do nothing - the photo will appear to be missing
780 // We can pretend here that the extent of the photo was the size that we originally
791 * Populates an array of photo IDs that need to be loaded. Also decodes bitmaps that we have
854 * the expected average size of a photo is 4kb, then this number should be 2Mb/4kb = 500.
1039 mStringBuilder.append(Photo._ID + " IN(");
1083 // Couldn't load a photo this way either.
1092 // Not a profile photo and not found - mark the cache accordingly
1127 Log.v(TAG, "Cannot load photo " + uri);
1131 Log.v(TAG, "Cannot load photo " + uri, ex);
1204 // photo case. When the contact does have a photo, the contact photo is the same
1205 // regardless of mDarkTheme, so we shouldn't need to put the photo request on the queue