Home
last modified time | relevance | path

Searched refs:mediaType (Results 1 - 25 of 197) sorted by relevance

12345678

/foundation/filemanagement/dfs_service/test/unittests/cloud_file_kit_inner/big_data_statistics/
H A Dgallery_download_file_stat_test.cpp113 uint32_t mediaType = TYPE_DOWNLOAD_FILE_IMAGE; in HWTEST_F() local
116 galleryDownloadFileStat.UpdateDownloadStat(mediaType, size, duration); in HWTEST_F()
130 uint32_t mediaType = TYPE_DOWNLOAD_FILE_VIDEO; in HWTEST_F() local
133 galleryDownloadFileStat.UpdateDownloadStat(mediaType, size, duration); in HWTEST_F()
147 uint32_t mediaType = TYPE_DOWNLOAD_FILE_IMAGE; in HWTEST_F() local
150 galleryDownloadFileStat.UpdateDownloadStat(mediaType, size, duration); in HWTEST_F()
153 galleryDownloadFileStat.UpdateDownloadStat(mediaType, size, duration); in HWTEST_F()
156 galleryDownloadFileStat.UpdateDownloadStat(mediaType, size, duration); in HWTEST_F()
159 galleryDownloadFileStat.UpdateDownloadStat(mediaType, size, duration); in HWTEST_F()
162 galleryDownloadFileStat.UpdateDownloadStat(mediaType, siz in HWTEST_F()
176 uint32_t mediaType = TYPE_DOWNLOAD_FILE_VIDEO; HWTEST_F() local
208 uint32_t mediaType = TYPE_DOWNLOAD_FILE_IMAGE; HWTEST_F() local
239 uint32_t mediaType = TYPE_DOWNLOAD_FILE_VIDEO; HWTEST_F() local
273 uint32_t mediaType = TYPE_DOWNLOAD_FILE_IMAGE; HWTEST_F() local
292 uint32_t mediaType = TYPE_DOWNLOAD_FILE_VIDEO; HWTEST_F() local
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_scanner_test/src/
H A Dmedialibrary_scanner_test.cpp97 MediaType mediaType = MimeTypeUtils::GetMediaTypeFromMimeType(path); in HWTEST_F() local
98 EXPECT_EQ(mediaType, MEDIA_TYPE_FILE); in HWTEST_F()
100 mediaType = MimeTypeUtils::GetMediaTypeFromMimeType(path); in HWTEST_F()
101 EXPECT_EQ(mediaType, MEDIA_TYPE_AUDIO); in HWTEST_F()
103 mediaType = MimeTypeUtils::GetMediaTypeFromMimeType(path); in HWTEST_F()
104 EXPECT_EQ(mediaType, MEDIA_TYPE_VIDEO); in HWTEST_F()
106 mediaType = MimeTypeUtils::GetMediaTypeFromMimeType(path); in HWTEST_F()
107 EXPECT_EQ(mediaType, MEDIA_TYPE_IMAGE); in HWTEST_F()
113 string mediaType = MimeTypeUtils::GetMimeTypeFromExtension(extension); in HWTEST_F() local
114 EXPECT_EQ(mediaType, "tex in HWTEST_F()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/media_event_test/src/
H A Devent_create_test.cpp64 int32_t CreateFileAsset(const string &relativePath, const string &displayName, const MediaType &mediaType) in CreateFileAsset() argument
68 valuesBucket.Put(MEDIA_DATA_DB_MEDIA_TYPE, mediaType); in CreateFileAsset()
100 MediaType mediaType = MEDIA_TYPE_IMAGE; in HWTEST_F() local
101 int rowId = CreateFileAsset(relativePath, displayName, mediaType); in HWTEST_F()
104 auto retVal = CreateFileAsset(relativePath, displayName, mediaType); in HWTEST_F()
117 MediaType mediaType = MEDIA_TYPE_IMAGE; in HWTEST_F() local
118 auto retVal = CreateFileAsset(relativePath, displayName, mediaType); in HWTEST_F()
128 MediaType mediaType = MEDIA_TYPE_IMAGE; in HWTEST_F() local
129 auto retVal = CreateFileAsset(relativePath, displayName, mediaType); in HWTEST_F()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_dfx_test/src/
H A Dmedialibrary_dfx_test.cpp55 int32_t mediaType = 1; in HWTEST_F() local
56 int32_t result = DfxManager::GetInstance()->HandleHighMemoryThumbnail(path, mediaType, width, height); in HWTEST_F()
65 int32_t mediaType = 1; in HWTEST_F() local
66 int32_t result = DfxManager::GetInstance()->HandleHighMemoryThumbnail(path, mediaType, width, height); in HWTEST_F()
75 int32_t mediaType = 1; in HWTEST_F() local
76 int32_t result = DfxManager::GetInstance()->HandleHighMemoryThumbnail(path, mediaType, width, height); in HWTEST_F()
85 int32_t mediaType = 2; in HWTEST_F() local
86 int32_t result = DfxManager::GetInstance()->HandleHighMemoryThumbnail(path, mediaType, width, height); in HWTEST_F()
95 int32_t mediaType = 2; in HWTEST_F() local
96 int32_t result = DfxManager::GetInstance()->HandleHighMemoryThumbnail(path, mediaType, widt in HWTEST_F()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_tool/src/command/
H A Dsend_command_v10.cpp39 Media::MediaType mediaType {Media::MediaType::MEDIA_TYPE_DEFAULT};
49 str.append("mediaType:"); in ToStr()
50 str.append(std::to_string(static_cast<uint32_t>(mediaType))); in ToStr()
67 fileInfo.mediaType = MediaFileUtils::GetMediaType(fileInfo.displayName); in GetFileInfo()
71 for (auto mediaType : mediaTypes) { in GetFileInfo()
72 if (mediaType != fileInfo.mediaType) { in GetFileInfo()
129 const MediaType mediaType = fileInfo.mediaType; in CreateRecord() local
130 std::string tableName = UserFileClientEx::GetTableNameByMediaType(mediaType); in CreateRecord()
[all...]
/foundation/multimedia/media_library/frameworks/services/media_permission/src/
H A Dread_write_permission_handler.cpp300 static void FillV10Perms(const MediaType mediaType, const bool containsRead, const bool containsWrite, in FillV10Perms() argument
304 if (mediaType == MEDIA_TYPE_IMAGE || mediaType == MEDIA_TYPE_VIDEO || in FillV10Perms()
305 mediaType == Media::MEDIA_TYPE_PHOTO || mediaType == Media::MEDIA_TYPE_ALBUM) { in FillV10Perms()
307 } else if (mediaType == MEDIA_TYPE_AUDIO) { in FillV10Perms()
309 } else if (mediaType == MEDIA_TYPE_FILE) { in FillV10Perms()
316 if (mediaType == MEDIA_TYPE_IMAGE || mediaType == MEDIA_TYPE_VIDEO || in FillV10Perms()
317 mediaType in FillV10Perms()
333 MediaType mediaType = MediaFileUri::GetMediaTypeFromUri(cmd.GetUri().ToString()); CheckOpenFilePermission() local
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/background_cloud_file_processor_test/src/
H A Dbackground_cloud_file_processor_test.cpp85 string InsertPhoto(const MediaType &mediaType) in InsertPhoto() argument
93 string displayName = mediaType == MEDIA_TYPE_VIDEO ? (title + ".mp4") : (title + ".jpg"); in InsertPhoto()
107 valuesBucket.PutInt(MediaColumn::MEDIA_TYPE, mediaType); in InsertPhoto()
109 valuesBucket.PutLong(MediaColumn::MEDIA_SIZE, mediaType == MEDIA_TYPE_VIDEO ? videoSize : imageSize); in InsertPhoto()
110 valuesBucket.PutInt(MediaColumn::MEDIA_DURATION, mediaType == MEDIA_TYPE_VIDEO ? videoDuration : imageDuration); in InsertPhoto()
111 valuesBucket.PutInt(PhotoColumn::PHOTO_WIDTH, mediaType == MEDIA_TYPE_VIDEO ? videoWidth : imageWidth); in InsertPhoto()
112 valuesBucket.PutInt(PhotoColumn::PHOTO_HEIGHT, mediaType == MEDIA_TYPE_VIDEO ? videoHeight : imageHeight); in InsertPhoto()
113 valuesBucket.PutString(MediaColumn::MEDIA_MIME_TYPE, mediaType == MEDIA_TYPE_VIDEO ? videoMimeType : imageMimeType); in InsertPhoto()
130 vector<string> PreparePhotos(const int count, const MediaType &mediaType) in PreparePhotos() argument
134 string path = InsertPhoto(mediaType); in PreparePhotos()
[all...]
/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloud_file_kit_inner/big_data_statistics/
H A Dgallery_download_file_stat.h56 void UpdateDownloadStat(uint32_t mediaType, uint64_t size, uint64_t duration);
63 void UpdateDownloadSpeedStat(uint32_t mediaType, uint64_t size, uint64_t duration);
64 void UpdateDownloadSizeStat(uint32_t mediaType, uint64_t size, uint64_t duration);
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/dfx/
H A Dmultistages_capture_dfx_result.cpp29 void MultiStagesCaptureDfxResult::Report(const std::string &photoId, const int32_t result, const int32_t mediaType) in Report() argument
36 VariantMap map = {{KEY_PHOTO_ID, photoId}, {KEY_RESULT, result}, {KEY_MEDIA_TYPE, mediaType}}; in Report()
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_medialibrary_manager.cpp71 int32_t MtpMedialibraryManager::GetHandles(int32_t parentId, vector<int> &outHandles, MediaType mediaType) in GetHandles() argument
74 if (mediaType != MEDIA_TYPE_DEFAULT) { in GetHandles()
78 to_string(mediaType)); in GetHandles()
110 MediaType mediaType; in GetHandles() local
115 int32_t errCode = MtpDataUtils::SolveHandlesFormatData(context->format, extension, mediaType); in GetHandles()
121 if (mediaType == MEDIA_TYPE_DEFAULT) { in GetHandles()
125 } else if (mediaType == MEDIA_TYPE_ALL) { in GetHandles()
132 whereArgs = {to_string(context->parent), to_string(mediaType)}; in GetHandles()
378 MediaType mediaType; in SendObjectInfo() local
379 errCode = MtpDataUtils::SolveSendObjectFormatData(context->format, mediaType); in SendObjectInfo()
486 MediaType mediaType; SetObjectPropValue() local
569 MediaType mediaType; GetAllRootsChildren() local
591 MediaType mediaType; GetHandle() local
649 MediaType mediaType; GetRootsDepthChildren() local
664 MediaType mediaType; GetHandleDepthChildren() local
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dbackground_cloud_file_processor.cpp175 int32_t mediaType = in ParseDownloadFiles() local
177 if (mediaType == static_cast<int32_t>(MEDIA_TYPE_VIDEO)) { in ParseDownloadFiles()
180 downloadFiles.mediaType = MEDIA_TYPE_VIDEO; in ParseDownloadFiles()
185 downloadFiles.mediaType = MEDIA_TYPE_IMAGE; in ParseDownloadFiles()
222 if (downloadFiles.mediaType == MEDIA_TYPE_VIDEO) { in DownloadCloudFilesExecutor()
311 int32_t mediaType = in ParseUpdateData() local
323 if (mediaType == static_cast<int32_t>(MEDIA_TYPE_VIDEO)) { in ParseUpdateData()
326 updateData.mediaType = MEDIA_TYPE_VIDEO; in ParseUpdateData()
331 updateData.mediaType = MEDIA_TYPE_IMAGE; in ParseUpdateData()
378 metadata->SetFileMediaType(updateData.mediaType); in UpdateCloudDataExecutor()
[all...]
H A Dmedialibrary_audio_operations.cpp168 int32_t mediaType = 0; in CreateV9() local
169 CHECK_AND_RETURN_RET(GetInt32FromValuesBucket(values, AudioColumn::MEDIA_TYPE, mediaType), in CreateV9()
171 if (mediaType != MediaType::MEDIA_TYPE_AUDIO) { in CreateV9()
178 "relativePath=%{private}s, mediaType=%{public}d", relativePath.c_str(), mediaType); in CreateV9()
181 "displayName=%{private}s, mediaType=%{public}d", displayName.c_str(), mediaType); in CreateV9()
228 int32_t mediaType = 0; in CreateV10() local
229 CHECK_AND_RETURN_RET(GetInt32FromValuesBucket(values, AudioColumn::MEDIA_TYPE, mediaType), in CreateV10()
231 CHECK_AND_RETURN_RET(mediaType in CreateV10()
[all...]
/foundation/multimedia/media_library/interfaces/inner_api/media_library_helper/include/
H A Dmedia_file_uri.h42 std::string MediaFileUriConstruct(MediaType mediaType, const std::string &networkId, const std::string &fileId,
48 EXPORT explicit MediaFileUri(MediaType mediaType, in MediaFileUri() argument
53 MediaFileUriConstruct(mediaType, fileId, networkId, apiVersion, extrUri)) {} in MediaFileUri()
68 EXPORT static std::string GetMediaTypeUri(MediaType mediaType, const int32_t &apiVersion);
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/
H A Dmultistages_capture_manager.cpp65 int32_t mediaType = GetInt32Val(MEDIA_DATA_DB_MEDIA_TYPE, resultSet); in RemovePhotos() local
66 switch (mediaType) { in RemovePhotos()
108 int32_t mediaType = GetInt32Val(MEDIA_DATA_DB_MEDIA_TYPE, resultSet); in RestorePhotos() local
109 switch (mediaType) { in RestorePhotos()
/foundation/filemanagement/dfs_service/frameworks/native/cloud_file_kit_inner/src/big_data_statistics/
H A Dgallery_download_file_stat.cpp107 void GalleryDownloadFileStat::UpdateDownloadSpeedStat(uint32_t mediaType, uint64_t size, uint64_t duration) in UpdateDownloadSpeedStat() argument
118 if (mediaType == TYPE_DOWNLOAD_FILE_IMAGE && indexSpeed < stat_.imageDownloadSpeed.size()) { in UpdateDownloadSpeedStat()
121 if (mediaType == TYPE_DOWNLOAD_FILE_VIDEO && indexSpeed < stat_.videoDownloadSpeed.size()) { in UpdateDownloadSpeedStat()
126 void GalleryDownloadFileStat::UpdateDownloadSizeStat(uint32_t mediaType, uint64_t size, uint64_t duration) in UpdateDownloadSizeStat() argument
129 if (mediaType == TYPE_DOWNLOAD_FILE_IMAGE) { in UpdateDownloadSizeStat()
146 void GalleryDownloadFileStat::UpdateDownloadStat(uint32_t mediaType, uint64_t size, uint64_t duration) in UpdateDownloadStat() argument
148 UpdateDownloadSizeStat(mediaType, size, duration); in UpdateDownloadStat()
149 UpdateDownloadSpeedStat(mediaType, size, duration); in UpdateDownloadStat()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmedia_volume.cpp33 void MediaVolume::SetSize(const int mediaType, const int64_t size) in SetSize() argument
35 mediaVolumeMap_[mediaType] = size; in SetSize()
H A Dmedia_file_uri.cpp38 static std::string SolveMediaTypeV9(MediaType mediaType) in SolveMediaTypeV9() argument
40 switch (mediaType) { in SolveMediaTypeV9()
53 static std::string SolveMediaTypeV10(MediaType mediaType) in SolveMediaTypeV10() argument
55 switch (mediaType) { in SolveMediaTypeV10()
67 static std::string SolveMediaType(MediaType mediaType) in SolveMediaType() argument
69 switch (mediaType) { in SolveMediaType()
101 std::string MediaFileUri::GetMediaTypeUri(MediaType mediaType, const int32_t &apiVersion) in GetMediaTypeUri() argument
105 return SolveMediaTypeV9(mediaType); in GetMediaTypeUri()
107 return SolveMediaTypeV10(mediaType); in GetMediaTypeUri()
110 return SolveMediaType(mediaType); in GetMediaTypeUri()
114 MediaFileUriConstruct(MediaType mediaType, const std::string &fileId, const std::string &networkId, const int32_t &apiVersion, const std::string &extrUri) MediaFileUriConstruct() argument
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_helper_test/src/
H A Dmedia_volume_test.cpp62 int mediaType = MEDIA_TYPE_AUDIO; in HWTEST_F() local
64 mediaVolume.SetSize(mediaType, size); in HWTEST_F()
/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/
H A Dmedia_scanner_db.cpp86 static void SetValuesFromMetaDataAndType(const Metadata &metadata, ValuesBucket &values, MediaType mediaType, in SetValuesFromMetaDataAndType() argument
90 if (mediaType == MediaType::MEDIA_TYPE_IMAGE || mediaType == MEDIA_TYPE_VIDEO) { in SetValuesFromMetaDataAndType()
104 } else if (mediaType == MediaType::MEDIA_TYPE_AUDIO) { in SetValuesFromMetaDataAndType()
192 MediaType mediaType = metadata.GetFileMediaType(); in SetValuesFromMetaDataApi9() local
196 values.PutInt(MEDIA_DATA_DB_MEDIA_TYPE, mediaType); in SetValuesFromMetaDataApi9()
205 SetValuesFromMetaDataAndType(metadata, values, mediaType, table); in SetValuesFromMetaDataApi9()
237 MediaType mediaType = metadata.GetFileMediaType(); in SetValuesFromMetaDataApi10() local
240 values.PutInt(MediaColumn::MEDIA_TYPE, mediaType); in SetValuesFromMetaDataApi10()
252 if (mediaType in SetValuesFromMetaDataApi10()
282 GetTableNameByPath(int32_t mediaType, string &tableName, const string &path = �) GetTableNameByPath() argument
346 MediaType mediaType = metadata.GetFileMediaType(); InsertMetadata() local
389 GetUriStringInUpdate(MediaType mediaType, MediaLibraryApi api, string &mediaTypeUri, ValuesBucket &values) GetUriStringInUpdate() argument
420 MediaType mediaType = metadata.GetFileMediaType(); UpdateMetadata() local
734 int32_t mediaType = GetInt32Val(MEDIA_DATA_DB_MEDIA_TYPE, resultSet); GetIdsFromFilePath() local
894 NotifyDatabaseChange(const MediaType mediaType) NotifyDatabaseChange() argument
[all...]
/foundation/CastEngine/castengine_wifi_display/services/common/
H A Devent_channel.h31 MediaType mediaType; member
42 MediaType mediaType; member
/foundation/multimedia/av_codec/services/media_engine/filters/
H A Ddemuxer_filter.cpp222 MediaType mediaType; in HandleTrackInfos() local
223 if (!meta->GetData(Tag::MEDIA_TYPE, mediaType)) { in HandleTrackInfos()
224 MEDIA_LOG_E_SHORT("mediaType not found, index: %zu", index); in HandleTrackInfos()
227 if (ShouldTrackSkipped(mediaType, mime, index)) { in HandleTrackInfos()
231 if (!FindStreamType(streamType, mediaType, mime, index)) { in HandleTrackInfos()
618 bool DemuxerFilter::FindStreamType(StreamType &streamType, MediaType mediaType, std::string mime, size_t index) in FindStreamType() argument
620 MEDIA_LOG_I_SHORT("mediaType is %{public}d", static_cast<int32_t>(mediaType)); in FindStreamType()
621 if (mediaType == Plugins::MediaType::SUBTITLE) { in FindStreamType()
623 } else if (mediaType in FindStreamType()
638 ShouldTrackSkipped(Plugins::MediaType mediaType, std::string mime, size_t index) ShouldTrackSkipped() argument
760 DisableMediaTrack(Plugins::MediaType mediaType) DisableMediaTrack() argument
[all...]
/foundation/CastEngine/castengine_wifi_display/services/impl/wfd/wfd_sink/
H A Dwfd_rtp_consumer.cpp119 mediaTypePaused_ = statusMsg->mediaType; in UpdateOperation()
236 mediaData->mediaType = MEDIA_TYPE_AUDIO; in OnRtpUnpackCallback()
252 mediaData->mediaType = MEDIA_TYPE_VIDEO; in OnRtpUnpackCallback()
276 sps->mediaType = MEDIA_TYPE_VIDEO; in OnRtpUnpackCallback()
291 pps->mediaType = MEDIA_TYPE_VIDEO; in OnRtpUnpackCallback()
299 mediaData->mediaType = MEDIA_TYPE_VIDEO; in OnRtpUnpackCallback()
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtsp/src/
H A Drtsp_sdp.cpp53 mediaType = sm[1].str(); in Parse()
86 if (media_.mediaType != "video") { in GetVideoSps()
99 if (media_.mediaType != "video") { in GetVideoPps()
371 if (media_.mediaType != "audio") {
386 if (media_.mediaType != "audio") {
401 if (media_.mediaType != "audio") {
527 if (track->media_.mediaType == "video") {
538 if (track->media_.mediaType == "audio") {
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/
H A Dmedialibrary_asset_operations.h132 EXPORT static int32_t CreateAssetPathById(int32_t fileId, int32_t mediaType, const std::string &extension,
161 const std::string &extention, int32_t mediaType);
162 static int32_t CheckDisplayNameWithType(const std::string &displayName, int32_t mediaType);
163 static int32_t CheckExtWithType(const std::string &extention, int32_t mediaType);
164 static int32_t CheckRelativePathWithType(const std::string &relativePath, int32_t mediaType);
165 static void GetAssetRootDir(int32_t mediaType, std::string &rootDirPath);
182 static void InvalidateThumbnail(const std::string &fileId, int32_t mediaType);
211 static int32_t CreateAssetRealName(int32_t fileId, int32_t mediaType, const std::string &extension,
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/
H A Dbackup_file_utils.h41 static int32_t CreateAssetPathById(int32_t fileId, int32_t mediaType, const std::string &extension,
44 static int32_t CreatePath(int32_t mediaType, const std::string &displayName, std::string &path);
78 static int32_t CreateAssetRealName(int32_t fileId, int32_t mediaType, const std::string &extension,

Completed in 13 milliseconds

12345678