/packages/apps/Camera2/src/com/android/camera/data/ |
FilmstripItemType.java | 25 PHOTO,
|
PhotoItem.java | 47 * Backing data for a single photo displayed in the filmstrip. 161 return FilmstripItemType.PHOTO;
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
SettingsScopeNamespaces.java | 22 * {@link #PHOTO} namespace. 25 // Settings namespace for all typical photo modes (PhotoModule, 27 public static final String PHOTO = "PhotoModule";
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/ |
PhotoDataItem.java | 21 import android.provider.ContactsContract.Contacts.Photo; 24 * Represents a photo data item, wrapping the columns in 25 * {@link ContactsContract.Contacts.Photo}. 34 return getContentValues().getAsLong(Photo.PHOTO_FILE_ID); 38 return getContentValues().getAsByteArray(Photo.PHOTO);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DataRowHandlerForPhoto.java | 22 import android.provider.ContactsContract.CommonDataKinds.Photo; 30 * Handler for photo data rows. 42 * already taken care of photo processing, and that the row should be ready for 43 * insert/update. This is used when the photo has been written directly to an 51 super(context, dbHelper, aggregator, Photo.CONTENT_ITEM_TYPE); 64 // Pre-process the photo if one exists. 85 // Pre-process the photo if one exists. 101 * Pre-processes the given content values for update or insert. If the photo column contains 102 * null or an empty byte array, both that column and the photo file ID will be nulled out. 103 * If a photo was specified but could not be processed, this will return false [all...] |
/frameworks/opt/chips/src/com/android/ex/chips/ |
DefaultPhotoManager.java | 33 * queries for photo bytes by using the {@link com.android.ex.chips.RecipientEntry}'s 49 ContactsContract.CommonDataKinds.Photo.PHOTO 52 public static final int PHOTO = 0; 75 Log.d(TAG, "No photo cache for " + entry.getDisplayName() 97 return photoCursor.getBlob(PhotoQuery.PHOTO);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_StreamItemPhotosTest.java | 51 values.put(StreamItemPhotos.PHOTO, photoData); 67 values.put(StreamItemPhotos.PHOTO, photoData);
|
ContactsContract_PhotoTest.java | 24 import android.provider.ContactsContract.CommonDataKinds.Photo; 68 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE) 69 .with(Photo.PHOTO, PhotoUtil.getTestPhotoData(mContext)) 73 photoData.assertColumn(Photo.RAW_CONTACT_ID, rawContact.getId()); 74 photoData.assertBlobColumnNotNull(Photo.PHOTO); 89 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE) 90 .with(Photo.PHOTO, EMPTY_TEST_PHOTO_DATA [all...] |
/packages/apps/Camera2/src/com/android/camera/module/ |
ModulesInfo.java | 51 registerPhotoModule(moduleManager, photoModuleId, SettingsScopeNamespaces.PHOTO, 69 SettingsScopeNamespaces.PHOTO, 74 SettingsScopeNamespaces.PHOTO, config.isUsingCaptureModule());
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
PhotoEditorView.java | 23 import android.provider.ContactsContract.CommonDataKinds.Photo; 43 * Simple editor for {@link Photo}. 72 // Never called, since the user never adds a new photo-editor; 81 mPhotoImageView = (ImageView) findViewById(R.id.photo); 124 // Try decoding photo if actual entry 125 final byte[] photoBytes = values.getAsByteArray(Photo.PHOTO); 127 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, local 130 mPhotoImageView.setImageBitmap(photo); 134 if (values.getAfter() == null || values.getAfter().get(Photo.PHOTO) == null) [all...] |
AggregationSuggestionEngine.java | 32 import android.provider.ContactsContract.CommonDataKinds.Photo; 81 public byte[] photo; field in class:AggregationSuggestionEngine.Suggestion 88 + nickname + (photo != null ? " [has photo]" : ""); 289 + Photo.CONTENT_ITEM_TYPE + "')" 302 Photo.PHOTO, 317 public static final int PHOTO = 9; 472 } else if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) { 475 if (dataId == photoId && !mDataCursor.isNull(DataQuery.PHOTO)) { [all...] |
EditorUiUtils.java | 34 import android.provider.ContactsContract.CommonDataKinds.Photo; 98 mimetypeLayoutMap.put(Photo.CONTENT_ITEM_TYPE, -1); 201 case Photo.CONTENT_ITEM_TYPE: 246 /** Returns the {@link Photo#PHOTO_FILE_ID} from the given ValuesDelta. */ 249 if (valuesDelta.getAfter() == null || valuesDelta.getAfter().get(Photo.PHOTO) == null) { 250 return valuesDelta.getAsLong(Photo.PHOTO_FILE_ID); 271 /** Decodes the Bitmap from the photo bytes from the given ValuesDelta. */ 274 final byte[] bytes = valuesDelta.getAsByteArray(Photo.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/EmergencyInfo/src/com/android/emergency/ |
EmergencyContactManager.java | 29 * Provides methods to read name, phone number, photo, etc. from contacts. 41 Bitmap photo = null; local 51 ContactsContract.CommonDataKinds.Photo.PHOTO_ID}, 67 new String[]{ContactsContract.Contacts.Photo.PHOTO}, 72 photo = BitmapFactory.decodeStream(new ByteArrayInputStream(data)); 86 return new Contact(contactLookupUri, contactUri, name, phoneNumber, phoneType, photo); 123 /** The contact's photo. */ 132 Bitmap photo) { 138 mPhoto = photo; [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
ContactHeaderWidget.java | 40 import android.provider.ContactsContract.CommonDataKinds.Photo; 125 Photo.PHOTO 128 int PHOTO = 0; 178 mPhotoView = (QuickContactBadge) findViewById(R.id.photo); 185 // Set the photo with a random "no contact" image 242 //Set the photo 245 && !cursor.isNull(PhotoQuery.PHOTO)) { 246 byte[] photoData = cursor.getBlob(PhotoQuery.PHOTO); 367 * Manually set the photo to display in the header. This doesn't change th [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactOperations.java | 30 import android.provider.ContactsContract.CommonDataKinds.Photo; 208 mValues.put(Photo.PHOTO, avatarBuffer); 209 mValues.put(Photo.MIMETYPE, Photo.CONTENT_ITEM_TYPE); 336 mValues.put(Photo.PHOTO, avatarBuffer); 337 mValues.put(Photo.MIMETYPE, Photo.CONTENT_ITEM_TYPE);
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ConfirmAddDetailActivity.java | 43 import android.provider.ContactsContract.CommonDataKinds.Photo; 145 * PhotoQuery contains the projection used for retrieving the name and photo 163 * the contact photo. 167 Photo.PHOTO 170 final int PHOTO = 0; 273 mPhotoView = (ImageView) findViewById(R.id.photo); 319 * Internal method to query contact photo by photo id and uri. 321 * @param photoId the photo id [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
ResultActivity.java | 29 import android.provider.ContactsContract.CommonDataKinds.Photo; 147 new String[]{Photo.PHOTO}, null, null, null); 162 addRowWithBitmap("Photo", BitmapFactory.decodeByteArray(data, 0, data.length));
|
/packages/apps/UnifiedEmail/src/com/android/mail/ |
SenderInfoLoader.java | 32 import android.provider.ContactsContract.Contacts.Photo; 47 * A {@link Loader} to look up presence, contact URI, and photo data for a set of email 62 private static final String[] PHOTO_COLS = new String[] { Photo._ID, Photo.PHOTO }; 104 * {@link ContactInfo}. Otherwise, just put the raw bytes of the photo 110 * <li>Either {@link ContactInfo#photoBytes} or {@link ContactInfo#photo} is non-null - 111 * Photo loaded successfully.</li> 112 * <li>Both {@link ContactInfo#photoBytes} and {@link ContactInfo#photo} are null - 113 * Photo load failed.</li 220 Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, photoBytes.length); local [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
ValuesDelta.java | 494 put(ContactsContract.CommonDataKinds.Photo.PHOTO, value); 498 return getAsByteArray(ContactsContract.CommonDataKinds.Photo.PHOTO);
|
Contact.java | 22 import android.provider.ContactsContract.CommonDataKinds.Photo; 89 * Small version of the contact photo loaded from a blob instead of from a file. If a large 90 * contact photo is not available yet, then this has the same value as mPhotoBinaryData. 442 // If the photo was loaded using the URI, create an entry for the photo 445 ContentValues photo = new ContentValues(); local 446 photo.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE); 447 photo.put(Photo.PHOTO, mPhotoBinaryData) [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
SuggestedMemberListAdapter.java | 25 import android.provider.ContactsContract.CommonDataKinds.Photo; 69 Photo.PHOTO, // 4 180 // to add supplementary data to the contact (photo, phone, email) to the members based 251 // (as well as the photo, email, and phone mimetypes) 253 selectionArgs.add(Photo.CONTENT_ITEM_TYPE); 260 // Perform a second query to retrieve a photo and possibly a phone number or email 278 if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) { 279 // Set photo 370 public void setPhotoByteArray(byte[] 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...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ShortcutIntentBuilder.java | 36 import android.provider.ContactsContract.CommonDataKinds.Photo; 83 Photo.PHOTO, 88 private static final String PHOTO_SELECTION = Photo._ID + "=?"; 145 * An asynchronous task that loads name, photo and other data from the database. 343 private Bitmap generateQuickContactIcon(Drawable photo) { 349 // Copy in the photo 351 photo.setBounds(dst); 352 photo.draw(canvas); 370 * number, and if there is a photo also adds the call action icon [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
ContactsUtils.java | 37 import android.provider.ContactsContract.CommonDataKinds.Photo; 125 * Opens an InputStream for the person's photo and returns the photo as a Bitmap. 126 * If the person's photo isn't present returns null. 128 * @param aggCursor the Cursor pointing to the data record containing the photo. 129 * @param bitmapColumnIndex the column index where the photo Uri is stored. 131 * @return the photo Bitmap 144 * Loads a placeholder photo. 168 new String[] { Photo.PHOTO }, [all...] |