Lines Matching refs:parcel

39 bool StartDragParam::Marshalling(MessageParcel &parcel) const
43 (DragDataPacker::Marshalling(*cDragDataPtr_, parcel) == RET_OK)
47 bool StartDragParam::Unmarshalling(MessageParcel &parcel)
51 (DragDataPacker::UnMarshalling(parcel, *dragDataPtr_) == RET_OK)
59 bool StopDragParam::Marshalling(MessageParcel &parcel) const
62 parcel.WriteInt32(static_cast<int32_t>(dropResult_.result)) &&
63 parcel.WriteInt32(dropResult_.mainWindow) &&
64 parcel.WriteBool(dropResult_.hasCustomAnimation) &&
65 parcel.WriteInt32(static_cast<int32_t>(dropResult_.dragBehavior))
69 bool StopDragParam::Unmarshalling(MessageParcel &parcel)
72 if (!parcel.ReadInt32(result) ||
78 if (!parcel.ReadInt32(dropResult_.mainWindow) || !parcel.ReadBool(dropResult_.hasCustomAnimation)) {
82 if (!parcel.ReadInt32(dragBehavior) ||
95 bool SetDragWindowVisibleParam::Marshalling(MessageParcel &parcel) const
97 return (parcel.WriteBool(visible_) &&
98 parcel.WriteBool(isForce_));
101 bool SetDragWindowVisibleParam::Unmarshalling(MessageParcel &parcel)
103 return (parcel.ReadBool(visible_) &&
104 parcel.ReadBool(isForce_));
111 bool UpdateDragStyleParam::Marshalling(MessageParcel &parcel) const
113 return parcel.WriteInt32(static_cast<int32_t>(cursorStyle_));
116 bool UpdateDragStyleParam::Unmarshalling(MessageParcel &parcel)
119 if (!parcel.ReadInt32(style) ||
132 bool UpdateShadowPicParam::Marshalling(MessageParcel &parcel) const
136 shadowInfo_.pixelMap->Marshalling(parcel) &&
137 parcel.WriteInt32(shadowInfo_.x) &&
138 parcel.WriteInt32(shadowInfo_.y)
142 bool UpdateShadowPicParam::Unmarshalling(MessageParcel &parcel)
144 shadowInfo_.pixelMap = std::shared_ptr<Media::PixelMap>(Media::PixelMap::Unmarshalling(parcel));
147 parcel.ReadInt32(shadowInfo_.x) &&
148 parcel.ReadInt32(shadowInfo_.y)
156 bool AddSelectedPixelMapParam::Marshalling(MessageParcel &parcel) const
158 return ((pixelMap_ != nullptr) && pixelMap_->Marshalling(parcel));
161 bool AddSelectedPixelMapParam::Unmarshalling(MessageParcel &parcel)
163 pixelMap_ = std::shared_ptr<Media::PixelMap>(Media::PixelMap::Unmarshalling(parcel));
171 bool GetDragTargetPidReply::Marshalling(MessageParcel &parcel) const
173 return parcel.WriteInt32(targetPid_);
176 bool GetDragTargetPidReply::Unmarshalling(MessageParcel &parcel)
178 return parcel.ReadInt32(targetPid_);
185 bool GetUdKeyReply::Marshalling(MessageParcel &parcel) const
187 return parcel.WriteString(udKey_);
190 bool GetUdKeyReply::Unmarshalling(MessageParcel &parcel)
192 return parcel.ReadString(udKey_);
199 bool GetShadowOffsetReply::Marshalling(MessageParcel &parcel) const
202 parcel.WriteInt32(shadowOffset_.offsetX) &&
203 parcel.WriteInt32(shadowOffset_.offsetY) &&
204 parcel.WriteInt32(shadowOffset_.width) &&
205 parcel.WriteInt32(shadowOffset_.height)
209 bool GetShadowOffsetReply::Unmarshalling(MessageParcel &parcel)
212 parcel.ReadInt32(shadowOffset_.offsetX) &&
213 parcel.ReadInt32(shadowOffset_.offsetY) &&
214 parcel.ReadInt32(shadowOffset_.width) &&
215 parcel.ReadInt32(shadowOffset_.height)
223 bool UpdatePreviewStyleParam::Marshalling(MessageParcel &parcel) const
225 return (PreviewStylePacker::Marshalling(previewStyle_, parcel) == RET_OK);
228 bool UpdatePreviewStyleParam::Unmarshalling(MessageParcel &parcel)
230 return (PreviewStylePacker::UnMarshalling(parcel, previewStyle_) == RET_OK);
238 bool UpdatePreviewAnimationParam::Marshalling(MessageParcel &parcel) const
241 (PreviewStylePacker::Marshalling(previewStyle_, parcel) == RET_OK) &&
242 (PreviewAnimationPacker::Marshalling(previewAnimation_, parcel) == RET_OK)
246 bool UpdatePreviewAnimationParam::Unmarshalling(MessageParcel &parcel)
249 (PreviewStylePacker::UnMarshalling(parcel, previewStyle_) == RET_OK) &&
250 (PreviewAnimationPacker::UnMarshalling(parcel, previewAnimation_) == RET_OK)
258 bool RotateDragWindowSyncParam::Marshalling(MessageParcel &parcel) const
264 if (!parcel.WriteParcelable(rsTransaction_.get())) {
271 bool RotateDragWindowSyncParam::Unmarshalling(MessageParcel &parcel)
273 std::shared_ptr<Rosen::RSTransaction> rsTransaction(parcel.ReadParcelable<Rosen::RSTransaction>());
286 bool SetDragWindowScreenIdParam::Marshalling(MessageParcel &parcel) const
288 return (parcel.WriteUint64(displayId_) && parcel.WriteUint64(screenId_));
291 bool SetDragWindowScreenIdParam::Unmarshalling(MessageParcel &parcel)
293 return (parcel.ReadUint64(displayId_) && parcel.ReadUint64(screenId_));
300 bool GetDragSummaryReply::Marshalling(MessageParcel &parcel) const
302 return (SummaryPacker::Marshalling(summary_, parcel) == RET_OK);
305 bool GetDragSummaryReply::Unmarshalling(MessageParcel &parcel)
307 return (SummaryPacker::UnMarshalling(parcel, summary_) == RET_OK);
314 bool GetDragStateReply::Marshalling(MessageParcel &parcel) const
316 return parcel.WriteInt32(static_cast<int32_t>(dragState_));
319 bool GetDragStateReply::Unmarshalling(MessageParcel &parcel)
322 if (!parcel.ReadInt32(dragState) ||
335 bool GetDragActionReply::Marshalling(MessageParcel &parcel) const
337 return parcel.WriteInt32(static_cast<int32_t>(dragAction_));
340 bool GetDragActionReply::Unmarshalling(MessageParcel &parcel)
343 if (!parcel.ReadInt32(dragAction) ||
356 bool GetExtraInfoReply::Marshalling(MessageParcel &parcel) const
358 return parcel.WriteString(extraInfo_);
361 bool GetExtraInfoReply::Unmarshalling(MessageParcel &parcel)
363 return parcel.ReadString(extraInfo_);