Home
last modified time | relevance | path

Searched refs:fileNames (Results 1 – 3 of 3) sorted by relevance

/packages/modules/StatsD/statsd/src/storage/
DStorageManager.cpp653 void StorageManager::sortFiles(vector<FileInfo>* fileNames) { in sortFiles() argument
657 sort(fileNames->begin(), fileNames->end(), [](FileInfo& lhs, FileInfo& rhs) { in sortFiles()
685 vector<FileInfo> fileNames; in trimToFit() local
719 fileNames.emplace_back(file_name, output.mIsHistory, fileSize, fileAge); in trimToFit()
722 if (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit()
724 sortFiles(&fileNames); in trimToFit()
728 while (fileNames.size() > 0 && (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit()
730 totalFileSize -= fileNames.at(fileNames.size() - 1).mFileSizeBytes; in trimToFit()
731 deleteFile(fileNames.at(fileNames.size() - 1).mFileName.c_str()); in trimToFit()
732 fileNames.pop_back(); in trimToFit()
DStorageManager.h153 static void sortFiles(vector<FileInfo>* fileNames);
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDirectoryResult.java87 Set<String> fileNames = new HashSet<>(); in loadDataFromCursor() local
100 fileNames.add( in loadDataFromCursor()
110 mFileNames = fileNames; in loadDataFromCursor()