Home
last modified time | relevance | path

Searched refs:pFile (Results 1 - 23 of 23) sorted by relevance

/base/startup/init/test/fuzztest/getblockdevicebymountpoint_fuzzer/
H A Dgetblockdevicebymountpoint_fuzzer.cpp24 FILE *pFile = nullptr; in FuzzGetBlockDeviceByMountPoint() local
25 pFile = fopen("fstab.test", "w+"); in FuzzGetBlockDeviceByMountPoint()
26 if (pFile == nullptr) { in FuzzGetBlockDeviceByMountPoint()
30 if (fwrite(data, 1, size, pFile) != size) { in FuzzGetBlockDeviceByMountPoint()
32 (void)fclose(pFile); in FuzzGetBlockDeviceByMountPoint()
35 (void)fclose(pFile); in FuzzGetBlockDeviceByMountPoint()
/base/startup/init/test/fuzztest/mountoneitem_fuzzer/
H A Dmountoneitem_fuzzer.cpp25 FILE *pFile = nullptr; in FuzzMountOneItem() local
26 pFile = fopen("fstab.test", "w+"); in FuzzMountOneItem()
27 if (pFile == nullptr) { in FuzzMountOneItem()
31 if (fwrite(data, 1, size, pFile) != size) { in FuzzMountOneItem()
33 (void)fclose(pFile); in FuzzMountOneItem()
36 (void)fclose(pFile); in FuzzMountOneItem()
/base/startup/init/test/fuzztest/mountallwithfstabfile_fuzzer/
H A Dmountallwithfstabfile_fuzzer.cpp24 FILE *pFile = nullptr; in FuzzMountAllWithFstabFile() local
25 pFile = fopen("fstab.test", "w+"); in FuzzMountAllWithFstabFile()
26 if (pFile == nullptr) { in FuzzMountAllWithFstabFile()
30 if (fwrite(data, 1, size, pFile) != size) { in FuzzMountAllWithFstabFile()
32 (void)fclose(pFile); in FuzzMountAllWithFstabFile()
35 (void)fclose(pFile); in FuzzMountAllWithFstabFile()
/base/startup/init/test/fuzztest/getblockdevicebyname_fuzzer/
H A Dgetblockdevicebyname_fuzzer.cpp25 FILE *pFile = nullptr; in FuzzGetBlockDeviceByName() local
26 pFile = fopen("fstab.test", "w+"); in FuzzGetBlockDeviceByName()
27 if (pFile == nullptr) { in FuzzGetBlockDeviceByName()
31 if (fwrite(data, 1, size, pFile) != size) { in FuzzGetBlockDeviceByName()
33 (void)fclose(pFile); in FuzzGetBlockDeviceByName()
36 (void)fclose(pFile); in FuzzGetBlockDeviceByName()
/base/startup/init/test/fuzztest/findfstabitemformountpoint_fuzzer/
H A Dfindfstabitemformountpoint_fuzzer.cpp25 FILE *pFile = nullptr; in FuzzFindFstabItemForMountPoint() local
26 pFile = fopen("fstab.test", "w+"); in FuzzFindFstabItemForMountPoint()
27 if (pFile == nullptr) { in FuzzFindFstabItemForMountPoint()
31 if (fwrite(data, 1, size, pFile) != size) { in FuzzFindFstabItemForMountPoint()
33 (void)fclose(pFile); in FuzzFindFstabItemForMountPoint()
36 (void)fclose(pFile); in FuzzFindFstabItemForMountPoint()
/base/startup/init/test/fuzztest/findfstabitemforpath_fuzzer/
H A Dfindfstabitemforpath_fuzzer.cpp25 FILE *pFile = nullptr; in FuzzFindFstabItemForPath() local
26 pFile = fopen("fstab.test", "w+"); in FuzzFindFstabItemForPath()
27 if (pFile == nullptr) { in FuzzFindFstabItemForPath()
31 if (fwrite(data, 1, size, pFile) != size) { in FuzzFindFstabItemForPath()
33 (void)fclose(pFile); in FuzzFindFstabItemForPath()
36 (void)fclose(pFile); in FuzzFindFstabItemForPath()
/base/startup/init/test/fuzztest/parsefstabperline_fuzzer/
H A Dparsefstabperline_fuzzer.cpp25 FILE *pFile = nullptr; in FuzzParseFstabPerLine() local
26 pFile = fopen("fstab.test", "w+"); in FuzzParseFstabPerLine()
27 if (pFile == nullptr) { in FuzzParseFstabPerLine()
31 if (fwrite(data, 1, size, pFile) != size) { in FuzzParseFstabPerLine()
33 (void)fclose(pFile); in FuzzParseFstabPerLine()
36 (void)fclose(pFile); in FuzzParseFstabPerLine()
/base/startup/init/test/fuzztest/releasefstab_fuzzer/
H A Dreleasefstab_fuzzer.cpp23 FILE *pFile = nullptr; in FuzzReleaseFstab() local
24 pFile = fopen("fstab.test", "w+"); in FuzzReleaseFstab()
25 if (pFile == nullptr) { in FuzzReleaseFstab()
29 if (fwrite(data, 1, size, pFile) != size) { in FuzzReleaseFstab()
31 (void)fclose(pFile); in FuzzReleaseFstab()
34 (void)fclose(pFile); in FuzzReleaseFstab()
/base/startup/init/test/fuzztest/umountallwithfstabfile_fuzzer/
H A Dumountallwithfstabfile_fuzzer.cpp24 FILE *pFile = nullptr; in FuzzUmountAllWithFstabFile() local
25 pFile = fopen("fstab.test", "w+"); in FuzzUmountAllWithFstabFile()
26 if (pFile == nullptr) { in FuzzUmountAllWithFstabFile()
30 if (fwrite(data, 1, size, pFile) != size) { in FuzzUmountAllWithFstabFile()
32 (void)fclose(pFile); in FuzzUmountAllWithFstabFile()
35 (void)fclose(pFile); in FuzzUmountAllWithFstabFile()
/base/startup/init/test/fuzztest/readfstabfromfile_fuzzer/
H A Dreadfstabfromfile_fuzzer.cpp24 FILE *pFile = nullptr; in FuzzReadFstabFromFile() local
25 pFile = fopen("fstab.test", "w+"); in FuzzReadFstabFromFile()
26 if (pFile == nullptr) { in FuzzReadFstabFromFile()
30 if (fwrite(data, 1, size, pFile) != size) { in FuzzReadFstabFromFile()
32 (void)fclose(pFile); in FuzzReadFstabFromFile()
35 (void)fclose(pFile); in FuzzReadFstabFromFile()
/base/startup/init/test/fuzztest/mountallwithfstab_fuzzer/
H A Dmountallwithfstab_fuzzer.cpp23 FILE *pFile = nullptr; in FuzzMountAllWithFstab() local
24 pFile = fopen("fstab.test", "w+"); in FuzzMountAllWithFstab()
25 if (pFile == nullptr) { in FuzzMountAllWithFstab()
29 if (fwrite(data, 1, size, pFile) != size) { in FuzzMountAllWithFstab()
31 (void)fclose(pFile); in FuzzMountAllWithFstab()
34 (void)fclose(pFile); in FuzzMountAllWithFstab()
/base/startup/init/test/fuzztest/readfileindir_fuzzer/
H A Dreadfileindir_fuzzer.cpp44 FILE *pFile = nullptr; in FuzzReadFileInDir() local
45 pFile = fopen("ReadFileInDir.test", "w+"); in FuzzReadFileInDir()
46 if (pFile == nullptr) { in FuzzReadFileInDir()
50 if (fwrite(data, 1, size, pFile) != size) { in FuzzReadFileInDir()
52 (void)fclose(pFile); in FuzzReadFileInDir()
55 (void)fclose(pFile); in FuzzReadFileInDir()
/base/update/updater/test/fuzztest/readfstabfromfile_fuzzer/
H A Dreadfstabfromfile_fuzzer.cpp32 FILE *pFile; in FuzzReadFstabFromFile() local
36 pFile = fopen("ReadFstabFromFile.txt", "w+"); in FuzzReadFstabFromFile()
37 if (pFile == nullptr) { in FuzzReadFstabFromFile()
42 (void)fwrite(data, 1, size, pFile); in FuzzReadFstabFromFile()
43 (void)fclose(pFile); in FuzzReadFstabFromFile()
/base/telephony/sms_mms/frameworks/native/mms/src/
H A Dmms_buffer.cpp103 FILE *pFile = nullptr; in WriteBufferFromFile() local
119 pFile = fopen(realPath, "rb"); in WriteBufferFromFile()
120 if (pFile == nullptr) { in WriteBufferFromFile()
124 (void)fseek(pFile, 0, SEEK_END); in WriteBufferFromFile()
125 long fileLen = ftell(pFile); in WriteBufferFromFile()
127 (void)fclose(pFile); in WriteBufferFromFile()
137 (void)fclose(pFile); in WriteBufferFromFile()
141 (void)fseek(pFile, 0, SEEK_SET); in WriteBufferFromFile()
142 totolLength_ = fread(pduBuffer_.get(), 1, fileLen, pFile); in WriteBufferFromFile()
143 (void)fclose(pFile); in WriteBufferFromFile()
[all...]
H A Dmms_body_part.cpp435 FILE *pFile = nullptr; in WriteBodyFromFile() local
450 pFile = fopen(realPath, "rb"); in WriteBodyFromFile()
451 if (pFile == nullptr) { in WriteBodyFromFile()
455 (void)fseek(pFile, 0, SEEK_END); in WriteBodyFromFile()
456 long fileLen = ftell(pFile); in WriteBodyFromFile()
458 (void)fclose(pFile); in WriteBodyFromFile()
467 (void)fclose(pFile); in WriteBodyFromFile()
472 (void)fseek(pFile, 0, SEEK_SET); in WriteBodyFromFile()
473 bodyLen_ = fread(pbodyPartBuffer_.get(), 1, fileLen, pFile); in WriteBodyFromFile()
474 (void)fclose(pFile); in WriteBodyFromFile()
[all...]
/base/telephony/sms_mms/services/mms/
H A Dmms_network_client.cpp373 FILE *pFile = nullptr; in GetMmsPduFromFile() local
380 pFile = fopen(realPath, "rb"); in GetMmsPduFromFile()
381 if (pFile == nullptr) { in GetMmsPduFromFile()
386 (void)fseek(pFile, 0, SEEK_END); in GetMmsPduFromFile()
387 long fileLen = ftell(pFile); in GetMmsPduFromFile()
389 (void)fclose(pFile); in GetMmsPduFromFile()
396 (void)fclose(pFile); in GetMmsPduFromFile()
400 (void)fseek(pFile, 0, SEEK_SET); in GetMmsPduFromFile()
401 int32_t totolLength = static_cast<int32_t>(fread(pduBuffer.get(), 1, MMS_PDU_MAX_SIZE, pFile)); in GetMmsPduFromFile()
403 (void)fclose(pFile); in GetMmsPduFromFile()
493 FILE *pFile = nullptr; WriteBufferToFile() local
[all...]
/base/telephony/sms_mms/frameworks/js/napi/src/
H A Dnapi_send_recv_mms.cpp83 FILE *pFile = fopen(realPath, "rb"); in GetMmsPduFromFile() local
84 if (pFile == nullptr) { in GetMmsPduFromFile()
89 (void)fseek(pFile, 0, SEEK_END); in GetMmsPduFromFile()
90 long fileLen = ftell(pFile); in GetMmsPduFromFile()
92 (void)fclose(pFile); in GetMmsPduFromFile()
99 (void)fclose(pFile); in GetMmsPduFromFile()
103 (void)fseek(pFile, 0, SEEK_SET); in GetMmsPduFromFile()
104 int32_t totolLength = static_cast<int32_t>(fread(pduBuffer.get(), 1, MMS_PDU_MAX_SIZE, pFile)); in GetMmsPduFromFile()
112 (void)fclose(pFile); in GetMmsPduFromFile()
336 FILE *pFile in WriteBufferToFile() local
417 FILE *pFile = fopen(realPath, "wb"); DownloadExceptionCase() local
[all...]
/base/update/updater/test/fuzztest/UpdaterStartUpdaterProc_fuzzer/
H A DUpdaterStartUpdaterProc_fuzzer.cpp178 FILE *pFile; in FuzzStartUpdaterProc() local
184 pFile = fopen("updater.txt", "w+"); in FuzzStartUpdaterProc()
185 if (pFile == nullptr) { in FuzzStartUpdaterProc()
190 fwrite(data, 1, size, pFile); in FuzzStartUpdaterProc()
191 fclose(pFile); in FuzzStartUpdaterProc()
/base/update/updater/services/flow_update/update_bin/
H A Dbin_flow_update.cpp149 FILE *pFile = fopen(writePath.c_str(), "w+"); in GetDataWriter() local
150 if (pFile != nullptr) { in GetDataWriter()
152 fwrite(data, 1, sizeof(data), pFile); in GetDataWriter()
153 fclose(pFile); in GetDataWriter()
/base/update/updater/test/fuzztest/extractandexecutescript_fuzzer/
H A Dextractandexecutescript_fuzzer.cpp306 FILE *pFile; in FuzzExtractAndExecuteScript() local
320 pFile = fopen("test_script.us", "w+"); in FuzzExtractAndExecuteScript()
321 if (pFile == nullptr) { in FuzzExtractAndExecuteScript()
326 (void)fwrite(data, 1, size, pFile); in FuzzExtractAndExecuteScript()
327 (void)fclose(pFile); in FuzzExtractAndExecuteScript()
/base/telephony/sms_mms/test/gtest/
H A Dmms_gtest.cpp215 FILE *pFile = nullptr; in WriteBufferToFile() local
216 pFile = fopen(strPathName.c_str(), "wb"); in WriteBufferToFile()
217 if (!pFile || buff == nullptr) { in WriteBufferToFile()
220 uint32_t fileLen = fwrite(buff.get(), len, 1, pFile); in WriteBufferToFile()
226 (void)fclose(pFile); in WriteBufferToFile()
237 FILE *pFile = fopen(realPath, "rb"); in GetMmsPduFromFile() local
238 if (pFile == nullptr) { in GetMmsPduFromFile()
242 (void)fseek(pFile, 0, SEEK_END); in GetMmsPduFromFile()
243 long fileLen = ftell(pFile); in GetMmsPduFromFile()
245 (void)fclose(pFile); in GetMmsPduFromFile()
[all...]
/base/tee/tee_client/services/teecd/src/
H A Dfs_work_agent.c60 static int32_t AddOpenFile(FILE *pFile) in AddOpenFile() argument
67 newFile->file = pFile; in AddOpenFile()
633 FILE *pFile = fopen(trustPath, transControl->args.open.mode); in DoOpenFile() local
634 if (pFile == NULL) { in DoOpenFile()
639 int32_t ret = AddOpenFile(pFile); in DoOpenFile()
642 (void)fclose(pFile); in DoOpenFile()
645 transControl->ret = fileno(pFile); /* return fileno */ in DoOpenFile()
/base/telephony/sms_mms/test/unittest/
H A Dmms_msg_test.cpp893 FILE *pFile = nullptr; in WriteBufferToFile() local
894 pFile = fopen(strPathName.c_str(), "wb"); in WriteBufferToFile()
895 if (!pFile || buff == nullptr) { in WriteBufferToFile()
899 uint32_t fileLen = fwrite(buff.get(), len, 1, pFile); in WriteBufferToFile()
905 (void)fclose(pFile); in WriteBufferToFile()

Completed in 13 milliseconds