Searched refs:ContactPhotoUtils (Results 1 – 7 of 7) sorted by relevance
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | PhotoSelectionHandler.java | 47 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/ |
D | ContactPhotoUtilsTest.java | 20 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/ |
D | AttachPhotoActivity.java | 55 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/ |
D | EditorUiUtils.java | 56 import com.android.contacts.util.ContactPhotoUtils; 280 final Bitmap bitmap = ContactPhotoUtils.getBitmapFromUri(context, uri); in getCompressedThumbnailBitmapBytes() 284 return ContactPhotoUtils.compressBitmap(bitmapScaled); in getCompressedThumbnailBitmapBytes()
|
D | ContactEditorFragment.java | 90 import com.android.contacts.util.ContactPhotoUtils; 1729 final Bitmap bitmap = ContactPhotoUtils.getBitmapFromUri(getActivity(), uri); in updatePhoto()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | ContactPhotoUtils.java | 47 public class ContactPhotoUtils { class
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 69 import com.android.contacts.util.ContactPhotoUtils; 706 return ContactPhotoUtils.savePhotoFromUriToUri(this, photoUri, outputUri, (saveMode == 0)); in saveUpdatedPhoto()
|