/foundation/multimedia/av_session/services/session/server/test/ |
H A D | avcast_controller_callback_proxy_test.cpp | 70 std::string assetId = ""; in HWTEST_F() local 72 avCastControllerCallbackProxy_->OnKeyRequest(assetId, keyRequestData); in HWTEST_F() 83 std::string assetId = ""; in HWTEST_F() local 85 avCastControllerCallbackProxy_->OnKeyRequest(assetId, keyRequestData); in HWTEST_F()
|
H A D | avcast_controller_proxy_test.cpp | 141 std::string assetId = ""; in HWTEST_F() local 143 int32_t ret = avCastControllerProxy_->ProcessMediaKeyResponse(assetId, response); in HWTEST_F() 156 std::string assetId = ""; in HWTEST_F() local 158 int32_t ret = avCastControllerProxy_->ProcessMediaKeyResponse(assetId, response); in HWTEST_F() 171 std::string assetId = ""; in HWTEST_F() local 173 int32_t ret = avCastControllerProxy_->ProcessMediaKeyResponse(assetId, response); in HWTEST_F()
|
H A D | avsession_proxy_test.cpp | 90 void OnPlayFromAssetId(int64_t assetId) override {}; 193 std::string assetId = "assetId"; in HWTEST_F() local 194 meta.SetAssetId(assetId); in HWTEST_F() 461 std::string assetId = "assetId"; in HWTEST_F() local 462 meta.SetAssetId(assetId); in HWTEST_F() 488 std::string assetId = "assetId"; in HWTEST_F() local 489 meta.SetAssetId(assetId); in HWTEST_F() [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_smartalbum_map_operations.cpp | 132 static string GetAssetRecycle(const int32_t assetId, string &filePath, string &outTrashDirPath) in GetAssetRecycle() argument 146 static int32_t MakeRecycleDisplayName(const int32_t assetId, const string &trashDirPath, string &outRecyclePath) in MakeRecycleDisplayName() argument 148 shared_ptr<FileAsset> fileAsset = MediaLibraryObjectUtils::GetFileAssetFromId(to_string(assetId)); in MakeRecycleDisplayName() 150 MEDIA_ERR_LOG("Failed to get asset, assetId = %{public}d", assetId); in MakeRecycleDisplayName() 192 static int32_t UpdateChildRecycleInfoInDb(const int32_t assetId) in UpdateChildRecycleInfoInDb() argument 198 return MediaLibraryObjectUtils::ModifyInfoByIdInDb(cmd, to_string(assetId)); in UpdateChildRecycleInfoInDb() 347 static int32_t UpdateRecycleInfoInDb(const int32_t assetId, const string &realPath) in UpdateRecycleInfoInDb() argument 355 return MediaLibraryObjectUtils::ModifyInfoByIdInDb(cmd, to_string(assetId)); in UpdateRecycleInfoInDb() 442 CHECK_AND_RETURN_RET_LOG(fileAsset != nullptr, E_GET_ASSET_FAIL, "fileAsset is nullptr, assetId in RemoveTrashAssetsInfoUtil() 479 UpdateChildTrashInfoInDb(const int32_t assetId, const int64_t trashDate) UpdateChildTrashInfoInDb() argument 516 UpdateTrashInfoInDb(const int32_t assetId, const int64_t trashDate, string &recyclePath, const string &oldPath, const uint32_t trashType) UpdateTrashInfoInDb() argument 528 TrashDirAssetsInfoUtil(const int32_t assetId) TrashDirAssetsInfoUtil() argument 551 TrashFileAssetsInfoUtil(const int32_t assetId) TrashFileAssetsInfoUtil() argument [all...] |
H A D | medialibrary_album_fusion_utils.cpp | 328 int32_t assetId = 0; in QueryNoMatchedMap() local 335 if (resultSet->GetInt(colIndex, assetId) != NativeRdb::E_OK) { in QueryNoMatchedMap() 338 AddToMap(notMathedMap, assetId, albumId); in QueryNoMatchedMap() 641 static int32_t UpdateRelationship(NativeRdb::RdbStore *upgradeStore, const int32_t &assetId, in UpdateRelationship() argument 652 "UPDATE PhotoMap SET dirty = '4' WHERE " + PhotoMap::ASSET_ID + " = '" + to_string(assetId) + in UpdateRelationship() 667 static int32_t GenerateThumbnail(const int32_t &assetId, const std::string &targetPath, in GenerateThumbnail() argument 677 std::string uri = PHOTO_URI_PREFIX + to_string(assetId) + MediaFileUtils::GetExtraUri(displayName, targetPath) + in GenerateThumbnail() 715 int32_t MediaLibraryAlbumFusionUtils::CopyLocalSingleFile(NativeRdb::RdbStore *upgradeStore, const int32_t &assetId, in CopyLocalSingleFile() argument 723 assetId, ownerAlbumId); in CopyLocalSingleFile() 758 err = UpdateRelationship(upgradeStore, assetId, newAssetI in CopyLocalSingleFile() 770 CopyCloudSingleFile(NativeRdb::RdbStore *upgradeStore, const int32_t &assetId, const int32_t &ownerAlbumId, shared_ptr<NativeRdb::ResultSet> &resultSet, int64_t &newAssetId) CopyCloudSingleFile() argument 834 HandleRestData(NativeRdb::RdbStore *upgradeStore, const int32_t &assetId, const std::vector<int32_t> &restOwnerAlbumIds, int32_t &handledCount) HandleRestData() argument 897 HandleSingleFileCopy(NativeRdb::RdbStore *upgradeStore, const int32_t &assetId, const int32_t &ownerAlbumId, int64_t &newAssetId) HandleSingleFileCopy() argument 1494 HandleNewCloudDirtyDataImp(NativeRdb::RdbStore *upgradeStore, shared_ptr<NativeRdb::ResultSet> &resultSet, std::vector<int32_t> &restOwnerAlbumIds, int32_t &assetId) HandleNewCloudDirtyDataImp() argument 1535 int32_t assetId = it->first; HandleNewCloudDirtyData() local [all...] |
/foundation/multimedia/av_session/services/session/adapter/ |
H A D | avsession_dynamic_insight.cpp | 120 bool InsightAdapter::GetPlayIntentParam(const std::string& bundleName, const std::string& assetId, in GetPlayIntentParam() argument 155 innerParams.SetParam("entityId", OHOS::AAFwk::String::Box(assetId)); in GetPlayIntentParam() 162 wantParam->SetParam("entityId", AppExecFwk::WantParams::GetInterfaceByType(interfaceType, assetId)); in GetPlayIntentParam() 196 extern "C" bool IsSupportPlayIntent(const std::string& bundleName, const std::string& assetId) in IsSupportPlayIntent() argument 199 return InsightAdapter::GetInsightAdapterInstance().GetPlayIntentParam(bundleName, assetId, executeParam); in IsSupportPlayIntent() 202 extern "C" int32_t StartAVPlayback(const std::string& bundleName, const std::string& assetId) in StartAVPlayback() argument 205 bool isSupport = InsightAdapter::GetInsightAdapterInstance().GetPlayIntentParam(bundleName, assetId, executeParam); in StartAVPlayback()
|
H A D | ability_manager_adapter.cpp | 48 typedef bool (*IsSupportPlayIntentFunc)(const std::string& bundleName, const std::string& assetId); in StartAbilityByCall() 58 typedef int32_t (*StartAVPlaybackFunc)(const std::string& bundleName, const std::string& assetId); in StartAbilityByCall()
|
H A D | avsession_dynamic_insight.h | 31 bool GetPlayIntentParam(const std::string& bundleName, const std::string& assetId,
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/ |
H A D | medialibrary_album_fusion_utils.h | 49 EXPORT static int32_t HandleSingleFileCopy(NativeRdb::RdbStore *upgradeStore, const int32_t &assetId, 59 EXPORT static int32_t CopyLocalSingleFile(NativeRdb::RdbStore *upgradeStore, const int32_t &assetId, 61 EXPORT static int32_t CopyCloudSingleFile(NativeRdb::RdbStore *upgradeStore, const int32_t &assetId, 75 static int32_t HandleRestData(NativeRdb::RdbStore *upgradeStore, const int32_t &assetId,
|
/foundation/multimedia/ringtone_library/test/unittest/ringtone_helper_test/src/ |
H A D | vibrate_asset_test.cpp | 43 auto assetId = g_vibrateAsset->GetId(); in HWTEST_F() local 44 EXPECT_EQ(assetId, 0); in HWTEST_F() 47 assetId = g_vibrateAsset->GetId(); in HWTEST_F() 48 EXPECT_EQ(assetId, id); in HWTEST_F()
|
H A D | ringtone_asset_test.cpp | 64 auto assetId = g_ringtoneAsset->GetId(); in HWTEST_F() local 65 EXPECT_EQ(assetId, 0); in HWTEST_F() 68 assetId = g_ringtoneAsset->GetId(); in HWTEST_F() 69 EXPECT_EQ(assetId, id); in HWTEST_F()
|
/foundation/multimedia/av_session/frameworks/common/src/ |
H A D | avcontrol_command.cpp | 101 && parcel.WriteInt64(std::get<int64_t>(param_)), false, "write play from assetId failed"); in Marshalling() 236 int32_t AVControlCommand::SetAssetId(const std::string& assetId) in SetAssetId() argument 238 if (assetId.empty()) { in SetAssetId() 241 param_ = assetId; in SetAssetId() 246 int32_t AVControlCommand::GetAssetId(std::string& assetId) const in GetAssetId() 251 assetId = std::get<std::string>(param_); in GetAssetId()
|
/foundation/multimedia/av_session/frameworks/native/session/src/ |
H A D | avcast_controller_callback_client.cpp | 126 void AVCastControllerCallbackClient::OnKeyRequest(const std::string& assetId, const std::vector<uint8_t>& in OnKeyRequest() argument 133 .AVSessionPostTask([callback, assetId, keyRequestData]() { in OnKeyRequest() 134 callback->OnKeyRequest(assetId, keyRequestData); in OnKeyRequest()
|
H A D | avsession_callback_client.cpp | 208 void AVSessionCallbackClient::OnPlayFromAssetId(int64_t assetId) in OnPlayFromAssetId() argument 214 .AVSessionPostTask([callback, assetId]() { callback->OnPlayFromAssetId(assetId); }, std::string(__FUNCTION__)), in OnPlayFromAssetId()
|
/foundation/multimedia/av_session/interfaces/inner_api/native/session/include/ |
H A D | avcontrol_command.h | 76 int32_t SetAssetId(const std::string& assetId); 77 int32_t GetAssetId(std::string& assetId) const;
|
H A D | avsession_info.h | 125 virtual void OnKeyRequest(const std::string& assetId, const std::vector<uint8_t>& keyRequestData) = 0; 271 * @brief Play from assetId. 273 * @param assetId Id for asset 276 virtual void OnPlayFromAssetId(int64_t assetId) = 0; 418 virtual void OnKeyRequest(const std::string& assetId, const std::vector<uint8_t>& keyRequestData) = 0;
|
H A D | avmeta_data.h | 94 void SetAssetId(const std::string& assetId); 148 void SetPreviousAssetId(const std::string& assetId); 151 void SetNextAssetId(const std::string& assetId); 154 void SetSkipIntervals(int32_t assetId);
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/cloud/ |
H A D | cloud_store_types.h | 65 std::string assetId; member 81 return (version == asset.version) && (name == asset.name) && (assetId == asset.assetId) && in operator ==()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/ |
H A D | virtual_cloud_data_translate.cpp | 25 len += Parcel::GetStringLen(asset.assetId); in CalculateLens() 49 parcel.WriteString(asset.assetId); in WriteAsset() 63 parcel.ReadString(asset.assetId); in ReadAsset()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/cloud/ |
H A D | cloud_sync_tag_assets.cpp | 62 asset.assetId.clear(); in TagSingleAssetForUpload() 185 coveredAsset.assetId = beCoveredAsset.assetId; in TagAssets() 271 covered.assetId = beCovered.assetId; in TagAsset() 287 } else if (asset.assetId.empty()) { in MarkAssetForUpload() 290 } else if (!asset.assetId.empty()) { in MarkAssetForUpload()
|
/foundation/multimedia/av_session/frameworks/js/napi/session/src/ |
H A D | napi_control_command.cpp | 294 std::string assetId; in GetAssetId() local 295 auto status = NapiUtils::GetNamedProperty(env, in, "parameter", assetId); in GetAssetId() 301 CHECK_AND_RETURN_RET_LOG(out.SetAssetId(assetId) == AVSESSION_SUCCESS, napi_invalid_arg, "set parameter failed"); in GetAssetId() 307 std::string assetId; in SetAssetId() local 308 CHECK_AND_RETURN_RET_LOG(in.GetAssetId(assetId) == AVSESSION_SUCCESS, napi_invalid_arg, "get parameter failed"); in SetAssetId() 311 auto status = NapiUtils::SetValue(env, assetId, property); in SetAssetId()
|
/foundation/multimedia/av_session/services/session/server/ |
H A D | avcast_controller_item.h | 53 void OnKeyRequest(const std::string& assetId, const std::vector<uint8_t>& keyRequestData) override; 75 int32_t ProcessMediaKeyResponse(const std::string& assetId, const std::vector<uint8_t>& response) override;
|
/foundation/multimedia/av_session/frameworks/native/session/test/fuzztest/avsessioncallbackstub_fuzzer/ |
H A D | avsession_callbackclient_fuzzer.cpp | 56 void OnPlayFromAssetId(int64_t assetId) override; 151 void TestAVSessionCallback::OnPlayFromAssetId(int64_t assetId) in OnPlayFromAssetId() argument 263 auto assetId = *(reinterpret_cast<const int64_t*>(data)); in FuzzTestInner2() local 265 aVSessionCallbackClient.OnPlayFromAssetId(assetId); in FuzzTestInner2()
|
/foundation/multimedia/av_session/frameworks/native/session/test/fuzztest/avsessionserviceproxy_fuzzer/ |
H A D | avsessionserviceproxy_fuzzer.cpp | 41 std::string assetId(reinterpret_cast<const char*>(data), size); in FuzzDoProxyTaskOne() 65 avServiceProxy->StartAVPlayback(testBundleName, assetId); in FuzzDoProxyTaskOne() 66 avServiceProxy->CreateController(assetId, controller); in FuzzDoProxyTaskOne() 67 avServiceProxy->CreateControllerInner(assetId, object); in FuzzDoProxyTaskOne()
|
/foundation/multimedia/av_session/services/session/ipc/proxy/ |
H A D | avcast_controller_callback_proxy.h | 45 void OnKeyRequest(const std::string &assetId, const std::vector<uint8_t> &keyRequestData) override;
|