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.java36 protected static enum PhotoSize { enum in PhotoLoadingTestCase
43 Map<PhotoSize, byte[]> photoMap = Maps.newHashMap();
47 photoMap.put(PhotoSize.ORIGINAL, original); in PhotoEntry()
48 photoMap.put(PhotoSize.DISPLAY_PHOTO, processor.getDisplayPhotoBytes()); in PhotoEntry()
49 photoMap.put(PhotoSize.THUMBNAIL, processor.getThumbnailPhotoBytes()); in PhotoEntry()
55 public byte[] getPhoto(PhotoSize size) { in getPhoto()
77 loadPhotoFromResource(testPhotoId, PhotoSize.ORIGINAL); in loadTestPhoto()
80 return testPhotoEntry.getPhoto(PhotoSize.ORIGINAL); in loadTestPhoto()
83 protected byte[] loadTestPhoto(PhotoSize size) { in loadTestPhoto()
88 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.java3881 loadPhotoFromResource(R.drawable.earth_normal, PhotoSize.THUMBNAIL), in testLoadProfilePhoto()
3889 loadPhotoFromResource(R.drawable.earth_normal, PhotoSize.DISPLAY_PHOTO), in testLoadProfileDisplayPhoto()
5351 R.drawable.nebula, PhotoSize.ORIGINAL)); in testQueryStreamItemPhotoByStreamItemId()
5383 R.drawable.galaxy, PhotoSize.ORIGINAL)); in testQueryStreamItemPhotoByStreamItemPhotoId()
5523 R.drawable.earth_normal, PhotoSize.DISPLAY_PHOTO); in testInsertStreamItemsAndPhotosInBatch()
5574 R.drawable.nebula, PhotoSize.ORIGINAL)); in testUpdateStreamItemPhotoById()
5588 loadPhotoFromResource(R.drawable.nebula, PhotoSize.DISPLAY_PHOTO), in testUpdateStreamItemPhotoById()
5603 R.drawable.nebula, PhotoSize.ORIGINAL)); in testUpdateStreamItemPhotoWithContentValues()
5615 loadPhotoFromResource(R.drawable.nebula, PhotoSize.DISPLAY_PHOTO), in testUpdateStreamItemPhotoWithContentValues()
5804 loadPhotoFromResource(R.drawable.earth_normal, PhotoSize.ORIGINAL)); in buildGenericStreamItemPhotoValues()
[all …]
DLegacyContactsProviderTest.java735 com.android.providers.contacts.tests.R.drawable.earth_small, PhotoSize.ORIGINAL); in testPhotoUpdate()
737 com.android.providers.contacts.tests.R.drawable.earth_small, PhotoSize.THUMBNAIL); in testPhotoUpdate()
DBaseContactsProvider2Test.java395 values.put(Photo.PHOTO, loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL)); in insertPhoto()