Searched refs:photoFileId (Results 1 – 7 of 7) 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 | 7213 long photoFileId = getStoredLongValue(Data.CONTENT_URI, Data._ID + "=?", in testGetPhotoUri() local 7215 String photoUri = ContentUris.withAppendedId(DisplayPhoto.CONTENT_URI, photoFileId) in testGetPhotoUri() 7444 String photoFileId = getStoredValue(ContentUris.withAppendedId(Data.CONTENT_URI, dataId), in testPhotoUriForDisplayPhoto() local 7457 assertEquals(Uri.withAppendedPath(DisplayPhoto.CONTENT_URI, photoFileId).toString(), in testPhotoUriForDisplayPhoto() 7749 Long photoFileId = getStoredLongValue(contactUri, Contacts.PHOTO_FILE_ID); in testOverwritePhotoWithThumbnail() local 7750 assertTrue(photoFileId != null && photoFileId > 0); in testOverwritePhotoWithThumbnail()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | AccountImageHelper.java | 64 int photoFileId = 0; in getAccountPictureUri() local 74 photoFileId = c.getInt(5); in getAccountPictureUri() 83 if (photoFileId == 0) { in getAccountPictureUri()
|
/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 | 1939 long photoFileId = c.getLong(1); in cleanupPhotoStore() local 1940 usedPhotoFileIds.add(photoFileId); in cleanupPhotoStore() 1941 photoFileIdToDataId.put(photoFileId, dataId); in cleanupPhotoStore() 1962 long photoFileId = c.getLong(2); in cleanupPhotoStore() local 1963 usedPhotoFileIds.add(photoFileId); in cleanupPhotoStore() 1964 photoFileIdToStreamItemPhotoId.put(photoFileId, streamItemPhotoId); in cleanupPhotoStore() 3071 long photoFileId = mPhotoStore.get().insert(processor, true); in processStreamItemPhoto() local 3072 if (photoFileId != 0) { in processStreamItemPhoto() 3073 values.put(StreamItemPhotos.PHOTO_FILE_ID, photoFileId); in processStreamItemPhoto() 8599 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()
|