Home
last modified time | relevance | path

Searched defs:file (Results 1 – 25 of 158) sorted by relevance

1234567

/system/core/base/
Dfile_test.cpp38 TEST(file, ReadFileToString_ENOENT) { in TEST() argument
46 TEST(file, ReadFileToString_WriteStringToFile) { in TEST() argument
59 TEST(file, ReadFileToString_WriteStringToFile_symlink) { in TEST() argument
78 TEST(file, WriteStringToFile2) { in TEST() argument
97 TEST(file, NonUnicodeCharsWindows) { in TEST() argument
161 TEST(file, RootDirectoryWindows) { in TEST() argument
179 TEST(file, WriteStringToFd) { in TEST() argument
191 TEST(file, WriteFully) { in TEST() argument
210 TEST(file, RemoveFileIfExists) { in TEST() argument
224 TEST(file, RemoveFileIfExists_ENOTDIR) { in TEST() argument
[all …]
Dlogging.cpp89 static const char* GetFileBasename(const char* file) { in GetFileBasename()
282 void StderrLogger(LogId, LogSeverity severity, const char* tag, const char* file, unsigned int line, in StderrLogger()
333 void LogdLogger::operator()(LogId id, LogSeverity severity, const char* tag, const char* file, in operator ()()
429 LogMessageData(const char* file, unsigned int line, LogSeverity severity, const char* tag, in LogMessageData()
474 LogMessage::LogMessage(const char* file, unsigned int line, LogId, LogSeverity severity, in LogMessage()
478 LogMessage::LogMessage(const char* file, unsigned int line, LogSeverity severity, const char* tag, in LogMessage()
520 void LogMessage::LogLine(const char* file, unsigned int line, LogSeverity severity, const char* tag, in LogLine()
/system/core/libprocessgroup/cgrouprc/
Dcgroup_file.cpp82 static auto* file = LoadRcFile(); in GetInstance() local
87 auto file = GetInstance(); in ACgroupFile_getVersion() local
93 auto file = GetInstance(); in ACgroupFile_getControllerCount() local
99 auto file = GetInstance(); in ACgroupFile_getController() local
/system/timezone/distro/core/src/main/com/android/timezone/distro/
DFileUtils.java95 public static void makeWorldReadable(File file) throws IOException { in makeWorldReadable()
108 public static void ensureFileDoesNotExist(File file) throws IOException { in ensureFileDoesNotExist()
117 public static void doDelete(File file) throws IOException { in doDelete()
123 public static boolean isSymlink(File file) throws IOException { in isSymlink()
153 File file = new File(rootDir, fileName); in filesExist() local
165 public static byte[] readBytes(File file, int maxBytes) throws IOException { in readBytes()
185 public static void createEmptyFile(File file) throws IOException { in createEmptyFile()
/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/
DZoneTabFileTest.java53 String file = createFile(""); in parseEmpty() local
60 String file = createFile( in parseIgnoresCommentsAndEmptyLines() local
74 String file = createFile( in parse() local
95 String file = createFile("GB\tStuff"); in parseMalformedFile() local
104 String file = createFile( in createCountryToOlsonIdsMap() local
/system/core/fs_mgr/libfiemap/
Dsplit_fiemap_writer.cpp155 for (const auto& file : files) { in Open() local
194 for (const auto& file : files) { in RemoveSplitFiles() local
203 for (const auto& file : files_) { in HasPinnedExtents() local
213 for (const auto& file : files_) { in extents() local
223 FiemapWriter* file = files_[cursor_index_].get(); in Write() local
277 for (const auto& file : files_) { in Flush() local
306 void SplitFiemap::AddFile(FiemapUniquePtr&& file) { in AddFile()
Dutility.cpp79 std::string GetDevicePathForFile(SplitFiemap* file) { in GetDevicePathForFile()
92 std::string JoinPaths(const std::string& dir, const std::string& file) { in JoinPaths()
152 bool FilesystemHasReliablePinning(const std::string& file, bool* supported) { in FilesystemHasReliablePinning()
Dmetadata.cpp63 SplitFiemap* file) { in OpenOrCreateMetadata()
129 bool FillPartitionExtents(MetadataBuilder* builder, Partition* partition, SplitFiemap* file, in FillPartitionExtents()
183 SplitFiemap* file, uint64_t partition_size, bool readonly) { in UpdateMetadata()
/system/update_engine/payload_consumer/
Dfile_writer_unittest.cc39 test_utils::ScopedTempFile file("FileWriterTest-XXXXXX"); in TEST() local
63 test_utils::ScopedTempFile file("FileWriterTest-XXXXXX"); in TEST() local
/system/core/fs_mgr/liblp/
Dimages.cpp61 bool IsEmptySuperImage(const std::string& file) { in IsEmptySuperImage()
126 bool WriteToImageFile(const std::string& file, const LpMetadata& input) { in WriteToImageFile()
173 SparsePtr file(sparse_file_new(block_size_, block_device.size), sparse_file_destroy); in ImageBuilder() local
186 bool ImageBuilder::Export(const std::string& file) { in Export()
227 bool ImageBuilder::AddData(sparse_file* file, const std::string& blob, uint64_t sector) { in AddData()
314 const std::string& file) { in AddPartitionImage()
445 int ImageBuilder::OpenImageFile(const std::string& file) { in OpenImageFile()
475 bool WriteToImageFile(const std::string& file, const LpMetadata& metadata, uint32_t block_size, in WriteToImageFile()
/system/timezone/distro/core/src/test/com/android/timezone/distro/
DFileUtilsTest.java244 File file = createFile(contents); in testReadBytes() local
258 File file = new File(dir, "one"); in testCreateEmptyFile() local
280 File file = new File(dir, "one"); in testCreateEmptyFile_truncatesExisting() local
294 File file = File.createTempFile(getClass().getSimpleName(), ".txt"); in createFile() local
301 private File createSymlink(File file, File symlinkDir, String symlinkName) throws Exception { in createSymlink()
361 File file = new File(dir, name); in createRegularFile() local
/system/extras/mmap-perf/
DmmapPerf.cpp115 FileMap file{"/data/local/tmp/mmap_test", fsize}; in benchRandomRead() local
125 FileMap file{"/data/local/tmp/mmap_test", fsize}; in benchRandomWrite() local
135 FileMap file{"/data/local/tmp/mmap_test", fsize}; in benchLinearRead() local
146 FileMap file{"/data/local/tmp/mmap_test", fsize}; in benchLinearWrite() local
/system/update_engine/payload_generator/
Dext2_filesystem_unittest.cc87 for (const auto& file : files) { in TEST_F() local
114 for (const auto& file : files) { in TEST_F() local
156 FilesystemInterface::File file; in TEST_F() local
Dsquashfs_filesystem.cc140 File file; in Init() local
184 for (const auto& file : files_) { in Init() local
194 File file; in Init() local
234 for (auto& file : files_) { in Init() local
Ddeflate_utils.cc61 const FilesystemInterface::File& file) { in IsSquashfsImage()
77 bool IsRegularFile(const FilesystemInterface::File& file) { in IsRegularFile()
88 bool RealignSplittedFiles(const FilesystemInterface::File& file, in RealignSplittedFiles()
276 for (auto& file : tmp_files) { in PreprocessPartitionFiles() local
/system/core/libsparse/
Dsparse_fuzzer.cpp7 struct sparse_file* file = sparse_file_new(size, blocksize); in LLVMFuzzerTestOneInput() local
/system/core/debuggerd/libdebuggerd/test/
Dopen_files_list_test.cpp40 for (auto& file : list) { in TEST() local
/system/timezone/debug_tools/host/main/java/
DZoneSplitter.java91 RandomAccessFile file = new RandomAccessFile(tzData, "r"); in createMappedByteBuffer() local
203 private static void writeStringUtf8ToFile(File file, String string) throws IOException { in writeStringUtf8ToFile()
207 private static void writeBytesToFile(File file, byte[] bytes) throws IOException { in writeBytesToFile()
/system/vold/
DLoop.cpp172 int Loop::createImageFile(const char* file, unsigned long numSectors) { in createImageFile()
188 int Loop::resizeImageFile(const char* file, unsigned long numSectors) { in resizeImageFile()
/system/timezone/input_tools/android/telephonylookup_generator/src/main/java/com/android/libcore/timezone/telephonylookup/
DTelephonyLookupProtoFileSupport.java33 public static TelephonyLookupProtoFile.TelephonyLookup parseTelephonyLookupTextFile(String file) in parseTelephonyLookupTextFile()
/system/extras/cpustats/
Dcpustats.c191 FILE *file; in get_cpu_count_from_file() local
216 FILE *file; in get_freq_scales_count() local
238 FILE *file; in read_stats() local
267 FILE *file; in read_freq_stats() local
/system/extras/tests/cpueater/
Ddaemonize.c36 char *file = 0; in main() local
/system/apex/apexer/
Dapex_manifest.py29 def ValidateApexManifest(file): argument
/system/extras/simpleperf/app_api/java/com/android/simpleperf/
DProfileSession.java229 File file = new File(path); in isExecutableFile() local
235 File file = new File(path); in findSimpleperfInTempDir() local
289 File file = new File(simpleperfDataDir); in createSimpleperfDataDir() local
/system/core/init/
Dueventd_test.cpp47 auto make_thread_function = [&function, &barrier](const auto& file, const auto& parameter) { in WriteFromMultipleThreads()
59 const auto& file = pair.first; in WriteFromMultipleThreads() local
144 const char* file; in TEST() member

1234567