Lines Matching refs:parcel
611 bool WindowProperty::MapMarshalling(Parcel& parcel) const in MapMarshalling()
614 if (!parcel.WriteUint32(static_cast<uint32_t>(size))) { in MapMarshalling()
619 if (!parcel.WriteUint32(static_cast<uint32_t>(it.first))) { in MapMarshalling()
623 … if (!(parcel.WriteBool(it.second.enable_) && parcel.WriteUint32(it.second.backgroundColor_) && in MapMarshalling()
624 parcel.WriteUint32(it.second.contentColor_))) { in MapMarshalling()
631 void WindowProperty::MapUnmarshalling(Parcel& parcel, WindowProperty* property) in MapUnmarshalling() argument
633 uint32_t size = parcel.ReadUint32(); in MapUnmarshalling()
638 WindowType type = static_cast<WindowType>(parcel.ReadUint32()); in MapUnmarshalling()
639 SystemBarProperty prop = { parcel.ReadBool(), parcel.ReadUint32(), parcel.ReadUint32() }; in MapUnmarshalling()
644 bool WindowProperty::MarshallingTouchHotAreas(Parcel& parcel) const in MarshallingTouchHotAreas()
647 if (!parcel.WriteUint32(static_cast<uint32_t>(size))) { in MarshallingTouchHotAreas()
651 if (!(parcel.WriteInt32(rect.posX_) && parcel.WriteInt32(rect.posY_) && in MarshallingTouchHotAreas()
652 parcel.WriteUint32(rect.width_) && parcel.WriteUint32(rect.height_))) { in MarshallingTouchHotAreas()
659 void WindowProperty::UnmarshallingTouchHotAreas(Parcel& parcel, WindowProperty* property) in UnmarshallingTouchHotAreas() argument
661 uint32_t size = parcel.ReadUint32(); in UnmarshallingTouchHotAreas()
667 … Rect{ parcel.ReadInt32(), parcel.ReadInt32(), parcel.ReadUint32(), parcel.ReadUint32() }); in UnmarshallingTouchHotAreas()
671 bool WindowProperty::MarshallingTransform(Parcel& parcel) const in MarshallingTransform()
673 return parcel.WriteFloat(trans_.pivotX_) && parcel.WriteFloat(trans_.pivotY_) && in MarshallingTransform()
674 parcel.WriteFloat(trans_.scaleX_) && parcel.WriteFloat(trans_.scaleY_) && in MarshallingTransform()
675 parcel.WriteFloat(trans_.rotationX_) && parcel.WriteFloat(trans_.rotationY_) && in MarshallingTransform()
676 parcel.WriteFloat(trans_.rotationZ_) && parcel.WriteFloat(trans_.translateX_) && in MarshallingTransform()
677 parcel.WriteFloat(trans_.translateY_) && parcel.WriteFloat(trans_.translateZ_); in MarshallingTransform()
680 void WindowProperty::UnmarshallingTransform(Parcel& parcel, WindowProperty* property) in UnmarshallingTransform() argument
683 trans.pivotX_ = parcel.ReadFloat(); in UnmarshallingTransform()
684 trans.pivotY_ = parcel.ReadFloat(); in UnmarshallingTransform()
685 trans.scaleX_ = parcel.ReadFloat(); in UnmarshallingTransform()
686 trans.scaleY_ = parcel.ReadFloat(); in UnmarshallingTransform()
687 trans.rotationX_ = parcel.ReadFloat(); in UnmarshallingTransform()
688 trans.rotationY_ = parcel.ReadFloat(); in UnmarshallingTransform()
689 trans.rotationZ_ = parcel.ReadFloat(); in UnmarshallingTransform()
690 trans.translateX_ = parcel.ReadFloat(); in UnmarshallingTransform()
691 trans.translateY_ = parcel.ReadFloat(); in UnmarshallingTransform()
692 trans.translateZ_ = parcel.ReadFloat(); in UnmarshallingTransform()
696 bool WindowProperty::MarshallingWindowSizeLimits(Parcel& parcel) const in MarshallingWindowSizeLimits()
698 if (parcel.WriteUint32(sizeLimits_.maxWidth_) && in MarshallingWindowSizeLimits()
699 parcel.WriteUint32(sizeLimits_.maxHeight_) && parcel.WriteUint32(sizeLimits_.minWidth_) && in MarshallingWindowSizeLimits()
700 parcel.WriteUint32(sizeLimits_.minHeight_) && parcel.WriteFloat(sizeLimits_.maxRatio_) && in MarshallingWindowSizeLimits()
701 parcel.WriteFloat(sizeLimits_.minRatio_)) { in MarshallingWindowSizeLimits()
707 void WindowProperty::UnmarshallingWindowSizeLimits(Parcel& parcel, WindowProperty* property) in UnmarshallingWindowSizeLimits() argument
709 WindowLimits sizeLimits = { parcel.ReadUint32(), parcel.ReadUint32(), parcel.ReadUint32(), in UnmarshallingWindowSizeLimits()
710 parcel.ReadUint32(), parcel.ReadFloat(), parcel.ReadFloat() }; in UnmarshallingWindowSizeLimits()
714 bool WindowProperty::Marshalling(Parcel& parcel) const in Marshalling()
716 return parcel.WriteString(windowName_) && parcel.WriteInt32(windowRect_.posX_) && in Marshalling()
717 parcel.WriteInt32(windowRect_.posY_) && parcel.WriteUint32(windowRect_.width_) && in Marshalling()
718 parcel.WriteUint32(windowRect_.height_) && parcel.WriteInt32(requestRect_.posX_) && in Marshalling()
719 parcel.WriteInt32(requestRect_.posY_) && parcel.WriteUint32(requestRect_.width_) && in Marshalling()
720 parcel.WriteUint32(requestRect_.height_) && parcel.WriteBool(decoStatus_) && in Marshalling()
721 parcel.WriteUint32(static_cast<uint32_t>(type_)) && in Marshalling()
722 …parcel.WriteUint32(static_cast<uint32_t>(mode_)) && parcel.WriteUint32(static_cast<uint32_t>(lastM… in Marshalling()
723 parcel.WriteUint32(flags_) && in Marshalling()
724 … parcel.WriteBool(isFullScreen_) && parcel.WriteBool(focusable_) && parcel.WriteBool(touchable_) && in Marshalling()
725 …parcel.WriteBool(isPrivacyMode_) && parcel.WriteBool(isTransparent_) && parcel.WriteFloat(alpha_) … in Marshalling()
726 …parcel.WriteFloat(brightness_) && parcel.WriteUint64(displayId_) && parcel.WriteUint32(windowId_) … in Marshalling()
727 … parcel.WriteUint32(parentId_) && MapMarshalling(parcel) && parcel.WriteBool(isDecorEnable_) && in Marshalling()
728 …parcel.WriteInt32(hitOffset_.x) && parcel.WriteInt32(hitOffset_.y) && parcel.WriteUint32(animation… in Marshalling()
729 …parcel.WriteUint32(static_cast<uint32_t>(windowSizeChangeReason_)) && parcel.WriteBool(tokenState_… in Marshalling()
730 …parcel.WriteUint32(callingWindow_) && parcel.WriteUint32(static_cast<uint32_t>(requestedOrientatio… in Marshalling()
731 parcel.WriteBool(turnScreenOn_) && parcel.WriteBool(keepScreenOn_) && in Marshalling()
732 … parcel.WriteUint32(windowModeSupportType_) && parcel.WriteUint32(requestWindowModeSupportType_) && in Marshalling()
733 parcel.WriteUint32(static_cast<uint32_t>(dragType_)) && in Marshalling()
734 parcel.WriteUint32(originRect_.width_) && parcel.WriteUint32(originRect_.height_) && in Marshalling()
735 …parcel.WriteBool(isStretchable_) && MarshallingTouchHotAreas(parcel) && parcel.WriteUint32(accessT… in Marshalling()
736 …MarshallingTransform(parcel) && MarshallingWindowSizeLimits(parcel) && zoomTrans_.Marshalling(parc… in Marshalling()
737 parcel.WriteBool(isDisplayZoomOn_) && parcel.WriteString(abilityInfo_.bundleName_) && in Marshalling()
738 … parcel.WriteString(abilityInfo_.abilityName_) && parcel.WriteInt32(abilityInfo_.missionId_) && in Marshalling()
739 parcel.WriteBool(isSnapshotSkip_) && in Marshalling()
740 parcel.WriteDouble(textFieldPositionY_) && parcel.WriteDouble(textFieldHeight_); in Marshalling()
743 WindowProperty* WindowProperty::Unmarshalling(Parcel& parcel) in Unmarshalling() argument
749 property->SetWindowName(parcel.ReadString()); in Unmarshalling()
750 … Rect rect = { parcel.ReadInt32(), parcel.ReadInt32(), parcel.ReadUint32(), parcel.ReadUint32() }; in Unmarshalling()
752 …Rect reqRect = { parcel.ReadInt32(), parcel.ReadInt32(), parcel.ReadUint32(), parcel.ReadUint32() … in Unmarshalling()
754 property->SetDecoStatus(parcel.ReadBool()); in Unmarshalling()
755 property->SetWindowType(static_cast<WindowType>(parcel.ReadUint32())); in Unmarshalling()
756 property->SetWindowMode(static_cast<WindowMode>(parcel.ReadUint32())); in Unmarshalling()
757 property->SetLastWindowMode(static_cast<WindowMode>(parcel.ReadUint32())); in Unmarshalling()
758 property->SetWindowFlags(parcel.ReadUint32()); in Unmarshalling()
759 property->SetFullScreen(parcel.ReadBool()); in Unmarshalling()
760 property->SetFocusable(parcel.ReadBool()); in Unmarshalling()
761 property->SetTouchable(parcel.ReadBool()); in Unmarshalling()
762 property->SetPrivacyMode(parcel.ReadBool()); in Unmarshalling()
763 property->SetTransparent(parcel.ReadBool()); in Unmarshalling()
764 property->SetAlpha(parcel.ReadFloat()); in Unmarshalling()
765 property->SetBrightness(parcel.ReadFloat()); in Unmarshalling()
766 property->SetDisplayId(parcel.ReadUint64()); in Unmarshalling()
767 property->SetWindowId(parcel.ReadUint32()); in Unmarshalling()
768 property->SetParentId(parcel.ReadUint32()); in Unmarshalling()
769 MapUnmarshalling(parcel, property); in Unmarshalling()
770 property->SetDecorEnable(parcel.ReadBool()); in Unmarshalling()
771 PointInfo offset = {parcel.ReadInt32(), parcel.ReadInt32()}; in Unmarshalling()
773 property->SetAnimationFlag(parcel.ReadUint32()); in Unmarshalling()
774 property->SetWindowSizeChangeReason(static_cast<WindowSizeChangeReason>(parcel.ReadUint32())); in Unmarshalling()
775 property->SetTokenState(parcel.ReadBool()); in Unmarshalling()
776 property->SetCallingWindow(parcel.ReadUint32()); in Unmarshalling()
777 property->SetRequestedOrientation(static_cast<Orientation>(parcel.ReadUint32())); in Unmarshalling()
778 property->SetTurnScreenOn(parcel.ReadBool()); in Unmarshalling()
779 property->SetKeepScreenOn(parcel.ReadBool()); in Unmarshalling()
780 property->SetWindowModeSupportType(parcel.ReadUint32()); in Unmarshalling()
781 property->SetRequestWindowModeSupportType(parcel.ReadUint32()); in Unmarshalling()
782 property->SetDragType(static_cast<DragType>(parcel.ReadUint32())); in Unmarshalling()
783 uint32_t w = parcel.ReadUint32(); in Unmarshalling()
784 uint32_t h = parcel.ReadUint32(); in Unmarshalling()
786 property->SetStretchable(parcel.ReadBool()); in Unmarshalling()
787 UnmarshallingTouchHotAreas(parcel, property); in Unmarshalling()
788 property->SetAccessTokenId(parcel.ReadUint32()); in Unmarshalling()
789 UnmarshallingTransform(parcel, property); in Unmarshalling()
790 UnmarshallingWindowSizeLimits(parcel, property); in Unmarshalling()
792 zoomTrans.Unmarshalling(parcel); in Unmarshalling()
794 property->SetDisplayZoomState(parcel.ReadBool()); in Unmarshalling()
795 AbilityInfo info = { parcel.ReadString(), parcel.ReadString(), parcel.ReadInt32() }; in Unmarshalling()
797 property->SetSnapshotSkip(parcel.ReadBool()); in Unmarshalling()
798 property->SetTextFieldPositionY(parcel.ReadDouble()); in Unmarshalling()
799 property->SetTextFieldHeight(parcel.ReadDouble()); in Unmarshalling()
803 bool WindowProperty::Write(Parcel& parcel, PropertyChangeAction action) in Write() argument
805 bool ret = parcel.WriteUint32(static_cast<uint32_t>(windowId_)); in Write()
808 …ret = ret && parcel.WriteBool(decoStatus_) && parcel.WriteUint32(static_cast<uint32_t>(dragType_))… in Write()
809 parcel.WriteInt32(originRect_.posX_) && parcel.WriteInt32(originRect_.posY_) && in Write()
810 parcel.WriteUint32(originRect_.width_) && parcel.WriteUint32(originRect_.height_) && in Write()
811 parcel.WriteInt32(requestRect_.posX_) && parcel.WriteInt32(requestRect_.posY_) && in Write()
812 … parcel.WriteUint32(requestRect_.width_) && parcel.WriteUint32(requestRect_.height_) && in Write()
813 parcel.WriteUint32(static_cast<uint32_t>(windowSizeChangeReason_)); in Write()
816 … ret = ret && parcel.WriteUint32(static_cast<uint32_t>(mode_)) && parcel.WriteBool(isDecorEnable_); in Write()
819 ret = ret && parcel.WriteUint32(flags_); in Write()
822 ret = ret && MapMarshalling(parcel); in Write()
825 ret = ret && parcel.WriteBool(focusable_); in Write()
828 ret = ret && parcel.WriteBool(touchable_); in Write()
831 ret = ret && parcel.WriteUint32(callingWindow_); in Write()
834 ret = ret && parcel.WriteUint32(static_cast<uint32_t>(requestedOrientation_)); in Write()
837 ret = ret && parcel.WriteBool(turnScreenOn_); in Write()
840 ret = ret && parcel.WriteBool(keepScreenOn_); in Write()
843 ret = ret && parcel.WriteFloat(brightness_); in Write()
846 ret = ret && parcel.WriteUint32(windowModeSupportType_); in Write()
849 ret = ret && MarshallingTouchHotAreas(parcel); in Write()
852 ret = ret && MarshallingTransform(parcel); in Write()
855 ret = ret && parcel.WriteUint32(animationFlag_); in Write()
858 ret = ret && parcel.WriteBool(isPrivacyMode_) && parcel.WriteBool(isSystemPrivacyMode_); in Write()
861 ret = ret && parcel.WriteBool(isPrivacyMode_) && parcel.WriteBool(isSystemPrivacyMode_); in Write()
864 … ret = ret && parcel.WriteBool(isSnapshotSkip_) && parcel.WriteBool(isSystemPrivacyMode_); in Write()
867 ret = ret && parcel.WriteFloat(aspectRatio_); in Write()
870 ret = ret && parcel.WriteUint32(static_cast<uint32_t>(maximizeMode_)); in Write()
873 … ret = ret && parcel.WriteDouble(textFieldPositionY_) && parcel.WriteDouble(textFieldHeight_); in Write()
881 void WindowProperty::Read(Parcel& parcel, PropertyChangeAction action) in Read() argument
883 SetWindowId(parcel.ReadUint32()); in Read()
886 SetDecoStatus(parcel.ReadBool()); in Read()
887 SetDragType(static_cast<DragType>(parcel.ReadUint32())); in Read()
888 …SetOriginRect(Rect { parcel.ReadInt32(), parcel.ReadInt32(), parcel.ReadUint32(), parcel.ReadUint3… in Read()
889 …SetRequestRect(Rect { parcel.ReadInt32(), parcel.ReadInt32(), parcel.ReadUint32(), parcel.ReadUint… in Read()
890 SetWindowSizeChangeReason(static_cast<WindowSizeChangeReason>(parcel.ReadUint32())); in Read()
893 SetWindowMode(static_cast<WindowMode>(parcel.ReadUint32())); in Read()
894 SetDecorEnable(parcel.ReadBool()); in Read()
897 SetWindowFlags(parcel.ReadUint32()); in Read()
900 MapUnmarshalling(parcel, this); in Read()
903 SetFocusable(parcel.ReadBool()); in Read()
906 SetTouchable(parcel.ReadBool()); in Read()
909 SetCallingWindow(parcel.ReadUint32()); in Read()
912 SetRequestedOrientation(static_cast<Orientation>(parcel.ReadUint32())); in Read()
915 SetTurnScreenOn(parcel.ReadBool()); in Read()
918 SetKeepScreenOn(parcel.ReadBool()); in Read()
921 SetBrightness(parcel.ReadFloat()); in Read()
924 SetWindowModeSupportType(parcel.ReadUint32()); in Read()
927 UnmarshallingTouchHotAreas(parcel, this); in Read()
930 UnmarshallingTransform(parcel, this); in Read()
933 SetAnimationFlag(parcel.ReadUint32()); in Read()
937 SetPrivacyMode(parcel.ReadBool()); in Read()
938 SetSystemPrivacyMode(parcel.ReadBool()); in Read()
941 SetPrivacyMode(parcel.ReadBool()); in Read()
942 SetSystemPrivacyMode(parcel.ReadBool()); in Read()
945 SetSnapshotSkip(parcel.ReadBool()); in Read()
946 SetSystemPrivacyMode(parcel.ReadBool()); in Read()
949 SetAspectRatio(parcel.ReadFloat()); in Read()
952 SetMaximizeMode(static_cast<MaximizeMode>(parcel.ReadUint32())); in Read()
955 SetTextFieldPositionY(parcel.ReadDouble()); in Read()
956 SetTextFieldHeight(parcel.ReadDouble()); in Read()