Home
last modified time | relevance | path

Searched refs:pFile (Results 1 – 11 of 11) sorted by relevance

/hardware/nxp/nfc/halimpl/dnld/
DphDnldNfc.cc1017 FILE* pFile = NULL; in phDnldNfc_LoadBinFW() local
1035 pFile = fopen(nfcFL._FW_BIN_PATH.c_str(), "r"); in phDnldNfc_LoadBinFW()
1036 if (NULL == pFile) { in phDnldNfc_LoadBinFW()
1042 fseek(pFile, 0, SEEK_END); in phDnldNfc_LoadBinFW()
1045 ftellFileSize = ftell(pFile); in phDnldNfc_LoadBinFW()
1054 fseek(pFile, 0, SEEK_SET); in phDnldNfc_LoadBinFW()
1062 fclose(pFile); in phDnldNfc_LoadBinFW()
1068 (uint32_t)fread(pFwHandle, sizeof(uint8_t), (size_t)fileSize, pFile); in phDnldNfc_LoadBinFW()
1071 fclose(pFile); in phDnldNfc_LoadBinFW()
1082 fclose(pFile); in phDnldNfc_LoadBinFW()
/hardware/qcom/bt/msm8909/libbt-vendor/src/
Dhw_rome.c801 FILE * pFile; in rome_get_tlv_file() local
811 pFile = fopen ( file_path , "r" ); in rome_get_tlv_file()
812 if (pFile==NULL) {; in rome_get_tlv_file()
818 fseek (pFile , 0 , SEEK_END); in rome_get_tlv_file()
819 fileSize = ftell (pFile); in rome_get_tlv_file()
820 rewind (pFile); in rome_get_tlv_file()
825 fclose (pFile); in rome_get_tlv_file()
830 readSize = fread (pdata_buffer,1,fileSize,pFile); in rome_get_tlv_file()
833 fclose (pFile); in rome_get_tlv_file()
/hardware/qcom/bt/msm8992/libbt-vendor/src/
Dhw_rome.c783 FILE * pFile; in rome_get_tlv_file() local
793 pFile = fopen ( file_path , "r" ); in rome_get_tlv_file()
794 if (pFile==NULL) {; in rome_get_tlv_file()
800 fseek (pFile , 0 , SEEK_END); in rome_get_tlv_file()
801 fileSize = ftell (pFile); in rome_get_tlv_file()
802 rewind (pFile); in rome_get_tlv_file()
807 fclose (pFile); in rome_get_tlv_file()
812 readSize = fread (pdata_buffer,1,fileSize,pFile); in rome_get_tlv_file()
815 fclose (pFile); in rome_get_tlv_file()
/hardware/qcom/bt/msm8909w_3100/libbt-vendor/src/
Dhw_rome.c823 FILE * pFile; in rome_get_tlv_file() local
833 pFile = fopen ( file_path , "r" ); in rome_get_tlv_file()
834 if (pFile==NULL) {; in rome_get_tlv_file()
840 fseek (pFile , 0 , SEEK_END); in rome_get_tlv_file()
841 fileSize = ftell (pFile); in rome_get_tlv_file()
842 rewind (pFile); in rome_get_tlv_file()
847 fclose (pFile); in rome_get_tlv_file()
852 readSize = fread (pdata_buffer,1,fileSize,pFile); in rome_get_tlv_file()
855 fclose (pFile); in rome_get_tlv_file()
/hardware/qcom/bt/msm8998/libbt-vendor/src/
Dhw_rome.c808 FILE * pFile; in rome_get_tlv_file() local
818 pFile = fopen ( file_path , "r" ); in rome_get_tlv_file()
819 if (pFile==NULL) {; in rome_get_tlv_file()
825 fseek (pFile , 0 , SEEK_END); in rome_get_tlv_file()
826 fileSize = ftell (pFile); in rome_get_tlv_file()
827 rewind (pFile); in rome_get_tlv_file()
832 fclose (pFile); in rome_get_tlv_file()
837 readSize = fread (pdata_buffer,1,fileSize,pFile); in rome_get_tlv_file()
840 fclose (pFile); in rome_get_tlv_file()
/hardware/qcom/sdm845/bt/libbt-vendor/src/
Dhw_rome.c824 FILE * pFile; in rome_get_tlv_file() local
834 pFile = fopen ( file_path , "r" ); in rome_get_tlv_file()
835 if (pFile==NULL) {; in rome_get_tlv_file()
841 fseek (pFile , 0 , SEEK_END); in rome_get_tlv_file()
842 fileSize = ftell (pFile); in rome_get_tlv_file()
843 rewind (pFile); in rome_get_tlv_file()
848 fclose (pFile); in rome_get_tlv_file()
853 readSize = fread (pdata_buffer,1,fileSize,pFile); in rome_get_tlv_file()
856 fclose (pFile); in rome_get_tlv_file()
/hardware/interfaces/neuralnetworks/1.3/vts/functional/
DCompilationCachingTests.cpp1231 FILE* pFile = fopen(filename.c_str(), "r+"); in flipOneBitOfCache() local
1232 ASSERT_EQ(fseek(pFile, 0, SEEK_END), 0); in flipOneBitOfCache()
1233 long int fileSize = ftell(pFile); in flipOneBitOfCache()
1235 fclose(pFile); in flipOneBitOfCache()
1239 ASSERT_EQ(fseek(pFile, getRandomInt(0l, fileSize - 1), SEEK_SET), 0); in flipOneBitOfCache()
1240 int readByte = fgetc(pFile); in flipOneBitOfCache()
1242 ASSERT_EQ(fseek(pFile, -1, SEEK_CUR), 0); in flipOneBitOfCache()
1243 ASSERT_NE(fputc(static_cast<uint8_t>(readByte) ^ (1U << getRandomInt(0, 7)), pFile), EOF); in flipOneBitOfCache()
1244 fclose(pFile); in flipOneBitOfCache()
1250 FILE* pFile = fopen(filename.c_str(), "a"); in appendBytesToCache() local
[all …]
/hardware/interfaces/neuralnetworks/1.2/vts/functional/
DCompilationCachingTests.cpp1240 FILE* pFile = fopen(filename.c_str(), "r+"); in flipOneBitOfCache() local
1241 ASSERT_EQ(fseek(pFile, 0, SEEK_END), 0); in flipOneBitOfCache()
1242 long int fileSize = ftell(pFile); in flipOneBitOfCache()
1244 fclose(pFile); in flipOneBitOfCache()
1248 ASSERT_EQ(fseek(pFile, getRandomInt(0l, fileSize - 1), SEEK_SET), 0); in flipOneBitOfCache()
1249 int readByte = fgetc(pFile); in flipOneBitOfCache()
1251 ASSERT_EQ(fseek(pFile, -1, SEEK_CUR), 0); in flipOneBitOfCache()
1252 ASSERT_NE(fputc(static_cast<uint8_t>(readByte) ^ (1U << getRandomInt(0, 7)), pFile), EOF); in flipOneBitOfCache()
1253 fclose(pFile); in flipOneBitOfCache()
1259 FILE* pFile = fopen(filename.c_str(), "a"); in appendBytesToCache() local
[all …]
/hardware/qcom/bt/msm8996/libbt-vendor/src/
Dhw_rome.c831 FILE * pFile; in rome_get_tlv_file() local
841 pFile = fopen ( file_path , "r" ); in rome_get_tlv_file()
842 if (pFile==NULL) {; in rome_get_tlv_file()
848 fseek (pFile , 0 , SEEK_END); in rome_get_tlv_file()
849 fileSize = ftell (pFile); in rome_get_tlv_file()
850 rewind (pFile); in rome_get_tlv_file()
855 fclose (pFile); in rome_get_tlv_file()
860 readSize = fread (pdata_buffer,1,fileSize,pFile); in rome_get_tlv_file()
863 fclose (pFile); in rome_get_tlv_file()
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/
Domx_swvenc_hevc.cpp1156 static FILE* pFile = NULL; in dump_buffer() local
1160 if (pFile == NULL) in dump_buffer()
1162 pFile = fopen("/data/input.yuv", "wb"); in dump_buffer()
1172 bytes_written = fwrite(temp, width, 1, pFile); in dump_buffer()
1180 bytes_written = fwrite(temp, width, 1, pFile); in dump_buffer()
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc_swvdec.cpp7437 void dump_buffer(FILE* pFile, char* buffer, int stride, int scanlines, int width, int height) in dump_buffer() argument
7447 bytes_written = fwrite(temp, width, 1, pFile); in dump_buffer()
7455 bytes_written = fwrite(temp, width, 1, pFile); in dump_buffer()