Lines Matching refs:serviceName

40     char *serviceName;
115 return node->serviceName;
129 static int32_t CheckBinderParams(const void *serviceName, uint32_t nameLen, const char *deviceID,
132 if (serviceName == NULL || deviceID == NULL || remoteObject == NULL) {
137 if (strlen((char *)serviceName) != nameLen || strlen(deviceID) != idLen) {
144 static DBinderServiceStub *QueryDBinderStub(const char *serviceName, const char *deviceID,
151 if (IsSameStub(node, serviceName, deviceID, binderObject)) {
168 static DBinderServiceStub *FindOrNewDBinderStub(const char *serviceName, uint32_t nameLen,
171 if (serviceName == NULL || deviceID == NULL) {
176 DBinderServiceStub *node = QueryDBinderStub(serviceName, deviceID, binderObject);
187 if (GetDBinderStub(serviceName, deviceID, binderObject, node) != ERR_NONE) {
478 char *serviceName = GetRegisterService(binderObject);
479 if (serviceName == NULL && (systemAbilityId < FIRST_SYS_ABILITY_ID || systemAbilityId > LAST_SYS_ABILITY_ID)) {
575 if (memcpy_s(replyMessage->serviceName, SERVICENAME_LENGTH, serverSessionName, sessionLen) != 0) {
576 RPC_LOG_ERROR("replyMessage serviceName memcpy failed");
580 replyMessage->serviceName[replyMessage->serviceNameLength] = '\0';
692 if (strcpy_s(session->serviceName, SERVICENAME_LENGTH + 1, replyMessage->serviceName) != EOK) {
693 RPC_LOG_ERROR("session serviceName copy failed");
697 session->serviceName[replyMessage->serviceNameLength] = '\0';
767 const char *serviceName = (const char *)name;
768 RPC_LOG_INFO("register remote proxy, service name = %s", serviceName);
779 if (len == 0 || len > SERVICENAME_LENGTH || len != strlen(serviceName)) {
784 binderObject->serviceName = (char *)malloc(len + 1);
785 if (binderObject->serviceName == NULL) {
786 RPC_LOG_ERROR("RegisterRemoteProxy binderObject->serviceName malloc failed");
791 if (strcpy_s(binderObject->serviceName, len + 1, serviceName) != EOK) {
792 RPC_LOG_ERROR("RegisterRemoteProxy binderObject->serviceName copy failed");
793 free(binderObject->serviceName);
802 int32_t MakeRemoteBinder(const void *serviceName, uint32_t nameLen, const char *deviceID, uint32_t idLen,
806 if (CheckBinderParams(serviceName, nameLen, deviceID, idLen, remoteObject) != ERR_NONE) {
811 const char *name = (const char *)serviceName;
826 RPC_LOG_ERROR("fail to invoke service, service name = %s", serviceName);