/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/ |
D | ExpirationHandler.java | 34 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 122 Long groupExpirationDateMillis = FileGroupUtil.getExpirationDateMillis(dataFileGroup); in removeExpiredFreshGroups() 126 if (FileGroupUtil.isExpired(groupExpirationDateMillis, timeSource)) { in removeExpiredFreshGroups() 139 if (FileGroupUtil.isIsolatedStructureAllowed(dataFileGroup)) { in removeExpiredFreshGroups() 140 FileGroupUtil.removeIsolatedFileStructure( in removeExpiredFreshGroups() 168 FileGroupUtil.getStaleExpirationDateMillis(staleGroup); 169 long groupExpirationDateMillis = FileGroupUtil.getExpirationDateMillis(staleGroup); 174 if (FileGroupUtil.isExpired(actualExpirationDateMillis, timeSource)) { 183 if (FileGroupUtil.isIsolatedStructureAllowed(staleGroup)) { 184 FileGroupUtil.removeIsolatedFileStructure( [all …]
|
D | DataFileGroupValidator.java | 22 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 84 if (FileGroupUtil.isSideloadedFile(dataFile) && !flags.enableSideloading()) { in isValidGroup() 154 if (FileGroupUtil.hasZipDownloadTransform(dataFile)) { in hasValidZipDownloadTransform() 205 if (FileGroupUtil.hasZipDownloadTransform(dataFile)) { in isValidDataFile() 226 validChecksum |= FileGroupUtil.hasZipDownloadTransform(dataFile) && !hasNonEmptyChecksum; in isValidDataFile() 238 && !FileGroupUtil.getFileChecksum(dataFile).contains(MddConstants.SPLIT_CHAR); in isValidDataFile()
|
D | SharedFilesMetadata.java | 20 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 48 String checksum = FileGroupUtil.getFileChecksum(file); in createKeyFromDataFileForCurrentVersion() 86 .setChecksum(FileGroupUtil.getFileChecksum(file)) in createKeyFromDataFile()
|
D | FileGroupManager.java | 57 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 198 if (FileGroupUtil.isActiveGroupExpired(receivedGroup, timeSource)) { in addGroupForDownload() 255 FileGroupUtil.maybeSetIsolatedRoot(receivedGroup, groupKey); in addGroupForDownload() 447 if (FileGroupUtil.isSideloadedFile(dataFile)) { 1383 if (FileGroupUtil.isSideloadedFile(dataFile)) { 1962 FileGroupUtil.setDownloadedTimestampInMillis(fileGroup, timeSource.currentTimeMillis()); 1989 if (FileGroupUtil.isIsolatedStructureAllowed(fileGroup) 2159 FileGroupUtil.removeIsolatedFileStructure(context, instanceId, dataFileGroup, fileStorage); 2228 FileGroupUtil.removeIsolatedFileStructure( 2273 || !FileGroupUtil.isIsolatedStructureAllowed(dataFileGroup)) { [all …]
|
D | BUILD | 52 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil", 80 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil", 150 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil", 191 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil", 223 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil", 283 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil",
|
D | SharedPreferencesFileGroupsMetadata.java | 31 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 232 FileGroupUtil.setStaleExpirationDate(
|
D | MobileDataDownloadManager.java | 46 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 433 boolean useIsolatedStructure = FileGroupUtil.isIsolatedStructureAllowed(dataFileGroup); 846 if (FileGroupUtil.hasZipDownloadTransform(dataFile)) {
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/internal/logging/ |
D | FileGroupStatsLoggerTest.java | 35 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 112 FileGroupUtil.setGroupNewFilesReceivedTimestamp(fileGroupDownloaded, 5000); in fileGroupStatsLogging() 113 fileGroupDownloaded = FileGroupUtil.setDownloadedTimestampInMillis(fileGroupDownloaded, 10000); in fileGroupStatsLogging() 129 fileGroupPending = FileGroupUtil.setGroupNewFilesReceivedTimestamp(fileGroupPending, 15000); in fileGroupStatsLogging() 142 fileGroupFailed = FileGroupUtil.setGroupNewFilesReceivedTimestamp(fileGroupFailed, 12000); in fileGroupStatsLogging() 243 FileGroupUtil.setGroupNewFilesReceivedTimestamp(fileGroupDownloaded, 5000); in fileGroupStatsLogging_withInlineFiles() 244 fileGroupDownloaded = FileGroupUtil.setDownloadedTimestampInMillis(fileGroupDownloaded, 10000); in fileGroupStatsLogging_withInlineFiles() 261 fileGroupPending = FileGroupUtil.setGroupNewFilesReceivedTimestamp(fileGroupPending, 15000); in fileGroupStatsLogging_withInlineFiles() 274 fileGroupFailed = FileGroupUtil.setGroupNewFilesReceivedTimestamp(fileGroupFailed, 12000); in fileGroupStatsLogging_withInlineFiles()
|
D | BUILD | 33 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil",
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/downloader/ |
D | FileValidator.java | 24 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 127 TAG, FileGroupUtil.getFileChecksum(dataFile), fileUri); in validateDownloadedFile() 148 FileGroupUtil.getFileChecksum(dataFile)); in validateDownloadedFile()
|
D | DownloaderCallbackImpl.java | 38 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 93 checksum = FileGroupUtil.getFileChecksum(dataFile); in DownloaderCallbackImpl() 187 if (FileGroupUtil.hasZipDownloadTransform(dataFile)) { in handleDownloadTransform() 263 if (FileGroupUtil.hasCompressDownloadTransform(dataFile)) { in applyDownloadTransforms()
|
D | BUILD | 39 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil", 65 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil", 90 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil",
|
D | MddFileDownloader.java | 42 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 520 if (FileGroupUtil.isInlineFile(url) && bytesNeeded == 0L) {
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/logging/ |
D | FileGroupStatsLogger.java | 25 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 88 .setInlineFileCount(FileGroupUtil.getInlineFileCount(dataFileGroup)) in buildFileGroupStatusList()
|
D | BUILD | 63 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil", 127 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil",
|
D | StorageLogger.java | 36 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 198 boolean isInlineFile = FileGroupUtil.isInlineFile(dataFile); in buildStorageStatsInternal()
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/internal/ |
D | FileGroupsMetadataTest.java | 35 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 222 writeFileGroup = FileGroupUtil.setStaleExpirationDate(writeFileGroup, 1000); in readAndWriteFileGroup_withExtension() 472 fileGroup1 = FileGroupUtil.setStaleExpirationDate(fileGroup1, staleExpirationLifetimeSecs + 15); in addStaleGroup_multipleGroups() 473 fileGroup2 = FileGroupUtil.setStaleExpirationDate(fileGroup2, staleExpirationLifetimeSecs + 15); in addStaleGroup_multipleGroups() 529 dataFileGroup = FileGroupUtil.setStaleExpirationDate(dataFileGroup, staleExpirationDate); in writeAndReadStaleGroups_onLotsOfFileGroups()
|
D | BUILD | 56 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil", 135 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil", 169 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil", 250 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil", 361 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil",
|
D | MobileDataDownloadManagerTest.java | 66 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 114 FileGroupUtil.createGroupKey(TEST_GROUP, "com.google.android.gms"); 782 FileGroupUtil.getIsolatedFileUri( in testGetDataFileUri_relativeFilePaths()
|
D | SharedFileManagerTest.java | 63 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 130 FileGroupUtil.createGroupKey(FILE_GROUP.getGroupName(), FILE_GROUP.getOwnerPackage());
|
D | FileGroupManagerTest.java | 77 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil; 6298 fileGroup2 = FileGroupUtil.setDownloadedTimestampInMillis(fileGroup2, 1000); in testVerifyPendingGroupDownloaded() 6348 fileGroup2 = FileGroupUtil.setDownloadedTimestampInMillis(fileGroup2, 1000); in testVerifyAllPendingGroupsDownloaded() 6411 fileGroup1 = FileGroupUtil.setDownloadedTimestampInMillis(fileGroup1, 1000); in testVerifyAllPendingGroupsDownloaded_existingDownloadedGroup() 6412 fileGroup2 = FileGroupUtil.setDownloadedTimestampInMillis(fileGroup2, 1000); in testVerifyAllPendingGroupsDownloaded_existingDownloadedGroup() 6470 fileGroup2 = FileGroupUtil.setDownloadedTimestampInMillis(fileGroup2, 1000); in testGroupDownloadFailed()
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/util/ |
D | BUILD | 67 name = "FileGroupUtil", 68 srcs = ["FileGroupUtil.java"],
|
D | FileGroupUtil.java | 44 public class FileGroupUtil { class 262 FileGroupUtil.getIsolatedRootDirectory(context, instanceId, dataFileGroup); in removeIsolatedFileStructure()
|