Home
last modified time | relevance | path

Searched refs:PhotoSize (Results 1 – 5 of 5) sorted by relevance

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DPhotoLoadingTestCase.java37 protected static enum PhotoSize { enum in PhotoLoadingTestCase
44 Map<PhotoSize, byte[]> photoMap = Maps.newHashMap();
48 photoMap.put(PhotoSize.ORIGINAL, original); in PhotoEntry()
49 photoMap.put(PhotoSize.DISPLAY_PHOTO, processor.getDisplayPhotoBytes()); in PhotoEntry()
50 photoMap.put(PhotoSize.THUMBNAIL, processor.getThumbnailPhotoBytes()); in PhotoEntry()
56 public byte[] getPhoto(PhotoSize size) { in getPhoto()
78 loadPhotoFromResource(testPhotoId, PhotoSize.ORIGINAL); in loadTestPhoto()
81 return testPhotoEntry.getPhoto(PhotoSize.ORIGINAL); in loadTestPhoto()
84 protected byte[] loadTestPhoto(PhotoSize size) { in loadTestPhoto()
89 protected byte[] loadPhotoFromResource(int resourceId, PhotoSize size) { in loadPhotoFromResource()
DPhotoStoreTest.java69 byte[] photo = loadPhotoFromResource(R.drawable.earth_small, PhotoSize.ORIGINAL); in testStoreThumbnailPhoto()
129 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL); in runStorageTestForResource()
137 byte[] expectedStoredVersion = loadPhotoFromResource(resourceId, PhotoSize.DISPLAY_PHOTO); in runStorageTestForResource()
159 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL); in runStorageTestForResourceWithCrop()
176 byte[] photo = loadPhotoFromResource(R.drawable.earth_normal, PhotoSize.ORIGINAL); in testRemoveEntry()
205 new PhotoProcessor(loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL), in testCleanup()
DContactsProvider2Test.java4243 loadPhotoFromResource(R.drawable.earth_normal, PhotoSize.THUMBNAIL), in testLoadProfilePhoto()
4251 loadPhotoFromResource(R.drawable.earth_normal, PhotoSize.DISPLAY_PHOTO), in testLoadProfileDisplayPhoto()
5700 R.drawable.nebula, PhotoSize.ORIGINAL)); in testQueryStreamItemPhotoByStreamItemId()
5732 R.drawable.galaxy, PhotoSize.ORIGINAL)); in testQueryStreamItemPhotoByStreamItemPhotoId()
5872 R.drawable.earth_normal, PhotoSize.DISPLAY_PHOTO); in testInsertStreamItemsAndPhotosInBatch()
5923 R.drawable.nebula, PhotoSize.ORIGINAL)); in testUpdateStreamItemPhotoById()
5937 loadPhotoFromResource(R.drawable.nebula, PhotoSize.DISPLAY_PHOTO), in testUpdateStreamItemPhotoById()
5952 R.drawable.nebula, PhotoSize.ORIGINAL)); in testUpdateStreamItemPhotoWithContentValues()
5964 loadPhotoFromResource(R.drawable.nebula, PhotoSize.DISPLAY_PHOTO), in testUpdateStreamItemPhotoWithContentValues()
6153 loadPhotoFromResource(R.drawable.earth_normal, PhotoSize.ORIGINAL)); in buildGenericStreamItemPhotoValues()
[all …]
DLegacyContactsProviderTest.java711 com.android.providers.contacts.tests.R.drawable.earth_small, PhotoSize.ORIGINAL); in testPhotoUpdate()
713 com.android.providers.contacts.tests.R.drawable.earth_small, PhotoSize.THUMBNAIL); in testPhotoUpdate()
DBaseContactsProvider2Test.java387 values.put(Photo.PHOTO, loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL)); in insertPhoto()