Home
last modified time | relevance | path

Searched refs:photoFileId (Results 1 – 6 of 6) sorted by relevance

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DPhotoStoreTest.java131 long photoFileId = mPhotoStore.insert(newPhotoProcessor(photo, false)); in runStorageTestForResource() local
132 assertTrue(photoFileId != 0); in runStorageTestForResource()
134 File storedFile = new File(mPhotoStore.get(photoFileId).path); in runStorageTestForResource()
145 PhotoFiles._ID + "=?", new String[]{String.valueOf(photoFileId)}, null, null, null); in runStorageTestForResource()
161 long photoFileId = mPhotoStore.insert(newPhotoProcessor(photo, true)); in runStorageTestForResourceWithCrop() local
162 assertTrue(photoFileId != 0); in runStorageTestForResourceWithCrop()
166 PhotoFiles._ID + "=?", new String[]{String.valueOf(photoFileId)}, null, null, null); in runStorageTestForResourceWithCrop()
178 long photoFileId = mPhotoStore.insert(newPhotoProcessor(photo, false)); in testRemoveEntry() local
179 PhotoStore.Entry entry = mPhotoStore.get(photoFileId); in testRemoveEntry()
182 mPhotoStore.remove(photoFileId); in testRemoveEntry()
[all …]
DContactsProvider2Test.java7162 long photoFileId = getStoredLongValue(Data.CONTENT_URI, Data._ID + "=?", in testGetPhotoUri() local
7164 String photoUri = ContentUris.withAppendedId(DisplayPhoto.CONTENT_URI, photoFileId) in testGetPhotoUri()
7393 String photoFileId = getStoredValue(ContentUris.withAppendedId(Data.CONTENT_URI, dataId), in testPhotoUriForDisplayPhoto() local
7406 assertEquals(Uri.withAppendedPath(DisplayPhoto.CONTENT_URI, photoFileId).toString(), in testPhotoUriForDisplayPhoto()
7747 Long photoFileId = getStoredLongValue(contactUri, Contacts.PHOTO_FILE_ID); in testOverwritePhotoWithThumbnail() local
7748 assertTrue(photoFileId != null && photoFileId > 0); in testOverwritePhotoWithThumbnail()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForPhoto.java151 long photoFileId = mPhotoStore.insert(processor); in processPhoto() local
152 if (photoFileId != 0) { in processPhoto()
153 values.put(Photo.PHOTO_FILE_ID, photoFileId); in processPhoto()
DContactsProvider2.java2076 long photoFileId = c.getLong(1); in cleanupPhotoStore() local
2077 usedPhotoFileIds.add(photoFileId); in cleanupPhotoStore()
2078 photoFileIdToDataId.put(photoFileId, dataId); in cleanupPhotoStore()
2099 long photoFileId = c.getLong(2); in cleanupPhotoStore() local
2100 usedPhotoFileIds.add(photoFileId); in cleanupPhotoStore()
2101 photoFileIdToStreamItemPhotoId.put(photoFileId, streamItemPhotoId); in cleanupPhotoStore()
3400 long photoFileId = mPhotoStore.get().insert(processor, true); in processStreamItemPhoto() local
3401 if (photoFileId != 0) { in processStreamItemPhoto()
3402 values.put(StreamItemPhotos.PHOTO_FILE_ID, photoFileId); in processStreamItemPhoto()
9122 long photoFileId = c.getLong(0); in openAssetFileInner() local
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoEditorView.java126 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/
DAbstractContactAggregator.java1477 long photoFileId = c.getLong(RawContactsQuery.PHOTO_FILE_ID); in computeAggregateData() local
1485 PhotoEntry photoEntry = getPhotoMetadata(db, photoFileId); in computeAggregateData()
1493 bestPhotoFileId = photoFileId; in computeAggregateData()
1641 long photoFileId = c.getLong(PhotoIdQuery.PHOTO_FILE_ID); in updatePhotoId() local
1643 PhotoEntry photoEntry = getPhotoMetadata(db, photoFileId); in updatePhotoId()
1654 bestPhotoFileId = photoFileId; in updatePhotoId()
1717 private PhotoEntry getPhotoMetadata(SQLiteDatabase db, long photoFileId) { in getPhotoMetadata() argument
1718 if (photoFileId == 0) { in getPhotoMetadata()
1725 new String[]{String.valueOf(photoFileId)}, null, null, null); in getPhotoMetadata()