Home
last modified time | relevance | path

Searched refs:fileId (Results 1 - 25 of 157) sorted by relevance

1234567

/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_common_utils_test/src/
H A Dmedialibrary_privacy_manager_test.cpp31 string fileId = ""; in HWTEST_F() local
32 MediaPrivacyManager mediaPrivacyManager(path, mode, fileId); in HWTEST_F()
41 string fileId = ""; in HWTEST_F() local
42 MediaPrivacyManager mediaPrivacyManager(path, mode, fileId); in HWTEST_F()
51 string fileId = ""; in HWTEST_F() local
52 MediaPrivacyManager mediaPrivacyManager(path, mode, fileId); in HWTEST_F()
61 string fileId = ""; in HWTEST_F() local
62 MediaPrivacyManager mediaPrivacyManager(path, mode, fileId); in HWTEST_F()
71 string fileId = ""; in HWTEST_F() local
72 MediaPrivacyManager mediaPrivacyManager(path, mode, fileId); in HWTEST_F()
81 string fileId = ""; HWTEST_F() local
91 string fileId = ""; HWTEST_F() local
101 string fileId = ""; HWTEST_F() local
111 string fileId = ""; HWTEST_F() local
121 string fileId = ""; HWTEST_F() local
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_vision_operations.cpp112 static int32_t DeleteFromVisionTables(string &fileId, string &selectionTotal, in DeleteFromVisionTables() argument
125 predicate.EqualTo(FILE_ID, fileId); in DeleteFromVisionTables()
130 static int32_t DeleteFromVisionTablesForVideo(string &fileId, const string &tableName) in DeleteFromVisionTablesForVideo() argument
135 predicate.EqualTo(FILE_ID, fileId); in DeleteFromVisionTablesForVideo()
151 string fileId = to_string(data->fileId_); in UpdateVisionTableForEdit() local
153 string selectionTotal = FILE_ID + " = " + fileId + " AND " + LABEL + " = 1"; in UpdateVisionTableForEdit()
154 DeleteFromVisionTables(fileId, selectionTotal, LABEL, PAH_ANA_LABEL); in UpdateVisionTableForEdit()
155 DeleteFromVisionTablesForVideo(fileId, PAH_ANA_VIDEO_LABEL); in UpdateVisionTableForEdit()
157 selectionTotal = FILE_ID + " = " + fileId + " AND " + AESTHETICS_SCORE + " = 1"; in UpdateVisionTableForEdit()
158 DeleteFromVisionTables(fileId, selectionTota in UpdateVisionTableForEdit()
199 int32_t fileId; EditCommitOperation() local
[all...]
H A Dmedialibrary_uripermission_operations.cpp209 int32_t fileId = std::stoi((static_cast<string>(values.at(index).Get(AppUriPermissionColumn::FILE_ID, isValid)))); in GetSingleDbOperation() local
212 if ((fileId == querySingleResultSet.at(FILE_ID_INDEX)) && (uriType == querySingleResultSet.at(URI_TYPE_INDEX))) { in GetSingleDbOperation()
274 int32_t fileId = std::stoi((static_cast<string>(values[i].Get(AppUriPermissionColumn::FILE_ID, isValid)))); in FilterNotExistUri() local
277 auto notExistIt = std::find(photoFileIdList.begin(), photoFileIdList.end(), fileId); in FilterNotExistUri()
278 auto sameIt = std::find(photosColumns.begin(), photosColumns.end(), to_string(fileId)); in FilterNotExistUri()
286 auto it = std::find(audioFileIdList.begin(), audioFileIdList.end(), fileId); in FilterNotExistUri()
287 auto sameIt = std::find(audioColumns.begin(), audioColumns.end(), to_string(fileId)); in FilterNotExistUri()
372 static void InsertValueBucketPrepare(const std::vector<DataShareValuesBucket> &values, int32_t fileId, in InsertValueBucketPrepare() argument
380 insertValues.Put(AppUriPermissionColumn::FILE_ID, fileId); in InsertValueBucketPrepare()
418 int32_t fileId in GrantUriPermission() local
469 GetUriPermissionMode(const string &fileId, const string &bundleName, int32_t tableType, string &mode) GetUriPermissionMode() argument
490 CheckUriPermValues(ValuesBucket &valuesBucket, int32_t &fileId, string &bundleName, int32_t &tableType, string &inputMode) CheckUriPermValues() argument
530 ConvertVirtualIdToRealId(ValuesBucket &valuesBucket, int32_t &fileId, int32_t tableType) ConvertVirtualIdToRealId() argument
548 int32_t fileId; HandleUriPermInsert() local
598 InsertBundlePermission(const int32_t &fileId, const std::string &bundleName, const std::string &mode, const std::string &tableName) InsertBundlePermission() argument
632 DeleteBundlePermission(const std::string &fileId, const std::string &bundleName, const std::string &tableName) DeleteBundlePermission() argument
660 string fileId = MediaFileUtils::GetIdFromUri(fileUri); CheckUriPermission() local
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_multistages_capture_test/src/
H A Dmedialibrary_multistages_video_capture_test.cpp85 int32_t SetVideoId(int fileId, const string &photoId) in SetVideoId() argument
91 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in SetVideoId()
95 int32_t SetEdited(int fileId) in SetEdited() argument
101 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in SetEdited()
124 int32_t GetQuality(int fileId) in GetQuality() argument
126 if (fileId < 0) { in GetQuality()
127 MEDIA_ERR_LOG("this file id %{private}d is invalid", fileId); in GetQuality()
134 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in GetQuality()
149 string GetFilePath(int fileId) in GetFilePath() argument
151 if (fileId < in GetFilePath()
186 int fileId = CreatePhotoApi10(MediaType::MEDIA_TYPE_VIDEO, "MultiStagesCaptureVideoTest.mp4"); PrepareVideoData() local
233 int32_t fileId = PrepareVideoData(); HWTEST_F() local
260 int32_t fileId = PrepareVideoData(); HWTEST_F() local
304 int32_t fileId = 22345678; HWTEST_F() local
324 int32_t fileId = PrepareVideoData(); HWTEST_F() local
353 int32_t fileId = PrepareVideoData(); HWTEST_F() local
391 int32_t fileId = PrepareVideoData(); HWTEST_F() local
425 int32_t fileId = PrepareVideoData(); HWTEST_F() local
462 int32_t fileId = PrepareVideoData(); HWTEST_F() local
496 int32_t fileId = PrepareVideoData(); HWTEST_F() local
[all...]
H A Dmedialibrary_multistages_photo_capture_test.cpp181 string GetFilePath(int fileId) in GetFilePath() argument
183 if (fileId < 0) { in GetFilePath()
184 MEDIA_ERR_LOG("this file id %{private}d is invalid", fileId); in GetFilePath()
191 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in GetFilePath()
205 int32_t MakePhotoUnpending(int fileId) in MakePhotoUnpending() argument
207 if (fileId < 0) { in MakePhotoUnpending()
208 MEDIA_ERR_LOG("this file id %{private}d is invalid", fileId); in MakePhotoUnpending()
212 string path = GetFilePath(fileId); in MakePhotoUnpending()
231 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in MakePhotoUnpending()
245 int fileId in SetDefaultPhotoApi10() local
261 auto fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "MultiStagesCaptureTest001.jpg"); PrepareForFirstVisit() local
479 auto fileId = PrepareForFirstVisit(); HWTEST_F() local
497 auto fileId = PrepareForFirstVisit(); HWTEST_F() local
545 int32_t fileId = 1; HWTEST_F() local
598 auto fileId = PrepareForFirstVisit(); HWTEST_F() local
653 auto fileId = PrepareForFirstVisit(); HWTEST_F() local
666 auto fileId = PrepareForFirstVisit(); HWTEST_F() local
695 auto fileId = PrepareForFirstVisit(); HWTEST_F() local
713 auto fileId = PrepareForFirstVisit(); HWTEST_F() local
731 auto fileId = PrepareForFirstVisit(); HWTEST_F() local
[all...]
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/include/
H A Dnstackx_file_list.h41 uint16_t fileId; member
116 uint16_t fileId; member
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()
147 void FileListSetFileNameAcked(FileList *fileList, uint16_t fileId);
148 uint8_t FileListGetFileNameAcked(FileList *fileList, uint16_t fileId);
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 Dnstackx_dfile_frame.h88 uint16_t fileId; member
95 uint16_t fileId; member
115 uint16_t fileId[0]; member
120 uint16_t fileId[0]; member
125 uint16_t fileId; member
132 uint16_t fileId; member
152 uint16_t fileId[0]; member
157 uint16_t fileId[0]; member
182 uint16_t fileId[0]; member
242 void EncodeFileHeaderFrame(FileList *fileList, int32_t *fileId, uint8_
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_audio_operations_test/src/
H A Dmedialibrary_audio_operations_test.cpp354 string GetFilePath(int fileId) in GetFilePath() argument
356 if (fileId < 0) { in GetFilePath()
357 MEDIA_ERR_LOG("this file id %{public}d is invalid", fileId); in GetFilePath()
364 cmd.GetAbsRdbPredicates()->EqualTo(AudioColumn::MEDIA_ID, to_string(fileId)); in GetFilePath()
378 int32_t MakeAudioUnpending(int fileId) in MakeAudioUnpending() argument
380 if (fileId < 0) { in MakeAudioUnpending()
381 MEDIA_ERR_LOG("this file id %{private}d is invalid", fileId); in MakeAudioUnpending()
385 string path = GetFilePath(fileId); in MakeAudioUnpending()
404 cmd.GetAbsRdbPredicates()->EqualTo(AudioColumn::MEDIA_ID, to_string(fileId)); in MakeAudioUnpending()
418 int fileId in SetDefaultAudioApi9() local
433 int fileId = CreateAudioApi10(mediaType, displayName); SetDefaultAudioApi10() local
618 TestAudioDeleteParamsApi10(OperationObject oprnObject, int32_t fileId, ExceptIntFunction func) TestAudioDeleteParamsApi10() argument
684 TestAudioOpenParamsApi10(int32_t fileId, const string &mode, ExceptIntFunction func) TestAudioOpenParamsApi10() argument
709 GetAudioPendingStatus(int32_t fileId) GetAudioPendingStatus() argument
723 SetAudioPendingStatus(int32_t pendingStatus, int32_t fileId) SetAudioPendingStatus() argument
903 int fileId = SetDefaultAudioApi10(MediaType::MEDIA_TYPE_AUDIO, "audio.mp3"); HWTEST_F() local
1120 int32_t fileId = CreateAudioApi10(MediaType::MEDIA_TYPE_AUDIO, "audio.mp3"); HWTEST_F() local
1137 int32_t fileId = CreateAudioApi10(MediaType::MEDIA_TYPE_AUDIO, "audio.mp3"); HWTEST_F() local
1181 int32_t fileId = CreateAudioApi10(MediaType::MEDIA_TYPE_AUDIO, "audio.mp3"); HWTEST_F() local
1237 int32_t fileId = CreateAudioApi10(MediaType::MEDIA_TYPE_AUDIO, "audio.mp3"); HWTEST_F() local
1280 int32_t fileId = CreateAudioApi10(MediaType::MEDIA_TYPE_AUDIO, "audio.mp3"); HWTEST_F() local
1299 int32_t fileId = SetDefaultAudioApi9(MediaType::MEDIA_TYPE_AUDIO, displayName, relativePath); HWTEST_F() local
1326 int32_t fileId = SetDefaultAudioApi9(MediaType::MEDIA_TYPE_AUDIO, "audio.mp3", relativePath); HWTEST_F() local
1371 int32_t fileId = SetDefaultAudioApi9(MediaType::MEDIA_TYPE_AUDIO, "audio.mp3", relativePath); HWTEST_F() local
1462 int fileId = SetDefaultAudioApi10(MediaType::MEDIA_TYPE_AUDIO, "audio.mp3"); HWTEST_F() local
1482 int fileId = SetDefaultAudioApi10(MediaType::MEDIA_TYPE_AUDIO, "audio.mp3"); HWTEST_F() local
1512 int32_t fileId = MediaLibraryAudioOperations::Create(createCmd); HWTEST_F() local
1550 int32_t fileId = MediaLibraryAudioOperations::Create(createCmd); HWTEST_F() local
1598 int32_t fileId = MediaLibraryAudioOperations::Create(createCmd); HWTEST_F() local
1647 int32_t fileId = MediaLibraryAudioOperations::Create(createCmd); HWTEST_F() local
1791 string fileId; HWTEST_F() local
[all...]
/foundation/multimedia/media_library/frameworks/services/media_permission/src/
H A Ddb_permission_handler.cpp44 static bool ParseFileIdFromPredicates(const DataShare::DataSharePredicates &predicates, string &fileId) in ParseFileIdFromPredicates() argument
46 // parse fileId from operationList in ParseFileIdFromPredicates()
59 fileId = static_cast<string>(item.GetSingle(VALUE_IDX)); in ParseFileIdFromPredicates()
64 // parse fileId from whereClause in ParseFileIdFromPredicates()
69 MEDIA_ERR_LOG("whereClause not include fileId"); in ParseFileIdFromPredicates()
83 fileId = values[argIndex]; in ParseFileIdFromPredicates()
84 if (!MediaLibraryDataManagerUtils::IsNumber(fileId)) { in ParseFileIdFromPredicates()
85 MEDIA_ERR_LOG("whereArgs fileId=%{public}s is not num", fileId.c_str()); in ParseFileIdFromPredicates()
91 static bool ParseInfoFromCmd(MediaLibraryCommand &cmd, string &fileId, int32_ argument
127 string fileId = ""; ExecuteCheckPermission() local
[all...]
/foundation/multimedia/media_library/frameworks/services/media_cloud_enhancement/src/
H A Denhancement_task_manager.cpp30 void EnhancementTaskManager::AddEnhancementTask(int32_t fileId, const string &photoId) in AddEnhancementTask() argument
33 fileId2PhotoId_.emplace(fileId, photoId); in AddEnhancementTask()
34 taskInProcess_.emplace(photoId, make_shared<EnhancementTaskInfo>(photoId, fileId, 0)); in AddEnhancementTask()
43 int32_t fileId = taskInProcess_[photoId]->fileId; in RemoveEnhancementTask() local
44 fileId2PhotoId_.erase(fileId); in RemoveEnhancementTask()
66 string EnhancementTaskManager::QueryPhotoIdByFileId(int32_t fileId) in QueryPhotoIdByFileId() argument
69 if (fileId2PhotoId_.find(fileId) != fileId2PhotoId_.end()) { in QueryPhotoIdByFileId()
70 return fileId2PhotoId_[fileId]; in QueryPhotoIdByFileId()
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/include/utils/
H A Dmultistages_capture_request_task_manager.h39 int32_t fileId; member
42 LowQualityPhotoInfo() : fileId(0), state(PhotoState::NORMAL), requestCount(0) {} in LowQualityPhotoInfo()
43 LowQualityPhotoInfo(int32_t fileId, PhotoState state, int32_t count) in LowQualityPhotoInfo()
44 : fileId(fileId), state(state), requestCount(count) {} in LowQualityPhotoInfo()
49 EXPORT static void AddPhotoInProgress(int32_t fileId, const std::string &photoId, bool isTrashed);
54 static std::string GetProcessingPhotoId(int32_t fileId);
/foundation/multimedia/media_library/frameworks/services/media_cloud_enhancement/include/
H A Denhancement_task_manager.h29 int32_t fileId; member
31 EnhancementTaskInfo() : taskId(""), fileId(0), requestCount(0) {} in EnhancementTaskInfo()
32 EnhancementTaskInfo(std::string taskId, int32_t fileId, int32_t count) in EnhancementTaskInfo()
33 : taskId(taskId), fileId(fileId), requestCount(count) {} in EnhancementTaskInfo()
38 EXPORT static void AddEnhancementTask(int32_t fileId, const std::string &photoId);
42 EXPORT static std::string QueryPhotoIdByFileId(int32_t fileId);
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_photo_operations_test/src/
H A Dmedialibrary_photo_operations_test.cpp359 string GetFilePath(int fileId) in GetFilePath() argument
361 if (fileId < 0) { in GetFilePath()
362 MEDIA_ERR_LOG("this file id %{private}d is invalid", fileId); in GetFilePath()
369 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in GetFilePath()
383 int32_t MakePhotoUnpending(int fileId, bool isMovingPhoto = false) in MakePhotoUnpending() argument
385 if (fileId < 0) { in MakePhotoUnpending()
386 MEDIA_ERR_LOG("this file id %{private}d is invalid", fileId); in MakePhotoUnpending()
390 string path = GetFilePath(fileId); in MakePhotoUnpending()
418 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in MakePhotoUnpending()
430 int32_t SetPendingOnly(int32_t pendingTime, int64_t fileId) in SetPendingOnly() argument
466 MovingPhotoEditByCache(int32_t fileId, string &fileName, string &videoFileName, bool isGraffiti = false) MovingPhotoEditByCache() argument
483 UpdateEditTime(int64_t fileId, int64_t time) UpdateEditTime() argument
506 int fileId = CreatePhotoApi9(mediaType, displayName, relativePath); SetDefaultPhotoApi9() local
520 int fileId = CreatePhotoApi10(mediaType, displayName, isMovingPhoto); SetDefaultPhotoApi10() local
705 TestPhotoDeleteParamsApi10(OperationObject oprnObject, int32_t fileId, ExceptIntFunction func) TestPhotoDeleteParamsApi10() argument
770 TestPhotoOpenParamsApi10(int32_t fileId, const string &mode, ExceptIntFunction func) TestPhotoOpenParamsApi10() argument
785 TestPhotoOpenEditParamsApi10(int32_t fileId, const string &addKey, const std::string &mode, ExceptIntFunction func) TestPhotoOpenEditParamsApi10() argument
811 GetPhotoPendingStatus(int32_t fileId) GetPhotoPendingStatus() argument
825 SetPhotoPendingStatus(int32_t pendingStatus, int32_t fileId) SetPhotoPendingStatus() argument
836 GetPhotoLastVisitTime(int32_t fileId) GetPhotoLastVisitTime() argument
867 int32_t fileId = GetInt32Val(MediaColumn::MEDIA_ID, resultSet); QueryPhotoIdByDisplayName() local
1234 int fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
1425 int32_t fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photosy.jpg"); HWTEST_F() local
1525 int32_t fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
1568 int32_t fileId = CreatePhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
1585 int32_t fileId = CreatePhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
1629 int32_t fileId = CreatePhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
1685 int32_t fileId = CreatePhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
1728 int32_t fileId = CreatePhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
1758 int32_t fileId = QueryPhotoIdByDisplayName("moving_photo_effect_mode.jpg"); HWTEST_F() local
1782 int32_t fileId = QueryPhotoIdByDisplayName("moving_photo_effect_mode_image_only.jpg"); HWTEST_F() local
1800 int32_t fileId = SetDefaultPhotoApi9(MediaType::MEDIA_TYPE_IMAGE, displayName, relativePath); HWTEST_F() local
1827 int32_t fileId = SetDefaultPhotoApi9(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg", relativePath); HWTEST_F() local
1872 int32_t fileId = SetDefaultPhotoApi9(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg", relativePath); HWTEST_F() local
1963 int fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
1984 int fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
2013 int fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
2040 int fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
2068 int fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
2098 int32_t fileId = MediaLibraryPhotoOperations::Create(createCmd); HWTEST_F() local
2136 int32_t fileId = MediaLibraryPhotoOperations::Create(createCmd); HWTEST_F() local
2187 int32_t fileId = MediaLibraryPhotoOperations::Create(createCmd); HWTEST_F() local
2239 int32_t fileId = MediaLibraryPhotoOperations::Create(createCmd); HWTEST_F() local
2270 int fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
2312 int fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
2334 int fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
2367 int fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "moving_photo.jpg", true); HWTEST_F() local
2509 int32_t fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "MultiStagesCaptureTest001.jpg"); HWTEST_F() local
2544 int32_t fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "MultiStagesCaptureTest001.jpg"); HWTEST_F() local
2710 int32_t fileId = CreatePhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
2817 int32_t fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
2856 int32_t fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_VIDEO, "photo.mp4"); HWTEST_F() local
2895 int32_t fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
2931 int32_t fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo.jpg"); HWTEST_F() local
2968 int32_t fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "moving_photo.jpg", true); HWTEST_F() local
2995 int32_t fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "moving_photo.jpg", true); HWTEST_F() local
3153 int32_t fileId = QueryPhotoIdByDisplayName("live_photo.jpg"); HWTEST_F() local
3334 int32_t fileId = QueryPhotoIdByDisplayName("moving_photo.jpg"); HWTEST_F() local
3359 int32_t fileId = CreatePhotoApi10(MediaType::MEDIA_TYPE_IMAGE, "photo1.jpg"); HWTEST_F() local
[all...]
H A Dmedialibrary_photo_edit_test.cpp118 int32_t fileId; member
162 PhotoMode GetPhotoMode(int fileId) in GetPhotoMode() argument
166 EXPECT_EQ((fileId > 0), true); in GetPhotoMode()
170 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in GetPhotoMode()
181 string GetFilePath(int fileId) in GetFilePath() argument
183 PhotoMode mode = GetPhotoMode(fileId); in GetFilePath()
187 bool IsEdited(int fileId) in IsEdited() argument
189 PhotoMode mode = GetPhotoMode(fileId); in IsEdited()
203 MEDIA_INFO_LOG("CreatePhotoAsset, fileId=%{public}d", ret); in CreatePhotoAsset()
225 DataShareValuesBucket GetValuesBucket(int32_t fileId, st argument
270 int32_t fileId = CreatePhotoAsset(); TakePhotoMock() local
[all...]
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/utils/
H A Dmultistages_capture_request_task_manager.cpp30 void MultiStagesCaptureRequestTaskManager::AddPhotoInProgress(int32_t fileId, const string &photoId, bool isTrashed) in AddPhotoInProgress() argument
33 fileId2PhotoId_.emplace(fileId, photoId); in AddPhotoInProgress()
38 photoIdInProcess_.emplace(photoId, make_shared<LowQualityPhotoInfo>(fileId, state, 0)); in AddPhotoInProgress()
63 int32_t fileId = photoIdInProcess_.at(photoId)->fileId; in RemovePhotoInProgress() local
64 fileId2PhotoId_.erase(fileId); in RemovePhotoInProgress()
96 std::string MultiStagesCaptureRequestTaskManager::GetProcessingPhotoId(int32_t fileId) in GetProcessingPhotoId() argument
99 if (fileId2PhotoId_.find(fileId) == fileId2PhotoId_.end()) { in GetProcessingPhotoId()
100 MEDIA_ERR_LOG("photo not in process, id=%{public}d", fileId); in GetProcessingPhotoId()
103 return fileId2PhotoId_[fileId]; in GetProcessingPhotoId()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/portrait_album_update_test/src/
H A Dportrait_album_update_test.cpp68 int64_t fileId; member
121 return MediaFileUtils::GetUriByExtrConditions(PhotoColumn::PHOTO_URI_PREFIX, to_string(data.fileId), extrUri); in GetCoverUri()
146 int64_t fileId = -1; in InsertPortraitToPhotos() local
161 int32_t ret = g_rdbStore->GetRaw()->Insert(fileId, PhotoColumn::PHOTOS_TABLE, valuesBucket); in InsertPortraitToPhotos()
164 MEDIA_INFO_LOG("InsertPhoto fileId is %{public}s", to_string(fileId).c_str()); in InsertPortraitToPhotos()
166 portraitData.fileId = fileId; in InsertPortraitToPhotos()
172 void InsertPortraitToImageFace(int64_t fileId, int totalFaces, const string &tagId) in InsertPortraitToImageFace() argument
180 valuesBucket.PutInt(MediaColumn::MEDIA_ID, fileId); in InsertPortraitToImageFace()
220 TrashPortrait(int64_t fileId, int64_t value = 1) TrashPortrait() argument
236 HidePortrait(int64_t fileId, int64_t value = 1) HidePortrait() argument
252 DismissPortrait(int64_t albumId, int64_t fileId) DismissPortrait() argument
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_cloud_enhancement_test/src/
H A Dmedialibrary_cloud_enhancement_test.cpp176 string GetFilePath(int fileId) in GetFilePath() argument
178 if (fileId < 0) { in GetFilePath()
179 MEDIA_ERR_LOG("this file id %{private}d is invalid", fileId); in GetFilePath()
186 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in GetFilePath()
200 int32_t MakePhotoUnpending(int fileId) in MakePhotoUnpending() argument
202 if (fileId < 0) { in MakePhotoUnpending()
203 MEDIA_ERR_LOG("this file id %{private}d is invalid", fileId); in MakePhotoUnpending()
207 string path = GetFilePath(fileId); in MakePhotoUnpending()
226 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in MakePhotoUnpending()
240 int fileId in SetDefaultPhotoApi10() local
254 auto fileId = SetDefaultPhotoApi10(MediaType::MEDIA_TYPE_IMAGE, displayName); PrepareHighQualityPhoto() local
270 UpdateCEAvailable(int32_t fileId, int32_t ceAvailable, bool hasCloudWaterMark = false) UpdateCEAvailable() argument
284 TestCloudEnhancementImage(vector<string> &columns, int32_t associateFileId, int32_t fileId, int32_t hidden, int32_t subtype) TestCloudEnhancementImage() argument
355 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
497 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
519 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
546 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
592 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
628 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
661 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
677 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
699 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
739 int32_t fileId = PrepareHighQualityPhoto(photoId, TESTING_DISPLAYNAME); HWTEST_F() local
911 int32_t fileId = PrepareHighQualityPhoto(string(taskId2), TESTING_DISPLAYNAME); HWTEST_F() local
942 int32_t fileId = PrepareHighQualityPhoto(string(taskId), TESTING_DISPLAYNAME); HWTEST_F() local
969 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
982 int32_t fileId = PrepareHighQualityPhoto(taskId, TESTING_DISPLAYNAME); HWTEST_F() local
1032 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
1064 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
1084 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
1101 int32_t fileId = PrepareHighQualityPhoto(TESTING_PHOTO_ID, TESTING_DISPLAYNAME); HWTEST_F() local
[all...]
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/
H A Dmultistages_photo_capture_manager.cpp79 int32_t fileId = stoi(columns[0]); in CancelRequestAndRemoveImage() local
80 string photoId = MultiStagesCaptureRequestTaskManager::GetProcessingPhotoId(fileId); in CancelRequestAndRemoveImage()
81 MEDIA_INFO_LOG("fileId: %{public}d, photoId: %{public}s", fileId, photoId.c_str()); in CancelRequestAndRemoveImage()
91 int fileId = std::stoi(columns[0]); // 0 indicates file id in HandleMultiStagesOperation() local
93 ProcessImage(fileId, deliveryMode); in HandleMultiStagesOperation()
138 int32_t fileId = 0; in SaveLowQualityImageInfo() local
140 valueObject.GetInt(fileId); in SaveLowQualityImageInfo()
265 int32_t fileId = 0; in UpdateLocation() local
267 valueObject.GetInt(fileId); in UpdateLocation()
282 AddImageInternal(int32_t fileId, const string &photoId, int32_t deferredProcType, bool discardable) AddImageInternal() argument
294 AddImage(int32_t fileId, const string &photoId, int32_t deferredProcType) AddImage() argument
335 int32_t fileId = 0; AddImage() local
397 int32_t fileId = GetInt32Val(MEDIA_DATA_DB_ID, resultSet); SyncWithDeferredProcSessionInternal() local
478 ProcessImage(int fileId, int deliveryMode) ProcessImage() argument
[all...]
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/
H A Dnstackx_dfile_frame.c88 static int32_t EncodeFileInfo(FileList *fileList, uint16_t fileId, uint8_t *buffer, size_t length, in EncodeFileInfo() argument
97 if (fileId == 0) { in EncodeFileInfo()
107 fileName = FileListGetRemotePath(fileList, fileId); in EncodeFileInfo()
109 fileName = FileListGetFileName(fileList, fileId); in EncodeFileInfo()
113 filesTotalLen = FileListGetFileSize(fileList, fileId); in EncodeFileInfo()
130 fileInfoUnit->fileId = htons(fileId); in EncodeFileInfo()
138 void EncodeFileHeaderFrameSp(FileList *fileList, int32_t *fileId, uint8_t *buffer, size_t length, in EncodeFileHeaderFrameSp() argument
146 int32_t lastAddedFileId = *fileId; in EncodeFileHeaderFrameSp()
173 DFILE_LOGE(TAG, "EncodeFileInfo fileId in EncodeFileHeaderFrameSp()
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
428 uint16_t fileId = ntohs(fileInfoUnit->fileId); DecodeFileHeaderFrameSp() local
467 uint16_t fileId; DecodeFileHeaderConfirmFrame() local
492 uint16_t fileId; GetFileIdFromFileDataFrame() local
506 uint16_t fileId; DecodeFileTransferDoneFrame() local
[all...]
/foundation/multimedia/media_library/frameworks/services/media_cloud_enhancement/include/enhancement_service/
H A Denhancement_service_callback.h34 int32_t fileId; member
39 CloudEnhancementFileInfo() : fileId(0), filePath(""), displayName(""), in CloudEnhancementFileInfo()
41 CloudEnhancementFileInfo(int32_t fileId, std::string filePath, std::string displayName, in CloudEnhancementFileInfo()
42 int32_t subtype, int32_t hidden) : fileId(fileId), filePath(filePath), in CloudEnhancementFileInfo()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_analysis_album_operation_test/src/
H A Dmedialibrary_analysis_album_operation_test.cpp65 int64_t fileId; member
109 return MediaFileUtils::GetUriByExtrConditions(PhotoColumn::PHOTO_URI_PREFIX, to_string(data.fileId), extrUri); in GetCoverUri()
140 int64_t fileId = -1; in InsertPortraitToPhotos() local
155 int32_t ret = g_rdbStore->GetRaw()->Insert(fileId, PhotoColumn::PHOTOS_TABLE, valuesBucket); in InsertPortraitToPhotos()
157 MEDIA_INFO_LOG("InsertPhoto fileId is %{public}s", to_string(fileId).c_str()); in InsertPortraitToPhotos()
159 portraitData.fileId = fileId; in InsertPortraitToPhotos()
165 void InsertPortraitToImageFace(int64_t fileId, int totalFaces, const vector<string> &tag) in InsertPortraitToImageFace() argument
171 valuesBucket.PutInt(MediaColumn::MEDIA_ID, fileId); in InsertPortraitToImageFace()
584 InsertPortraitAlbumCoverSatisfiedTestData(int fileId, CoverSatisfiedType coverSatisfiedType) InsertPortraitAlbumCoverSatisfiedTestData() argument
611 QueryAnalysisAlbumInfoByFileId(int32_t fileId) QueryAnalysisAlbumInfoByFileId() argument
630 int fileId = 1; HWTEST_F() local
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_album_source_test/src/
H A Dmedialibrary_album_source_test.cpp67 int64_t fileId; member
135 return PhotoColumn::PHOTO_URI_PREFIX + to_string(result.fileId) + "/" + in GetCoverUri()
160 int64_t fileId = -1; in InsertPhoto() local
181 int32_t ret = g_rdbStore->GetRaw()->Insert(fileId, PhotoColumn::PHOTOS_TABLE, valuesBucket); in InsertPhoto()
184 MEDIA_INFO_LOG("InsertPhoto fileId is %{public}s", to_string(fileId).c_str()); in InsertPhoto()
186 result.fileId = fileId; in InsertPhoto()
197 int64_t fileId = -1; in InsertPhotoWithEmptyPackageName() local
216 int32_t ret = g_rdbStore->GetRaw()->Insert(fileId, PhotoColum in InsertPhotoWithEmptyPackageName()
227 UpdatePhotoTrashed(int64_t &fileId, bool isDelete) UpdatePhotoTrashed() argument
247 HidePhoto(int64_t fileId, int value) HidePhoto() argument
263 UpdateDisplayName(int64_t &fileId, string &displayName) UpdateDisplayName() argument
331 DeletePhoto(int64_t &fileId) DeletePhoto() argument
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/album_count_cover_test/src/
H A Dalbum_count_cover_test.cpp132 string GetFilePath(int fileId) in GetFilePath() argument
134 if (fileId < 0) { in GetFilePath()
135 MEDIA_ERR_LOG("this file id %{private}d is invalid", fileId); in GetFilePath()
142 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in GetFilePath()
156 int32_t MakePhotoUnpending(int fileId, bool isRefresh) in MakePhotoUnpending() argument
158 if (fileId < 0) { in MakePhotoUnpending()
159 MEDIA_ERR_LOG("this file id %{private}d is invalid", fileId); in MakePhotoUnpending()
163 string path = GetFilePath(fileId); in MakePhotoUnpending()
182 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in MakePhotoUnpending()
202 int fileId in SetDefaultPhotoApi10() local
323 QueryFileAssetInfo(const int32_t fileId) QueryFileAssetInfo() argument
368 int32_t fileId = SetDefaultPhotoApi10(MEDIA_TYPE_IMAGE, displayName, isFreshAlbum); CreateImageAsset() local
377 int32_t fileId = SetDefaultPhotoApi10(MEDIA_TYPE_VIDEO, displayName, isFreshAlbum); CreateVideoAsset() local
432 FavoriteFileAsset(const int32_t fileId, bool favoriteState) FavoriteFileAsset() argument
446 DeletePermanentlyFileAsset(const int32_t fileId) DeletePermanentlyFileAsset() argument
[all...]
/foundation/multimedia/media_library/frameworks/services/media_cloud_sync_notify_handle/src/
H A Dcloud_sync_notify_handler.cpp70 MEDIA_WARN_LOG("cloud observer get no valid fileId and uri : %{public}s", uriString.c_str()); in HandleInsertEvent()
92 string fileId = uriString.substr(fileIdPos + 1, dateTakenPos - fileIdPos - 1); in HandleDeleteEvent() local
93 if (!IsCloudNotifyInfoValid(dateTaken) || !IsCloudNotifyInfoValid(fileId)) { in HandleDeleteEvent()
98 ThumbnailService::GetInstance()->DeleteAstcWithFileIdAndDateTaken(fileId, dateTaken); in HandleDeleteEvent()
99 MediaLibraryPhotoOperations::DropThumbnailSize(fileId); in HandleDeleteEvent()
122 string fileId = uriString.substr(fileIdPos + 1, formerDateTakenPos - fileIdPos - 1); in HandleTimeUpdateEvent() local
124 !IsCloudNotifyInfoValid(fileId)) { in HandleTimeUpdateEvent()
129 ThumbnailService::GetInstance()->UpdateAstcWithNewDateTaken(fileId, newDateTaken, formerDateTaken); in HandleTimeUpdateEvent()
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/
H A Dcloud_thumbnail_observer.cpp26 static inline bool isFileIdValid(const std::string& fileId) in isFileIdValid() argument
28 if (fileId.empty()) { in isFileIdValid()
31 for (char const& ch : fileId) { in isFileIdValid()
54 MEDIA_DEBUG_LOG("cloud observer get no valid fileId and uri : %{public}s", uriString.c_str()); in OnChange()

Completed in 22 milliseconds

1234567