Searched refs:photoFileId (Results 1 – 6 of 6) sorted by relevance
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | PhotoStoreTest.java | 130 long photoFileId = mPhotoStore.insert(newPhotoProcessor(photo, false)); in runStorageTestForResource() local 131 assertTrue(photoFileId != 0); in runStorageTestForResource() 133 File storedFile = new File(mPhotoStore.get(photoFileId).path); in runStorageTestForResource() 144 PhotoFiles._ID + "=?", new String[]{String.valueOf(photoFileId)}, null, null, null); in runStorageTestForResource() 160 long photoFileId = mPhotoStore.insert(newPhotoProcessor(photo, true)); in runStorageTestForResourceWithCrop() local 161 assertTrue(photoFileId != 0); in runStorageTestForResourceWithCrop() 165 PhotoFiles._ID + "=?", new String[]{String.valueOf(photoFileId)}, null, null, null); in runStorageTestForResourceWithCrop() 177 long photoFileId = mPhotoStore.insert(newPhotoProcessor(photo, false)); in testRemoveEntry() local 178 PhotoStore.Entry entry = mPhotoStore.get(photoFileId); in testRemoveEntry() 181 mPhotoStore.remove(photoFileId); in testRemoveEntry() [all …]
|
D | ContactsProvider2Test.java | 6803 long photoFileId = getStoredLongValue(Data.CONTENT_URI, Data._ID + "=?", in testGetPhotoUri() local 6805 String photoUri = ContentUris.withAppendedId(DisplayPhoto.CONTENT_URI, photoFileId) in testGetPhotoUri() 7034 String photoFileId = getStoredValue(ContentUris.withAppendedId(Data.CONTENT_URI, dataId), in testPhotoUriForDisplayPhoto() local 7047 assertEquals(Uri.withAppendedPath(DisplayPhoto.CONTENT_URI, photoFileId).toString(), in testPhotoUriForDisplayPhoto() 7339 Long photoFileId = getStoredLongValue(contactUri, Contacts.PHOTO_FILE_ID); in testOverwritePhotoWithThumbnail() local 7340 assertTrue(photoFileId != null && photoFileId > 0); in testOverwritePhotoWithThumbnail()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DataRowHandlerForPhoto.java | 151 long photoFileId = mPhotoStore.insert(processor); in processPhoto() local 152 if (photoFileId != 0) { in processPhoto() 153 values.put(Photo.PHOTO_FILE_ID, photoFileId); in processPhoto()
|
D | ContactsProvider2.java | 1932 long photoFileId = c.getLong(1); in cleanupPhotoStore() local 1933 usedPhotoFileIds.add(photoFileId); in cleanupPhotoStore() 1934 photoFileIdToDataId.put(photoFileId, dataId); in cleanupPhotoStore() 1955 long photoFileId = c.getLong(2); in cleanupPhotoStore() local 1956 usedPhotoFileIds.add(photoFileId); in cleanupPhotoStore() 1957 photoFileIdToStreamItemPhotoId.put(photoFileId, streamItemPhotoId); in cleanupPhotoStore() 3151 long photoFileId = mPhotoStore.get().insert(processor, true); in processStreamItemPhoto() local 3152 if (photoFileId != 0) { in processStreamItemPhoto() 3153 values.put(StreamItemPhotos.PHOTO_FILE_ID, photoFileId); in processStreamItemPhoto() 8645 long photoFileId = c.getLong(0); in openAssetFileInner() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | PhotoEditorView.java | 126 final Long photoFileId = EditorUiUtils.getPhotoFileId(valuesDelta); in setPhoto() local 127 if (photoFileId != null) { in setPhoto() 129 .appendPath(photoFileId.toString()).build(); in setPhoto()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | AbstractContactAggregator.java | 1486 long photoFileId = c.getLong(RawContactsQuery.PHOTO_FILE_ID); in computeAggregateData() local 1494 PhotoEntry photoEntry = getPhotoMetadata(db, photoFileId); in computeAggregateData() 1502 bestPhotoFileId = photoFileId; in computeAggregateData() 1650 long photoFileId = c.getLong(PhotoIdQuery.PHOTO_FILE_ID); in updatePhotoId() local 1652 PhotoEntry photoEntry = getPhotoMetadata(db, photoFileId); in updatePhotoId() 1663 bestPhotoFileId = photoFileId; in updatePhotoId() 1726 private PhotoEntry getPhotoMetadata(SQLiteDatabase db, long photoFileId) { in getPhotoMetadata() argument 1727 if (photoFileId == 0) { in getPhotoMetadata() 1734 new String[]{String.valueOf(photoFileId)}, null, null, null); in getPhotoMetadata()
|