Home
last modified time | relevance | path

Searched refs:OHIPCParcel (Results 1 - 17 of 17) sorted by relevance

/foundation/communication/ipc/interfaces/innerkits/c_api/include/
H A Dipc_cparcel.h20 * @addtogroup OHIPCParcel
51 struct OHIPCParcel;
59 typedef struct OHIPCParcel OHIPCParcel; typedef
104 * @brief Creates an <b>OHIPCParcel</b> object, which cannot exceed 204,800 bytes.
107 * @return Returns the pointer to the <b>OHIPCParcel</b> object created if the operation is successful;
111 OHIPCParcel* OH_IPCParcel_Create(void);
114 * @brief Destroys an <b>OHIPCParcel</b> object.
117 * @param parcel Pointer to the <b>OHIPCParcel</b> object to destroy.
120 void OH_IPCParcel_Destroy(OHIPCParcel *parce
[all...]
H A Dipc_cremote_object.h80 typedef int (*OH_OnRemoteRequestCallback)(uint32_t code, const OHIPCParcel *data,
81 OHIPCParcel *reply, void *userData);
170 int OH_IPCRemoteProxy_SendRequest(const OHIPCRemoteProxy *proxy, uint32_t code, const OHIPCParcel *data,
171 OHIPCParcel *reply, const OH_IPC_MessageOption *option);
H A Dipc_inner_object.h27 struct OHIPCParcel { struct
/foundation/communication/ipc/ipc/native/src/c_api/source/
H A Dipc_cparcel.cpp26 static constexpr OHOS::HiviewDFX::HiLogLabel LOG_LABEL = { LOG_CORE, OHOS::LOG_ID_IPC_CAPI, "OHIPCParcel" };
28 OHIPCParcel* OH_IPCParcel_Create(void) in OH_IPCParcel_Create()
35 OHIPCParcel *parcel = new (std::nothrow) OHIPCParcel(); in OH_IPCParcel_Create()
45 void OH_IPCParcel_Destroy(OHIPCParcel *parcel) in OH_IPCParcel_Destroy()
57 static int SetParcelProperty(OHIPCParcel *parcel, T value, bool (OHOS::MessageParcel::*SetProperty)(U value)) in SetParcelProperty()
67 static T GetParcelPropertyConst(const OHIPCParcel *parcel, U (OHOS::MessageParcel::*GetProperty)() const) in GetParcelPropertyConst()
76 static T GetParcelProperty(const OHIPCParcel *parcel, U (OHOS::MessageParcel::*GetProperty)()) in GetParcelProperty()
84 int OH_IPCParcel_GetDataSize(const OHIPCParcel *parcel) in OH_IPCParcel_GetDataSize()
89 int OH_IPCParcel_GetWritableBytes(const OHIPCParcel *parce
[all...]
H A Dipc_remote_object_internal.cpp71 OHIPCParcel parcelData{ &data }; in OnRemoteRequest()
72 OHIPCParcel parcelReply{ &reply }; in OnRemoteRequest()
H A Dipc_internal_utils.cpp23 bool IsIPCParcelValid(const OHIPCParcel *parcel, const char *promot) in IsIPCParcelValid()
H A Dipc_cremote_object.cpp124 int OH_IPCRemoteProxy_SendRequest(const OHIPCRemoteProxy *proxy, uint32_t code, const OHIPCParcel *data, in OH_IPCRemoteProxy_SendRequest()
125 OHIPCParcel *reply, const OH_IPC_MessageOption *option) in OH_IPCRemoteProxy_SendRequest()
/foundation/communication/ipc/ipc/test/auxiliary/native/include/
H A Dtest_capi_skeleton.h74 void SendBasicDataType(OHIPCParcel *data);
75 int TestBasicDataTypeReply(const OHIPCParcel *reply);
78 static int OnRemoteRequestStubCallBack(uint32_t code, const OHIPCParcel *data,
79 OHIPCParcel *reply, void *userData);
102 static int OnRemoteRequest(uint32_t code, const OHIPCParcel *data, OHIPCParcel *reply, void *userData);
114 [[maybe_unused]] static thread_local const OHIPCParcel *currentData_;
115 [[maybe_unused]] static thread_local OHIPCParcel *currentReply_;
/foundation/communication/ipc/ipc/test/auxiliary/native/src/
H A Dtest_capi_skeleton.cpp101 OHIPCParcel *data = OH_IPCParcel_Create(); in SyncAdd()
105 OHIPCParcel *reply = OH_IPCParcel_Create(); in SyncAdd()
146 OHIPCParcel *data = OH_IPCParcel_Create(); in ASyncAdd()
179 const OHIPCParcel *data, OHIPCParcel *reply, void *userData) in OnRemoteRequestStubCallBack()
223 void NativeRemoteProxyTest::SendBasicDataType(OHIPCParcel *data) in SendBasicDataType()
236 static int CheckBaseDataReply(const OHIPCParcel *data, T checkValue, in CheckBaseDataReply()
237 int (*readFunc)(const OHIPCParcel *data, T *value)) in CheckBaseDataReply()
250 int NativeRemoteProxyTest::TestBasicDataTypeReply(const OHIPCParcel *reply) in TestBasicDataTypeReply()
291 OHIPCParcel *dat in SendAndEchoBase()
[all...]
/foundation/graphic/graphic_surface/interfaces/inner_api/surface/
H A Dexternal_window.h54 typedef struct OHIPCParcel OHIPCParcel; typedef
714 * @brief Write an OHNativeWindow to an OHIPCParcel.
718 * @param parcel Indicates the pointer to an <b>OHIPCParcel</b> instance.
723 int32_t OH_NativeWindow_WriteToParcel(OHNativeWindow *window, OHIPCParcel *parcel);
726 * @brief Read an OHNativeWindow from an OHIPCParcel.
729 * @param parcel Indicates the pointer to an <b>OHIPCParcel</b> instance.
736 int32_t OH_NativeWindow_ReadFromParcel(OHIPCParcel *parcel, OHNativeWindow **window);
H A Dwindow.h74 int32_t NativeWindowWriteToParcel(OHNativeWindow *window, OHIPCParcel *parcel);
75 int32_t NativeWindowReadFromParcel(OHIPCParcel *parcel, OHNativeWindow **window);
/foundation/communication/ipc/ipc/native/test/unittest/common/
H A Dipc_capi_parcel_unittest.cpp107 static int OnRemoteRequestStub(uint32_t code, const OHIPCParcel *data, OHIPCParcel *reply, in OnRemoteRequestStub()
134 std::cout << "OHIPCParcel writeAvg:" << writeAvg << "ns, readAvg:" << readAvg << "ns" << std::endl; in PerformanceStatistic()
350 OHIPCParcel *parcel = OH_IPCParcel_Create(); in HWTEST_F()
357 OHIPCParcel *parcel = OH_IPCParcel_Create(); in HWTEST_F()
364 OHIPCParcel *parcel = OH_IPCParcel_Create(); in HWTEST_F()
380 OHIPCParcel *parcel = OH_IPCParcel_Create(); in HWTEST_F()
399 OHIPCParcel *parcel = OH_IPCParcel_Create(); in HWTEST_F()
415 OHIPCParcel *parcel = OH_IPCParcel_Create(); in HWTEST_F()
435 OHIPCParcel *parce in HWTEST_F()
[all...]
H A Dipc_capi_remote_object_unittest.cpp53 static int OnRemoteRequestStub(uint32_t code, const OHIPCParcel *data, OHIPCParcel *reply, void *userData);
122 int IpcCApiRemoteObjectUnitTest::OnRemoteRequestStub(uint32_t code, const OHIPCParcel *data, OHIPCParcel *reply, in OnRemoteRequestStub()
203 OHIPCParcel *dataParcel = OH_IPCParcel_Create(); in HWTEST_F()
204 OHIPCParcel *replyParcel = OH_IPCParcel_Create(); in HWTEST_F()
/foundation/communication/ipc/ipc/native/src/c_api/include/
H A Dipc_internal_utils.h25 bool IsIPCParcelValid(const OHIPCParcel *parcel, const char *promot);
/foundation/graphic/graphic_surface/surface/test/fuzztest/nativewindow_fuzzer/
H A Dnativewindow_fuzzer.cpp173 OHIPCParcel *parcel = OH_IPCParcel_Create(); in NativeWindowFuzzTest1()
/foundation/graphic/graphic_surface/surface/src/
H A Dnative_window.cpp721 int32_t NativeWindowWriteToParcel(OHNativeWindow *window, OHIPCParcel *parcel) in NativeWindowWriteToParcel()
744 int32_t NativeWindowReadFromParcel(OHIPCParcel *parcel, OHNativeWindow **window) in NativeWindowReadFromParcel()
/foundation/graphic/graphic_surface/surface/test/unittest/
H A Dnative_window_test.cpp1973 OHIPCParcel *parcel1 = OH_IPCParcel_Create(); in HWTEST_F()
1974 OHIPCParcel *parcel2 = OH_IPCParcel_Create(); in HWTEST_F()
2024 OHIPCParcel *parcel1 = OH_IPCParcel_Create(); in HWTEST_F()

Completed in 17 milliseconds