/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/internal/ |
D | SharedFilesMetadataTest.java | 87 private SharedFilesMetadata sharedFilesMetadata; field in SharedFilesMetadataTest 129 sharedFilesMetadata = sharedPreferencesMetadata; in setUp() 146 sharedFilesMetadata.clear().get(); in tearDown() 162 assertThat(sharedFilesMetadata.init().get()).isFalse(); in init_alwaysMigrateToNewKey() 202 assertThat(sharedFilesMetadata.init().get()).isTrue(); in testMigrateToNewVersion_noVersionChange() 205 assertThat(sharedFilesMetadata.read(registeredKey).get()).isEqualTo(registeredSharedFile); in testMigrateToNewVersion_noVersionChange() 206 assertThat(sharedFilesMetadata.read(downloadedKey).get()).isEqualTo(downloadedSharedFile); in testMigrateToNewVersion_noVersionChange() 242 assertThat(sharedFilesMetadata.init().get()).isTrue(); in testMigrateToNewVersion_toAddDownloadTransform() 245 assertThat(sharedFilesMetadata.read(registeredKey).get()).isEqualTo(registeredSharedFile); in testMigrateToNewVersion_toAddDownloadTransform() 246 assertThat(sharedFilesMetadata.read(downloadedKey).get()).isEqualTo(downloadedSharedFile); in testMigrateToNewVersion_toAddDownloadTransform() [all …]
|
D | FileGroupManagerTest.java | 165 private SharedFilesMetadata sharedFilesMetadata; field in FileGroupManagerTest 232 sharedFilesMetadata = in setUp() 239 sharedFilesMetadata, in setUp() 989 sharedFilesMetadata, in removeFileGroup_pendingVersionExists() 1049 sharedFilesMetadata, in removeFileGroup_downloadedVersionExists() 1109 sharedFilesMetadata, pendingFileGroup, ImmutableList.of(FileStatus.DOWNLOAD_IN_PROGRESS)); in removeFileGroup_bothVersionsExist() 1111 sharedFilesMetadata, downloadedFileGroup, ImmutableList.of(FileStatus.DOWNLOAD_COMPLETE)); in removeFileGroup_bothVersionsExist() 1180 sharedFilesMetadata, pendingFileGroup, ImmutableList.of(FileStatus.DOWNLOAD_IN_PROGRESS)); in removeFileGroup_bothVersionsExist_onlyRemovePending() 1182 sharedFilesMetadata, downloadedFileGroup, ImmutableList.of(FileStatus.DOWNLOAD_COMPLETE)); in removeFileGroup_bothVersionsExist_onlyRemovePending() 1251 sharedFilesMetadata, in removeFileGroup_fileReferencedByOtherFileGroup_willNotCancelDownload() [all …]
|
D | SharedFileManagerTest.java | 137 private SharedFilesMetadata sharedFilesMetadata; field in SharedFileManagerTest 165 sharedFilesMetadata = in setUp() 174 sharedFilesMetadata, in setUp() 242 assertThat(sharedFilesMetadata.read(newFileKey)).isNotNull(); in testSubscribeAndUnsubscribeSingleFile() 246 assertThat(sharedFilesMetadata.read(newFileKey).get()).isNull(); in testSubscribeAndUnsubscribeSingleFile() 261 assertThat(sharedFilesMetadata.read(newFileKey).get()).isNull(); in testMultipleSubscribes() 273 assertThat(sharedFilesMetadata.read(newFileKey).get()).isNull(); in testRemoveFileEntry_nonexistentFile() 295 assertThat(sharedFilesMetadata.read(newFileKey).get()).isNull(); in testRemoveFileEntry_partialDownloadFileNotDeleted() 327 SharedFile sharedFile = sharedFilesMetadata.read(newFileKey).get(); in testStartImport_startsInlineFileCopy() 434 SharedFile sharedFile = sharedFilesMetadata.read(newFileKey).get(); in testNotifyCurrentSize_partialDownloadFile() [all …]
|
D | MddIsolatedStructuresTest.java | 91 private SharedFilesMetadata sharedFilesMetadata; field in MddIsolatedStructuresTest 156 sharedFilesMetadata = in setUp() 163 sharedFilesMetadata, in setUp() 235 sharedFilesMetadata.write(newFileKey, existingDownloadedSharedFile).get(); in testFileGroupManager_createsIsolatedStructures() 256 sharedFilesMetadata.write(newFileKey, existingDownloadedSharedFile).get(); in testFileGroupManager_repairsIsolatedStructuresOnMaintenance() 287 sharedFilesMetadata.write(newFileKey, existingDownloadedSharedFile).get(); in testFileGroupManager_withIsolatedRoot_isolateForDifferentVariants() 332 sharedFilesMetadata.write(newFileKey, existingDownloadedSharedFile).get(); in testFileGroupManager_withIsolatedRoot_isolateForDifferentAccounts() 376 sharedFilesMetadata.write(newFileKey, existingDownloadedSharedFile).get(); in testFileGroupManager_withIsolatedRoot_isolateForDifferentBuilds() 429 sharedFilesMetadata.write(newFileKey, existingInProgressSharedFile).get(); in testFileGroupManager_duplicateDownloadCalls_handlesIsolatedStructureCreation()
|
D | MddTestUtil.java | 287 SharedFilesMetadata sharedFilesMetadata, in writeSharedFiles() argument 310 sharedFilesMetadata.write(keys[i], sharedFileBuilder.build()).get(); in writeSharedFiles() 320 SharedFilesMetadata sharedFilesMetadata, in writeSharedFiles() argument 326 writeSharedFiles(sharedFilesMetadata, fileGroup, statuses, androidShared); in writeSharedFiles()
|
D | ExpirationHandlerTest.java | 98 private SharedFilesMetadata sharedFilesMetadata; field in ExpirationHandlerTest 233 sharedFilesMetadata = in setupForAndroidShared() 240 sharedFilesMetadata, in setupForAndroidShared() 256 sharedFilesMetadata, in setupForAndroidShared() 1529 assertThat(sharedFilesMetadata.read(fileKeys[0]).get()).isNull(); in updateExpiration_expiredGroups_withAndroidSharedFile() 1575 assertThat(sharedFilesMetadata.read(fileKeys[0]).get()).isNull(); in updateExpiration_expiredGroups_withAndroidSharedFile_releaseLeaseFails() 1619 assertThat(sharedFilesMetadata.read(fileKeys[0]).get()).isNull(); in updateExpiration_expiredGroups_withAndroidSharedAndNotAndroidSharedFiles() 1620 assertThat(sharedFilesMetadata.read(fileKeys[1]).get()).isNull(); in updateExpiration_expiredGroups_withAndroidSharedAndNotAndroidSharedFiles()
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/downloader/ |
D | DownloaderCallbackImpl.java | 64 private final SharedFilesMetadata sharedFilesMetadata; field in DownloaderCallbackImpl 78 SharedFilesMetadata sharedFilesMetadata, in DownloaderCallbackImpl() argument 89 this.sharedFilesMetadata = sharedFilesMetadata; in DownloaderCallbackImpl() 128 sharedFilesMetadata, in onDownloadComplete() 157 sharedFilesMetadata, in onDownloadComplete() 171 sharedFilesMetadata, in onDownloadFailed() 178 sharedFilesMetadata, in onDownloadFailed() 346 SharedFilesMetadata sharedFilesMetadata, in getSharedFileOrFail() argument 350 sharedFilesMetadata.read(newFileKey), in getSharedFileOrFail() 386 SharedFilesMetadata sharedFilesMetadata, [all …]
|
D | DeltaFileDownloaderCallbackImpl.java | 59 private final SharedFilesMetadata sharedFilesMetadata; field in DeltaFileDownloaderCallbackImpl 77 SharedFilesMetadata sharedFilesMetadata, in DeltaFileDownloaderCallbackImpl() argument 93 this.sharedFilesMetadata = sharedFilesMetadata; in DeltaFileDownloaderCallbackImpl() 126 sharedFilesMetadata, in onDownloadComplete() 167 sharedFilesMetadata, in onDownloadComplete() 183 sharedFilesMetadata, 190 sharedFilesMetadata, 201 sharedFilesMetadata.read(baseFileKey),
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/ |
D | SharedFileManager.java | 114 private final SharedFilesMetadata sharedFilesMetadata; field in SharedFileManager 129 SharedFilesMetadata sharedFilesMetadata, in SharedFileManager() argument 141 this.sharedFilesMetadata = sharedFilesMetadata; in SharedFileManager() 190 sharedFilesMetadata.read(newFileKey), in reserveFileEntry() 219 sharedFilesMetadata.write(newFileKey, sharedFile), in reserveFileEntry() 257 sharedFilesMetadata.read(newFileKey), 333 return sharedFilesMetadata.write(newFileKey, sharedFileBuilder.build()); 341 sharedFilesMetadata, 560 return sharedFilesMetadata.write(newFileKey, sharedFileBuilder.build()); 571 sharedFilesMetadata, [all …]
|
D | ExpirationHandler.java | 67 private final SharedFilesMetadata sharedFilesMetadata; field in ExpirationHandler 81 SharedFilesMetadata sharedFilesMetadata, in ExpirationHandler() argument 92 this.sharedFilesMetadata = sharedFilesMetadata; in ExpirationHandler() 217 sharedFilesMetadata.getAllFileKeys(), 229 sharedFilesMetadata.read(newFileKey),
|
D | MobileDataDownloadManager.java | 109 private final SharedFilesMetadata sharedFilesMetadata; field in MobileDataDownloadManager 128 SharedFilesMetadata sharedFilesMetadata, in MobileDataDownloadManager() argument 144 this.sharedFilesMetadata = sharedFilesMetadata; in MobileDataDownloadManager() 212 sharedFilesMetadata.init(), in init() 788 sharedFilesMetadata.clear(), 802 sharedFilesMetadata.clear(),
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/dagger/ |
D | MainMddLibModule.java | 106 SharedPreferencesSharedFilesMetadata sharedFilesMetadata) { in provideSharedFilesMetadata() argument 107 return sharedFilesMetadata; in provideSharedFilesMetadata()
|