Searched refs:reqNode (Results 1 – 5 of 5) sorted by relevance
/base/startup/appspawn/interfaces/innerkits_new/client/ |
D | appspawn_msg.c | 38 static inline int CheckMsg(const AppSpawnReqMsgNode *reqNode, const AppSpawnTlv *tlv, const char *n… in CheckMsg() argument 40 if ((reqNode->msg->msgLen + tlv->tlvLen) > MAX_MSG_TOTAL_LENGTH) { in CheckMsg() 44 if (reqNode->msg->msgType == MSG_GET_RENDER_TERMINATION_STATUS) { in CheckMsg() 62 static AppSpawnMsgBlock *CreateAppSpawnMsgBlock(AppSpawnReqMsgNode *reqNode) in CreateAppSpawnMsgBlock() argument 69 OH_ListAddTail(&reqNode->msgBlocks, &block->node); in CreateAppSpawnMsgBlock() 73 static AppSpawnMsgBlock *GetValidMsgBlock(const AppSpawnReqMsgNode *reqNode, uint32_t realLen) in GetValidMsgBlock() argument 76 struct ListNode *node = reqNode->msgBlocks.next; in GetValidMsgBlock() 77 while (node != &reqNode->msgBlocks) { in GetValidMsgBlock() 87 static AppSpawnMsgBlock *GetTailMsgBlock(const AppSpawnReqMsgNode *reqNode) in GetTailMsgBlock() argument 90 struct ListNode *node = reqNode->msgBlocks.prev; in GetTailMsgBlock() [all …]
|
D | appspawn_client.c | 157 static int HandleMsgSend(AppSpawnReqMsgMgr *reqMgr, int socketId, AppSpawnReqMsgNode *reqNode) in HandleMsgSend() argument 159 …APPSPAWN_LOGV("HandleMsgSend reqId: %{public}u msgId: %{public}d", reqNode->reqId, reqNode->msg->m… in HandleMsgSend() 160 ListNode *sendNode = reqNode->msgBlocks.next; in HandleMsgSend() 162 while (sendNode != NULL && sendNode != &reqNode->msgBlocks) { in HandleMsgSend() 167 ret, reqNode->msg->msgId, reqNode->msg->msgLen, currentIndex); in HandleMsgSend() 173 reqNode->reqId, reqNode->msg->msgId, ret); in HandleMsgSend() 196 static int ClientSendMsg(AppSpawnReqMsgMgr *reqMgr, AppSpawnReqMsgNode *reqNode, AppSpawnResult *re… in ClientSendMsg() argument 209 if (reqNode->msg->msgId == 0) { in ClientSendMsg() 210 reqNode->msg->msgId = reqMgr->msgNextId++; in ClientSendMsg() 212 int ret = HandleMsgSend(reqMgr, reqMgr->socketId, reqNode); in ClientSendMsg() [all …]
|
/base/startup/appspawn/test/unittest/ |
D | app_spawn_test_helper.h | 123 AppSpawnReqMsgNode *reqNode = (AppSpawnReqMsgNode *)reqHandle; in AppSpawnReqMsgSetFlags() local 124 APPSPAWN_CHECK_ONLY_EXPER(reqNode != NULL, return APPSPAWN_ARG_INVALID); in AppSpawnReqMsgSetFlags() 126 *(uint32_t *)reqNode->msgFlags->flags = flags; in AppSpawnReqMsgSetFlags() 128 *(uint32_t *)reqNode->permissionFlags->flags = flags; in AppSpawnReqMsgSetFlags()
|
D | app_spawn_test_helper.cpp | 486 AppSpawnReqMsgNode *reqNode = static_cast<AppSpawnReqMsgNode *>(reqHandle); in GetAppProperty() local 487 APPSPAWN_CHECK(reqNode != nullptr && reqNode->msg != nullptr, AppSpawnReqMsgFree(reqHandle); in GetAppProperty() 490 AppSpawnMsgNode *msgNode = CreateAppSpawnMsg(reqNode->msg); in GetAppProperty() 493 uint32_t bufferSize = reqNode->msg->msgLen; in GetAppProperty() 496 ListNode *node = reqNode->msgBlocks.next; in GetAppProperty() 497 while (node != &reqNode->msgBlocks) { in GetAppProperty()
|
/base/startup/appspawn/test/unittest/app_spawn_client_test/ |
D | app_spawn_client_test.cpp | 197 AppSpawnReqMsgNode *reqNode = (AppSpawnReqMsgNode *)reqHandle; variable 198 APPSPAWN_CHECK(reqNode != nullptr, break, "Invalid reqNode"); 199 APPSPAWN_CHECK(reqNode->msgFlags != nullptr, break, "Invalid reqNode"); 201 APPSPAWN_CHECK(reqNode->msgFlags->count == maxUnit, 202 break, "Invalid reqNode %{public}d", reqNode->msgFlags->count); 208 uint32_t result = (reqNode->msgFlags->flags[index] & bits) == bits;
|