Home
last modified time | relevance | path

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

/foundation/resourceschedule/resource_schedule_service/ressched/test/fuzztest/loadfromconfigfile_fuzzer/
H A Dloadfromconfigfile_fuzzer.cpp29 FILE *pFile = fopen(fuzzedFile.c_str(), "wb"); in DoSomethingInterestingWithMyAPI() local
30 if (!pFile) { in DoSomethingInterestingWithMyAPI()
34 int32_t retCode = fwrite(reinterpret_cast<const void*>(data), size, 1, pFile); // 1 means count=1 in DoSomethingInterestingWithMyAPI()
36 (void)fclose(pFile); in DoSomethingInterestingWithMyAPI()
37 pFile = nullptr; in DoSomethingInterestingWithMyAPI()
41 (void)fclose(pFile); in DoSomethingInterestingWithMyAPI()
42 pFile = nullptr; in DoSomethingInterestingWithMyAPI()
/foundation/resourceschedule/resource_schedule_service/ressched/test/fuzztest/loadfromcustconfigfile_fuzzer/
H A Dloadfromcustconfigfile_fuzzer.cpp29 FILE *pFile = fopen(fuzzedFile.c_str(), "wb"); in DoSomethingInterestingWithMyAPI() local
30 if (!pFile) { in DoSomethingInterestingWithMyAPI()
34 int32_t retCode = fwrite(reinterpret_cast<const void*>(data), size, 1, pFile); // 1 means count=1 in DoSomethingInterestingWithMyAPI()
36 (void)fclose(pFile); in DoSomethingInterestingWithMyAPI()
37 pFile = nullptr; in DoSomethingInterestingWithMyAPI()
41 (void)fclose(pFile); in DoSomethingInterestingWithMyAPI()
42 pFile = nullptr; in DoSomethingInterestingWithMyAPI()
/foundation/resourceschedule/soc_perf/test/fuzztest/loadconfigxmlfile_fuzzer/
H A Dloadconfigxmlfile_fuzzer.cpp45 FILE *pFile = fopen(fuzzedFile.c_str(), "wb"); in DoSomethingInterestingWithMyAPI() local
46 if (!pFile) { in DoSomethingInterestingWithMyAPI()
50 int32_t retCode = fwrite(reinterpret_cast<const void*>(data), size, 1, pFile); // 1 means count=1 in DoSomethingInterestingWithMyAPI()
52 (void)fclose(pFile); in DoSomethingInterestingWithMyAPI()
53 pFile = nullptr; in DoSomethingInterestingWithMyAPI()
57 (void)fclose(pFile); in DoSomethingInterestingWithMyAPI()
58 pFile = nullptr; in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/parse_fuzzer/
H A Dparse_fuzzer.cpp36 auto pFile = fopen("myHap.hap", "wb"); in DoSomethingInterestingWithMyAPI() local
37 if (pFile == nullptr) { in DoSomethingInterestingWithMyAPI()
42 retCode = fputs(reinterpret_cast<const char*>(data), pFile); in DoSomethingInterestingWithMyAPI()
44 fclose(pFile); in DoSomethingInterestingWithMyAPI()
47 retCode = fclose(pFile); in DoSomethingInterestingWithMyAPI()
51 pFile = nullptr; in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/parsesyscap_fuzzer/
H A Dparsesyscap_fuzzer.cpp37 auto pFile = fopen("rpcid.sc", "wb"); in DoSomethingInterestingWithMyAPI() local
38 if (pFile == nullptr) { in DoSomethingInterestingWithMyAPI()
44 retCode = fputs(info.c_str(), pFile); in DoSomethingInterestingWithMyAPI()
46 fclose(pFile); in DoSomethingInterestingWithMyAPI()
49 retCode = fclose(pFile); in DoSomethingInterestingWithMyAPI()
53 pFile = nullptr; in DoSomethingInterestingWithMyAPI()
/foundation/multimedia/audio_framework/frameworks/native/audiorenderer/test/example/
H A Daudio_voip_test.cpp201 bool StartCapture(const unique_ptr<AudioCapturer> &audioCapturer, bool isBlocking, FILE *pFile) const in StartCapture()
235 if (fwrite(buffer.get(), size, bytesRead, pFile) != bytesRead) { in StartCapture()
261 FILE *pFile = fopen(capturePath, "wb"); in TestRecording() local
262 if (pFile == nullptr) { in TestRecording()
267 if (!StartCapture(audioCapturer, isBlocking, pFile)) { in TestRecording()
269 fclose(pFile); in TestRecording()
273 fflush(pFile); in TestRecording()
285 fclose(pFile); in TestRecording()
/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/test/example/
H A Daudio_capturer_test.cpp130 bool StartCapture(const unique_ptr<AudioCapturer> &audioCapturer, bool isBlocking, FILE *pFile) const in StartCapture()
169 if (fwrite(buffer.get(), size, bytesRead, pFile) != bytesRead) { in StartCapture()
224 FILE *pFile = fopen(filePath.c_str(), "wb"); in TestRecording() local
225 if (pFile == nullptr) { in TestRecording()
230 if (!StartCapture(audioCapturer, isBlocking, pFile)) { in TestRecording()
232 fclose(pFile); in TestRecording()
236 fflush(pFile); in TestRecording()
248 fclose(pFile); in TestRecording()
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dnncompiled_cache.cpp350 FILE* pFile = fopen(path, "rb"); in ReadCacheModelFile() local
351 if (pFile == NULL) { in ReadCacheModelFile()
357 OH_NN_ReturnCode ret = GetCacheFileLength(pFile, fsize); in ReadCacheModelFile()
359 fclose(pFile); in ReadCacheModelFile()
364 rewind(pFile); in ReadCacheModelFile()
369 fclose(pFile); in ReadCacheModelFile()
374 size_t result = fread(ptr, 1, fsize, pFile); // size of each object in bytes is 1 in ReadCacheModelFile()
378 fclose(pFile); in ReadCacheModelFile()
384 fclose(pFile); in ReadCacheModelFile()
410 OH_NN_ReturnCode NNCompiledCache::GetCacheFileLength(FILE* pFile, lon argument
[all...]
H A Dnncompiled_cache.h68 OH_NN_ReturnCode GetCacheFileLength(FILE* pFile, long& fileSize) const;
/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_function.cpp487 FILE *pFile = fopen(filename.c_str(), "r"); in GetDhcpPacketResult() local
488 if (pFile == nullptr) { in GetDhcpPacketResult()
495 fclose(pFile); in GetDhcpPacketResult()
499 int nRes = fscanf_s(pFile, "%s %u %s %s %s %s %s %s %s %s %u\n", strIpFlag, DHCP_NUM_EIGHT, &result.uAddTime, in GetDhcpPacketResult()
505 fclose(pFile); in GetDhcpPacketResult()
509 fclose(pFile); in GetDhcpPacketResult()
513 fclose(pFile); in GetDhcpPacketResult()
517 if (fclose(pFile) != 0) { in GetDhcpPacketResult()

Completed in 5 milliseconds