Home
last modified time | relevance | path

Searched refs:ContactPhotoUtils (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/detail/
DPhotoSelectionHandler.java47 import com.android.contacts.util.ContactPhotoUtils;
85 mTempPhotoUri = ContactPhotoUtils.generateTempImageUri(context); in PhotoSelectionHandler()
86 mCroppedPhotoUri = ContactPhotoUtils.generateTempCroppedImageUri(mContext); in PhotoSelectionHandler()
132 ContactPhotoUtils.savePhotoFromUriToUri(mContext, croppedUri, in handlePhotoActivityResult()
166 if (!ContactPhotoUtils.savePhotoFromUriToUri(mContext, uri, in handlePhotoActivityResult()
311 ContactPhotoUtils.addPhotoPickerExtras(intent, outputUri); in getTakePhotoIntent()
321 ContactPhotoUtils.addPhotoPickerExtras(intent, outputUri); in getPhotoPickIntent()
337 ContactPhotoUtils.addPhotoPickerExtras(intent, outputUri); in getCropImageIntent()
338 ContactPhotoUtils.addCropExtras(intent, mPhotoPickSize); in getCropImageIntent()
/packages/apps/Contacts/tests/src/com/android/contacts/util/
DContactPhotoUtilsTest.java20 tempUri = ContactPhotoUtils.generateTempImageUri(getContext()); in setUp()
32 ContactPhotoUtils.savePhotoFromUriToUri(getContext(), Uri.parse(filePath), tempUri, false)); in testFileUriDataPathFails()
40 ContactPhotoUtils.savePhotoFromUriToUri(getContext(), Uri.parse(filePath), tempUri, false)); in testFileUriCanonicalDataPathFails()
44 Uri internal = ContactPhotoUtils.generateTempImageUri(getContext()); in testContentUriInternalPasses()
47 ContactPhotoUtils.savePhotoFromUriToUri(getContext(), internal, tempUri, true)); in testContentUriInternalPasses()
/packages/apps/Contacts/src/com/android/contacts/activities/
DAttachPhotoActivity.java55 import com.android.contacts.util.ContactPhotoUtils;
108 mTempPhotoUri = ContactPhotoUtils.generateTempImageUri(this); in onCreate()
109 mCroppedPhotoUri = ContactPhotoUtils.generateTempCroppedImageUri(this); in onCreate()
189 if (!ContactPhotoUtils.savePhotoFromUriToUri(this, inputUri, mTempPhotoUri, false)) { in onActivityResult()
198 ContactPhotoUtils.addPhotoPickerExtras(intent, mCroppedPhotoUri); in onActivityResult()
199 ContactPhotoUtils.addCropExtras(intent, mPhotoDim != 0 ? mPhotoDim : mDefaultPhotoDim); in onActivityResult()
305 bitmap = ContactPhotoUtils.getBitmapFromUri(this, mCroppedPhotoUri); in saveToContact()
318 final byte[] compressed = ContactPhotoUtils.compressBitmap(scaled); in saveToContact()
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorUiUtils.java56 import com.android.contacts.util.ContactPhotoUtils;
280 final Bitmap bitmap = ContactPhotoUtils.getBitmapFromUri(context, uri); in getCompressedThumbnailBitmapBytes()
284 return ContactPhotoUtils.compressBitmap(bitmapScaled); in getCompressedThumbnailBitmapBytes()
DContactEditorFragment.java90 import com.android.contacts.util.ContactPhotoUtils;
1729 final Bitmap bitmap = ContactPhotoUtils.getBitmapFromUri(getActivity(), uri); in updatePhoto()
/packages/apps/Contacts/src/com/android/contacts/util/
DContactPhotoUtils.java47 public class ContactPhotoUtils { class
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java69 import com.android.contacts.util.ContactPhotoUtils;
706 return ContactPhotoUtils.savePhotoFromUriToUri(this, photoUri, outputUri, (saveMode == 0)); in saveUpdatedPhoto()