/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);
|
/external/opencv3/modules/photo/misc/java/test/ |
PhotoTest.java | 1 package org.opencv.test.photo; 6 import org.opencv.photo.Photo; 17 Photo.inpaint(gray255, gray0, dst, 3, Photo.INPAINT_TELEA);
|
/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...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
CompactPhotoSelectionFragment.java | 46 * Displays {@link Photo}s in a grid and calls back the host when one is clicked. 62 * Invoked when the user wants to change their photo. 64 void onPhotoSelected(Photo photo); 68 * Holds a photo {@link ValuesDelta} and {@link AccountType} information to draw 71 public static final class Photo implements Parcelable { 73 public static final Creator<Photo> CREATOR = new Creator<Photo>() { 75 public Photo createFromParcel(Parcel in) { 76 return new Photo(in) 223 final Photo photo = mPhotos.get(position); local [all...] |
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...] |
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...] |
CompactContactEditorFragment.java | 107 // Set up the photo widget 110 // If there is an updated full resolution photo apply it now, this will be the case if 111 // the user selects or takes a new photo, then rotates the device. 194 public void setPrimaryPhoto(CompactPhotoSelectionFragment.Photo photo) { 195 getContent().setPrimaryPhoto(photo); 197 // Update the photo ID we will try to match when selecting the photo to display 198 mPhotoId = photo.photoId; 237 final ArrayList<CompactPhotoSelectionFragment.Photo> photos = getContent().getPhotos() [all...] |
RawContactReadOnlyEditorView.java | 25 import android.provider.ContactsContract.CommonDataKinds.Photo; 142 // Photo 143 DataKind kind = type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE); 145 RawContactModifier.ensureKindExists(state, type, Photo.CONTENT_ITEM_TYPE); 146 boolean hasPhotoEditor = type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE) != null; 148 primary = state.getPrimaryEntry(Photo.CONTENT_ITEM_TYPE);
|
CompactRawContactsEditorView.java | 49 import android.provider.ContactsContract.CommonDataKinds.Photo; 452 mPhotoValuesDelta.put(Photo.PHOTO, (byte[]) null); 468 // Mark the currently displayed photo as primary 475 // there is a change in EITHER the delta-list OR a changed photo... 484 elog("Failed to get bitmap from photo Uri"); 492 mKindSectionDataMap.get(Photo.CONTENT_ITEM_TYPE); 508 * Get the raw contact ID for the CompactHeaderView photo. 521 * Returns a data holder for every non-default/non-empty photo from each raw contact, whether 524 public ArrayList<CompactPhotoSelectionFragment.Photo> getPhotos() 541 final CompactPhotoSelectionFragment.Photo photo = local [all...] |
RawContactEditorView.java | 25 import android.provider.ContactsContract.CommonDataKinds.Photo; 232 // Show photo editor when supported 233 RawContactModifier.ensureKindExists(state, type, Photo.CONTENT_ITEM_TYPE); 234 setHasPhotoEditor((type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE) != null)); 284 } else if (Photo.CONTENT_ITEM_TYPE.equals(mimeType)) {
|
/cts/tests/tests/provider/src/android/provider/cts/ |
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...] |
/external/opencv3/modules/photo/perf/opencl/ |
perf_denoising.cpp | 16 OCL_PERF_TEST(Photo, DenoisingGrayscale) 32 OCL_PERF_TEST(Photo, DenoisingColored) 48 OCL_PERF_TEST(Photo, DISABLED_DenoisingGrayscaleMulti) 71 OCL_PERF_TEST(Photo, DISABLED_DenoisingColoredMulti)
|
/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);
|
/external/opencv3/modules/photo/test/ocl/ |
test_denoising.cpp | 122 OCL_INSTANTIATE_TEST_CASE_P(Photo, FastNlMeansDenoising, 125 OCL_INSTANTIATE_TEST_CASE_P(Photo, FastNlMeansDenoising_hsep, 128 OCL_INSTANTIATE_TEST_CASE_P(Photo, FastNlMeansDenoisingColored,
|
/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/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/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...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/ |
EnterpriseContactsCursorWrapper.java | 162 * Generate a photo URI for {@link PhoneLookup#PHOTO_THUMBNAIL_URI}. 164 * Example: "content://com.android.contacts/contacts_corp/ID/photo" 179 .appendPath(Contacts.Photo.CONTENT_DIRECTORY).build().toString(); 187 * Generate a photo URI for {@link PhoneLookup#PHOTO_URI}. 190 * Example 2: "content://com.android.contacts/contacts_corp/ID/photo" 204 .appendPath(Contacts.Photo.CONTENT_DIRECTORY).build().toString(); 208 .appendPath(Contacts.Photo.DISPLAY_PHOTO).build().toString();
|
/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/model/ |
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/ContactsCommon/tests/src/com/android/contacts/common/model/account/ |
ExternalAccountTypeTest.java | 25 import android.provider.ContactsContract.CommonDataKinds.Photo; 101 assertNotNull(type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE)); 171 assertNotNull(type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE));
|
/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);
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
CompactContactEditorActivity.java | 50 * Displays a PopupWindow with photo edit options. 55 * Receiver of photo edit option callbacks. 75 // Re-create the photo handler the next time we need it so that additional photo 99 // can show the photo options in a dialog instead of a ListPopupWindow (which would 138 // Create the editor and photo selection fragments 153 // Show/hide the editor and photo selection fragments (w/o animations) 210 * Displays photos from all raw contacts, clicking one set it as the super primary photo. 212 public void selectPhoto(ArrayList<CompactPhotoSelectionFragment.Photo> photos, int photoMode) { 220 * Opens a dialog showing options for the user to change their photo (take, choose, or remov [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));
|