Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/src/storage/
DStorageManager.cpp699 void StorageManager::sortFiles(vector<FileInfo>* fileNames) { in sortFiles() argument
703 sort(fileNames->begin(), fileNames->end(), [](FileInfo& lhs, FileInfo& rhs) { in sortFiles()
731 vector<FileInfo> fileNames; in trimToFit() local
765 fileNames.emplace_back(file_name, output.mIsHistory, fileSize, fileAge); in trimToFit()
768 if (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit()
770 sortFiles(&fileNames); in trimToFit()
774 while (fileNames.size() > 0 && (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit()
776 totalFileSize -= fileNames.at(fileNames.size() - 1).mFileSizeBytes; in trimToFit()
777 deleteFile(fileNames.at(fileNames.size() - 1).mFileName.c_str()); in trimToFit()
778 fileNames.pop_back(); in trimToFit()
DStorageManager.h166 static void sortFiles(vector<FileInfo>* fileNames);
/packages/modules/HealthFitness/framework/java/android/health/connect/restore/
DBackupFileNamesSet.java36 public BackupFileNamesSet(@NonNull Set<String> fileNames) { in BackupFileNamesSet() argument
37 Objects.requireNonNull(fileNames); in BackupFileNamesSet()
38 mFileNames = fileNames; in BackupFileNamesSet()
/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()
/packages/services/Car/tools/telemetry/lua-interpreter/static/js/
Dindex.js113 const /** !Array<string> */ fileNames = responseObject['file_names'];
117 for (const [i, fileName] of fileNames.entries()) {
121 if (i !== fileNames.length - 1) {
/packages/services/Car/service/src/com/android/car/telemetry/
DResultStore.java411 String[] fileNames = mMetricsReportDirectory.list(); in getFinishedMetricsConfigNames() local
412 if (fileNames != null) { in getFinishedMetricsConfigNames()
413 configNames.addAll(Arrays.asList(fileNames)); in getFinishedMetricsConfigNames()
415 fileNames = mErrorResultDirectory.list(); in getFinishedMetricsConfigNames()
416 if (fileNames != null) { in getFinishedMetricsConfigNames()
417 configNames.addAll(Arrays.asList(fileNames)); in getFinishedMetricsConfigNames()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/leveldb/
DLevelDBManagerTest.java49 List<String> fileNames = Arrays.stream(context.getFilesDir().listFiles()).map( in testLevelDbOperations() local
51 assertThat(fileNames).contains(levelDBFile); in testLevelDbOperations()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java7422 List<String> fileNames = new ArrayList<>();
7424 fileNames.add(file.getName());
7427 Object[] values = fileNames.toArray();