/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | StringUtils.java | 143 public static boolean isNullOrEmpty(String dateExpires) { in isNullOrEmpty() argument 144 return dateExpires == null || dateExpires.trim().isEmpty() in isNullOrEmpty() 145 || dateExpires.trim().equalsIgnoreCase("null"); in isNullOrEmpty()
|
D | FileUtils.java | 1402 final long dateExpires = getAsLong(values, MediaColumns.DATE_EXPIRES, 1405 Locale.US, ".%s-%d-%s", FileUtils.PREFIX_PENDING, dateExpires, displayName); 1411 final long dateExpires = getAsLong(values, MediaColumns.DATE_EXPIRES, 1414 Locale.US, ".%s-%d-%s", FileUtils.PREFIX_TRASHED, dateExpires, displayName);
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | IdleServiceTest.java | 208 final long dateExpires = (System.currentTimeMillis() - 10 * DateUtils.DAY_IN_MILLIS) / 1000; in testExtendTrashedItemExpiresOverOneWeek() local 209 final Uri uri = createExpiredTrashedItem(resolver, dateExpires); in testExtendTrashedItemExpiresOverOneWeek() 213 assertExpiredItemIsExtended(resolver, uri, dateExpires); in testExtendTrashedItemExpiresOverOneWeek() 221 final long dateExpires = (System.currentTimeMillis() - 3 * DateUtils.DAY_IN_MILLIS) / 1000; in testDeleteExpiredTrashedItem() local 222 final Uri uri = createExpiredTrashedItem(resolver, dateExpires); in testDeleteExpiredTrashedItem() 446 private Uri createExpiredTrashedItem(ContentResolver resolver, long dateExpires) in createExpiredTrashedItem() argument 448 return createExpiredTrashedItem(resolver, dateExpires, in createExpiredTrashedItem() 452 private Uri createExpiredTrashedItem(ContentResolver resolver, long dateExpires, in createExpiredTrashedItem() argument 456 FileUtils.PREFIX_TRASHED, dateExpires, displayName + ".jpg"); in createExpiredTrashedItem()
|
/packages/providers/MediaProvider/src/com/android/providers/media/stableuris/dao/ |
D | BackupIdRow.java | 111 public Builder setDateExpires(String dateExpires) { in setDateExpires() argument 112 if (StringUtils.isNullOrEmpty(dateExpires)) { in setDateExpires() 115 long value = Long.parseLong(dateExpires); in setDateExpires()
|
/packages/providers/MediaProvider/src/com/android/providers/media/dao/ |
D | FileRow.java | 104 public Builder setDateExpires(String dateExpires) { in setDateExpires() argument 105 this.mDateExpires = dateExpires; in setDateExpires()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | ModernMediaScannerTest.java | 928 final long dateExpires = (System.currentTimeMillis() - 5 * DateUtils.DAY_IN_MILLIS) / 1000; in testScan_deleteStaleRowWithExpiredPendingFile() local 930 Locale.US, ".%s-%d-%s", FileUtils.PREFIX_PENDING, dateExpires, displayName); in testScan_deleteStaleRowWithExpiredPendingFile() 970 final long dateExpires = (System.currentTimeMillis() + 2 * DateUtils.DAY_IN_MILLIS) / 1000; in testScan_keepStaleRowWithNonExpiredPendingFile() local 972 Locale.US, ".%s-%d-%s", FileUtils.PREFIX_PENDING, dateExpires, displayName); in testScan_keepStaleRowWithNonExpiredPendingFile() 1012 final long dateExpires = (System.currentTimeMillis() - 5 * DateUtils.DAY_IN_MILLIS) / 1000; in testScan_deleteStaleRowWithExpiredTrashedFile() local 1014 Locale.US, ".%s-%d-%s", FileUtils.PREFIX_TRASHED, dateExpires, displayName); in testScan_deleteStaleRowWithExpiredTrashedFile() 1054 final long dateExpires = (System.currentTimeMillis() + 2 * DateUtils.DAY_IN_MILLIS) / 1000; in testScan_deleteStaleRowWithNonExpiredTrashedFile() local 1056 Locale.US, ".%s-%d-%s", FileUtils.PREFIX_TRASHED, dateExpires, displayName); in testScan_deleteStaleRowWithNonExpiredTrashedFile()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | DatabaseBackupAndRecovery.java | 494 final String dateExpires = c.getString(7); in backupDataValues() local 498 isFavorite, isPending, isTrashed, userId, dateExpires, ownerPackageName); in backupDataValues() 615 boolean isPending, boolean isTrashed, int userId, String dateExpires, in createBackupIdRow() argument 623 builder.setDateExpires(dateExpires); in createBackupIdRow()
|
D | DatabaseHelper.java | 391 final String dateExpires = split[8]; in onConfigure() 403 .setDateExpires(dateExpires) in onConfigure()
|
D | MediaProvider.java | 1933 final long dateExpires = c.getLong(2); in deleteOrExtendExpiredItems() local 1935 if (dateExpires > expiredOneWeek) { in deleteOrExtendExpiredItems()
|