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.java130 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 …]
DContactsProvider2Test.java7304 long photoFileId = getStoredLongValue(Data.CONTENT_URI, Data._ID + "=?", in testGetPhotoUri() local
7306 String photoUri = ContentUris.withAppendedId(DisplayPhoto.CONTENT_URI, photoFileId) in testGetPhotoUri()
7535 String photoFileId = getStoredValue(ContentUris.withAppendedId(Data.CONTENT_URI, dataId), in testPhotoUriForDisplayPhoto() local
7548 assertEquals(Uri.withAppendedPath(DisplayPhoto.CONTENT_URI, photoFileId).toString(), in testPhotoUriForDisplayPhoto()
7840 Long photoFileId = getStoredLongValue(contactUri, Contacts.PHOTO_FILE_ID); in testOverwritePhotoWithThumbnail() local
7841 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.java1925 long photoFileId = c.getLong(1); in cleanupPhotoStore() local
1926 usedPhotoFileIds.add(photoFileId); in cleanupPhotoStore()
1927 photoFileIdToDataId.put(photoFileId, dataId); in cleanupPhotoStore()
1948 long photoFileId = c.getLong(2); in cleanupPhotoStore() local
1949 usedPhotoFileIds.add(photoFileId); in cleanupPhotoStore()
1950 photoFileIdToStreamItemPhotoId.put(photoFileId, streamItemPhotoId); in cleanupPhotoStore()
2974 long photoFileId = mPhotoStore.get().insert(processor, true); in processStreamItemPhoto() local
2975 if (photoFileId != 0) { in processStreamItemPhoto()
2976 values.put(StreamItemPhotos.PHOTO_FILE_ID, photoFileId); in processStreamItemPhoto()
8537 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.java1486 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()