/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/include/ |
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)->pathType; in FileListGetPathType() [all …]
|
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_M… 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_… in CheckFilelistNotStop() 410 int32_t GetEncryptedDataTarFrame(CryptPara *cryptPara, uint16_t fileId, FileListTask *fileList, uin… 412 int32_t GetNoEncryptedDataTarFrame(uint16_t fileId, FileListTask *fileList, uint16_t targetLenth); 419 uint8_t PushSendBlockFrame(FileManager *fileManager, const FileListTask *fileList, const FileDataFr… 421 void UpdateTarFileListSendStatus(FileListTask *fileList); 423 FileDataFrame *CreateRetranBlockFrame(FileManager *fileManager, FileListTask *fileList); [all …]
|
D | nstackx_dfile_frame.h | 234 void EncodeFileHeaderFrame(FileList *fileList, int32_t *fileId, uint8_t *buffer, size_t length, siz… 235 void EncodeFileHeaderConfirmFrame(FileList *fileList, uint16_t *fileId, uint8_t *buffer, size_t len… 237 int32_t EncodeFileDataFrame(FileList *fileList, uint16_t fileId, uint8_t *buffer, size_t length, si… 245 int32_t DecodeFileHeaderFrame(FileList *fileList, FileHeaderFrame *headerFrame); 246 int32_t DecodeFileHeaderConfirmFrame(FileList *fileList, FileHeaderConfirmFrame *confirmFrame); 247 int32_t DecodeFileDataFrame(FileList *fileList, FileDataFrame *dataFrame); 248 int16_t GetFileIdFromFileDataFrame(const FileList *fileList, const FileDataFrame *fileDataFrame); 249 int32_t DecodeFileTransferDoneFrame(FileList *fileList, FileTransferDoneFrame *transferDoneFrame);
|
D | nstackx_file_manager_client.h | 26 void SendTaskProcess(FileManager *fileManager, FileListTask *fileList); 28 void ClearSendFileList(FileManager *fileManager, FileListTask *fileList);
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
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->userDataFlag & NSTACKX_DFILE_HEADER_FRAME_USER_DATA_FLAG) && in FileListAllFileNameReceived() [all …]
|
D | nstackx_file_manager_client.c | 185 int32_t GetEncryptedDataTarFrame(CryptPara *cryptPara, uint16_t fileId, FileListTask *fileList, uin… in GetEncryptedDataTarFrame() argument 191 uint32_t targetSequence = (uint32_t)(fileList->tarFileInfo.maxSequenceSend); in GetEncryptedDataTarFrame() 192 FileDataFrame *buffer = fileList->tarFrame; in GetEncryptedDataTarFrame() 208 … if (memcpy_s(buffer, fileList->maxFrameLength, fileDataFrame, frameOffset + payLoadLen) != EOK) { in GetEncryptedDataTarFrame() 216 int32_t GetNoEncryptedDataTarFrame(uint16_t fileId, FileListTask *fileList, uint16_t targetLenth) in GetNoEncryptedDataTarFrame() argument 218 FileDataFrame *fileDataFrame = fileList->tarFrame; in GetNoEncryptedDataTarFrame() 225 fileDataFrame->blockSequence = htonl((uint32_t)fileList->tarFileInfo.maxSequenceSend); in GetNoEncryptedDataTarFrame() 229 static int32_t GetRetranBlockInfo(FileListTask *fileList, uint16_t *fileId, uint32_t *blockSeq, uin… in GetRetranBlockInfo() argument 234 if (MutexListPopFront(&fileList->sendRetranList, &curFront, &isPoped) != NSTACKX_EOK) { in GetRetranBlockInfo() 240 fileList->errCode = FILE_MANAGER_EMUTEX; in GetRetranBlockInfo() [all …]
|
D | nstackx_file_manager.c | 88 void NotifyFileListMsg(const FileListTask *fileList, FileManagerMsgType msgType) in NotifyFileListMsg() argument 92 if (fileList == NULL) { in NotifyFileListMsg() 97 if (fileList->msgReceiver == NULL || !IsEpollDescValid(fileList->epollfd)) { in NotifyFileListMsg() 105 if (fileList->bytesTransferredLastRecord >= fileList->totalBytes) { in NotifyFileListMsg() 109 bytesTransferred = fileList->bytesTransferredLastRecord; in NotifyFileListMsg() 111 ctx->msg.transferUpdate.totalBytes = fileList->totalBytes; in NotifyFileListMsg() 112 ctx->msg.transferUpdate.transId = fileList->transId; in NotifyFileListMsg() 115 ctx->msgReceiver = fileList->msgReceiver; in NotifyFileListMsg() 118 ctx->msg.errorCode = fileList->errCode; in NotifyFileListMsg() 119 ctx->context = fileList->context; in NotifyFileListMsg() [all …]
|
D | nstackx_dfile_transfer.c | 54 return FileListSetSendFileList(trans->fileList, fileListInfo); in DFileTransSendFiles() 60 return FileListAddExtraInfo(trans->fileList, pathType, noticeFileNameType, userData); in DFileTransAddExtraInfo() 173 if (msg->fileList.fileNum == 0) { in ReviewSuccessMsg() 174 msg->fileList.fileNum = NSTACKX_DFILE_MAX_FILE_NUM; in ReviewSuccessMsg() 175 FileListGetNames(dFileTrans->fileList, files, &msg->fileList.fileNum, in ReviewSuccessMsg() 176 dFileTrans->fileList->noticeFileNameType); in ReviewSuccessMsg() 177 msg->fileList.files = (const char **)files; in ReviewSuccessMsg() 189 if (msg->fileList.fileNum == 0) { in ReviewSuccessMsg() 190 msg->fileList.fileNum = NSTACKX_DFILE_MAX_FILE_NUM; in ReviewSuccessMsg() 191 … FileListGetNames(dFileTrans->fileList, files, &msg->fileList.fileNum, NOTICE_FILE_NAME_TYPE); in ReviewSuccessMsg() [all …]
|
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, fileId); in EncodeFileInfo() [all …]
|
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/file/file06/ |
D | index.js | 25 fileList: function() { 30 console.log("list call success " + JSON.stringify(data.fileList)); 31 obj.content = JSON.stringify(data.fileList);
|
/foundation/ability/ability_base/test/unittest/extractor/ |
D | extractor_test.cpp | 180 std::vector<std::string> fileList; variable 182 EXPECT_FALSE(extractor->GetFileList(srcPath, fileList)); 185 EXPECT_FALSE(extractor->GetFileList("", fileList)); 186 EXPECT_TRUE(extractor->GetFileList(FA_MAIN_ABILITY_PATH, fileList)); 187 EXPECT_TRUE(fileList.size() == 0); 283 std::vector<std::string> fileList; variable 284 extractor->GetSpecifiedTypeFiles(fileList, ".abc"); 285 EXPECT_TRUE(fileList.size() == 0); 287 extractor->GetSpecifiedTypeFiles(fileList, ".abc"); 288 EXPECT_TRUE(fileList.size() > 0); [all …]
|
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/ |
D | NativeFunctionTest.cpp | 225 …string fileList[] = {"fltp_aac_low_128k_7350_1_dayuhaitang.aac", "fltp_aac_low_128k_16000_1_dayuha… variable 231 vector<string> dest = SplitStringFully(fileList[i], "_"); 251 string inputFile = fileList[i]; 272 …string fileList[] = { "fltp_aac_low_128k_44100_1_dayuhaitang.aac", "fltp_aac_low_128k_44100_2_dayu… variable 277 vector<string> dest = SplitStringFully(fileList[i], "_"); 297 string inputFile = fileList[i]; 318 …string fileList[] = { "fltp_aac_low_32k_16000_2_dayuhaitang.aac", "fltp_aac_low_128k_44100_2_dayuh… variable 323 vector<string> dest = SplitStringFully(fileList[i], "_"); 343 string inputFile = fileList[i]; 364 string fileList[] = { "fltp_40k_8000_2_dayuhaitang.mp3", "fltp_40k_16000_2_dayuhaitang.mp3", variable [all …]
|
/foundation/multimedia/av_session/utils/include/ |
D | avsession_utils.h | 107 std::vector<std::string> fileList; in DeleteCacheFiles() local 108 OHOS::GetDirFiles(path, fileList); in DeleteCacheFiles() 109 for (const auto& file : fileList) { in DeleteCacheFiles()
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/ |
D | NativeFunctionTest.cpp | 224 string fileList[] = { variable 234 vector<string> dest = SplitStringFully(fileList[i], "_"); 247 string inputFile = fileList[i]; 267 string fileList[] = { variable 275 vector<string> dest = SplitStringFully(fileList[i], "_"); 289 string inputFile = fileList[i]; 349 string fileList[] = { variable 359 vector<string> dest = SplitStringFully(fileList[i], "_"); 371 string inputFile = fileList[i]; 392 string fileList[] = { variable [all …]
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
D | db_common.cpp | 29 void RemoveFiles(const std::list<OS::FileAttr> &fileList, OS::FileType type) in RemoveFiles() argument 31 for (const auto &item : fileList) { in RemoveFiles() 42 void RemoveDirectories(const std::list<OS::FileAttr> &fileList, OS::FileType type) in RemoveDirectories() argument 44 for (auto item = fileList.rbegin(); item != fileList.rend(); ++item) { in RemoveDirectories() 260 std::list<OS::FileAttr> fileList; in RemoveAllFilesOfDirectory() local 265 int errCode = OS::GetFileAttrFromPath(dir, fileList, true); in RemoveAllFilesOfDirectory() 270 RemoveFiles(fileList, OS::FileType::FILE); in RemoveAllFilesOfDirectory() 271 RemoveDirectories(fileList, OS::FileType::PATH); in RemoveAllFilesOfDirectory()
|
/foundation/multimedia/media_library/frameworks/services/media_file_extension/src/ |
D | media_file_ext_ability.cpp | 141 const FileAccessFwk::FileFilter &filter, vector<FileInfo> &fileList) in ListFile() argument 143 …rn ConvertErrno(MediaFileExtentionUtils::ListFile(parentInfo, offset, maxCount, filter, fileList)); in ListFile() 147 const FileAccessFwk::FileFilter &filter, vector<FileInfo> &fileList) in ScanFile() argument 149 …rn ConvertErrno(MediaFileExtentionUtils::ScanFile(parentInfo, offset, maxCount, filter, fileList)); in ScanFile()
|
D | media_file_extention_utils.cpp | 523 static int32_t RootListFile(const FileInfo &parentInfo, vector<FileInfo> &fileList) in RootListFile() argument 526 …fileList.emplace_back(selectUri + MEDIALIBRARY_TYPE_FILE_URI, "", "MEDIA_TYPE_FILE", ALBUM_MODE_RE… in RootListFile() 528 …fileList.emplace_back(selectUri + MEDIALIBRARY_TYPE_IMAGE_URI, "", "MEDIA_TYPE_IMAGE", ALBUM_MODE_… in RootListFile() 530 …fileList.emplace_back(selectUri + MEDIALIBRARY_TYPE_VIDEO_URI, "", "MEDIA_TYPE_VIDEO", ALBUM_MODE_… in RootListFile() 532 …fileList.emplace_back(selectUri + MEDIALIBRARY_TYPE_AUDIO_URI, "", "MEDIA_TYPE_AUDIO", ALBUM_MODE_… in RootListFile() 669 vector<FileInfo> &fileList) in GetAlbumInfoFromResult() argument 682 fileList.push_back(fileInfo); in GetAlbumInfoFromResult() 688 vector<FileInfo> &fileList) in GetMediaFileInfoFromResult() argument 700 fileList.push_back(fileInfo); in GetMediaFileInfoFromResult() 708 vector<FileInfo> &fileList) in GetFileInfoFromResult() argument [all …]
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/ |
D | cjson_parser.cpp | 331 int CJSONParser::GetWinFiles(ListNode *&fileList) in GetWinFiles() argument 356 check = AddNode(fileList, value); in GetWinFiles() 368 int CJSONParser::GetFiles(ListNode *&fileList) in GetFiles() argument 382 check = AddNode(fileList, value); in GetFiles() 418 ListNode *fileList = nullptr; in IsFileExistFullMatch() local 420 int count = GetWinFiles(fileList); in IsFileExistFullMatch() 422 int count = GetFiles(fileList); in IsFileExistFullMatch() 425 ClearNode(fileList); in IsFileExistFullMatch() 430 if (!strcmp(fileName, GetNode(fileList, i))) { in IsFileExistFullMatch() 435 ClearNode(fileList); in IsFileExistFullMatch()
|
D | cjson_parser.h | 225 int GetWinFiles(ListNode *&fileList); 227 int GetFiles(ListNode *&fileList);
|
/foundation/multimedia/media_library/frameworks/services/media_file_extension/include/ |
D | media_file_ext_ability.h | 43 … const FileAccessFwk::FileFilter &filter, std::vector<FileAccessFwk::FileInfo> &fileList) override; 45 … const FileAccessFwk::FileFilter &filter, std::vector<FileAccessFwk::FileInfo> &fileList) override;
|
D | media_file_extention_utils.h | 78 const FileAccessFwk::FileFilter &filter, std::vector<FileAccessFwk::FileInfo> &fileList); 80 const FileAccessFwk::FileFilter &filter, std::vector<FileAccessFwk::FileInfo> &fileList);
|
/foundation/multimodalinput/input/tools/vuinput/test/ |
D | virtual_device_test.cpp | 242 std::vector<std::string> fileList; variable 244 fileList.push_back("close "); 245 fileList.push_back("falseArgv "); 246 auto ret = device.CloseDevice(fileName, fileList);
|
/foundation/arkui/ace_engine/frameworks/base/resource/ |
D | ace_res_config.cpp | 702 std::vector<std::string> fileList; in GetLocaleFallback() local 703 AceResConfig::MatchAndSortI18nConfigs(localeList, localeTag, fileList); in GetLocaleFallback() 704 return fileList; in GetLocaleFallback() 711 std::vector<std::string> fileList; in GetResourceFallback() local 712 AceResConfig::MatchAndSortResConfigs(resourceList, deviceConfigTag, fileList); in GetResourceFallback() 713 return fileList; in GetResourceFallback() 718 std::vector<std::string> fileList; in GetStyleResourceFallback() local 720 AceResConfig::MatchAndSortStyleResConfigs(resourceList, deviceConfigTag, fileList); in GetStyleResourceFallback() 721 return fileList; in GetStyleResourceFallback() 786 const std::string& devicesLocaleTag, std::vector<std::string>& fileList) in MatchAndSortI18nConfigs() argument [all …]
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/ |
D | client_trans_file.c | 43 listener->sendListener.OnSendFileFinished(sessionId, msgData->fileList.files[0]); in NotifySendResult() 110 const char *firstFile = msgData->fileList.files[0]; in NotifyRecvResult() 111 uint32_t fileNum = msgData->fileList.fileNum; in NotifyRecvResult()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_fileext_test/src/ |
D | medialibrary_fileext_test.cpp | 890 void DisplayFileList(const vector<FileInfo> &fileList) in DisplayFileList() argument 892 for (auto t : fileList) { in DisplayFileList() 907 vector<FileInfo> fileList; in ListFileFromRootResult() local 908 auto ret = mediaFileExtAbility->ListFile(mediaRootInfo, offset, maxCount, filter, fileList); in ListFileFromRootResult() 915 (int)fileList.size()); in ListFileFromRootResult() 916 DisplayFileList(fileList); in ListFileFromRootResult() 917 EXPECT_EQ(fileList.size(), URI_FILE_ROOT_FILE_SIZE); in ListFileFromRootResult() 925 (int)fileList.size()); in ListFileFromRootResult() 926 DisplayFileList(fileList); in ListFileFromRootResult() 927 EXPECT_GT(fileList.size(), URI_MEDIA_ROOT_IMAGE_SIZE); in ListFileFromRootResult() [all …]
|