Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/src/storage/
DStorageManager.cpp555 void StorageManager::sortFiles(vector<FileInfo>* fileNames) { in sortFiles() argument
559 sort(fileNames->begin(), fileNames->end(), [](FileInfo& lhs, FileInfo& rhs) { in sortFiles()
587 vector<FileInfo> fileNames; in trimToFit() local
614 fileNames.emplace_back(file_name, output.mIsHistory, fileSize, fileAge); in trimToFit()
617 if (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit()
619 sortFiles(&fileNames); in trimToFit()
623 while (fileNames.size() > 0 && (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit()
625 totalFileSize -= fileNames.at(fileNames.size() - 1).mFileSizeBytes; in trimToFit()
626 deleteFile(fileNames.at(fileNames.size() - 1).mFileName.c_str()); in trimToFit()
627 fileNames.pop_back(); in trimToFit()
DStorageManager.h144 static void sortFiles(vector<FileInfo>* fileNames);
/frameworks/base/tools/aapt/
DAaptAssets.cpp661 Vector<String8> fileNames; in slurpFullTree() local
685 fileNames.add(name); in slurpFullTree()
700 const size_t N = fileNames.size(); in slurpFullTree()
706 pathName.appendPath(fileNames[i].string()); in slurpFullTree()
711 if (mDirs.indexOfKey(fileNames[i]) >= 0) { in slurpFullTree()
712 subdir = mDirs.valueFor(fileNames[i]); in slurpFullTree()
714 subdir = new AaptDir(fileNames[i], mPath.appendPathCopy(fileNames[i])); in slurpFullTree()
723 mDirs.add(fileNames[i], subdir); in slurpFullTree()
728 status_t err = addLeafFile(fileNames[i], file, overwrite); in slurpFullTree()
/frameworks/av/services/audiopolicy/engine/config/src/
DEngineConfig.cpp675 std::vector<const char *> fileNames; in parseLegacyVolumes() local
681 fileNames.push_back(apmA2dpOffloadDisabledXmlConfigFileName); in parseLegacyVolumes()
683 fileNames.push_back(apmXmlConfigFileName); in parseLegacyVolumes()
685 for (const char* fileName : fileNames) { in parseLegacyVolumes()
/frameworks/av/media/libstagefright/xmlparser/
DMediaCodecsXmlParser.cpp346 const std::vector<std::string> &fileNames,
396 const std::vector<std::string> &fileNames, in parseXmlFilesInSearchDirs() argument
398 return mImpl->parseXmlFilesInSearchDirs(fileNames, searchDirs); in parseXmlFilesInSearchDirs()
406 const std::vector<std::string> &fileNames, in parseXmlFilesInSearchDirs() argument
409 for (const std::string fileName : fileNames) { in parseXmlFilesInSearchDirs()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java360 String[] fileNames = mUsageStatsDir.list(); in cleanUpRemovedUsersLocked() local
361 if (fileNames == null) { in cleanUpRemovedUsersLocked()
366 toDelete.addAll(Arrays.asList(fileNames)); in cleanUpRemovedUsersLocked()
/frameworks/base/services/core/java/com/android/server/appop/
DHistoricalRegistry.java1571 final ArraySet<String> fileNames = new ArraySet<>(files.length); in getHistoricalFileNames() local
1573 fileNames.add(file.getName()); in getHistoricalFileNames()
1576 return fileNames; in getHistoricalFileNames()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp4243 std::vector<const char*> fileNames; in deserializeAudioPolicyXmlConfig() local
4251 fileNames.push_back(AUDIO_POLICY_BLUETOOTH_LEGACY_HAL_XML_CONFIG_FILE_NAME); in deserializeAudioPolicyXmlConfig()
4254 fileNames.push_back(AUDIO_POLICY_A2DP_OFFLOAD_DISABLED_XML_CONFIG_FILE_NAME); in deserializeAudioPolicyXmlConfig()
4257 fileNames.push_back(AUDIO_POLICY_BLUETOOTH_LEGACY_HAL_XML_CONFIG_FILE_NAME); in deserializeAudioPolicyXmlConfig()
4259 fileNames.push_back(AUDIO_POLICY_XML_CONFIG_FILE_NAME); in deserializeAudioPolicyXmlConfig()
4261 for (const char* fileName : fileNames) { in deserializeAudioPolicyXmlConfig()