Lines Matching defs:contents
334 for (EntryFile entry : list.contents.tailSet(new EntryFile(millis + 1))) {
383 out.append("Drop box contents: ").append(mAllFiles.contents.size()).append(" entries\n");
394 for (EntryFile entry : mAllFiles.contents) {
411 out.append(" (contents lost)\n");
494 public final TreeSet<EntryFile> contents = new TreeSet<EntryFile>();
555 * Creates a zero-length tombstone for a file whose contents were lost.
629 /** If never run before, scans disk contents to build in-memory tracking data. */
675 mAllFiles.contents.add(entry);
687 tagFiles.contents.add(entry);
700 SortedSet<EntryFile> tail = mAllFiles.contents.tailSet(new EntryFile(t + 10000));
707 if (!mAllFiles.contents.isEmpty()) {
708 t = Math.max(t, mAllFiles.contents.last().timestampMillis + 1);
715 if (tagFiles != null && tagFiles.contents.remove(late)) {
747 while (!mAllFiles.contents.isEmpty()) {
748 EntryFile entry = mAllFiles.contents.first();
749 if (entry.timestampMillis > cutoffMillis && mAllFiles.contents.size() < maxFiles) break;
752 if (tag != null && tag.contents.remove(entry)) tag.blocks -= entry.blocks;
753 if (mAllFiles.contents.remove(entry)) mAllFiles.blocks -= entry.blocks;
809 while (tag.blocks > tagQuota && !tag.contents.isEmpty()) {
810 EntryFile entry = tag.contents.first();
811 if (tag.contents.remove(entry)) tag.blocks -= entry.blocks;
812 if (mAllFiles.contents.remove(entry)) mAllFiles.blocks -= entry.blocks;