Lines Matching refs:callCtx

123     uintptr_t callCtx = 0x0;
131 ret = CreateCallCtx(&callCtx, NULL);
137 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
140 DestroyCallCtx(&callCtx, NULL);
143 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_DEV_AUTH_CB, (const uint8_t *)callback, sizeof(*callback));
146 DestroyCallCtx(&callCtx, NULL);
149 SetCbCtxToDataCtx(callCtx, IPC_CALL_BACK_STUB_BIND_ID);
150 ret = DoBinderCall(callCtx, IPC_CALL_ID_REG_CB, true);
154 DestroyCallCtx(&callCtx, NULL);
161 uintptr_t callCtx = 0x0;
169 ret = CreateCallCtx(&callCtx, NULL);
175 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
178 DestroyCallCtx(&callCtx, NULL);
181 ret = DoBinderCall(callCtx, IPC_CALL_ID_UNREG_CB, true);
185 DestroyCallCtx(&callCtx, NULL);
192 uintptr_t callCtx = 0x0;
200 ret = CreateCallCtx(&callCtx, NULL);
206 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
209 DestroyCallCtx(&callCtx, NULL);
212 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_LISTERNER, (const uint8_t *)listener, sizeof(*listener));
215 DestroyCallCtx(&callCtx, NULL);
218 SetCbCtxToDataCtx(callCtx, IPC_CALL_BACK_STUB_BIND_ID);
219 ret = DoBinderCall(callCtx, IPC_CALL_ID_REG_LISTENER, true);
223 DestroyCallCtx(&callCtx, NULL);
230 uintptr_t callCtx = 0x0;
238 ret = CreateCallCtx(&callCtx, NULL);
244 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
247 DestroyCallCtx(&callCtx, NULL);
250 ret = DoBinderCall(callCtx, IPC_CALL_ID_UNREG_LISTENER, true);
254 DestroyCallCtx(&callCtx, NULL);
259 static int32_t EncodeCreateGroupParams(uintptr_t callCtx, int32_t osAccountId, int64_t requestId,
262 int32_t ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
268 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)&requestId, sizeof(requestId));
273 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
278 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_CREATE_PARAMS,
289 uintptr_t callCtx = 0x0;
299 ret = CreateCallCtx(&callCtx, NULL);
304 ret = EncodeCreateGroupParams(callCtx, osAccountId, requestId, appId, createParams);
306 DestroyCallCtx(&callCtx, NULL);
309 ret = DoBinderCall(callCtx, IPC_CALL_ID_CREATE_GROUP, true);
312 DestroyCallCtx(&callCtx, NULL);
315 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
319 DestroyCallCtx(&callCtx, NULL);
324 static int32_t EncodeDeleteGroupParams(uintptr_t callCtx, int32_t osAccountId, int64_t requestId,
327 int32_t ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
333 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)&requestId, sizeof(requestId));
338 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_DEL_PARAMS, (const uint8_t *)delParams, HcStrlen(delParams) + 1);
343 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
353 uintptr_t callCtx = 0x0;
363 ret = CreateCallCtx(&callCtx, NULL);
368 ret = EncodeDeleteGroupParams(callCtx, osAccountId, requestId, appId, delParams);
370 DestroyCallCtx(&callCtx, NULL);
373 ret = DoBinderCall(callCtx, IPC_CALL_ID_DEL_GROUP, true);
376 DestroyCallCtx(&callCtx, NULL);
379 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
383 DestroyCallCtx(&callCtx, NULL);
388 static int32_t EncodeAddMemberParams(uintptr_t callCtx, int32_t osAccountId, int64_t requestId,
391 int32_t ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
397 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)&requestId, sizeof(requestId));
402 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
407 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_ADD_PARAMS, (const uint8_t *)addParams, HcStrlen(addParams) + 1);
417 uintptr_t callCtx = 0x0;
427 ret = CreateCallCtx(&callCtx, NULL);
432 ret = EncodeAddMemberParams(callCtx, osAccountId, requestId, appId, addParams);
434 DestroyCallCtx(&callCtx, NULL);
437 ret = DoBinderCall(callCtx, IPC_CALL_ID_ADD_GROUP_MEMBER, true);
440 DestroyCallCtx(&callCtx, NULL);
443 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
447 DestroyCallCtx(&callCtx, NULL);
452 static int32_t EncodeDeleteMemberParams(uintptr_t callCtx, int32_t osAccountId, int64_t requestId,
455 int32_t ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
461 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)&requestId, sizeof(requestId));
466 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
471 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_DEL_PARAMS, (const uint8_t *)delParams, HcStrlen(delParams) + 1);
481 uintptr_t callCtx = 0x0;
491 ret = CreateCallCtx(&callCtx, NULL);
496 ret = EncodeDeleteMemberParams(callCtx, osAccountId, requestId, appId, delParams);
498 DestroyCallCtx(&callCtx, NULL);
501 ret = DoBinderCall(callCtx, IPC_CALL_ID_DEL_GROUP_MEMBER, true);
504 DestroyCallCtx(&callCtx, NULL);
507 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
511 DestroyCallCtx(&callCtx, NULL);
523 uintptr_t callCtx = 0x0;
524 int32_t ret = CreateCallCtx(&callCtx, NULL);
529 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
533 DestroyCallCtx(&callCtx, NULL);
536 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
539 DestroyCallCtx(&callCtx, NULL);
542 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_ADD_PARAMS, (const uint8_t *)addParams, HcStrlen(addParams) + 1);
545 DestroyCallCtx(&callCtx, NULL);
548 ret = DoBinderCall(callCtx, IPC_CALL_ID_ADD_MULTI_GROUP_MEMBERS, true);
551 DestroyCallCtx(&callCtx, NULL);
555 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
559 DestroyCallCtx(&callCtx, NULL);
571 uintptr_t callCtx = 0x0;
572 int32_t ret = CreateCallCtx(&callCtx, NULL);
577 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
581 DestroyCallCtx(&callCtx, NULL);
584 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
587 DestroyCallCtx(&callCtx, NULL);
590 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_DEL_PARAMS, (const uint8_t *)delParams, HcStrlen(delParams) + 1);
593 DestroyCallCtx(&callCtx, NULL);
596 ret = DoBinderCall(callCtx, IPC_CALL_ID_DEL_MULTI_GROUP_MEMBERS, true);
599 DestroyCallCtx(&callCtx, NULL);
603 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
607 DestroyCallCtx(&callCtx, NULL);
614 uintptr_t callCtx = 0x0;
624 ret = CreateCallCtx(&callCtx, NULL);
629 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)&requestId, sizeof(requestId));
632 DestroyCallCtx(&callCtx, NULL);
635 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_COMM_DATA, data, dataLen);
638 DestroyCallCtx(&callCtx, NULL);
641 ret = DoBinderCall(callCtx, IPC_CALL_ID_GM_PROC_DATA, true);
644 DestroyCallCtx(&callCtx, NULL);
647 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
651 DestroyCallCtx(&callCtx, NULL);
658 uintptr_t callCtx = 0x0;
667 int32_t ret = CreateCallCtx(&callCtx, NULL);
672 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQ_JSON, (const uint8_t *)reqJsonStr, HcStrlen(reqJsonStr) + 1);
675 DestroyCallCtx(&callCtx, NULL);
678 ret = DoBinderCall(callCtx, IPC_CALL_ID_APPLY_REG_INFO, true);
680 DestroyCallCtx(&callCtx, NULL);
683 DecodeCallReply(callCtx, replyCache, REPLAY_CACHE_NUM(replyCache));
688 DestroyCallCtx(&callCtx, NULL);
694 DestroyCallCtx(&callCtx, NULL);
700 DestroyCallCtx(&callCtx, NULL);
704 DestroyCallCtx(&callCtx, NULL);
710 uintptr_t callCtx = 0x0;
720 ret = CreateCallCtx(&callCtx, NULL);
725 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
729 DestroyCallCtx(&callCtx, NULL);
732 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
735 DestroyCallCtx(&callCtx, NULL);
738 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_GROUPID, (const uint8_t *)groupId, HcStrlen(groupId) + 1);
741 DestroyCallCtx(&callCtx, NULL);
744 ret = DoBinderCall(callCtx, IPC_CALL_ID_CHECK_ACCESS_TO_GROUP, true);
747 DestroyCallCtx(&callCtx, NULL);
750 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
755 DestroyCallCtx(&callCtx, NULL);
785 uintptr_t callCtx = 0x0;
794 ret = CreateCallCtx(&callCtx, NULL);
798 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID,
801 DestroyCallCtx(&callCtx, NULL);
804 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
806 DestroyCallCtx(&callCtx, NULL);
809 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_QUERY_PARAMS,
812 DestroyCallCtx(&callCtx, NULL);
815 ret = DoBinderCall(callCtx, IPC_CALL_ID_GET_PK_INFO_LIST, true);
817 DestroyCallCtx(&callCtx, NULL);
820 DecodeCallReply(callCtx, replyCache, REPLAY_CACHE_NUM(replyCache));
825 DestroyCallCtx(&callCtx, NULL);
829 DestroyCallCtx(&callCtx, NULL);
856 uintptr_t callCtx = 0x0;
864 int32_t ret = CreateCallCtx(&callCtx, NULL);
869 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
873 DestroyCallCtx(&callCtx, NULL);
876 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
879 DestroyCallCtx(&callCtx, NULL);
882 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_GROUPID, (const uint8_t *)groupId, HcStrlen(groupId) + 1);
885 DestroyCallCtx(&callCtx, NULL);
888 ret = DoBinderCall(callCtx, IPC_CALL_ID_GET_GROUP_INFO, true);
890 DestroyCallCtx(&callCtx, NULL);
893 DecodeCallReply(callCtx, replyCache, REPLAY_CACHE_NUM(replyCache));
898 DestroyCallCtx(&callCtx, NULL);
902 DestroyCallCtx(&callCtx, NULL);
933 uintptr_t callCtx = 0x0;
940 int32_t ret = CreateCallCtx(&callCtx, NULL);
945 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
949 DestroyCallCtx(&callCtx, NULL);
952 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
955 DestroyCallCtx(&callCtx, NULL);
958 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_QUERY_PARAMS,
962 DestroyCallCtx(&callCtx, NULL);
965 ret = DoBinderCall(callCtx, IPC_CALL_ID_SEARCH_GROUPS, true);
967 DestroyCallCtx(&callCtx, NULL);
970 DecodeCallReply(callCtx, replyCache, REPLAY_CACHE_NUM(replyCache));
975 DestroyCallCtx(&callCtx, NULL);
979 DestroyCallCtx(&callCtx, NULL);
1010 uintptr_t callCtx = 0x0;
1018 int32_t ret = CreateCallCtx(&callCtx, NULL);
1023 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
1027 DestroyCallCtx(&callCtx, NULL);
1030 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
1033 DestroyCallCtx(&callCtx, NULL);
1036 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_GROUP_TYPE, (const uint8_t *)&groupType, sizeof(groupType));
1039 DestroyCallCtx(&callCtx, NULL);
1042 ret = DoBinderCall(callCtx, IPC_CALL_ID_GET_JOINED_GROUPS, true);
1044 DestroyCallCtx(&callCtx, NULL);
1047 DecodeCallReply(callCtx, replyCache, REPLAY_CACHE_NUM(replyCache));
1052 DestroyCallCtx(&callCtx, NULL);
1056 DestroyCallCtx(&callCtx, NULL);
1087 uintptr_t callCtx = 0x0;
1096 ret = CreateCallCtx(&callCtx, NULL);
1101 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId, sizeof(int32_t));
1104 DestroyCallCtx(&callCtx, NULL);
1107 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
1110 DestroyCallCtx(&callCtx, NULL);
1113 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_UDID, (const uint8_t *)peerUdid, HcStrlen(peerUdid) + 1);
1116 DestroyCallCtx(&callCtx, NULL);
1119 ret = DoBinderCall(callCtx, IPC_CALL_ID_GET_RELATED_GROUPS, true);
1121 DestroyCallCtx(&callCtx, NULL);
1124 DecodeCallReply(callCtx, replyCache, REPLAY_CACHE_NUM(replyCache));
1130 DestroyCallCtx(&callCtx, NULL);
1134 DestroyCallCtx(&callCtx, NULL);
1160 const char *peerUdid, const char *groupId, uintptr_t callCtx)
1163 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
1167 DestroyCallCtx(&callCtx, NULL);
1170 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
1175 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_UDID, (const uint8_t *)peerUdid, HcStrlen(peerUdid) + 1);
1180 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_GROUPID, (const uint8_t *)groupId, HcStrlen(groupId) + 1);
1191 uintptr_t callCtx = 0x0;
1201 ret = CreateCallCtx(&callCtx, NULL);
1206 ret = FormParamsForGettingDeviceInfo(osAccountId, appId, peerUdid, groupId, callCtx);
1208 DestroyCallCtx(&callCtx, NULL);
1211 ret = DoBinderCall(callCtx, IPC_CALL_ID_GET_DEV_INFO_BY_ID, true);
1214 DestroyCallCtx(&callCtx, NULL);
1217 DecodeCallReply(callCtx, replyCache, REPLAY_CACHE_NUM(replyCache));
1223 DestroyCallCtx(&callCtx, NULL);
1228 DestroyCallCtx(&callCtx, NULL);
1258 uintptr_t callCtx = 0x0;
1266 int32_t ret = CreateCallCtx(&callCtx, NULL);
1271 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
1275 DestroyCallCtx(&callCtx, NULL);
1278 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
1281 DestroyCallCtx(&callCtx, NULL);
1284 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_GROUPID, (const uint8_t *)groupId, HcStrlen(groupId) + 1);
1287 DestroyCallCtx(&callCtx, NULL);
1290 ret = DoBinderCall(callCtx, IPC_CALL_ID_GET_TRUST_DEVICES, true);
1292 DestroyCallCtx(&callCtx, NULL);
1295 DecodeCallReply(callCtx, replyCache, REPLAY_CACHE_NUM(replyCache));
1300 DestroyCallCtx(&callCtx, NULL);
1304 DestroyCallCtx(&callCtx, NULL);
1310 uintptr_t callCtx = 0x0;
1318 int32_t ret = CreateCallCtx(&callCtx, NULL);
1323 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
1327 DestroyCallCtx(&callCtx, NULL);
1330 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
1333 DestroyCallCtx(&callCtx, NULL);
1336 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_GROUPID, (const uint8_t *)groupId, HcStrlen(groupId) + 1);
1339 DestroyCallCtx(&callCtx, NULL);
1342 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_UDID, (const uint8_t *)udid, HcStrlen(udid) + 1);
1345 DestroyCallCtx(&callCtx, NULL);
1348 ret = DoBinderCall(callCtx, IPC_CALL_ID_IS_DEV_IN_GROUP, true);
1350 DestroyCallCtx(&callCtx, NULL);
1353 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
1357 DestroyCallCtx(&callCtx, NULL);
1372 uintptr_t callCtx = 0x0;
1380 ret = CreateCallCtx(&callCtx, NULL);
1385 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)(&requestId), sizeof(requestId));
1388 DestroyCallCtx(&callCtx, NULL);
1391 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
1394 DestroyCallCtx(&callCtx, NULL);
1397 ret = DoBinderCall(callCtx, IPC_CALL_GM_CANCEL_REQUEST, true);
1398 DestroyCallCtx(&callCtx, NULL);
1434 static int32_t EncodeProcessDataParams(uintptr_t callCtx, int64_t authReqId,
1437 int32_t ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)(&authReqId), sizeof(authReqId));
1442 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_COMM_DATA, (const uint8_t *)data, dataLen);
1447 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_DEV_AUTH_CB, (const uint8_t *)callback, sizeof(*callback));
1452 SetCbCtxToDataCtx(callCtx, 0x0);
1459 uintptr_t callCtx = 0x0;
1469 ret = CreateCallCtx(&callCtx, NULL);
1474 ret = EncodeProcessDataParams(callCtx, authReqId, data, dataLen, callback);
1476 DestroyCallCtx(&callCtx, NULL);
1479 ret = DoBinderCall(callCtx, IPC_CALL_ID_GA_PROC_DATA, true);
1482 DestroyCallCtx(&callCtx, NULL);
1485 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
1490 DestroyCallCtx(&callCtx, NULL);
1494 static int32_t EncodeAuthDeviceParams(uintptr_t callCtx, int32_t osAccountId, int64_t authReqId,
1497 int32_t ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
1503 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)(&authReqId), sizeof(authReqId));
1508 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_AUTH_PARAMS, (const uint8_t *)authParams,
1514 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_DEV_AUTH_CB, (const uint8_t *)callback, sizeof(*callback));
1519 SetCbCtxToDataCtx(callCtx, IPC_CALL_BACK_STUB_AUTH_ID);
1526 uintptr_t callCtx = 0x0;
1536 ret = CreateCallCtx(&callCtx, NULL);
1541 ret = EncodeAuthDeviceParams(callCtx, osAccountId, authReqId, authParams, callback);
1543 DestroyCallCtx(&callCtx, NULL);
1546 ret = DoBinderCall(callCtx, IPC_CALL_ID_AUTH_DEVICE, true);
1549 DestroyCallCtx(&callCtx, NULL);
1552 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
1557 DestroyCallCtx(&callCtx, NULL);
1563 uintptr_t callCtx = 0x0;
1571 ret = CreateCallCtx(&callCtx, NULL);
1576 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)(&requestId), sizeof(requestId));
1579 DestroyCallCtx(&callCtx, NULL);
1582 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_APPID, (const uint8_t *)appId, HcStrlen(appId) + 1);
1585 DestroyCallCtx(&callCtx, NULL);
1588 ret = DoBinderCall(callCtx, IPC_CALL_GA_CANCEL_REQUEST, true);
1589 DestroyCallCtx(&callCtx, NULL);
1612 uintptr_t callCtx = 0x0;
1621 ret = CreateCallCtx(&callCtx, NULL);
1626 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
1630 DestroyCallCtx(&callCtx, NULL);
1633 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_PSEUDONYM_ID, (const uint8_t *)pseudonymId,
1637 DestroyCallCtx(&callCtx, NULL);
1640 ret = DoBinderCall(callCtx, IPC_CALL_ID_GET_REAL_INFO, true);
1643 DestroyCallCtx(&callCtx, NULL);
1647 DecodeCallReply(callCtx, replyCache, REPLAY_CACHE_NUM(replyCache));
1652 DestroyCallCtx(&callCtx, NULL);
1658 uintptr_t callCtx = 0x0;
1667 ret = CreateCallCtx(&callCtx, NULL);
1672 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_OS_ACCOUNT_ID, (const uint8_t *)&osAccountId,
1676 DestroyCallCtx(&callCtx, NULL);
1679 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_INDEX_KEY, (const uint8_t *)indexKey, HcStrlen(indexKey) + 1);
1682 DestroyCallCtx(&callCtx, NULL);
1685 ret = DoBinderCall(callCtx, IPC_CALL_ID_GET_PSEUDONYM_ID, true);
1688 DestroyCallCtx(&callCtx, NULL);
1692 DecodeCallReply(callCtx, replyCache, REPLAY_CACHE_NUM(replyCache));
1697 DestroyCallCtx(&callCtx, NULL);
1713 uintptr_t callCtx = IPC_CALL_CONTEXT_INIT;
1722 ret = CreateCallCtx(&callCtx, NULL);
1728 callCtx, PARAM_TYPE_OPCODE, (const uint8_t *)&operationCode, sizeof(operationCode));
1731 DestroyCallCtx(&callCtx, NULL);
1735 SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQ_JSON, (const uint8_t *)reqJsonStr, HcStrlen(reqJsonStr) + 1);
1738 DestroyCallCtx(&callCtx, NULL);
1741 ret = DoBinderCall(callCtx, IPC_CALL_ID_PROCESS_CREDENTIAL, true);
1744 DestroyCallCtx(&callCtx, NULL);
1747 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
1752 DestroyCallCtx(&callCtx, NULL);
1759 uintptr_t callCtx = IPC_CALL_CONTEXT_INIT;
1769 ret = CreateCallCtx(&callCtx, NULL);
1774 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)(&requestId), sizeof(requestId));
1777 DestroyCallCtx(&callCtx, NULL);
1781 callCtx, PARAM_TYPE_AUTH_PARAMS, (const uint8_t *)authParams, HcStrlen(authParams) + 1);
1784 DestroyCallCtx(&callCtx, NULL);
1787 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_DEV_AUTH_CB, (const uint8_t *)callback, sizeof(*callback));
1790 DestroyCallCtx(&callCtx, NULL);
1793 SetCbCtxToDataCtx(callCtx, IPC_CALL_BACK_STUB_DIRECT_AUTH_ID);
1794 ret = DoBinderCall(callCtx, IPC_CALL_ID_DA_PROC_DATA, true);
1797 DestroyCallCtx(&callCtx, NULL);
1800 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
1806 DestroyCallCtx(&callCtx, NULL);
1813 uintptr_t callCtx = IPC_CALL_CONTEXT_INIT;
1823 ret = CreateCallCtx(&callCtx, NULL);
1828 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)(&authReqId), sizeof(authReqId));
1831 DestroyCallCtx(&callCtx, NULL);
1835 callCtx, PARAM_TYPE_AUTH_PARAMS, (const uint8_t *)authParams, HcStrlen(authParams) + 1);
1838 DestroyCallCtx(&callCtx, NULL);
1841 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_DEV_AUTH_CB, (const uint8_t *)callback, sizeof(*callback));
1844 DestroyCallCtx(&callCtx, NULL);
1847 SetCbCtxToDataCtx(callCtx, IPC_CALL_BACK_STUB_DIRECT_AUTH_ID);
1848 ret = DoBinderCall(callCtx, IPC_CALL_ID_DA_AUTH_DEVICE, true);
1851 DestroyCallCtx(&callCtx, NULL);
1854 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
1860 DestroyCallCtx(&callCtx, NULL);
1866 uintptr_t callCtx = IPC_CALL_CONTEXT_INIT;
1876 ret = CreateCallCtx(&callCtx, NULL);
1881 ret = SetCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)(&requestId), sizeof(requestId));
1884 DestroyCallCtx(&callCtx, NULL);
1888 callCtx, PARAM_TYPE_AUTH_PARAMS, (const uint8_t *)authParams, HcStrlen(authParams) + 1);
1891 DestroyCallCtx(&callCtx, NULL);
1894 ret = DoBinderCall(callCtx, IPC_CALL_ID_DA_CANCEL_REQUEST, true);
1897 DestroyCallCtx(&callCtx, NULL);
1900 DecodeCallReply(callCtx, &replyCache, REPLAY_CACHE_NUM(replyCache));
1906 DestroyCallCtx(&callCtx, NULL);