/ohos5.0/base/msdp/device_status/utils/common/src/ |
H A D | drag_data_packer.cpp | 85 for (const auto& shadowInfo : dragData.shadowInfos) { in CheckDragData() local 133 ShadowInfo shadowInfo; in UnMarshalling() local 138 CHKPR(shadowInfo.pixelMap, RET_ERR); in UnMarshalling() 139 shadowInfos.push_back(shadowInfo); in UnMarshalling() 147 CHKPR(shadowInfo.pixelMap, RET_ERR); in PackUpShadowInfo() 158 if (!shadowInfo.pixelMap->Marshalling(data)) { in PackUpShadowInfo() 183 CHKPR(shadowInfo.pixelMap, RET_ERR); in UnPackShadowInfo() 191 CHKPR(shadowInfo.pixelMap, RET_ERR); in CheckShadowInfo() 192 if ((shadowInfo.x > 0) || (shadowInfo.y > 0) || in CheckShadowInfo() 193 …(shadowInfo.x < -shadowInfo.pixelMap->GetWidth()) || (shadowInfo.y < -shadowInfo.pixelMap->GetHeig… in CheckShadowInfo() [all …]
|
/ohos5.0/foundation/multimodalinput/input/intention/drag/client/src/ |
H A D | drag_client.cpp | 40 CHKPR(shadowInfo.pixelMap, RET_ERR); in StartDrag() 41 if ((shadowInfo.x > 0) || (shadowInfo.y > 0) || in StartDrag() 42 (shadowInfo.x < -shadowInfo.pixelMap->GetWidth()) || in StartDrag() 43 (shadowInfo.y < -shadowInfo.pixelMap->GetHeight())) { in StartDrag() 45 shadowInfo.x, shadowInfo.y); in StartDrag() 208 CHKPR(shadowInfo.pixelMap, RET_ERR); in UpdateShadowPic() 209 if ((shadowInfo.x > 0) || (shadowInfo.y > 0) || in UpdateShadowPic() 210 (shadowInfo.x < -shadowInfo.pixelMap->GetWidth()) || in UpdateShadowPic() 211 (shadowInfo.y < -shadowInfo.pixelMap->GetHeight())) { in UpdateShadowPic() 213 shadowInfo.x, shadowInfo.y); in UpdateShadowPic() [all …]
|
/ohos5.0/base/msdp/device_status/intention/drag/client/src/ |
H A D | drag_client.cpp | 40 CHKPR(shadowInfo.pixelMap, RET_ERR); in StartDrag() 41 if ((shadowInfo.x > 0) || (shadowInfo.y > 0) || in StartDrag() 42 (shadowInfo.x < -shadowInfo.pixelMap->GetWidth()) || in StartDrag() 43 (shadowInfo.y < -shadowInfo.pixelMap->GetHeight())) { in StartDrag() 45 shadowInfo.x, shadowInfo.y); in StartDrag() 208 CHKPR(shadowInfo.pixelMap, RET_ERR); in UpdateShadowPic() 209 if ((shadowInfo.x > 0) || (shadowInfo.y > 0) || in UpdateShadowPic() 210 (shadowInfo.x < -shadowInfo.pixelMap->GetWidth()) || in UpdateShadowPic() 211 (shadowInfo.y < -shadowInfo.pixelMap->GetHeight())) { in UpdateShadowPic() 213 shadowInfo.x, shadowInfo.y); in UpdateShadowPic() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/capability/interaction/ |
H A D | interaction_impl.cpp | 41 int32_t InteractionImpl::UpdateShadowPic(const OHOS::Ace::ShadowInfoCore& shadowInfo) in UpdateShadowPic() argument 43 auto pixelMap = shadowInfo.pixelMap; in UpdateShadowPic() 45 Msdp::DeviceStatus::ShadowInfo msdpShadowInfo { nullptr, shadowInfo.x, shadowInfo.y }; in UpdateShadowPic() 48 …Msdp::DeviceStatus::ShadowInfo msdpShadowInfo { shadowInfo.pixelMap->GetPixelMapSharedPtr(), shado… in UpdateShadowPic() 49 shadowInfo.y }; in UpdateShadowPic() 78 for (auto& shadowInfo: dragData.shadowInfos) { in StartDrag() local 79 if (shadowInfo.pixelMap) { in StartDrag() 80 msdpDragData.shadowInfos.push_back({ shadowInfo.pixelMap->GetPixelMapSharedPtr(), in StartDrag() 81 shadowInfo.x, shadowInfo.y }); in StartDrag() 83 msdpDragData.shadowInfos.push_back({ nullptr, shadowInfo.x, shadowInfo.y }); in StartDrag()
|
H A D | interaction_impl.h | 28 int32_t UpdateShadowPic(const ShadowInfoCore& shadowInfo) override;
|
/ohos5.0/base/msdp/device_status/rust/data/binding/src/ |
H A D | fusion_data_binding.cpp | 35 cdrag->shadowInfo.x = drag->shadowInfo.x; in CDragDataFrom() 36 cdrag->shadowInfo.y = drag->shadowInfo.y; in CDragDataFrom()
|
/ohos5.0/base/msdp/device_status/utils/common/include/ |
H A D | drag_data_packer.h | 43 … static int32_t PackUpShadowInfo(const ShadowInfo &shadowInfo, Parcel &data, bool isCross = false); 44 static int32_t UnPackShadowInfo(Parcel &data, ShadowInfo &shadowInfo, bool isCross = false); 45 static int32_t CheckShadowInfo(const ShadowInfo &shadowInfo);
|
/ohos5.0/base/msdp/device_status/services/interaction/drag/src/ |
H A D | drag_manager.cpp | 183 for (const auto& shadowInfo : dragData.shadowInfos) { in PrintDragData() local 184 CHKPV(shadowInfo.pixelMap); in PrintDragData() 190 … shadowInfo.pixelMap->GetWidth(), shadowInfo.pixelMap->GetHeight(), shadowInfo.x, shadowInfo.y); in PrintDragData() 398 int32_t DragManager::UpdateShadowPic(const ShadowInfo &shadowInfo) in UpdateShadowPic() argument 405 DRAG_DATA_MGR.SetShadowInfos({ shadowInfo }); in UpdateShadowPic() 407 return dragDrawing_.UpdateShadowPic(shadowInfo); in UpdateShadowPic() 665 for (const auto& shadowInfo : dragData.shadowInfos) { in Dump() local 666 … dprintf(fd, "dragData = {\n""\tshadowInfoX:%d\n\tshadowInfoY\n", shadowInfo.x, shadowInfo.y); in Dump() 675 for (const auto& shadowInfo : dragData.shadowInfos) { in Dump() local 676 CHKPV(shadowInfo.pixelMap); in Dump() [all …]
|
/ohos5.0/base/msdp/device_status/frameworks/native/interaction/src/ |
H A D | drag_manager_impl.cpp | 248 int32_t DragManagerImpl::UpdateShadowPic(const ShadowInfo &shadowInfo) in UpdateShadowPic() argument 251 if (ShadowPacker::CheckShadowInfo(shadowInfo) != RET_OK) { in UpdateShadowPic() 255 return DeviceStatusClient::GetInstance().UpdateShadowPic(shadowInfo); in UpdateShadowPic()
|
H A D | interaction_manager.cpp | 159 int32_t InteractionManager::UpdateShadowPic(const ShadowInfo &shadowInfo) in UpdateShadowPic() argument 161 return INTER_MGR_IMPL.UpdateShadowPic(shadowInfo); in UpdateShadowPic()
|
H A D | interaction_manager_impl.cpp | 323 int32_t InteractionManagerImpl::UpdateShadowPic(const ShadowInfo &shadowInfo) in UpdateShadowPic() argument 326 return dragManagerImpl_.UpdateShadowPic(shadowInfo); in UpdateShadowPic()
|
/ohos5.0/base/msdp/device_status/rust/data/binding/include/ |
H A D | fusion_data_binding.h | 32 struct CShadowInfo shadowInfo; member
|
/ohos5.0/base/msdp/device_status/test/unittest/intention/drag/src/ |
H A D | drag_manager_test.cpp | 448 ShadowInfo shadowInfo = { pixelMap, 1, 0 }; variable 449 int32_t ret = InteractionManager::GetInstance()->UpdateShadowPic(shadowInfo); 652 ShadowInfo shadowInfo = { pixelMap, 0, 0 }; variable 653 ret = InteractionManager::GetInstance()->UpdateShadowPic(shadowInfo); 1097 ShadowInfo shadowInfo = { pixelMap, 0, 0 }; variable 1098 int32_t ret = InteractionManager::GetInstance()->UpdateShadowPic(shadowInfo); 1629 ShadowInfo shadowInfo = { pixelMap, 0, 0 }; variable 1631 UpdateShadowPicParam param { shadowInfo }; 1668 ShadowInfo shadowInfo = { pixelMap, 1, 0 }; variable 1670 EXPECT_TRUE(shadowInfo != otherShadowInfo);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/interaction/ |
H A D | interaction_interface.h | 29 virtual int32_t UpdateShadowPic(const ShadowInfoCore& shadowInfo) = 0;
|
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/entrance/msdp/ |
H A D | interaction_impl.h | 27 int32_t UpdateShadowPic(const ShadowInfoCore& shadowInfo) override;
|
H A D | interaction_impl.cpp | 26 int32_t InteractionImpl::UpdateShadowPic(const OHOS::Ace::ShadowInfoCore& shadowInfo) in UpdateShadowPic() argument
|
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/common/ |
H A D | mock_interaction_interface.h | 30 MOCK_METHOD(int32_t, UpdateShadowPic, (const ShadowInfoCore& shadowInfo), (override));
|
/ohos5.0/base/msdp/device_status/frameworks/native/interaction/include/ |
H A D | drag_manager_impl.h | 53 int32_t UpdateShadowPic(const ShadowInfo &shadowInfo);
|
H A D | interaction_manager_impl.h | 60 int32_t UpdateShadowPic(const ShadowInfo &shadowInfo);
|
/ohos5.0/foundation/multimodalinput/input/intention/drag/data/src/ |
H A D | drag_params.cpp | 128 UpdateShadowPicParam::UpdateShadowPicParam(const ShadowInfo &shadowInfo) in UpdateShadowPicParam() argument 129 : shadowInfo_(shadowInfo) in UpdateShadowPicParam()
|
/ohos5.0/base/msdp/device_status/intention/drag/data/src/ |
H A D | drag_params.cpp | 129 UpdateShadowPicParam::UpdateShadowPicParam(const ShadowInfo &shadowInfo) in UpdateShadowPicParam() argument 130 : shadowInfo_(shadowInfo) in UpdateShadowPicParam()
|
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/drag_controller/ |
H A D | js_drag_controller.cpp | 693 Msdp::DeviceStatus::ShadowInfo shadowInfo { pixelMap, -x, -y }; in GetShadowInfoArray() local 694 shadowInfos.push_back(shadowInfo); in GetShadowInfoArray() 698 bool JudgeCoordinateCanDrag(Msdp::DeviceStatus::ShadowInfo& shadowInfo) in JudgeCoordinateCanDrag() argument 700 CHECK_NULL_RETURN(shadowInfo.pixelMap, false); in JudgeCoordinateCanDrag() 701 int32_t x = -shadowInfo.x; in JudgeCoordinateCanDrag() 702 int32_t y = -shadowInfo.y; in JudgeCoordinateCanDrag() 703 int32_t width = shadowInfo.pixelMap->GetWidth(); in JudgeCoordinateCanDrag() 704 int32_t height = shadowInfo.pixelMap->GetHeight(); in JudgeCoordinateCanDrag() 921 Msdp::DeviceStatus::ShadowInfo shadowInfo { asyncCtx->pixelMap, -x, -y }; in OnComplete() local 922 … Msdp::DeviceStatus::DragData dragData { { shadowInfo }, {}, udKey, asyncCtx->extraParams, in OnComplete()
|
/ohos5.0/foundation/multimodalinput/input/intention/prototype/include/ |
H A D | i_drag_manager.h | 62 virtual int32_t UpdateShadowPic(const ShadowInfo &shadowInfo) = 0;
|
/ohos5.0/base/msdp/device_status/services/communication/base/ |
H A D | i_devicestatus.h | 63 virtual int32_t UpdateShadowPic(const ShadowInfo &shadowInfo) = 0;
|
/ohos5.0/foundation/multimodalinput/input/intention/drag/client/include/ |
H A D | drag_client.h | 47 int32_t UpdateShadowPic(ITunnelClient &tunnel, const ShadowInfo &shadowInfo);
|