/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | parcel.cpp | 30 Parcel::Parcel(Allocator *allocator) in Parcel() function in OHOS::Parcel 34 Parcel::Parcel() : Parcel(new DefaultAllocator()) in Parcel() function in OHOS::Parcel 37 Parcel::~Parcel() in ~Parcel() 41 size_t Parcel::GetWritableBytes() const in GetWritableBytes() 46 size_t Parcel::GetReadableBytes() const in GetReadableBytes() 51 size_t Parcel 544 WriteVector(const std::vector<T1> &val, bool (Parcel::*Write)(T2)) WriteVector() argument [all...] |
/foundation/barrierfree/accessibility/common/interface/include/parcel/ |
H A D | accessibility_element_info_parcel.h | 45 bool ReadFromParcel(Parcel &parcel); 51 bool Marshalling(Parcel &parcel) const override; 58 static sptr<AccessibleActionParcel> Unmarshalling(Parcel &parcel); 83 bool ReadFromParcel(Parcel &parcel); 89 bool Marshalling(Parcel &parcel) const override; 95 static sptr<RangeInfoParcel> Unmarshalling(Parcel &parcel); 126 bool ReadFromParcel(Parcel &parcel); 134 bool Marshalling(Parcel &parcel) const override; 142 static sptr<GridInfoParcel> Unmarshalling(Parcel &parcel); 165 bool ReadFromParcel(Parcel [all...] |
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_api/cloudsync_impl/file_hook/ |
H A D | parcel.cpp | 20 bool Parcel::WriteInt32(int32_t value) in WriteInt32() 28 bool Parcel::WriteUint32(uint32_t value) in WriteUint32() 36 bool Parcel::WriteInt64(int64_t value) in WriteInt64() 44 bool Parcel::WriteString(const std::string &value) in WriteString() 52 bool Parcel::WriteBool(bool value) in WriteBool() 60 bool Parcel::WriteParcelable(const Parcelable *) in WriteParcelable() 65 bool Parcel::ReadInt32(int32_t &value) in ReadInt32() 67 value = Parcel::readCursor_; in ReadInt32() 68 if (Parcel::readCursor_ == 0) { in ReadInt32() 74 bool Parcel [all...] |
/foundation/communication/ipc/interfaces/innerkits/rust/include/ |
H A D | parcel_wrapper.h | 35 Parcel const *AsParcel(const MessageParcel &msgParcel); 37 Parcel *AsParcelMut(MessageParcel &msgParcel); 45 bool WriteString(Parcel &parcel, const rust::str val); 46 bool ReadString(Parcel &parcel, rust::string &val); 48 bool WriteString16(Parcel &parcel, const rust::str val); 49 rust::string ReadString16(Parcel &parcel); 51 bool WriteString16Vec(Parcel &parcel, const rust::vec<rust::string &> &v); 52 rust::vec<rust::string> ReadString16Vec(Parcel &parcel); 54 bool WriteBoolVector(Parcel &parcel, rust::slice<const bool> val); 55 bool WriteInt8Vector(Parcel [all...] |
/foundation/communication/ipc/interfaces/innerkits/rust/tests/c/src/ |
H A D | ipc_rust_test.cpp | 36 template<typename T> void WriteTestVector(Parcel *parcel, T testValue, bool (Parcel::*Write)(const std::vector<T> &)) in WriteTestVector() 47 WriteTestVector(parcel, true, &Parcel::WriteBoolVector); in WriteTestVec() 48 WriteTestVector<uint8_t>(parcel, UCHAR_MAX, &Parcel::WriteUInt8Vector); in WriteTestVec() 49 WriteTestVector<uint16_t>(parcel, USHRT_MAX, &Parcel::WriteUInt16Vector); in WriteTestVec() 50 WriteTestVector<uint32_t>(parcel, UINT_MAX, &Parcel::WriteUInt32Vector); in WriteTestVec() 51 WriteTestVector<uint64_t>(parcel, ULLONG_MAX, &Parcel::WriteUInt64Vector); in WriteTestVec() 53 WriteTestVector<int8_t>(parcel, SCHAR_MAX, &Parcel::WriteInt8Vector); in WriteTestVec() 54 WriteTestVector<int16_t>(parcel, SHRT_MAX, &Parcel::WriteInt16Vector); in WriteTestVec() 55 WriteTestVector<int32_t>(parcel, INT_MAX, &Parcel in WriteTestVec() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/windows/ |
H A D | rs_marshalling_helper.cpp | 57 bool RSMarshallingHelper::Marshalling(Parcel& parcel, const TYPE& val) \ 61 bool RSMarshallingHelper::Unmarshalling(Parcel& parcel, TYPE& val) \ 91 bool RSMarshallingHelper::Marshalling(Parcel& parcel, std::shared_ptr<Drawing::Data> val) in Marshalling() 96 bool RSMarshallingHelper::Unmarshalling(Parcel& parcel, std::shared_ptr<Drawing::Data>& val) in Unmarshalling() 101 bool RSMarshallingHelper::SkipData(Parcel& parcel) in SkipData() 106 bool RSMarshallingHelper::UnmarshallingWithCopy(Parcel& parcel, std::shared_ptr<Drawing::Data>& val) in UnmarshallingWithCopy() 111 bool RSMarshallingHelper::Marshalling(Parcel& parcel, std::shared_ptr<Drawing::Typeface>& typeface) in Marshalling() 116 bool RSMarshallingHelper::Unmarshalling(Parcel& parcel, std::shared_ptr<Drawing::Typeface>& typeface) in Unmarshalling() 122 bool RSMarshallingHelper::Marshalling(Parcel& parcel, const std::shared_ptr<Drawing::Image>& val) in Marshalling() 127 bool RSMarshallingHelper::Unmarshalling(Parcel [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/darwin/ |
H A D | rs_marshalling_helper.cpp | 57 bool RSMarshallingHelper::Marshalling(Parcel& parcel, const TYPE& val) \ 61 bool RSMarshallingHelper::Unmarshalling(Parcel& parcel, TYPE& val) \ 91 bool RSMarshallingHelper::Marshalling(Parcel& parcel, std::shared_ptr<Drawing::Data> val) in Marshalling() 95 bool RSMarshallingHelper::Unmarshalling(Parcel& parcel, std::shared_ptr<Drawing::Data>& val) in Unmarshalling() 99 bool RSMarshallingHelper::SkipData(Parcel& parcel) in SkipData() 104 bool RSMarshallingHelper::Marshalling(Parcel& parcel, std::shared_ptr<Drawing::Typeface>& typeface) in Marshalling() 109 bool RSMarshallingHelper::Unmarshalling(Parcel& parcel, std::shared_ptr<Drawing::Typeface>& typeface) in Unmarshalling() 115 bool RSMarshallingHelper::Marshalling(Parcel& parcel, const std::shared_ptr<Drawing::Image>& val) in Marshalling() 120 bool RSMarshallingHelper::Unmarshalling(Parcel& parcel, std::shared_ptr<Drawing::Image>& val) in Unmarshalling() 125 bool RSMarshallingHelper::Unmarshalling(Parcel [all...] |
/foundation/ability/ability_base/interfaces/kits/native/want/include/ |
H A D | want_params.h | 102 virtual bool Marshalling(Parcel &parcel) const; 104 static WantParams *Unmarshalling(Parcel &parcel, int depth = 1); 154 bool WriteArrayToParcel(Parcel &parcel, IArray *ao, int depth) const; 155 bool ReadArrayToParcel(Parcel &parcel, int type, sptr<IArray> &ao, int depth); 156 bool ReadFromParcel(Parcel &parcel, int depth = 1); 157 bool ReadFromParcelParam(Parcel &parcel, const std::string &key, int type, int depth); 158 bool ReadFromParcelString(Parcel &parcel, const std::string &key); 159 bool ReadFromParcelBool(Parcel &parcel, const std::string &key); 160 bool ReadFromParcelInt8(Parcel &parcel, const std::string &key); 161 bool ReadFromParcelChar(Parcel [all...] |
/foundation/bundlemanager/distributed_bundle_framework/services/dbms/include/ |
H A D | distributed_bms_host.h | 34 int HandleGetRemoteAbilityInfo(Parcel &data, Parcel &reply); 35 int HandleGetRemoteAbilityInfos(Parcel &data, Parcel &reply); 36 int HandleGetAbilityInfo(Parcel &data, Parcel &reply); 37 int HandleGetAbilityInfos(Parcel &data, Parcel &reply); 38 int HandleGetDistributedBundleInfo(Parcel &data, Parcel [all...] |
/foundation/communication/ipc/interfaces/innerkits/rust/src/cxx/ |
H A D | parcel_wrapper.cpp | 48 Parcel const *AsParcel(const MessageParcel &msgParcel) in AsParcel() 51 return reinterpret_cast<Parcel *>(msgParcelMut); in AsParcel() 54 Parcel *AsParcelMut(MessageParcel &msgParcel) in AsParcelMut() 56 return reinterpret_cast<Parcel *>(&msgParcel); in AsParcelMut() 111 bool ReadString(Parcel &parcel, rust::string &val) in ReadString() 122 bool WriteString(Parcel &parcel, const rust::str val) in WriteString() 128 bool WriteString16(Parcel &parcel, const rust::str val) in WriteString16() 133 rust::string ReadString16(Parcel &parcel) in ReadString16() 149 bool WriteBoolVector(Parcel &parcel, rust::slice<const bool> val) in WriteBoolVector() 154 bool WriteInt8Vector(Parcel [all...] |
/foundation/CastEngine/castengine_cast_framework/common/include/private/ |
H A D | cast_engine_common_helper.h | 27 bool WriteCastRemoteDevice(Parcel &parcel, const CastRemoteDevice &device); 28 std::unique_ptr<CastRemoteDevice> ReadCastRemoteDevice(Parcel &parcel); 29 bool ReadCastRemoteDevice(Parcel &parcel, CastRemoteDevice &device); 37 bool WriteCastLocalDevice(Parcel &parcel, const CastLocalDevice &device); 38 std::unique_ptr<CastLocalDevice> ReadCastLocalDevice(Parcel &parcel); 40 bool WriteCastSessionProperty(Parcel &parcel, const CastSessionProperty &property); 41 std::unique_ptr<CastSessionProperty> ReadCastSessionProperty(Parcel &parcel); 43 bool WritePropertyContainer(Parcel &parcel, const PropertyContainer &device); 44 std::unique_ptr<PropertyContainer> ReadPropertyContainer(Parcel &parcel); 46 bool WriteAuthInfo(Parcel [all...] |
/foundation/window/window_manager/window_scene/common/include/ |
H A D | window_session_property.h | 33 using HandlWritePropertyFunc = bool (WindowSessionProperty::*)(Parcel& parcel); 34 using HandlReadPropertyFunc = void (WindowSessionProperty::*)(Parcel& parcel); 163 bool MarshallingWindowLimits(Parcel& parcel) const; 164 static void UnmarshallingWindowLimits(Parcel& parcel, WindowSessionProperty* property); 165 bool MarshallingSystemBarMap(Parcel& parcel) const; 166 static void UnMarshallingSystemBarMap(Parcel& parcel, WindowSessionProperty* property); 167 bool MarshallingPiPTemplateInfo(Parcel& parcel) const; 168 static void UnmarshallingPiPTemplateInfo(Parcel& parcel, WindowSessionProperty* property); 169 bool Marshalling(Parcel& parcel) const override; 170 static WindowSessionProperty* Unmarshalling(Parcel [all...] |
/foundation/communication/ipc/interfaces/innerkits/rust/src/parcel/ |
H A D | wrapper.rs | 39 type Parcel; types 47 unsafe fn AsParcel(MsgParcel: &MessageParcel) -> *const Parcel; in AsParcel() 48 unsafe fn AsParcelMut(msgParcel: Pin<&mut MessageParcel>) -> *mut Parcel; in AsParcelMut() 65 fn ReadString(parcel: Pin<&mut Parcel>, val: &mut String) -> bool; in ReadString() 66 fn WriteString(parcel: Pin<&mut Parcel>, val: &str) -> bool; in WriteString() 68 fn ReadString16(parcel: Pin<&mut Parcel>) -> String; in ReadString16() 69 fn WriteString16(parcel: Pin<&mut Parcel>, val: &str) -> bool; in WriteString16() 71 fn WriteBool(self: Pin<&mut Parcel>, mut value: bool) -> bool; in WriteBool() 72 fn WriteInt8(self: Pin<&mut Parcel>, mut value: i8) -> bool; in WriteInt8() 73 fn WriteInt16(self: Pin<&mut Parcel>, mu in WriteInt8() [all...] |
/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloudsync_kit_inner/ |
H A D | cloud_sync_common.h | 57 bool ReadBatchFromParcel(Parcel &parcel); 58 bool ReadFromParcel(Parcel &parcel); 59 bool MarshallingBatch(Parcel &parcel) const; 60 bool Marshalling(Parcel &parcel) const override; 61 static DownloadProgressObj *Unmarshalling(Parcel &parcel); 67 bool ReadFromParcel(Parcel &parcel); 68 bool Marshalling(Parcel &parcel) const override; 69 static SwitchDataObj *Unmarshalling(Parcel &parcel); 74 bool ReadFromParcel(Parcel &parcel); 75 bool Marshalling(Parcel [all...] |
/foundation/multimodalinput/input/service/connect_manager/test/ |
H A D | message_parcel_mock.cpp | 58 bool Parcel::WriteInt32(int32_t value) in WriteInt32() 66 bool Parcel::WriteInt64(int64_t value) in WriteInt64() 74 int32_t Parcel::ReadInt32() in ReadInt32() 82 bool Parcel::ReadInt32(int32_t &value) in ReadInt32() 90 bool Parcel::WriteRemoteObject(const Parcelable *object) in WriteRemoteObject() 114 bool Parcel::ReadBool() in ReadBool() 122 bool Parcel::ReadBool(bool &value) in ReadBool() 130 bool Parcel::WriteBool(bool value) in WriteBool() 138 bool Parcel::WriteString(const std::string &value) in WriteString() 146 bool Parcel [all...] |
/foundation/communication/bluetooth/frameworks/inner/ipc/parcel/ |
H A D | bluetooth_ble_scan_result.h | 36 bool Marshalling(Parcel &parcel) const override; 37 static BluetoothBleScanResult *Unmarshalling(Parcel &parcel); 39 bool WriteToParcel(Parcel &parcel); 40 bool ReadFromParcel(Parcel &parcel); 43 bool WirteServiceUuidsToParcel(Parcel &parcel) const; 44 bool ReadServiceUuidsFromParcel(Parcel &parcel); 45 bool WirteManufacturerDataToParcel(Parcel &parcel) const; 46 bool ReadManufacturerDataFromParcel(Parcel &parcel); 47 bool WirteServiceDataToParcel(Parcel &parcel) const; 48 bool ReadServiceDataFromParcel(Parcel [all...] |
H A D | bluetooth_ble_advertiser_data.h | 34 bool Marshalling(Parcel &parcel) const override; 36 static BluetoothBleAdvertiserData *Unmarshalling(Parcel &parcel); 38 bool WriteToParcel(Parcel &parcel); 39 bool ReadFromParcel(Parcel &parcel); 42 bool WriteServiceUuids(Parcel &parcel) const; 43 bool ReadServiceUuids(std::vector<bluetooth::Uuid> &serviceUuids, Parcel &parcel); 45 bool WriteManufacturerData(Parcel &parcel) const; 46 bool ReadManufacturerData(std::map<uint16_t, std::string> &manufacturerData, Parcel &parcel); 48 bool WriteServiceData(Parcel &parcel) const; 49 bool ReadServiceData(std::map<bluetooth::Uuid, std::string> &serviceData, Parcel [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/ |
H A D | distributeddb_parcel_unit_test.cpp | 69 uint32_t len = Parcel::GetIntLen() + Parcel::GetUInt32Len() + Parcel::GetUInt64Len(); in HWTEST_F() 70 len = Parcel::GetEightByteAlign(len); in HWTEST_F() 73 Parcel writeParcel(buf, len); in HWTEST_F() 91 Parcel readParcel(buf, len); in HWTEST_F() 93 EXPECT_TRUE(readLen == Parcel::GetIntLen()); in HWTEST_F() 95 EXPECT_TRUE(readLen == Parcel::GetIntLen() + Parcel::GetUInt32Len()); in HWTEST_F() 97 EXPECT_TRUE(readLen == Parcel in HWTEST_F() [all...] |
/foundation/multimedia/image_framework/mock/native/src/ |
H A D | parcel.cpp | 25 Parcel::Parcel(Allocator *allocator) in Parcel() function in OHOS::Parcel 28 Parcel::~Parcel() in ~Parcel() 31 size_t Parcel::GetDataCapacity() const in GetDataCapacity() 36 bool Parcel::SetDataCapacity(size_t newCapacity) in SetDataCapacity() 42 bool Parcel::WriteUnpadBuffer(const void *data, size_t size) in WriteUnpadBuffer() 49 bool Parcel::WriteInt32(int32_t value) in WriteInt32() 54 const uint8_t *Parcel::ReadBuffer(size_t length) in ReadBuffer()
|
/foundation/ability/dmsfwk/services/dtbschedmgr/include/distributedWant/ |
H A D | distributed_want_params.h | 83 virtual bool Marshalling(Parcel& parcel) const; 85 static DistributedWantParams* Unmarshalling(Parcel& parcel); 114 bool WriteArrayToParcel(Parcel& parcel, AAFwk::IArray* ao) const; 115 bool ReadArrayToParcel(Parcel& parcel, int type, sptr<AAFwk::IArray>& ao); 116 bool ReadFromParcel(Parcel& parcel); 117 bool ReadFromParcelParam(Parcel& parcel, const std::string& key, int type); 118 bool ReadFromParcelString(Parcel& parcel, const std::string& key); 119 bool ReadFromParcelBool(Parcel& parcel, const std::string& key); 120 bool ReadFromParcelInt8(Parcel& parcel, const std::string& key); 121 bool ReadFromParcelChar(Parcel [all...] |
/foundation/filemanagement/dfs_service/test/mock/ |
H A D | message_parcel_mock.cpp | 40 bool Parcel::WriteParcelable(const Parcelable *object) in WriteParcelable() 45 bool Parcel::WriteInt32(int32_t value) in WriteInt32() 50 int32_t Parcel::ReadInt32() in ReadInt32() 55 bool Parcel::ReadInt32(int32_t &value) in ReadInt32() 60 bool Parcel::WriteRemoteObject(const Parcelable *object) in WriteRemoteObject() 75 bool Parcel::ReadBool() in ReadBool() 80 bool Parcel::ReadBool(bool &value) in ReadBool() 85 bool Parcel::WriteBool(bool value) in WriteBool() 90 bool Parcel::WriteString(const std::string &value) in WriteString() 95 bool Parcel [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/free_install/ |
H A D | install_result.h | 30 bool ReadFromParcel(Parcel &parcel); 31 virtual bool Marshalling(Parcel &parcel) const override; 32 static Result *Unmarshalling(Parcel &parcel); 39 bool ReadFromParcel(Parcel &parcel); 40 virtual bool Marshalling(Parcel &parcel) const override; 41 static Progress *Unmarshalling(Parcel &parcel); 49 bool ReadFromParcel(Parcel &parcel); 50 virtual bool Marshalling(Parcel &parcel) const override; 51 static InstallResult *Unmarshalling(Parcel &parcel);
|
/foundation/ability/ability_runtime/service_router_framework/interfaces/inner_api/include/ |
H A D | service_info.h | 43 bool ReadFromParcel(Parcel &parcel);
44 virtual bool Marshalling(Parcel &parcel) const override;
45 static AppInfo *Unmarshalling(Parcel &parcel);
53 bool ReadFromParcel(Parcel &parcel);
54 virtual bool Marshalling(Parcel &parcel) const override;
55 static BusinessAbilityFilter *Unmarshalling(Parcel &parcel);
69 bool ReadFromParcel(Parcel &parcel);
70 virtual bool Marshalling(Parcel &parcel) const override;
71 static BusinessAbilityInfo *Unmarshalling(Parcel &parcel);
84 bool ReadFromParcel(Parcel [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/transaction/ |
H A D | rs_marshalling_helper.h | 90 static bool Marshalling(Parcel& parcel, const T& val) in Marshalling() 95 static bool Unmarshalling(Parcel& parcel, T& val) in Unmarshalling() 107 static bool Marshalling(Parcel& parcel, const std::string& val) in Marshalling() 111 static bool Unmarshalling(Parcel& parcel, std::string& val) in Unmarshalling() 117 static bool MarshallingArray(Parcel& parcel, const T* val, int count) in MarshallingArray() 125 static bool UnmarshallingArray(Parcel& parcel, T*& val, int count) in UnmarshallingArray() 141 static bool MarshallingVec(Parcel& parcel, const std::vector<T>& val) in MarshallingVec() 154 static bool UnmarshallingVec(Parcel& parcel, std::vector<T>& val) in UnmarshallingVec() 173 static bool MarshallingVec2(Parcel& parcel, const std::vector<std::vector<T>>& val) in MarshallingVec2() 186 static bool UnmarshallingVec2(Parcel [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/default_app/ |
H A D | default_app_host.h | 34 ErrCode HandleIsDefaultApplication(Parcel& data, Parcel& reply); 35 ErrCode HandleGetDefaultApplication(Parcel& data, Parcel& reply); 36 ErrCode HandleSetDefaultApplication(Parcel& data, Parcel& reply); 37 ErrCode HandleResetDefaultApplication(Parcel& data, Parcel& reply);
|