Home
last modified time | relevance | path

Searched refs:msgParcel (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/communication/ipc/ipc/native/src/c_api/source/
H A Dipc_cparcel.cpp31 if (msgParcel == nullptr) { in OH_IPCParcel_Create()
38 delete msgParcel; in OH_IPCParcel_Create()
41 parcel->msgParcel = msgParcel; in OH_IPCParcel_Create()
48 if (parcel->msgParcel != nullptr) { in OH_IPCParcel_Destroy()
49 delete parcel->msgParcel; in OH_IPCParcel_Destroy()
50 parcel->msgParcel = nullptr; in OH_IPCParcel_Destroy()
213 return parcel->msgParcel->ReadCString(); in OH_IPCParcel_ReadString()
242 return parcel->msgParcel->ReadBuffer(len); in OH_IPCParcel_ReadBuffer()
324 … return parcel->msgParcel->Append(*(data->msgParcel)) ? OH_IPC_SUCCESS : OH_IPC_PARCEL_WRITE_ERROR; in OH_IPCParcel_Append()
361 parcel->msgParcel->RewindRead(readPosition); in OH_IPCParcel_ReadInterfaceToken()
[all …]
H A Dipc_cremote_object.cpp142 ret = proxy->remote->SendRequest(code, *data->msgParcel, *reply->msgParcel, msgOption); in OH_IPCRemoteProxy_SendRequest()
147 ret = proxy->remote->SendRequest(code, *data->msgParcel, msgReply, msgOption); in OH_IPCRemoteProxy_SendRequest()
H A Dipc_internal_utils.cpp25 if (parcel == nullptr || parcel->msgParcel == nullptr) { in IsIPCParcelValid()
/ohos5.0/foundation/communication/ipc/interfaces/innerkits/rust/src/cxx/
H A Dparcel_wrapper.cpp48 Parcel const *AsParcel(const MessageParcel &msgParcel) in AsParcel() argument
50 auto msgParcelMut = const_cast<MessageParcel *>(&msgParcel); in AsParcel()
54 Parcel *AsParcelMut(MessageParcel &msgParcel) in AsParcelMut() argument
56 return reinterpret_cast<Parcel *>(&msgParcel); in AsParcelMut()
62 return msgParcel.WriteInterfaceToken(s); in WriteInterfaceToken()
65 rust::string ReadInterfaceToken(MessageParcel &msgParcel) in ReadInterfaceToken() argument
67 return msgParcel.ReadInterfaceToken().data(); in ReadInterfaceToken()
75 return msgParcel.WriteRemoteObject(object->sptr_); in WriteRemoteObject()
81 sptr<IRemoteObject> remote = msgParcel.ReadRemoteObject(); in ReadRemoteObject()
93 return msgParcel.WriteBuffer(buffer.data(), buffer.size()); in WriteBuffer()
[all …]
/ohos5.0/base/print/print_fwk/frameworks/models/print_models/src/
H A Dprint_preview_attribute.cpp82 auto msgParcel = static_cast<MessageParcel*>(&parcel); in ReadFromParcel() local
83 if (hasResult_ && msgParcel != nullptr) { in ReadFromParcel()
84 SetResult(msgParcel->ReadFileDescriptor()); in ReadFromParcel()
95 auto msgParcel = static_cast<MessageParcel*>(&parcel); in Marshalling() local
96 if (msgParcel != nullptr) { in Marshalling()
97 msgParcel->WriteBool(hasResult_); in Marshalling()
99 msgParcel->WriteFileDescriptor(GetResult()); in Marshalling()
H A Dprint_job.cpp298 auto msgParcel = static_cast<MessageParcel*>(&parcel); in ReadParcelFD() local
300 auto fd = msgParcel->ReadFileDescriptor(); in ReadParcelFD()
353 auto msgParcel = static_cast<MessageParcel*>(&parcel); in Marshalling() local
354 if (msgParcel != nullptr) { in Marshalling()
356 msgParcel->WriteFileDescriptor(fd); in Marshalling()
/ohos5.0/foundation/communication/ipc/interfaces/innerkits/rust/include/
H A Dparcel_wrapper.h35 Parcel const *AsParcel(const MessageParcel &msgParcel);
37 Parcel *AsParcelMut(MessageParcel &msgParcel);
39 bool WriteInterfaceToken(MessageParcel &msgParcel, const rust::str name);
40 rust::string ReadInterfaceToken(MessageParcel &msgParcel);
42 bool WriteBuffer(MessageParcel &msgParcel, rust::slice<const uint8_t> buffer);
43 bool ReadBuffer(MessageParcel &msgParcel, size_t len, rust::vec<uint8_t> &buffer);
82 bool WriteRemoteObject(MessageParcel &msgParcel, std::unique_ptr<IRemoteObjectWrapper> object);
83 std::unique_ptr<IRemoteObjectWrapper> ReadRemoteObject(MessageParcel &msgParcel);
/ohos5.0/foundation/filemanagement/app_file_service/frameworks/native/backup_kit_inner/src/
H A Db_incremental_data.cpp31 auto msgParcel = static_cast<MessageParcel *>(&parcel); in Marshalling() local
32 msgParcel->WriteFileDescriptor(manifestFd); in Marshalling()
43 auto msgParcel = static_cast<MessageParcel *>(&parcel); in ReadFromParcel() local
44 manifestFd = msgParcel->ReadFileDescriptor(); in ReadFromParcel()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dpicture_handle_service.cpp54 MessageParcel msgParcel; in OpenPicture() local
55 msgParcel.WriteUint32(msgLen); in OpenPicture()
57 msgParcel.WriteUint32(dataSize); in OpenPicture()
59 msgParcel.WriteUint32(auxiliaryPictureSize); in OpenPicture()
61 msgParcel.WriteBuffer((void*)data.GetData(), dataSize); in OpenPicture()
65 fd = AshmemCreate(name.c_str(), msgParcel.GetDataSize()); in OpenPicture()
80 void *addr = mmap(nullptr, msgParcel.GetDataSize(), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in OpenPicture()
87 …if (memcpy_s(addr, msgParcel.GetDataSize(), (void*)msgParcel.GetData(), msgParcel.GetDataSize())) { in OpenPicture()
90 munmap(addr, msgParcel.GetDataSize()); in OpenPicture()
93 munmap(addr, msgParcel.GetDataSize()); in OpenPicture()
/ohos5.0/foundation/communication/ipc/interfaces/innerkits/c_api/include/
H A Dipc_inner_object.h28 OHOS::MessageParcel* msgParcel; member
/ohos5.0/foundation/communication/ipc/interfaces/innerkits/rust/src/parcel/
H A Dwrapper.rs48 unsafe fn AsParcelMut(msgParcel: Pin<&mut MessageParcel>) -> *mut Parcel; in AsParcelMut()
50 fn WriteInterfaceToken(msgParcel: Pin<&mut MessageParcel>, name: &str) -> bool; in WriteInterfaceToken()
51 fn ReadInterfaceToken(msgParcel: Pin<&mut MessageParcel>) -> String; in ReadInterfaceToken()
53 fn WriteBuffer(msgParcel: Pin<&mut MessageParcel>, buffer: &[u8]) -> bool; in WriteBuffer()
55 fn ReadBuffer(msgParcel: Pin<&mut MessageParcel>, len: usize, buffer: &mut Vec<u8>) in ReadBuffer()
59 msgParcel: Pin<&mut MessageParcel>, in WriteRemoteObject()
63 fn ReadRemoteObject(msgParcel: Pin<&mut MessageParcel>) -> UniquePtr<IRemoteObjectWrapper>; in ReadRemoteObject()
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/test/unittest/common/
H A Dsys_event_service_ohos_test.cpp194 MessageParcel msgParcel; variable
199 auto result = AshMemUtils::WriteBulkData(msgParcel, from);
202 auto result1 = AshMemUtils::ReadBulkData(msgParcel, to);
/ohos5.0/foundation/graphic/graphic_surface/surface/src/
H A Dnative_window.cpp730 if (parcel == nullptr || parcel->msgParcel == nullptr) { in NativeWindowWriteToParcel()
739 (parcel->msgParcel)->WriteRemoteObject(producer->AsObject()); in NativeWindowWriteToParcel()
745 if (parcel == nullptr || parcel->msgParcel == nullptr || window == nullptr) { in NativeWindowReadFromParcel()
748 sptr<OHOS::IRemoteObject> surfaceObject = (parcel->msgParcel)->ReadRemoteObject(); in NativeWindowReadFromParcel()
/ohos5.0/foundation/graphic/graphic_surface/surface/test/unittest/
H A Dnative_window_test.cpp1955 auto innerParcel = parcel1->msgParcel;
1956 parcel1->msgParcel = nullptr;
1958 parcel1->msgParcel = innerParcel;