Home
last modified time | relevance | path

Searched refs:files (Results 1 – 25 of 577) sorted by relevance

12345678910>>...24

/frameworks/base/core/java/com/android/internal/content/
DF2fsUtils.java109 final File[] files = getFilesToRelease(file); in releaseCompressedBlocks() local
110 if (files == null || files.length == 0) { in releaseCompressedBlocks()
116 for (int i = files.length - 1; i >= 0; --i) { in releaseCompressedBlocks()
117 final long releasedBlocks = nativeReleaseCompressedBlocks(files[i].getAbsolutePath()); in releaseCompressedBlocks()
120 + " from \"" + files[i] + "\""); in releaseCompressedBlocks()
266 final ArrayList<File> files = new ArrayList<>(); in getFilesRecursive() local
269 files.addAll(getFilesRecursive(f)); in getFilesRecursive()
271 files.add(f); in getFilesRecursive()
274 return files; in getFilesRecursive()
281 final List<File> files = getFilesRecursive(codePath); in getFilesToRelease() local
[all …]
/frameworks/base/tools/lint/checks/src/test/java/com/google/android/lint/
DCallingIdentityTokenDetectorTest.kt43 lint().files( in getDetector()
78 lint().files( in testDetectsUnusedTokens()
134 lint().files( in testDetectsUnusedTokensInScopes()
173 lint().files( in testDoesNotDetectUsedTokensInScopes()
203 lint().files( in testDetectsUnusedTokensWithSimilarNamesInScopes()
249 lint().files( in testDetectsNonFinalTokens()
304 lint().files( in testDetectsNestedClearCallingIdentityCalls()
357 lint().files( in testDetectsClearIdentityCallNotFollowedByTryFinally()
454 lint().files( in testDetectsRestoreCallingIdentityCallNotInFinally()
518 lint().files( in testDetectsRestoreCallingIdentityCallNotInFinallyInScopes()
[all …]
DEnforcePermissionDetectorTest.kt37 lint().files(java( in getDetector()
52 lint().files(java( in testDoesNotDetectIssuesCorrectAnnotationOnMethod()
69 lint().files(java( in testDetectIssuesMismatchingAnnotationOnClass()
91 lint().files(java( in testDetectIssuesMismatchingAnnotationOnMethod()
113 lint().files(java( in testDetectIssuesMissingAnnotationOnClass()
132 lint().files(java( in testDetectIssuesMissingAnnotationOnMethod()
DCallingSettingsNonUserGetterMethodsIssueDetectorTest.kt36 lint().files( in getDetector()
56 lint().files( in testDetectsNonUserGetterCalledFromSecure()
85 lint().files( in testDetectsNonUserGetterCalledFromSystem()
115 lint().files( in testDetectsNonUserGetterCalledFromSettings()
145 lint().files( in testDetectsNonUserGettersCalledFromSystemAndSecure()
/frameworks/base/tests/backup/
Dtest_restore.sh52 echo --- Previous files
58 echo --- Erased files and shared_prefs
82 check_file files/file.txt "first file" || need_bug=1
83 check_file files/another_file.txt "asdf" || need_bug=1
85 check_file files/empty.txt "" || need_bug=1
89 check_exists files/file_doesnt_exist.txt && need_bug=1
90 check_exists files/no_files_here.txt && need_bug=1
100 echo --- Restored files
108 a shell cat /data/data/com.android.backuptest/files/3.txt | tail -n 3
/frameworks/base/packages/SystemUI/scripts/token_alignment/
Dtsconfig.json6 …// "incremental": true, /* Save .tsbuildinfo files to allow for incre…
9 …ectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when…
15 … /* Specify a set of bundled library declaration files that describe the …
18 …rue, /* Emit design-type metadata for decorated declarations in source files. */
23 …// "noLib": true, /* Disable including any library files, inclu…
25 … "auto", /* Control what method is used to detect module-format JS files. */
29 …ir": "./", /* Specify the root folder within your source files. */
38 "resolveJsonModule": true, /* Enable importing .json files. */
39 …llow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should …
42 … /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get…
[all …]
/frameworks/minikin/doc/
Dminikin_style.md12 3. C system files
13 4. C++ system files
15 6. Other libraries' files
17 8. Minikin public files
19 10. Minikin private files
25 #include <math.h> // C system header files.
26 #include <string> // C++ system header files.
38 * `#include <...>` should be used for non local library files.
39 * `#include "..."` should be used for minikin header files.
/frameworks/base/services/core/xsd/vts/
DValidateDefaultPermissions.cpp29 std::vector<std::string> files; in get_files_in_dirs() local
33 return files; in get_files_in_dirs()
42 files.push_back(de->d_name); in get_files_in_dirs()
45 return files; in get_files_in_dirs()
57 std::vector<std::string> files = get_files_in_dirs(dir_path); in TEST() local
58 for (auto& file_name : files) { in TEST()
/frameworks/base/packages/SystemUI/checks/tests/com/android/internal/systemui/lint/
DDemotingTestWithoutBugDetectorTest.kt36 .files( in getDetector()
57 .files( in getDetector()
81 .files( in testMarkFlaky_withoutBugId()
109 .files( in testMarkFlaky_withoutBugId()
140 .files( in testExcludeDevices_withBugId()
164 .files( in testExcludeDevices_withoutBugId()
195 .files( in testIgnore_withBug()
219 .files( in testIgnore_withoutBug()
247 .files( in testIgnore_withoutBug()
DDumpableNotRegisteredDetectorTest.kt33 .files( in getDetector()
53 .files( in classIsDumpable_andRegisterIsCalled_noViolation()
84 .files( in classIsDumpable_andRegisterNormalIsCalled_noViolation()
115 .files( in classIsDumpable_andRegisterCriticalIsCalled_noViolation()
146 .files( in classIsDumpable_noRegister_violation()
179 .files( in classIsDumpable_usesNotDumpManagerMethod_violation()
216 .files( in classIsDumpableAndCoreStartable_noRegister_noViolation()
246 .files( in classIsAbstract_noRegister_noViolation()
DBroadcastSentViaContextDetectorTest.kt35 .files( in getDetector()
67 .files( in testSendBroadcastAsUser()
100 .files( in testSendBroadcastInActivity()
134 .files( in testSuppressSendBroadcastInActivity()
162 .files( in testSendBroadcastInBroadcastSender()
189 .files( in testNoopIfNoCall()
DBindServiceOnMainThreadDetectorTest.kt34 .files( in getDetector()
66 .files( in testBindServiceAsUser()
99 .files( in testUnbindService()
131 .files( in testSuppressUnbindService()
157 .files( in testWorkerMethod()
191 .files( in testWorkerClass()
DSlowUserQueryDetectorTest.kt38 .files( in getDetector()
72 .files( in testGetUserInfo()
106 .files( in testSuppressGetUserInfo()
134 .files( in testUserTrackerGetUserId()
161 .files( in testUserTrackerGetUserInfo()
/frameworks/base/core/xsd/vts/
DValidatePermission.cpp28 static void get_files_in_dirs(const char* dir_path, std::vector<std::string>& files) { in get_files_in_dirs() argument
42 files.push_back(de->d_name); in get_files_in_dirs()
55 std::vector<std::string> files; in TEST() local
56 get_files_in_dirs(location, files); in TEST()
58 for (std::string file_name : files) { in TEST()
/frameworks/av/media/libstagefright/xmlparser/vts/
DValidateMediaCodecs.cpp27 static void get_files_in_dirs(const char* dir_path, std::vector<std::string>& files) { in get_files_in_dirs() argument
41 files.push_back(de->d_name); in get_files_in_dirs()
54 std::vector<std::string> files; in TEST() local
55 get_files_in_dirs(location, files); in TEST()
57 for (std::string file_name : files) { in TEST()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java184 for (TimeSparseArray<AtomicFile> files : mSortedStatFiles) { in init()
185 final int startIndex = files.closestIndexOnOrAfter(currentTimeMillis); in init()
190 final int fileCount = files.size(); in init()
192 files.valueAt(i).delete(); in init()
198 files.removeAt(i); in init()
219 final TimeSparseArray<AtomicFile> files = in checkinDailyFiles() local
221 final int fileCount = files.size(); in checkinDailyFiles()
227 if (files.valueAt(i).getBaseFile().getPath().endsWith(CHECKED_IN_SUFFIX)) { in checkinDailyFiles()
240 readLocked(files.valueAt(i), stats); in checkinDailyFiles()
253 final AtomicFile file = files.valueAt(i); in checkinDailyFiles()
[all …]
/frameworks/base/core/java/android/app/backup/
DFileBackupHelper.java53 public FileBackupHelper(Context context, String... files) { in FileBackupHelper() argument
58 mFiles = files; in FileBackupHelper()
76 String[] files = mFiles; in performBackup() local
78 final int N = files.length; in performBackup()
81 fullPaths[i] = (new File(base, files[i])).getAbsolutePath(); in performBackup()
85 performBackup_checked(oldState, data, newState, fullPaths, files); in performBackup()
DFileBackupHelperBase.java55 ParcelFileDescriptor newState, String[] files, String[] keys) { in performBackup_checked() argument
56 if (files.length == 0) { in performBackup_checked()
60 for (String f: files) { in performBackup_checked()
66 if (files.length != keys.length) { in performBackup_checked()
67 throw new RuntimeException("files.length=" + files.length in performBackup_checked()
77 int err = performBackup_native(oldStateFd, data.mBackupWriter, newStateFd, files, keys); in performBackup_checked()
124 long data, FileDescriptor newState, String[] files, String[] keys); in performBackup_native() argument
/frameworks/base/telephony/java/android/telephony/mbms/
DFileServiceInfo.java34 private final List<FileInfo> files; field in FileServiceInfo
42 files = new ArrayList<>(newFiles); in FileServiceInfo()
60 files = new ArrayList<FileInfo>(); in FileServiceInfo()
61 in.readList(files, FileInfo.class.getClassLoader(), android.telephony.mbms.FileInfo.class); in FileServiceInfo()
67 dest.writeList(files); in writeToParcel()
81 return files; in getFiles()
/frameworks/base/
DAndroid.mk18 $(eval $(call declare-1p-copy-files,frameworks/base,.ogg))
19 $(eval $(call declare-1p-copy-files,frameworks/base,.kl))
20 $(eval $(call declare-1p-copy-files,frameworks/base,.kcm))
21 $(eval $(call declare-1p-copy-files,frameworks/base,.idc))
22 $(eval $(call declare-1p-copy-files,frameworks/base,dirty-image-objects))
23 $(eval $(call declare-1p-copy-files,frameworks/base/config,))
24 $(eval $(call declare-1p-copy-files,frameworks/native/data,))
/frameworks/layoutlib/bridge/tests/src/com/android/ide/common/resources/deprecated/
DTestFolderWrapper.java35 File[] files = listFiles(); in listMembers() local
36 final int count = files == null ? 0 : files.length; in listMembers()
39 if (files != null) { in listMembers()
41 File f = files[i]; in listMembers()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java136 List<ExtractedDex> files; in load() local
139 files = loadExistingExtractions(context, prefsKeyPrefix); in load()
143 files = performExtractions(); in load()
145 files); in load()
153 files = performExtractions(); in load()
155 files); in load()
158 Log.i(TAG, "load found " + files.size() + " secondary dex files"); in load()
159 return files; in load()
186 final List<ExtractedDex> files = new ArrayList<ExtractedDex>(totalDexNumber - 1); in loadExistingExtractions() local
206 files.add(extractedFile); in loadExistingExtractions()
[all …]
/frameworks/base/cmds/incidentd/src/
Dreport_directory.cpp46 std::vector<std::pair<String8, struct stat>> files; in clean_directory() local
72 files.push_back(std::pair<String8, struct stat>(filename, st)); in clean_directory()
86 sort(files.begin(), files.end(), stat_mtime_cmp); in clean_directory()
89 for (std::vector<std::pair<String8, struct stat>>::iterator it = files.begin(); in clean_directory()
90 it != files.end() && totalSize >= maxSize && totalCount >= maxCount; it++) { in clean_directory()
/frameworks/base/services/core/java/com/android/server/am/
DProcessStatsService.java454 File[] files = mBaseDir.listFiles(); in getCommittedFilesLF() local
455 if (files == null || files.length <= minNum) { in getCommittedFilesLF()
458 ArrayList<String> filesArray = new ArrayList<String>(files.length); in getCommittedFilesLF()
460 if (DEBUG) Slog.d(TAG, "Collecting " + files.length + " files except: " + currentFile); in getCommittedFilesLF()
461 for (int i=0; i<files.length; i++) { in getCommittedFilesLF()
462 File file = files[i]; in getCommittedFilesLF()
485 File[] files = mBaseDir.listFiles(); in trimHistoricStatesWriteLF() local
486 if (files != null) { in trimHistoricStatesWriteLF()
487 for (int i = 0; i < files.length; i++) { in trimHistoricStatesWriteLF()
488 if (!files[i].getName().startsWith(STATE_FILE_PREFIX)) { in trimHistoricStatesWriteLF()
[all …]
/frameworks/base/services/core/java/com/android/server/powerstats/
DPowerStatsDataStorage.java176 File[] files = mDataStorageDir.listFiles(); in PowerStatsDataStorage() local
177 for (int i = 0; i < files.length; i++) { in PowerStatsDataStorage()
197 if (files[i].getName().startsWith(beforeVersionDot)) { in PowerStatsDataStorage()
199 if (!files[i].getName().startsWith(mDataStorageFilename)) { in PowerStatsDataStorage()
200 files[i].delete(); in PowerStatsDataStorage()
256 File[] files = mDataStorageDir.listFiles(); in deleteLogs() local
257 for (int i = 0; i < files.length; i++) { in deleteLogs()
261 if (files[i].getName().startsWith(beforeVersionDot)) { in deleteLogs()
262 files[i].delete(); in deleteLogs()

12345678910>>...24