Home
last modified time | relevance | path

Searched refs:FileGroupUtil (Results 1 – 23 of 23) sorted by relevance

/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/
DExpirationHandler.java34 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 …]
DDataFileGroupValidator.java22 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()
DSharedFilesMetadata.java20 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil;
48 String checksum = FileGroupUtil.getFileChecksum(file); in createKeyFromDataFileForCurrentVersion()
86 .setChecksum(FileGroupUtil.getFileChecksum(file)) in createKeyFromDataFile()
DFileGroupManager.java57 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 …]
DBUILD52 "//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",
DSharedPreferencesFileGroupsMetadata.java31 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil;
232 FileGroupUtil.setStaleExpirationDate(
DMobileDataDownloadManager.java46 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/
DFileGroupStatsLoggerTest.java35 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()
DBUILD33 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil",
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/downloader/
DFileValidator.java24 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil;
127 TAG, FileGroupUtil.getFileChecksum(dataFile), fileUri); in validateDownloadedFile()
148 FileGroupUtil.getFileChecksum(dataFile)); in validateDownloadedFile()
DDownloaderCallbackImpl.java38 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()
DBUILD39 "//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",
DMddFileDownloader.java42 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/
DFileGroupStatsLogger.java25 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil;
88 .setInlineFileCount(FileGroupUtil.getInlineFileCount(dataFileGroup)) in buildFileGroupStatusList()
DBUILD63 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil",
127 "//java/com/google/android/libraries/mobiledatadownload/internal/util:FileGroupUtil",
DStorageLogger.java36 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/
DFileGroupsMetadataTest.java35 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()
DBUILD56 "//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",
DMobileDataDownloadManagerTest.java66 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil;
114 FileGroupUtil.createGroupKey(TEST_GROUP, "com.google.android.gms");
782 FileGroupUtil.getIsolatedFileUri( in testGetDataFileUri_relativeFilePaths()
DSharedFileManagerTest.java63 import com.google.android.libraries.mobiledatadownload.internal.util.FileGroupUtil;
130 FileGroupUtil.createGroupKey(FILE_GROUP.getGroupName(), FILE_GROUP.getOwnerPackage());
DFileGroupManagerTest.java77 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/
DBUILD67 name = "FileGroupUtil",
68 srcs = ["FileGroupUtil.java"],
DFileGroupUtil.java44 public class FileGroupUtil { class
262 FileGroupUtil.getIsolatedRootDirectory(context, instanceId, dataFileGroup); in removeIsolatedFileStructure()