Home
last modified time | relevance | path

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

12345678910>>...22

/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/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/usage/java/com/android/server/usage/
DUsageStatsDatabase.java177 for (TimeSparseArray<AtomicFile> files : mSortedStatFiles) { in init()
178 final int startIndex = files.closestIndexOnOrAfter(currentTimeMillis); in init()
183 final int fileCount = files.size(); in init()
185 files.valueAt(i).delete(); in init()
191 files.removeAt(i); in init()
212 final TimeSparseArray<AtomicFile> files = in checkinDailyFiles() local
214 final int fileCount = files.size(); in checkinDailyFiles()
220 if (files.valueAt(i).getBaseFile().getPath().endsWith(CHECKED_IN_SUFFIX)) { in checkinDailyFiles()
233 readLocked(files.valueAt(i), stats); in checkinDailyFiles()
246 final AtomicFile file = files.valueAt(i); in checkinDailyFiles()
[all …]
/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/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/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 …]
DMultiDex.java244 List<? extends File> files = in doInstallation() local
247 installSecondaryDexes(loader, dexDir, files); in doInstallation()
255 files = extractor.load(mainContext, prefsKeyPrefix, true); in doInstallation()
256 installSecondaryDexes(loader, dexDir, files); in doInstallation()
359 List<? extends File> files) in installSecondaryDexes() argument
363 if (!files.isEmpty()) { in installSecondaryDexes()
365 V19.install(loader, files, dexDir); in installSecondaryDexes()
367 V14.install(loader, files); in installSecondaryDexes()
369 V4.install(loader, files); in installSecondaryDexes()
454 File[] files = dexDir.listFiles(); in clearOldDexDir() local
[all …]
/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/telephony/java/android/telephony/mbms/
DFileServiceInfo.java35 private final List<FileInfo> files; field in FileServiceInfo
44 files = new ArrayList<>(newFiles); in FileServiceInfo()
62 files = new ArrayList<FileInfo>(); in FileServiceInfo()
63 in.readList(files, FileInfo.class.getClassLoader()); in FileServiceInfo()
69 dest.writeList(files); in writeToParcel()
83 return files; in getFiles()
/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()
DWorkDirectory.cpp572 map<string,WorkDirectoryEntry> files; in getReports() local
573 get_directory_contents_locked(&files, after); in getReports()
574 for (map<string,WorkDirectoryEntry>::iterator it = files.begin(); in getReports()
575 it != files.end(); it++) { in getReports()
626 map<string,WorkDirectoryEntry> files; in hasMore() local
627 get_directory_contents_locked(&files, after); in hasMore()
628 return files.size() > 0; in hasMore()
651 map<string,WorkDirectoryEntry> files; in commitAll() local
652 get_directory_contents_locked(&files, 0); in commitAll()
654 for (map<string,WorkDirectoryEntry>::iterator it = files.begin(); in commitAll()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DProcessStatsService.java392 File[] files = mBaseDir.listFiles(); in getCommittedFiles() local
393 if (files == null || files.length <= minNum) { in getCommittedFiles()
396 ArrayList<String> filesArray = new ArrayList<String>(files.length); in getCommittedFiles()
398 if (DEBUG) Slog.d(TAG, "Collecting " + files.length + " files except: " + currentFile); in getCommittedFiles()
399 for (int i=0; i<files.length; i++) { in getCommittedFiles()
400 File file = files[i]; in getCommittedFiles()
518 ArrayList<String> files = getCommittedFiles(0, false, true);
519 if (files != null) {
520 for (int i=files.size()-1; i>=0; i--) {
523 new File(files.get(i)), ParcelFileDescriptor.MODE_READ_ONLY);
[all …]
/frameworks/rs/tests/java_api/RsTest/
DAndroid.mk24 $(call all-java-files-under,src) \
25 $(call all-java-files-under,../RSUnitTests/gui) \
26 $(call all-java-files-under,../RSUnitTests/src) \
27 $(call all-renderscript-files-under,../RSUnitTests/src) \
/frameworks/base/services/people/java/com/android/server/people/data/
DAbstractProtoDiskReadWriter.java127 File[] files = mRootDir.listFiles( in read() local
129 if (files == null || files.length == 0) { in read()
131 } else if (files.length > 1) { in read()
133 Slog.w(TAG, "Found multiple files with the same name: " + Arrays.toString(files)); in read()
135 return parseFile(files[0]); in read()
145 File[] files = mRootDir.listFiles(File::isFile); in readAll() local
146 if (files == null) { in readAll()
151 for (File file : files) { in readAll()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/
DLogEulogizerTest.kt55 lateinit var files: Files variable in com.android.systemui.dump.LogEulogizerTest
72 LogBufferEulogizer(dumpManager, clock, files, path, MIN_WRITE_GAP, MAX_READ_AGE) in setUp()
74 Mockito.`when`(files.newBufferedWriter(eq(path), any(OpenOption::class.java))) in setUp()
78 files.readAttributes(eq(path), in setUp()
83 Mockito.`when`(files.lines(eq(path))).thenReturn(Arrays.stream(FAKE_LINES)) in setUp()
90 files.readAttributes(eq(path), in testFileIsCreated()
142 verify(files).lines(eq(path)) in testRecentFileIsDumped()
156 verify(files, never()).lines(eq(path)) in testOldFileIsNotDumped()
/frameworks/rs/tests/java_api/RSTest_CompatLib/
DAndroid.mk25 $(call all-java-files-under,src) \
26 $(call all-java-files-under,../RSUnitTests/gui) \
27 $(call all-java-files-under,../RSUnitTests/supportlibsrc_gen) \
28 $(call all-renderscript-files-under,../RSUnitTests/supportlibsrc_gen) \
/frameworks/ml/nn/
DREADME.txt16 This directory contains files for the Android Neural Networks API.
21 Includes source code and internal header files.
22 ./runtime/include: The header files that an external developer would use.
25 ./runtime/test: Test files.
31 ./common: Contains files that can be useful for multiple components,
33 internal header files.
34 ./common/include: Header files to be used by the components using common.
/frameworks/base/core/java/android/os/
DFileObserver.java116 public int[] startWatching(List<File> files, in startWatching() argument
118 final int count = files.size(); in startWatching()
121 paths[i] = files.get(i).getAbsolutePath(); in startWatching()
212 public FileObserver(@NonNull List<File> files) { in FileObserver() argument
213 this(files, ALL_EVENTS); in FileObserver()
250 public FileObserver(@NonNull List<File> files, @NotifyEventType int mask) { in FileObserver() argument
251 mFiles = files; in FileObserver()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dump/
DLogBufferEulogizer.kt48 private val files: Files, in <lambda>() constant in com.android.systemui.dump.LogBufferEulogizer
57 files: Files in <lambda>()
61 files, in <lambda>()
86 val writer = files.newBufferedWriter(logPath, CREATE, TRUNCATE_EXISTING) in <lambda>()
121 files.lines(logPath).use { s -> in <lambda>()
138 files.readAttributes(path, BasicFileAttributes::class.java) in <lambda>()
/frameworks/base/wifi/java/android/net/wifi/migration_samples/
DREADME.txt1 This folder contains sample files for each of the 4 XML Wi-Fi config store files in Android 11 AOSP.
2 OEMs can use these files as reference for converting their previous customized
8 The 4 files are:
10 Shared files
24 User specific files
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DUsimPhoneBookManager.java204 SparseArray<File> files; in readEmailFileAndWait() local
205 files = mPbrRecords.get(recId).mFileIds; in readEmailFileAndWait()
206 if (files == null) return; in readEmailFileAndWait()
208 File email = files.get(USIM_EFEMAIL_TAG); in readEmailFileAndWait()
218 if (files.get(USIM_EFIAP_TAG) == null) { in readEmailFileAndWait()
224 readIapFileAndWait(files.get(USIM_EFIAP_TAG).getEfid()); in readEmailFileAndWait()
469 SparseArray<File> files; in readAdnFileAndWait() local
470 files = mPbrRecords.get(recId).mFileIds; in readAdnFileAndWait()
471 if (files == null || files.size() == 0) return; in readAdnFileAndWait()
475 if (files.get(USIM_EFEXT1_TAG) != null) { in readAdnFileAndWait()
[all …]
/frameworks/opt/setupwizard/tools/gradle/
Ddocs.gradle20 classpath = files(variant.javaCompile.classpath.files) + files(
27 bootClasspath = files(android.getBootClasspath()).asType(List)
29 docletpath = files("$DOCSDIR/doclava.jar", "$DOCSDIR/jsilver.jar").asType(List)
/frameworks/rs/tests/java_api/RSTestBackward/
DAndroid.mk25 $(call all-java-files-under, src)\
26 $(call all-java-files-under, ../RSUnitTests/src)\
27 $(call all-renderscript-files-under, ../RSUnitTests/src)\

12345678910>>...22