Home
last modified time | relevance | path

Searched refs:fopen (Results 1 – 25 of 106) sorted by relevance

12345

/system/libbase/include/android-base/
Dutf8.h91 FILE* fopen(const char* name, const char* mode);
96 using ::fopen;
/system/libufdt/tests/src/
Dutil.c49 FILE *fp = fopen(filename, "r"); in load_file()
66 fout = fopen(filename, "wb"); in write_buf_to_file()
/system/extras/ext4_utils/
Dblk_alloc_to_base_fs.cpp45 blk_alloc_file = fopen(argv[1], "r"); in main()
50 base_fs_file = fopen(argv[2], "w"); in main()
/system/unwinding/libunwindstack/tools/
Dunwind_for_offline.cpp77 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen("regs.txt", "w+"), &fclose); in SaveRegs()
110 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(file_name.c_str(), "w+"), &fclose); in SaveStack()
150 std::unique_ptr<FILE, decltype(&fclose)> output(fopen(cur_name.c_str(), "w+"), &fclose); in CreateElfFromMemory()
175 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(info->name.c_str(), "r"), &fclose); in CopyElfFromFile()
181 std::unique_ptr<FILE, decltype(&fclose)> output(fopen(cur_name.c_str(), "w+"), &fclose); in CopyElfFromFile()
308 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen("maps.txt", "w+"), &fclose); in SaveData()
/system/extras/latencytop/
Dlatencytop.c179 f = fopen(GLOBAL_STATS_FILE, "w"); in read_global_stats()
188 f = fopen(GLOBAL_STATS_FILE, "r"); in read_global_stats()
239 f = fopen(filename, "w"); in read_thread_stats()
253 f = fopen(GLOBAL_STATS_FILE, "r"); in read_thread_stats()
304 f = fopen(SYSCTL_FILE, "w"); in set_latencytop()
/system/extras/verity/
Dgenerate_verity_key.c73 f = fopen(pem_file, "r"); in convert_x509()
138 f = fopen(file, "w"); in generate_key()
/system/media/audio_utils/tests/
Dbiquad_filter.cpp90 std::fopen(infile, "rb"), &std::fclose); in main()
97 std::fopen(outfile, "wb"), &std::fclose); in main()
/system/libufdt/utils/src/
Dmkdtimg_cfg_create.c125 cfg_fp = fopen(params->cfg_filename, "r"); in process_command_cfg_create()
133 img_fp = fopen(params->img_filename, "wb"); in process_command_cfg_create()
Dmkdtimg_dump.c61 out_fp = fopen(filename, "wb"); in write_fdt_to_file()
215 img_fp = fopen(params->img_filename, "rb"); in process_command_dump()
222 out_fp = fopen(params->out_filename, "w"); in process_command_dump()
Dmkdtimg_create.c131 img_fp = fopen(img_filename, "wb"); in handle_command_create()
/system/logging/liblog/tests/
Dlibc_test.cpp30 ASSERT_TRUE(NULL != (fp = fopen("/dev/pmsg0", "ae"))); in TEST()
/system/extras/boottime_tools/bootio/
Dbootio_collector.cpp44 file = fopen(CPU_STAT_FILE, "r"); in PopulateCpu()
71 file = fopen(filename, "r"); in ReadIo()
95 file = fopen(filename, "r"); in ReadStatForName()
116 file = fopen(filename, "r"); in ReadStat()
151 file = fopen(filename, "r"); in ReadCmdline()
/system/libziparchive/
Dlibziparchive_writer_fuzzer.cpp15 std::unique_ptr<std::FILE, decltype(&fclose)> fp(fopen("fuzz", "wb"), in LLVMFuzzerTestOneInput()
/system/update_engine/update_manager/
Dreal_random_provider.cc82 FILE* fp = fopen(kRandomDevice, "r"); in Init()
/system/extras/ioshark/
Ddump_ioshark_filenames.c52 filename_cache_fp = fopen("ioshark_filenames", "r"); in main()
Dcompile_ioshark_subr.c134 filename_cache_fp = fopen("ioshark_filenames", "r"); in init_filename_cache()
199 filename_cache_fp = fopen("ioshark_filenames", "w+"); in store_filename_cache()
Dconvert_format.c120 old_fp = fopen(infile, "r"); in main()
126 new_fp = fopen(outfile, "w+"); in main()
/system/extras/cpustats/
Dcpustats.c199 file = fopen(filename, "r"); in get_cpu_count_from_file()
226 file = fopen(filename, "r"); in get_freq_scales_count()
246 file = fopen("/proc/stat", "r"); in read_stats()
276 file = fopen(filename, "r"); in read_freq_stats()
/system/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo.cpp58 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(fdinfo.c_str(), "re"), fclose}; in ReadDmaBufFdInfo()
206 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(mapspath.c_str(), "re"), fclose}; in ReadDmaBufMapRefs()
254 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(path.c_str(), "re"), fclose}; in ReadDmaBufInfo()
/system/extras/pssbench/
Dmain.cpp23 FILE * file = fopen(filename, "r"); in get_pss()
/system/memory/libmeminfo/
Dlibmeminfo_benchmark.cpp241 FILE* f = fopen((zram_dir + "mm_stat").c_str(), "r"); in get_zram_mem_used()
253 f = fopen((zram_dir + "mem_used_total").c_str(), "r"); in get_zram_mem_used()
419 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(vm_file.c_str(), "re"), fclose}; in get_allocated_vmalloc_memory()
472 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(path.c_str(), "re"), fclose}; in get_smaps_rollup()
/system/core/libutils/
DProcessCallStack.cpp56 if ((fp = fopen(path, "r"))) { in dumpProcessHeader()
84 if ((fp = fopen(path, "r"))) { in getThreadName()
/system/tools/hidl/c2hal/
DAST.cpp260 FILE *file = fopen((getFileDir() + fileName).c_str(), "w"); in generateFile()
281 FILE *file = fopen((getFileDir() + "types.hal").c_str(), "w"); in generateTypesFile()
/system/extras/app-launcher/
Dcomputestatsf.c56 in_fp = fopen(in_file, "r"); in main()
Dcomputestats.c56 in_fp = fopen(in_file, "r"); in main()

12345