Home
last modified time | relevance | path

Searched refs:fileOperator (Results 1 – 7 of 7) sorted by relevance

/drivers/peripheral/pin_auth/hdi_service/adaptor/src/
Dfile_operator.c30 FILE *fileOperator = fopen(fileName, "rb"); in IsFileExist() local
31 if (fileOperator == NULL) { in IsFileExist()
34 (void)fclose(fileOperator); in IsFileExist()
44 FILE *fileOperator = fopen(fileName, "rb"); in ReadFile() local
45 if (fileOperator == NULL) { in ReadFile()
49 size_t readLen = fread(buf, sizeof(uint8_t), len, fileOperator); in ReadFile()
52 (void)fclose(fileOperator); in ReadFile()
55 (void)fclose(fileOperator); in ReadFile()
65 FILE *fileOperator = fopen(fileName, "wb"); in WriteFile() local
66 if (fileOperator == NULL) { in WriteFile()
[all …]
Dadaptor_file.c21 bool IsFileOperatorValid(const FileOperator *fileOperator) in IsFileOperatorValid() argument
23 if (fileOperator == NULL) { in IsFileOperatorValid()
27 if (fileOperator->isFileExist == NULL) { in IsFileOperatorValid()
31 if (fileOperator->getFileLen == NULL) { in IsFileOperatorValid()
35 if (fileOperator->readFile == NULL) { in IsFileOperatorValid()
39 if (fileOperator->writeFile == NULL) { in IsFileOperatorValid()
43 if (fileOperator->deleteFile == NULL) { in IsFileOperatorValid()
/drivers/peripheral/user_auth/hdi_service/adaptor/src/
Dfile_operator.c37 FILE *fileOperator = fopen(fileName, "rb"); in IsFileExist() local
38 if (fileOperator == NULL) { in IsFileExist()
41 (void)fclose(fileOperator); in IsFileExist()
51 FILE *fileOperator = fopen(fileName, "rb"); in ReadFile() local
52 if (fileOperator == NULL) { in ReadFile()
56 size_t readLen = fread(buf, sizeof(uint8_t), len, fileOperator); in ReadFile()
59 (void)fclose(fileOperator); in ReadFile()
63 (void)fclose(fileOperator); in ReadFile()
73 FILE *fileOperator = fopen(fileName, "wb"); in WriteFile() local
74 if (fileOperator == NULL) { in WriteFile()
[all …]
Dadaptor_file.c21 bool IsFileOperatorValid(const FileOperator *fileOperator) in IsFileOperatorValid() argument
23 if (fileOperator == NULL) { in IsFileOperatorValid()
27 if (fileOperator->isFileExist == NULL) { in IsFileOperatorValid()
31 if (fileOperator->getFileLen == NULL) { in IsFileOperatorValid()
35 if (fileOperator->readFile == NULL) { in IsFileOperatorValid()
39 if (fileOperator->writeFile == NULL) { in IsFileOperatorValid()
43 if (fileOperator->deleteFile == NULL) { in IsFileOperatorValid()
/drivers/peripheral/user_auth/hdi_service/database/src/
Didm_file_manager.c233 FileOperator *fileOperator = GetFileOperator(DEFAULT_FILE_OPERATOR); in UpdateFileInfo() local
234 if (!IsFileOperatorValid(fileOperator)) { in UpdateFileInfo()
241 ret = (ResultCode)fileOperator->writeFile(IDM_USER_INFO, parcel->buf, parcel->contentSize); in UpdateFileInfo()
368 FileOperator *fileOperator = GetFileOperator(DEFAULT_FILE_OPERATOR); in ReadFileInfo() local
369 if (!IsFileOperatorValid(fileOperator)) { in ReadFileInfo()
374 int32_t ret = fileOperator->getFileLen(IDM_USER_INFO, &fileSize); in ReadFileInfo()
384 if (fileOperator->readFile(IDM_USER_INFO, parcel->buf, parcel->maxSize) != RESULT_SUCCESS) { in ReadFileInfo()
437 FileOperator *fileOperator = GetFileOperator(DEFAULT_FILE_OPERATOR); in LoadFileInfo() local
438 if (!IsFileOperatorValid(fileOperator)) { in LoadFileInfo()
442 if (!fileOperator->isFileExist(IDM_USER_INFO)) { in LoadFileInfo()
/drivers/peripheral/user_auth/hdi_service/adaptor/inc/
Dadaptor_file.h38 bool IsFileOperatorValid(const FileOperator *fileOperator);
/drivers/peripheral/pin_auth/hdi_service/adaptor/inc/
Dadaptor_file.h38 bool IsFileOperatorValid(const FileOperator *fileOperator);