Home
last modified time | relevance | path

Searched refs:cloudId (Results 1 – 4 of 4) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DPickerProviderMediaGenerator.java244 public void addMedia(String localId, String cloudId) { in addMedia() argument
245 mDeletedMedia.remove(createPlaceholderMedia(localId, cloudId)); in addMedia()
246 mMedia.add(0, createTestMedia(localId, cloudId)); in addMedia()
249 public void addAlbumMedia(String localId, String cloudId, String albumId) { in addAlbumMedia() argument
250 mMedia.add(0, createTestAlbumMedia(localId, cloudId, albumId)); in addAlbumMedia()
253 public void addMedia(String localId, String cloudId, String albumId, String mimeType, in addMedia() argument
255 mDeletedMedia.remove(createPlaceholderMedia(localId, cloudId)); in addMedia()
257 createTestMedia(localId, cloudId, albumId, mimeType, standardMimeTypeExtension, in addMedia()
261 public void deleteMedia(String localId, String cloudId) { in deleteMedia() argument
262 if (mMedia.remove(createPlaceholderMedia(localId, cloudId))) { in deleteMedia()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/
DPickerDbTestUtils.java245 public static Cursor getAlbumMediaCursor(String localId, String cloudId, long dateTakenMs) { in getAlbumMediaCursor() argument
246 return getAlbumMediaCursor(cloudId, dateTakenMs, GENERATION_MODIFIED, in getAlbumMediaCursor()
251 public static Cursor getCloudMediaCursor(String cloudId, String localId, in getCloudMediaCursor() argument
253 return getCloudMediaCursor(cloudId, localId, dateTakenMs, MP4_VIDEO_MIME_TYPE, in getCloudMediaCursor()
257 public static Cursor getCloudMediaCursor(String cloudId, String localId, in getCloudMediaCursor() argument
259 return getMediaCursor(cloudId, dateTakenMs, GENERATION_MODIFIED, toMediaStoreUri(localId), in getCloudMediaCursor()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DPickerDbFacade.java501 String cloudId = getVisibleCloudIdFromDb(values.getAsString(KEY_LOCAL_ID)); in executeInternal() local
502 demoteCloudMediaToHidden(cloudId); in executeInternal()
544 private void demoteCloudMediaToHidden(@Nullable String cloudId) { in demoteCloudMediaToHidden() argument
545 if (cloudId == null) { in demoteCloudMediaToHidden()
549 final String[] updateArgs = new String[] {cloudId}; in demoteCloudMediaToHidden()
551 Log.d(TAG, "Demoted picker db media item to hidden. CloudId: " + cloudId); in demoteCloudMediaToHidden()
1668 final String cloudId = values.getAsString(KEY_CLOUD_ID); in executeInternal() local
1669 if (!TextUtils.isEmpty(localId) && !TextUtils.isEmpty(cloudId)) { in executeInternal()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DPickerSyncControllerTest.java1891 private static void addAlbumMedia(MediaGenerator generator, String localId, String cloudId, in addAlbumMedia() argument
1893 generator.addAlbumMedia(localId, cloudId, albumId); in addAlbumMedia()