Lines Matching refs:callerInfo
36 const CallerInfo *callerInfo, const IDmsListener *callback);
37 static int32_t MarshallDmsMessage(const Want *want, const CallerInfo *callerInfo);
45 int32_t StartRemoteAbilityInner(const Want *want, const CallerInfo *callerInfo, in StartRemoteAbilityInner() argument
48 if (want == NULL || want->element == NULL || callerInfo == NULL) { in StartRemoteAbilityInner()
63 if (FillRequestData(reqdata, want, callerInfo, callback) != DMS_EC_SUCCESS) { in StartRemoteAbilityInner()
64 FreeRequestData(reqdata->want, reqdata->callerInfo); in StartRemoteAbilityInner()
78 FreeRequestData(reqdata->want, reqdata->callerInfo); in StartRemoteAbilityInner()
85 int32_t StartRemoteAbility(const Want *want, CallerInfo *callerInfo, IDmsListener *callback) in StartRemoteAbility() argument
88 if (want == NULL || want->element == NULL || callerInfo == NULL) { in StartRemoteAbility()
100 if (MarshallDmsMessage(want, callerInfo) != DMS_EC_SUCCESS) { in StartRemoteAbility()
112 static int32_t MarshallDmsMessage(const Want *want, const CallerInfo *callerInfo) in MarshallDmsMessage() argument
120 int32_t ret = GetCallerBundleInfo(callerInfo, &bundleInfo); in MarshallDmsMessage()
138 static int32_t FillCallerInfo(RequestData *reqdata, const CallerInfo *callerInfo) in FillCallerInfo() argument
140 if (callerInfo == NULL || reqdata == NULL) { in FillCallerInfo()
152 reqdata->callerInfo = callerData; in FillCallerInfo()
154 callerData->uid = callerInfo->uid; in FillCallerInfo()
155 if (callerInfo->bundleName != NULL) { in FillCallerInfo()
156 int32_t size = strlen(callerInfo->bundleName) + ENDING_SYMBOL_LEN; in FillCallerInfo()
161 if (memcpy_s(data, size, callerInfo->bundleName, size) != EOK) { in FillCallerInfo()
172 const CallerInfo *callerInfo, const IDmsListener *callback) in FillRequestData() argument
212 if (FillCallerInfo(reqdata, callerInfo) != DMS_EC_SUCCESS) { in FillRequestData()
220 void FreeRequestData(const Want *want, CallerInfo *callerInfo) in FreeRequestData() argument
227 if (callerInfo != NULL) { in FreeRequestData()
228 DMS_FREE(callerInfo->bundleName); in FreeRequestData()
229 DMS_FREE(callerInfo); in FreeRequestData()