/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_file_list.c | 25 uint8_t FileListAllFileNameAcked(const FileList *fileList) in FileListAllFileNameAcked() argument 28 if ((fileList->userDataFlag & NSTACKX_DFILE_HEADER_FRAME_USER_DATA_FLAG) && in FileListAllFileNameAcked() 29 !(fileList->userDataFlag & NSTACKX_FLAGS_USER_DATA_ACK)) { in FileListAllFileNameAcked() 34 if (fileList->tarFlag == NSTACKX_TRUE) { in FileListAllFileNameAcked() 35 if (!(fileList->list[0].flags & NSTACKX_FLAGS_FILE_NAME_ACK)) { in FileListAllFileNameAcked() 43 for (i = 0; i < fileList->num; i++) { in FileListAllFileNameAcked() 44 if (!(fileList->list[i].flags & NSTACKX_FLAGS_FILE_NAME_ACK)) { in FileListAllFileNameAcked() 53 uint8_t FileListAllFileNameReceived(const FileList *fileList) in FileListAllFileNameReceived() argument 57 if (!fileList->num) { in FileListAllFileNameReceived() 61 if ((fileList in FileListAllFileNameReceived() 85 FileListAllFileReceived(const FileList *fileList) FileListAllFileReceived() argument 106 FileListSetSendFileList(FileList *fileList, FileListInfo *fileListInfo) FileListSetSendFileList() argument 165 FileListSetNum(FileList *fileList, uint32_t fileNum) FileListSetNum() argument 183 FileListAddFile(FileList *fileList, uint16_t fileId, const uint8_t *fileName, size_t fileNameLength, uint64_t fileSize) FileListAddFile() argument 257 FileListAddUserData(FileList *fileList, const uint8_t *userData, size_t userDataLength, uint8_t flag) FileListAddUserData() argument 288 FileListGetNames(FileList *fileList, char *files[], uint32_t *fileNum, uint8_t fileNameType) FileListGetNames() argument 311 FileListGetReceivedFileIdList(FileList *fileList, uint16_t fileIdList[], uint32_t *fileNum) FileListGetReceivedFileIdList() argument 325 FileListGetFilesByFlag(FileList *fileList, uint8_t flags, char *files[], uint32_t *fileNum, uint8_t fileNameType) FileListGetFilesByFlag() argument 355 FileListGetReceivedFiles(FileList *fileList, char *files[], uint32_t *fileNum) FileListGetReceivedFiles() argument 360 FileListGetSentFiles(FileList *fileList, char *files[], uint32_t *fileNum) FileListGetSentFiles() argument 365 FileListSetFileNameAcked(FileList *fileList, uint16_t fileId) FileListSetFileNameAcked() argument 377 FileListGetFileNameAcked(FileList *fileList, uint16_t fileId) FileListGetFileNameAcked() argument 388 FileList *fileList = NULL; FileListCreate() local 399 FileListDestroy(FileList *fileList) FileListDestroy() argument 432 GetFilesTotalBytes(FileList *fileList) GetFilesTotalBytes() argument 472 FileListAddExtraInfo(FileList *fileList, uint16_t pathType, uint8_t noticeFileNameType, char *userData) FileListAddExtraInfo() argument 502 FileListRenameFile(FileList *fileList, uint16_t fileId, const char *newFileName) FileListRenameFile() argument [all...] |
H A D | nstackx_file_manager.c | 87 void NotifyFileListMsg(const FileListTask *fileList, FileManagerMsgType msgType) in NotifyFileListMsg() argument 90 if (fileList == NULL) { in NotifyFileListMsg() 91 DFILE_LOGE(TAG, "NotifyFileListMsg fileList error"); in NotifyFileListMsg() 95 if (fileList->msgReceiver == NULL || !IsEpollDescValid(fileList->epollfd)) { in NotifyFileListMsg() 103 if (fileList->bytesTransferredLastRecord >= fileList->totalBytes) { in NotifyFileListMsg() 107 ctx->msg.transferUpdate.bytesTransferred = fileList->bytesTransferredLastRecord; in NotifyFileListMsg() 108 ctx->msg.transferUpdate.totalBytes = fileList->totalBytes; in NotifyFileListMsg() 109 ctx->msg.transferUpdate.transId = fileList in NotifyFileListMsg() 124 NotifyFileMsg(const FileListTask *fileList, uint16_t fileId, FileManagerMsgType msgType) NotifyFileMsg() argument 241 FileListTask *fileList = NULL; PrepareOneTaskByStatus() local 351 FileListGetBytesTransferred(const FileListTask *fileList, uint8_t isSender) FileListGetBytesTransferred() argument 374 ClearRecvFileList(FileListTask *fileList) ClearRecvFileList() argument 448 ClearIncompleteRecvFiles(const char *path, FileListTask *fileList) ClearIncompleteRecvFiles() argument 502 WriteToFile(FileInfo *fileInfo, uint32_t blockSequence, uint16_t length, uint8_t *payLoad, FileListTask *fileList) WriteToFile() argument 550 GetFrameHearderInfo(FileListTask *fileList, BlockFrame *blockFrame, uint16_t *fileId, uint32_t *blockSequence, uint16_t *payloadLength) GetFrameHearderInfo() argument 581 UpdateFileListRecvStatus(FileManager *fileManager, FileListTask *fileList, FileInfo *fileInfo, int32_t ret) UpdateFileListRecvStatus() argument 601 WriteSingleBlockFrame(FileManager *fileManager, FileListTask *fileList, BlockFrame *blockFrame) WriteSingleBlockFrame() argument 659 WriteBlockFrame(FileManager *fileManager, FileListTask *fileList) WriteBlockFrame() argument 722 GenerateAllEmptyFiles(FileListTask *fileList) GenerateAllEmptyFiles() argument 746 FileListRefreshFileRecvStatus(FileListTask *fileList) FileListRefreshFileRecvStatus() argument 763 RecvTaskProcess(FileManager *fileManager, FileListTask *fileList) RecvTaskProcess() argument 813 ClearFileList(FileManager *fileManager, FileListTask *fileList) ClearFileList() argument 862 DoTaskProcess(FileManager *fileManager, FileListTask *fileList) DoTaskProcess() argument 878 AfterTaskProcess(FileManager *fileManager, FileListTask *fileList) AfterTaskProcess() argument 891 FileListTask *fileList = NULL; FileManagerThread() local 940 FileListTask *fileList = NULL; WakeAllThread() local 1034 SetCryptPara(FileListTask *fileList, const uint8_t key[], uint32_t keyLen) SetCryptPara() argument 1073 FileListTask *fileList = NULL; GetFileListById() local 1111 FileListTask *fileList = NULL; GetFileBlockListSize() local 1166 FileListTask *fileList = NULL; FileManagerStopTask() local 1615 PushRecvBlockFrame(FileListTask *fileList, FileDataFrame *frame) PushRecvBlockFrame() argument 1663 FileListTask *fileList = NULL; FileManagerFileWrite() local 1701 FileListTask *fileList = NULL; ClearTask() local 1768 FileListTask *fileList = NULL; FileManagerGetBytesTransferred() local 1820 FileListTask *fileList = NULL; FileManagerGetTransUpdateInfo() local 1873 FileManagerCLearReadOutSet(FileListTask *fileList) FileManagerCLearReadOutSet() argument 1902 TaskGetReceivedFiles(FileListTask *fileList, uint16_t fileIdList[], uint8_t fileIdSuccessFlag[], uint32_t *fileNum) TaskGetReceivedFiles() argument 1940 FileListTask *fileList = NULL; FileManagerGetReceivedFiles() local 1968 FileListTask *fileList = NULL; FileManagerSetAllDataReceived() local [all...] |
H A D | nstackx_file_manager_client.c | 185 int32_t GetEncryptedDataTarFrame(CryptPara *cryptPara, uint16_t fileId, FileListTask *fileList, uint16_t targetLenth) in GetEncryptedDataTarFrame() argument 191 uint32_t targetSequence = (uint32_t)(fileList->tarFileInfo.maxSequenceSend); in GetEncryptedDataTarFrame() 192 FileDataFrame *buffer = fileList->tarFrame; in GetEncryptedDataTarFrame() 209 if (memcpy_s(buffer, fileList->maxFrameLength, fileDataFrame, frameOffset + payLoadLen) != EOK) { in GetEncryptedDataTarFrame() 218 int32_t GetNoEncryptedDataTarFrame(uint16_t fileId, FileListTask *fileList, uint16_t targetLenth) in GetNoEncryptedDataTarFrame() argument 220 FileDataFrame *fileDataFrame = fileList->tarFrame; in GetNoEncryptedDataTarFrame() 227 fileDataFrame->blockSequence = htonl((uint32_t)fileList->tarFileInfo.maxSequenceSend); in GetNoEncryptedDataTarFrame() 231 static int32_t GetRetranBlockInfo(FileListTask *fileList, uint16_t *fileId, uint32_t *blockSeq, uint32_t *linkSeq) in GetRetranBlockInfo() argument 236 if (MutexListPopFront(&fileList->sendRetranList, &curFront, &isPoped) != NSTACKX_EOK) { in GetRetranBlockInfo() 242 fileList in GetRetranBlockInfo() 257 CreateRetranBlockFrame(FileManager *fileManager, FileListTask *fileList) CreateRetranBlockFrame() argument 309 GetTarFileInfo(FileListTask *fileList) GetTarFileInfo() argument 315 GetFileInfo(FileListTask *fileList) GetFileInfo() argument 364 UpdateFileLisSendStatus(FileListTask *fileList, FileInfo *fileInfo, uint8_t *isEnd) UpdateFileLisSendStatus() argument 386 UpdateTarFileListSendStatus(FileListTask *fileList) UpdateTarFileListSendStatus() argument 406 CreateSendBlockFrame(FileManager *fileManager, FileListTask *fileList) CreateSendBlockFrame() argument 452 PushFileBlockFrame(FileManager *fileManager, const FileListTask *fileList, const FileDataFrame *fileDataFrame, uint8_t isRetran, uint8_t *isAdded) PushFileBlockFrame() argument 495 ClearSendFileList(FileManager *fileManager, FileListTask *fileList) ClearSendFileList() argument 533 PushRetranBlockFrame(FileManager *fileManager, const FileListTask *fileList, const FileDataFrame *fileDataFrame) PushRetranBlockFrame() argument 551 PushSendBlockFrame(FileManager *fileManager, const FileListTask *fileList, const FileDataFrame *fileDataFrame) PushSendBlockFrame() argument 571 CreateSendBlockTarFrames(FileManager *fileManager, FileListTask *fileList) CreateSendBlockTarFrames() argument 578 SendTaskProcess(FileManager *fileManager, FileListTask *fileList) SendTaskProcess() argument 854 GetRetranFileLostBlocks(const FileListTask *fileList, uint16_t fileId, uint32_t blockSequence) GetRetranFileLostBlocks() argument 878 IsValidOutSet(const FileListTask *fileList, uint16_t fileId, uint32_t blockSequence) IsValidOutSet() argument 899 FileListTask *fileList = NULL; FileManagerResetSendOutSet() local 1116 FileListTask *fileList = NULL; FileManagerIsLastBlockRead() local 1140 FileListTask *fileList = NULL; FileManagerHasPendingDataMp() local 1195 FileListTask *fileList = NULL; FileManagerHasPendingDataInner() local 1256 FileListTask *fileList = NULL; FileManagerGetLastSequence() local [all...] |
H A D | nstackx_dfile_transfer.c | 53 return FileListSetSendFileList(trans->fileList, fileListInfo); in DFileTransSendFiles() 59 return FileListAddExtraInfo(trans->fileList, pathType, noticeFileNameType, userData); in DFileTransAddExtraInfo() 174 if (msg->fileList.fileNum == 0) { in ReviewSuccessMsg() 175 msg->fileList.fileNum = NSTACKX_DFILE_MAX_FILE_NUM; in ReviewSuccessMsg() 176 FileListGetNames(dFileTrans->fileList, files, &msg->fileList.fileNum, in ReviewSuccessMsg() 177 dFileTrans->fileList->noticeFileNameType); in ReviewSuccessMsg() 178 msg->fileList.files = (const char **)files; in ReviewSuccessMsg() 190 if (msg->fileList.fileNum == 0) { in ReviewSuccessMsg() 191 msg->fileList in ReviewSuccessMsg() 428 FileList *fileList = dFileTrans->fileList; StartFileManagerSenderTask() local 750 FileList *fileList = dFileTrans->fileList; StartFileManagerReceiverTask() local [all...] |
H A D | nstackx_dfile_frame.c | 51 uint64_t GetTarTotalBlockLength(FileList *fileList) in GetTarTotalBlockLength() argument 61 for (i = 0; i < fileList->num; i++) { in GetTarTotalBlockLength() 64 path = fileList->list[i].fullFileName; in GetTarTotalBlockLength() 88 static int32_t EncodeFileInfo(FileList *fileList, uint16_t fileId, uint8_t *buffer, size_t length, in EncodeFileInfo() argument 98 if (fileList->packedUserData != NULL) { in EncodeFileInfo() 99 fileName = (char *)fileList->packedUserData; in EncodeFileInfo() 100 fileNameLen = fileList->packedUserDataLen; in EncodeFileInfo() 102 fileName = fileList->userData; in EncodeFileInfo() 107 fileName = FileListGetRemotePath(fileList, fileId); in EncodeFileInfo() 109 fileName = FileListGetFileName(fileList, fileI in EncodeFileInfo() 138 EncodeFileHeaderFrameSp(FileList *fileList, int32_t *fileId, uint8_t *buffer, size_t length, size_t *frameLength) EncodeFileHeaderFrameSp() argument 202 EncodeFileHeaderFrame(FileList *fileList, int32_t *fileId, uint8_t *buffer, size_t length, size_t *frameLength) EncodeFileHeaderFrame() argument 209 EncodeFileHeaderConfirmFrame(FileList *fileList, uint16_t *fileId, uint8_t *buffer, size_t length, size_t *frameLength) EncodeFileHeaderConfirmFrame() argument 380 SetDfileHeaderFrameUserDataFlag(FileList *fileList) SetDfileHeaderFrameUserDataFlag() argument 400 DecodeFileHeaderFrameSp(FileList *fileList, FileHeaderFrame *headerFrame) DecodeFileHeaderFrameSp() argument 460 DecodeFileHeaderFrame(FileList *fileList, FileHeaderFrame *headerFrame) DecodeFileHeaderFrame() argument 465 DecodeFileHeaderConfirmFrame(FileList *fileList, FileHeaderConfirmFrame *confirmFrame) DecodeFileHeaderConfirmFrame() argument 490 GetFileIdFromFileDataFrame(const FileList *fileList, const FileDataFrame *dataFrame) GetFileIdFromFileDataFrame() argument 502 DecodeFileTransferDoneFrame(FileList *fileList, FileTransferDoneFrame *transferDoneFrame) DecodeFileTransferDoneFrame() argument [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/include/ |
H A D | nstackx_file_list.h | 122 static inline char *FileListGetRemotePath(FileList *fileList, uint16_t fileId) in FileListGetRemotePath() argument 124 return (fileList)->list[(fileId) - 1].remotePath; in FileListGetRemotePath() 127 static inline char *FileListGetFileName(FileList *fileList, uint16_t fileId) in FileListGetFileName() argument 129 return (fileList)->list[(fileId) - 1].fileName; in FileListGetFileName() 132 static inline uint64_t FileListGetFileSize(FileList *fileList, uint16_t fileId) in FileListGetFileSize() argument 134 return (fileList)->list[(fileId) - 1].fileSize; in FileListGetFileSize() 137 static inline uint16_t FileListGetNum(const FileList *fileList) in FileListGetNum() argument 139 return (uint16_t)fileList->num; in FileListGetNum() 142 static inline uint16_t FileListGetPathType(FileList *fileList) in FileListGetPathType() argument 144 return (fileList) in FileListGetPathType() 150 FileListGetFileNameReceived(FileList *fileList, uint16_t fileId) FileListGetFileNameReceived() argument 155 FileListSetLastBlockReceived(FileList *fileList, uint16_t fileId) FileListSetLastBlockReceived() argument 161 FileListGetLastBlockReceived(FileList *fileList, uint16_t fileId) FileListGetLastBlockReceived() argument 166 FileListSetFileReceiveSuccess(FileList *fileList, uint16_t fileId) FileListSetFileReceiveSuccess() argument 172 FileListSetFileReceiveFail(FileList *fileList, uint16_t fileId) FileListSetFileReceiveFail() argument 178 FileListSetFileSendSuccess(FileList *fileList, uint16_t fileId) FileListSetFileSendSuccess() argument [all...] |
H A D | nstackx_file_manager.h | 96 char *fileList[NSTACKX_DFILE_MAX_FILE_NUM + 1]; member 322 static inline int32_t CheckFilelist(FileListTask *fileList) in CheckFilelist() argument 324 if (fileList == NULL || fileList->runStatus != FILE_LIST_STATUS_RUN || fileList->errCode != FILE_MANAGER_EOK) { in CheckFilelist() 330 static inline int32_t CheckFilelistNotStop(FileListTask *fileList) in CheckFilelistNotStop() argument 332 if (fileList == NULL || fileList->runStatus == FILE_LIST_STATUS_STOP || fileList->errCode != FILE_MANAGER_EOK) { in CheckFilelistNotStop() 410 int32_t GetEncryptedDataTarFrame(CryptPara *cryptPara, uint16_t fileId, FileListTask *fileList, uint16_ [all...] |
H A D | nstackx_dfile_frame.h | 242 void EncodeFileHeaderFrame(FileList *fileList, int32_t *fileId, uint8_t *buffer, size_t length, size_t *frameLength); 243 void EncodeFileHeaderConfirmFrame(FileList *fileList, uint16_t *fileId, uint8_t *buffer, size_t length, 245 int32_t EncodeFileDataFrame(FileList *fileList, uint16_t fileId, uint8_t *buffer, size_t length, size_t *frameLength); 253 int32_t DecodeFileHeaderFrame(FileList *fileList, FileHeaderFrame *headerFrame); 254 int32_t DecodeFileHeaderConfirmFrame(FileList *fileList, FileHeaderConfirmFrame *confirmFrame); 255 int32_t DecodeFileDataFrame(FileList *fileList, FileDataFrame *dataFrame); 256 int16_t GetFileIdFromFileDataFrame(const FileList *fileList, const FileDataFrame *fileDataFrame); 257 int32_t DecodeFileTransferDoneFrame(FileList *fileList, FileTransferDoneFrame *transferDoneFrame);
|
H A D | nstackx_file_manager_client.h | 26 void SendTaskProcess(FileManager *fileManager, FileListTask *fileList); 28 void ClearSendFileList(FileManager *fileManager, FileListTask *fileList);
|
/foundation/ability/ability_base/test/unittest/extractor/ |
H A D | extractor_test.cpp | 187 std::vector<std::string> fileList; in HWTEST_F() local 189 EXPECT_FALSE(extractor->GetFileList(srcPath, fileList)); in HWTEST_F() 192 EXPECT_FALSE(extractor->GetFileList("", fileList)); in HWTEST_F() 193 EXPECT_TRUE(extractor->GetFileList(FA_MAIN_ABILITY_PATH, fileList)); in HWTEST_F() 194 EXPECT_TRUE(fileList.size() == 0); in HWTEST_F() 220 std::vector<std::string> fileList; in HWTEST_F() local 221 extractor->GetFileList("b", fileList); in HWTEST_F() 222 EXPECT_TRUE(fileList.size() == 1); in HWTEST_F() 223 EXPECT_TRUE(fileList[0] == "b/c.txt"); in HWTEST_F() 225 fileList in HWTEST_F() 277 std::set<std::string> fileList; HWTEST_F() local 439 std::vector<std::string> fileList; HWTEST_F() local [all...] |
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/ |
H A D | softbus_asset_recv_listener_test.cpp | 185 std::vector<std::string> fileList; in HWTEST_F() local 186 fileList.push_back("test"); in HWTEST_F() 187 EXPECT_EQ(SoftbusAssetRecvListener::MoveAsset(fileList, true), false); in HWTEST_F() 189 fileList[0].clear(); in HWTEST_F() 190 fileList[0] = "ASSET_TEMP/"; in HWTEST_F() 191 EXPECT_EQ(SoftbusAssetRecvListener::MoveAsset(fileList, true), false); in HWTEST_F() 193 fileList[0] += ".asset_single?"; in HWTEST_F() 194 EXPECT_EQ(SoftbusAssetRecvListener::MoveAsset(fileList, true), false); in HWTEST_F() 196 fileList[0].clear(); in HWTEST_F() 197 fileList[ in HWTEST_F() [all...] |
H A D | softbus_session_listener_test.cpp | 179 vector<string> fileList; in HWTEST_F() local 180 fileList.push_back("/data/test/test1/t1.txt"); in HWTEST_F() 181 fileList.push_back("/data/test/test1/t2.txt"); in HWTEST_F() 183 rltList = SoftBusSessionListener::GetFileName(fileList, "/data/test", "/data/test"); in HWTEST_F() 188 rltList = SoftBusSessionListener::GetFileName(fileList, "/data/test/test1/t1.txt", "/data/test"); in HWTEST_F()
|
H A D | softbus_handler_asset_test.cpp | 455 vector<string> fileList; in HWTEST_F() local 456 fileList.push_back(fileName); in HWTEST_F() 457 auto rlt = softBusHandlerAsset.GenerateUris(fileList, "demoB", true); in HWTEST_F() 460 fileList[0].clear(); in HWTEST_F() 461 fileList[0] = "demoB/ASSET_TEMP"; in HWTEST_F() 462 rlt = softBusHandlerAsset.GenerateUris(fileList, "demoB", true); in HWTEST_F() 465 fileList[0].clear(); in HWTEST_F() 466 fileList[0] = "demoB/ASSET_TEMP/test.asset_single?"; in HWTEST_F() 467 rlt = softBusHandlerAsset.GenerateUris(fileList, "demoB", true); in HWTEST_F() 484 vector<string> fileList; in HWTEST_F() local [all...] |
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_session_listener.cpp | 52 std::vector<std::string> SoftBusSessionListener::GetFileName(const std::vector<std::string> &fileList, in GetFileName() argument 58 for (const auto &it : fileList) { in GetFileName() 90 auto fileList = OHOS::Storage::DistributedFile::Utils::GetFilePath(physicalPath); in OnSessionOpened() local 91 if (fileList.empty()) { in OnSessionOpened() 97 for (size_t i = 0; i < fileList.size() && fileList.size() < MAX_SIZE; i++) { in OnSessionOpened() 98 src[i] = fileList.at(i).c_str(); in OnSessionOpened() 101 auto fileNameList = GetFileName(fileList, physicalPath, sessionInfo.dstPath); in OnSessionOpened() 107 for (size_t i = 0; i < fileNameList.size() && fileList.size() < MAX_SIZE; i++) { in OnSessionOpened() 111 ret = ::SendFile(sessionId, src, dst, static_cast<uint32_t>(fileList in OnSessionOpened() [all...] |
H A D | softbus_asset_recv_listener.cpp | 78 void SoftbusAssetRecvListener::OnRecvAssetStart(int32_t socketId, const char **fileList, int32_t fileCnt) in OnRecvAssetStart() argument 82 LOGE("fileList has no file"); in OnRecvAssetStart() 90 std::string filePath(path_ + fileList[0]); in OnRecvAssetStart() 103 void SoftbusAssetRecvListener::OnRecvAssetFinished(int32_t socketId, const char **fileList, int32_t fileCnt) in OnRecvAssetFinished() argument 107 LOGE("fileList has no file"); in OnRecvAssetFinished() 115 std::string firstFilePath(path_ + fileList[0]); in OnRecvAssetFinished() 123 std::string filePath(path_ + fileList[i]); in OnRecvAssetFinished() 144 const char **fileList, int32_t fileCnt) in OnRecvAssetError() 154 std::string firstFilePath(path_ + fileList[0]); in OnRecvAssetError() 180 bool SoftbusAssetRecvListener::MoveAsset(const std::vector<std::string> &fileList, boo argument 143 OnRecvAssetError(int32_t socketId, int32_t errorCode, const char **fileList, int32_t fileCnt) OnRecvAssetError() argument 247 std::vector<std::string> fileList = {filePath}; HandleSingleFile() local 287 std::vector<std::string> fileList = SoftBusHandlerAsset::GetInstance().DecompressFile(zipfilePath, relativePath); HandleZipFile() local [all...] |
H A D | softbus_asset_send_listener.cpp | 47 void SoftBusAssetSendListener::OnSendAssetFinished(int32_t socketId, const char **fileList, int32_t fileCnt) in OnSendAssetFinished() argument 51 LOGE("fileList has no file"); in OnSendAssetFinished() 63 SoftBusHandlerAsset::GetInstance().RemoveFile(fileList[0], GetIsZipFile(taskId)); in OnSendAssetFinished() 68 const char **fileList, in OnSendAssetError() 74 LOGE("fileList has no file"); in OnSendAssetError() 86 SoftBusHandlerAsset::GetInstance().RemoveFile(fileList[0], GetIsZipFile(taskId)); in OnSendAssetError() 67 OnSendAssetError(int32_t socketId, const char **fileList, int32_t fileCnt, int32_t errorCode) OnSendAssetError() argument
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/ |
H A D | daemon_execute.cpp | 95 auto fileList = GetFileList(assetObj->uris_, userId, assetObj->srcBundleName_); in ExecutePushAsset() local 96 if (fileList.empty()) { in ExecutePushAsset() 97 LOGE("get fileList is empty."); in ExecutePushAsset() 104 ret = HandleZip(fileList, assetObj, sendFileName, isSingleFile); in ExecutePushAsset() 205 std::vector<std::string> fileList; in GetFileList() local 231 fileList.emplace_back(physicalPath); in GetFileList() 233 LOGI("GetFileList success, file num is %{public}s", std::to_string(fileList.size()).c_str()); in GetFileList() 234 return fileList; in GetFileList() 237 int32_t DaemonExecute::HandleZip(const std::vector<std::string> &fileList, in HandleZip() argument 242 if (fileList in HandleZip() [all...] |
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/softbus/ |
H A D | softbus_asset_recv_listener.h | 36 static void OnRecvAssetStart(int32_t socketId, const char **fileList, int32_t fileCnt); 37 static void OnRecvAssetFinished(int32_t socketId, const char **fileList, int32_t fileCnt); 38 static void OnRecvAssetError(int32_t socketId, int32_t errorCode, const char **fileList, int32_t fileCnt); 48 static bool MoveAsset(const std::vector<std::string> &fileList, bool isSingleFile);
|
H A D | softbus_asset_send_listener.h | 33 static void OnSendAssetFinished(int32_t socketId, const char **fileList, int32_t fileCnt); 34 static void OnSendAssetError(int32_t socketId, const char **fileList, int32_t fileCnt, int32_t errorCode);
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | key_backup.cpp | 212 std::vector<struct FileNode> fileList; in DoResotreKeyMix() local 214 int32_t ret = GetFileList(origKeyDir, backupKeyDir, fileList, diffNum); in DoResotreKeyMix() 221 ret = CopySameFilesToTempDir(backupKeyDir, tempKeyDir, fileList); in DoResotreKeyMix() 226 diffNum = fileList.size(); in DoResotreKeyMix() 234 ret = CopyMixFilesToTempDir(diffNum, i, tempKeyDir, fileList); in DoResotreKeyMix() 252 std::vector<struct FileNode> &fileList, uint32_t diffNum) in GetFileList() 262 AddOrigFileToList(std::string(de->d_name), origDir, fileList); in GetFileList() 273 AddBackupFileToList(std::string(de->d_name), backDir, fileList); in GetFileList() 278 diffNum = GetDiffFilesNum(fileList); in GetFileList() 299 std::vector<struct FileNode> &fileList) in AddOrigFileToList() 251 GetFileList(const std::string &origDir, const std::string &backDir, std::vector<struct FileNode> &fileList, uint32_t diffNum) GetFileList() argument 298 AddOrigFileToList(const std::string &fileName, const std::string &origDir, std::vector<struct FileNode> &fileList) AddOrigFileToList() argument 319 AddBackupFileToList(const std::string &fileName, const std::string &backDir, std::vector<struct FileNode> &fileList) AddBackupFileToList() argument 350 GetDiffFilesNum(const std::vector<struct FileNode> &fileList) GetDiffFilesNum() argument 364 CopySameFilesToTempDir(const std::string &backupDir, std::string &tempDir, std::vector<struct FileNode> &fileList) CopySameFilesToTempDir() argument 422 CopyMixFilesToTempDir(uint32_t diffNum, uint32_t num, const std::string &tempDir, const std::vector<struct FileNode> &fileList) CopyMixFilesToTempDir() argument [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/ |
H A D | key_backup.h | 79 std::vector<struct FileNode> &fileList); 81 std::vector<struct FileNode> &fileList); 82 uint32_t GetDiffFilesNum(const std::vector<struct FileNode> &fileList); 84 std::vector<struct FileNode> &fileList); 88 const std::vector<struct FileNode> &fileList);
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/ |
H A D | ohos_file.cpp | 99 bool OhosFileDirectory::IsDir(BASE_NS::string_view path, std::vector<std::string>& fileList) const in IsDir() 101 auto state = dirResMgr_->GetResMgr()->GetRawFileList(path.data(), fileList); in IsDir() 102 if (state != OHOS::Global::Resource::SUCCESS || fileList.empty()) { in IsDir() 129 std::vector<std::string> fileList; in Open() local 130 if (IsDir(path, fileList)) { in Open() 131 dir_ = BASE_NS::make_unique<OhosDirImpl>(path, fileList); in Open() 157 std::vector<std::string> fileList; in GetEntry() local 160 } else if (IsDir(uriIn, fileList)) { in GetEntry()
|
/foundation/CastEngine/castengine_cast_framework/common/include/private/ |
H A D | cast_engine_common_helper.h | 58 void SetDataCapacity(MessageParcel &parcel, const FileFdMap &fileList, uint32_t tokenSize); 59 bool WriteFileList(MessageParcel &parcel, const FileFdMap &fileList); 60 bool ReadFileList(MessageParcel &parcel, FileFdMap &fileList);
|
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/ |
H A D | NativeFunctionTest.cpp | 242 string fileList[] = {"fltp_aac_low_128k_7350_1_dayuhaitang.aac", "fltp_aac_low_128k_16000_1_dayuhaitang.aac", in HWTEST_F() local 248 vector<string> dest = SplitStringFully(fileList[i], "_"); in HWTEST_F() 268 string inputFile = fileList[i]; in HWTEST_F() 289 string fileList[] = { "fltp_aac_low_128k_44100_1_dayuhaitang.aac", "fltp_aac_low_128k_44100_2_dayuhaitang.aac", in HWTEST_F() local 294 vector<string> dest = SplitStringFully(fileList[i], "_"); in HWTEST_F() 314 string inputFile = fileList[i]; in HWTEST_F() 335 string fileList[] = { "fltp_aac_low_32k_16000_2_dayuhaitang.aac", "fltp_aac_low_128k_44100_2_dayuhaitang.aac", in HWTEST_F() local 340 vector<string> dest = SplitStringFully(fileList[i], "_"); in HWTEST_F() 360 string inputFile = fileList[i]; in HWTEST_F() 381 string fileList[] in HWTEST_F() local 426 string fileList[] = { "fltp_128k_48000_2_dayuhaitang.mp3", "s16p_128k_48000_2_dayuhaitang.mp3"}; HWTEST_F() local 471 string fileList[] = { "fltp_128k_44100_1_dayuhaitang.mp3", "fltp_128k_44100_2_dayuhaitang.mp3" }; HWTEST_F() local 515 string fileList[] = { "fltp_40k_44100_2_dayuhaitang.mp3", "fltp_128k_44100_2_dayuhaitang.mp3", HWTEST_F() local 560 string fileList[] = { "s16_8000_2_dayuhaitang.flac", "s16_16000_2_dayuhaitang.flac", HWTEST_F() local 606 string fileList[] = { "s16_48000_2_dayuhaitang.flac", "s32_48000_2_dayuhaitang.flac"}; HWTEST_F() local 652 string fileList[] = { "s16_48000_1_dayuhaitang.flac", "s16_48000_2_dayuhaitang.flac", HWTEST_F() local 698 string fileList[] = { "fltp_45k_8000_2_dayuhaitang.ogg", "fltp_45k_16000_2_dayuhaitang.ogg", HWTEST_F() local 744 string fileList[] = { "fltp_128k_48000_1_dayuhaitang.ogg", "fltp_128k_48000_2_dayuhaitang.ogg", HWTEST_F() local 789 string fileList[] = { "fltp_45k_48000_2_dayuhaitang.ogg", "fltp_128k_48000_2_dayuhaitang.ogg", HWTEST_F() local [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/ |
H A D | NativeFunctionTest.cpp | 224 string fileList[] = { in HWTEST_F() local 234 vector<string> dest = SplitStringFully(fileList[i], "_"); in HWTEST_F() 247 string inputFile = fileList[i]; in HWTEST_F() 267 string fileList[] = { in HWTEST_F() local 275 vector<string> dest = SplitStringFully(fileList[i], "_"); in HWTEST_F() 289 string inputFile = fileList[i]; in HWTEST_F() 349 string fileList[] = { in HWTEST_F() local 359 vector<string> dest = SplitStringFully(fileList[i], "_"); in HWTEST_F() 371 string inputFile = fileList[i]; in HWTEST_F() 392 string fileList[] in HWTEST_F() local 443 string fileList[] = { HWTEST_F() local [all...] |