/base/startup/init/services/param/liteos/ |
D | param_osadp.c | 45 PARAM_CHECK(timer != NULL, return, "Invalid timer"); in TimerHandle() 73 PARAM_CHECK(timer != NULL && process != NULL, return -1, "Invalid timer"); in ParamTimerCreate() 75 PARAM_CHECK(paramTimer != NULL, return -1, "Failed to create timer"); in ParamTimerCreate() 96 PARAM_CHECK(timer != NULL, return -1, "Invalid timer"); in ParamTimerStart() 100 PARAM_CHECK(ret >= 0, return -1, "Failed to start timer"); in ParamTimerStart() 106 PARAM_CHECK(timer != NULL, return, "Invalid timer"); in ParamTimerClose() 115 PARAM_CHECK(fileName != NULL && handle != NULL, return NULL, "Invalid filename or handle"); in GetSharedMem() 120 … PARAM_CHECK(fd >= 0, return NULL, "Open file %s mode %x fail error %d", fileName, mode, errno); in GetSharedMem() 124 PARAM_CHECK(key != -1, return NULL, "Invalid errno %d key for %s", errno, fileName); in GetSharedMem() 129 PARAM_CHECK(handle->shmid != -1, return NULL, "Invalid shmId errno %d for %s", errno, fileName); in GetSharedMem() [all …]
|
D | param_client.c | 32 PARAM_CHECK(ret == 0, return -1, "Failed to init param workspace"); in ClientInit() 50 PARAM_CHECK(name != NULL && value != NULL, return -1, "Invalid name or value %s", name); in SystemSetParameter() 53 PARAM_CHECK(ret == 0, return ret, "Forbid to set parameter %s", name); in SystemSetParameter() 58 PARAM_CHECK(ret == 0, return ret, "Failed to set param %d name %s %s", ret, name, value); in SystemSetParameter() 60 PARAM_CHECK(ret == 0, return ret, "Failed to set persist param name %s", name); in SystemSetParameter() 69 PARAM_CHECK(name != NULL && value != NULL, return PARAM_CODE_INVALID_PARAM, in SystemWaitParameter() 74 …PARAM_CHECK(ret == 0, return ret, "SystemWaitParameter failed! name is: %s, errNum is: %d", name, … in SystemWaitParameter()
|
D | param_service.c | 69 PARAM_CHECK(ret == 0, return ret, "Init parameter workspace fail"); in InitParamService() 71 PARAM_CHECK(ret == 0, return ret, "Init persist parameter workspace fail"); in InitParamService() 77 PARAM_CHECK(buffer != NULL, return ret, "Failed to malloc for buffer"); in InitParamService() 83 PARAM_CHECK(ret == 0, continue, "Failed to set param %d name %s %s", in InitParamService() 108 PARAM_CHECK(ret == 0, return ret, "Forbid to set parameter %s", name); in SystemWriteParam() 113 PARAM_CHECK(ret == 0, return ret, "Failed to set param %d name %s %s", ret, name, value); in SystemWriteParam() 115 PARAM_CHECK(ret == 0, return ret, "Failed to set persist param name %s", name); in SystemWriteParam()
|
D | param_hal.c | 115 PARAM_CHECK(ret == 0, return ret, "Failed to write param %d name:%s %s", ret, name, value); in LoadOnePersistParam_() 133 PARAM_CHECK(fd >= 0, break, "No valid persist parameter file %s", path); in LoadPersistParam() 137 PARAM_CHECK(ret == 0, break, "Failed to get file state %s", path); in LoadPersistParam() 139 PARAM_CHECK(buffer != NULL, break, "Failed to get file"); in LoadPersistParam() 141 PARAM_CHECK(ret >= 0, break, "Failed to read file %s", path); in LoadPersistParam() 149 PARAM_CHECK(ret == 0, continue, "Failed to set param %d %s", ret, buffer); in LoadPersistParam() 224 PARAM_CHECK(ret == 0, return -1, "Failed to write param %s", name); in BatchSavePersistParam() 236 PARAM_CHECK(ret == 0, return, "BatchSavePersistParamEnd fail error %d", errno); in BatchSavePersistParamEnd() 242 PARAM_CHECK(ops != NULL, return -1, "Invalid ops"); in RegisterPersistParamOps()
|
D | param_litedac.c | 22 PARAM_CHECK(security != NULL, return -1, "Invalid security"); in InitLocalSecurityLabel() 51 PARAM_CHECK(localLabel != NULL && fileName != NULL, return -1, "Invalid param"); in CheckFilePermission() 71 PARAM_CHECK(ops != NULL, return -1, "Invalid param"); in RegisterSecurityDacOps()
|
/base/startup/init/services/param/linux/ |
D | param_message.c | 25 PARAM_CHECK(fd >= 0, return -1, "Invalid fd %d", fd); in ConnectServer() 26 PARAM_CHECK(servername != NULL, return -1, "Invalid servername"); in ConnectServer() 29 PARAM_CHECK(ret == 0, return -1, "Failed to set socket option"); in ConnectServer() 33 PARAM_CHECK(ret == 0, return -1, "Failed to memset server address"); in ConnectServer() 36 PARAM_CHECK(ret > EOK, return -1, "Failed to sprintf_s server address"); in ConnectServer() 39 PARAM_CHECK(ret != -1, return -1, "Failed to connect server %s %d", servername, errno); in ConnectServer() 46 PARAM_CHECK(request != NULL && start != NULL, return -1, "Invalid param"); in FillParamMsgContent() 47 PARAM_CHECK(value != NULL, return -1, "Invalid value"); in FillParamMsgContent() 50 PARAM_CHECK((offset + sizeof(ParamMsgContent) + length) <= bufferSize, in FillParamMsgContent() 57 PARAM_CHECK(ret == EOK, return -1, "Failed to copy value for %d", type); in FillParamMsgContent() [all …]
|
D | param_msgadp.c | 49 PARAM_CHECK(stream != NULL && streamInfo != NULL, return -1, "Invalid param"); in ParamServerCreate() 50 PARAM_CHECK(streamInfo->incomingConnect != NULL, return -1, "Invalid incomingConnect"); in ParamServerCreate() 62 PARAM_CHECK(stream != NULL && streamInfo != NULL, return -1, "Invalid stream"); in ParamStreamCreate() 63 PARAM_CHECK(streamInfo->recvMessage != NULL, return -1, "Invalid recvMessage"); in ParamStreamCreate() 64 PARAM_CHECK(streamInfo->close != NULL, return -1, "Invalid close"); in ParamStreamCreate() 77 PARAM_CHECK(status == 0, return -1, "Failed to create client"); in ParamStreamCreate() 83 PARAM_CHECK(stream != NULL, return NULL, "Invalid stream"); in ParamGetTaskUserData() 89 PARAM_CHECK(msg != NULL, return -1, "Invalid stream"); in ParamTaskSendMsg() 90 PARAM_CHECK(stream != NULL, free((void *)msg); in ParamTaskSendMsg() 94 PARAM_CHECK(bufferHandle != NULL, return -1, "Failed to create request"); in ParamTaskSendMsg() [all …]
|
D | param_osadp.c | 29 PARAM_CHECK(lock != NULL, return -1, "Invalid lock"); in ParamRWMutexCreate() 39 PARAM_CHECK(lock != NULL, return -1, "Invalid lock"); in ParamRWMutexWRLock() 45 PARAM_CHECK(lock != NULL, return -1, "Invalid lock"); in ParamRWMutexRDLock() 51 PARAM_CHECK(lock != NULL, return -1, "Invalid lock"); in ParamRWMutexUnlock() 58 PARAM_CHECK(lock != NULL, return -1, "Invalid lock"); in ParamRWMutexDelete() 60 PARAM_CHECK(ret == 0, return -1, "Failed to mutex lock ret %d", ret); in ParamRWMutexDelete() 83 PARAM_CHECK(fileName != NULL, return NULL, "Invalid filename or handle"); in GetSharedMem() 94 PARAM_CHECK(areaAddr != MAP_FAILED && areaAddr != NULL, close(fd); in GetSharedMem() 102 PARAM_CHECK(mem != NULL && handle != NULL, return, "Invalid mem or handle"); in FreeSharedMem()
|
D | param_service.c | 63 PARAM_CHECK(entry != NULL, return, "Failed to get data %s ", name); in CheckAndSendTrigger() 89 PARAM_CHECK(response != NULL, return PARAM_CODE_ERROR, "Failed to alloc memory for response"); in SendResponseMsg() 100 PARAM_CHECK(content != NULL, return -1, "Invalid content"); in SendWatcherNotifyMessage() 101 PARAM_CHECK(extData != NULL && extData->stream != NULL, return -1, "Invalid extData"); in SendWatcherNotifyMessage() 104 PARAM_CHECK(msg != NULL, return -1, "Failed to create msg "); in SendWatcherNotifyMessage() 111 PARAM_CHECK(ret == 0, free(msg); in SendWatcherNotifyMessage() 115 PARAM_CHECK(ret == 0, free(msg); in SendWatcherNotifyMessage() 119 PARAM_CHECK(ret == 0, free(msg); in SendWatcherNotifyMessage() 142 PARAM_CHECK(ret == 0, return ret, "Forbid to set parameter %s", name); in SystemSetParam() 147 PARAM_CHECK(ret == 0, return ret, "Failed to set param %d name %s %s", ret, name, value); in SystemSetParam() [all …]
|
D | param_request.c | 84 PARAM_CHECK(valueContent != NULL, return PARAM_CODE_TIMEOUT, "Invalid msg"); in ProcessRecvMsg() 135 PARAM_CHECK(clientFd >= 0, return INVALID_SOCKET, "Failed to create socket"); in GetClientSocket() 155 PARAM_CHECK(sendLen >= 0, return PARAM_CODE_IPC_ERROR, "Failed to send message err: %d", errno); in StartRequest() 169 PARAM_CHECK(name != NULL && value != NULL, return -1, "Invalid name or value"); in SystemSetParameter_() 171 PARAM_CHECK(ret == 0, return ret, "Illegal param name %s", name); in SystemSetParameter_() 173 PARAM_CHECK(ret == 0, return ret, "Illegal param value %s", value); in SystemSetParameter_() 179 PARAM_CHECK(request != NULL, return PARAM_CODE_ERROR, "Failed to create Param Message"); in SystemSetParameter_() 182 PARAM_CHECK(ret == 0, free(request); in SystemSetParameter_() 234 …PARAM_CHECK(request != NULL, return -1, "SystemSaveParameters failed! name is:%s, the errNum is:-1… in SystemSaveParameters() 236 PARAM_CHECK(ret == 0, free(request); in SystemSaveParameters() [all …]
|
/base/startup/init/services/param/trigger/ |
D | trigger_checker.c | 27 PARAM_CHECK(calculator != NULL, return -1, "Invalid param"); in CalculatorInit() 28 PARAM_CHECK(dataUnit <= (int)sizeof(LogicData), return -1, "Invalid param"); in CalculatorInit() 29 PARAM_CHECK(dataNumber <= MAX_CALC_PARAM, return -1, "Invalid param"); in CalculatorInit() 35 PARAM_CHECK(calculator->data != NULL, return -1, "Failed to malloc for calculator"); in CalculatorInit() 56 PARAM_CHECK(calculator != NULL, return, "Invalid param"); in CalculatorFree() 65 PARAM_CHECK(calculator != NULL, return, "Invalid param"); in CalculatorClear() 71 PARAM_CHECK(calculator != NULL, return -1, "Invalid param"); in CalculatorPushChar() 72 …PARAM_CHECK(calculator->endIndex < calculator->dataNumber, return -1, "More data for calculator su… in CalculatorPushChar() 73 … PARAM_CHECK(sizeof(char) == calculator->dataUnit, return -1, "More data for calculator support"); in CalculatorPushChar() 80 PARAM_CHECK(calculator != NULL, return -1, "Invalid param"); in CalculatorPopChar() [all …]
|
D | trigger_processor.c | 35 PARAM_CHECK(trigger != NULL, return -1, "Invalid trigger"); in DoTriggerExecute_() 37 … PARAM_CHECK(trigger->type <= TRIGGER_UNKNOW, return -1, "Invalid trigger type %d", trigger->type); in DoTriggerExecute_() 64 PARAM_CHECK(trigger != NULL, return -1, "Invalid trigger"); in ExecuteTriggerImmediately() 103 PARAM_CHECK(ret == 0, return, "strcpy triggerName failed!"); in ExecuteQueueWork() 161 PARAM_CHECK(content != NULL, return, "Invalid param"); in SendTriggerEvent() 168 PARAM_CHECK(name != NULL && value != NULL, return, "Invalid param"); in PostParamTrigger() 170 PARAM_CHECK(bufferSize < (PARAM_CONST_VALUE_LEN_MAX + PARAM_NAME_LEN_MAX + 1 + 1 + 1), in PostParamTrigger() 173 PARAM_CHECK(buffer != NULL, return, "Failed to alloc memory for param %s", name); in PostParamTrigger() 175 PARAM_CHECK(ret > EOK, free(buffer); in PostParamTrigger() 183 PARAM_CHECK(content != NULL && contentLen > 0, return, "Invalid param"); in PostTrigger() [all …]
|
D | trigger_manager.c | 30 PARAM_CHECK(trigger != NULL, return -1, "trigger is null"); in AddCommand() 36 PARAM_CHECK(node != NULL, return -1, "Failed to alloc memory for command"); in AddCommand() 43 PARAM_CHECK(ret == EOK, free(node); in AddCommand() 54 PARAM_CHECK(trigger->lastCmd != NULL, free(node); in AddCommand() 64 PARAM_CHECK(trigger != NULL, return NULL, "trigger is null"); in GetNextCmdNode() 79 PARAM_CHECK(ret == 0, return -1, "Failed to convert condition for trigger"); in CopyCondition() 81 PARAM_CHECK(node->condition != NULL, return -1, "Failed to dup conditition"); in CopyCondition() 89 PARAM_CHECK(node != NULL, return NULL, "Failed to alloc memory for trigger"); in AddTriggerNode_() 92 PARAM_CHECK(ret == 0, free(node); in AddTriggerNode_() 106 PARAM_CHECK(ret == EOK, return -1, "Failed to copy name for trigger"); in AddJobNode_() [all …]
|
/base/startup/init/services/param/base/ |
D | param_trie.c | 34 PARAM_CHECK(ret > 0, return -1, "Failed to copy file name %s", workSpace->fileName); in GetRealFileName() 41 PARAM_CHECK(workSpace != NULL, return PARAM_CODE_INVALID_PARAM, "Invalid workSpace"); in InitWorkSpace_() 42 PARAM_CHECK(sizeof(ParamTrieHeader) < spaceSize, in InitWorkSpace_() 47 PARAM_CHECK(ret == 0, return -1, "Failed to get file name %s", workSpace->fileName); in InitWorkSpace_() 74 PARAM_CHECK((workSpace->area->currOffset + len) < workSpace->area->dataSize, return 0, in AllocateParamTrieNode() 80 PARAM_CHECK(ret == 0, return 0, "Failed to copy key"); in AllocateParamTrieNode() 95 PARAM_CHECK(workSpace != NULL, return PARAM_CODE_INVALID_NAME, "Invalid workSpace"); in InitWorkSpace() 108 PARAM_CHECK(workSpace != NULL, return, "The workspace is null"); in CloseWorkSpace() 113 PARAM_CHECK(workSpace->area != NULL, return, "The workspace area is null"); in CloseWorkSpace() 123 …PARAM_CHECK(workSpace != NULL && workSpace->area != NULL, return PARAM_WORKSPACE_NOT_INIT, "The wo… in CheckWorkSpace() [all …]
|
D | param_base.c | 43 PARAM_CHECK(workSpace != NULL && type < PARAM_SECURITY_MAX, return -1, "Invalid param"); in InitParamSecurity() 45 PARAM_CHECK(workSpace->paramSecurityOps[type].securityInitLabel != NULL, in InitParamSecurity() 48 PARAM_CHECK(ret == 0, return PARAM_CODE_INVALID_NAME, "Failed to init security"); in InitParamSecurity() 51 PARAM_CHECK(paramSecurityOps != NULL, return -1, "Invalid paramSecurityOps"); in InitParamSecurity() 52 … PARAM_CHECK(paramSecurityOps->securityFreeLabel != NULL, return -1, "Invalid securityFreeLabel"); in InitParamSecurity() 53 …PARAM_CHECK(paramSecurityOps->securityCheckFilePermission != NULL, return -1, "Invalid securityChe… in InitParamSecurity() 55 … PARAM_CHECK(paramSecurityOps->securityGetLabel != NULL, return -1, "Invalid securityGetLabel"); in InitParamSecurity() 58 …PARAM_CHECK(ret == 0, return PARAM_CODE_INVALID_NAME, "No permission to read file %s", PARAM_STORA… in InitParamSecurity() 72 PARAM_CHECK(ret == 0, return -1, "Failed to get security operations"); in RegisterSecurityOps() 75 PARAM_CHECK(ret == 0, return -1, "Failed to get security operations"); in RegisterSecurityOps() [all …]
|
D | param_comm.c | 25 PARAM_CHECK(paramSpace != NULL, return NULL, "Invalid paramSpace"); in GetWorkSpaceByName() 43 PARAM_CHECK(paramSpace != NULL, return NULL, "Invalid paramSpace"); in GetWorkSpace() 44 PARAM_CHECK(paramSpace->workSpace != NULL, return NULL, "Invalid paramSpace->workSpace"); in GetWorkSpace() 72 PARAM_CHECK(type < PARAM_SECURITY_MAX, return NULL, "Invalid type"); in GetParamSecurityOps() 74 PARAM_CHECK(paramSpace != NULL, return NULL, "Invalid paramSpace"); in GetParamSecurityOps() 81 PARAM_CHECK(paramSpace != NULL, return NULL, "Invalid paramSpace"); in GetParamSecurityLabel()
|
/base/startup/init/services/param/adapter/ |
D | param_selinux.c | 42 PARAM_CHECK(selinuxSpace->selinuxHandle != NULL, in InitSelinuxOpsForInit() 48 …PARAM_CHECK(selinuxSpace->setParamCheck != NULL, return -1, "Failed to dlsym setParamCheck %s", dl… in InitSelinuxOpsForInit() 52 …PARAM_CHECK(selinuxSpace->getParamList != NULL, return -1, "Failed to dlsym getParamList %s", dler… in InitSelinuxOpsForInit() 56 …PARAM_CHECK(selinuxSpace->getParamLabel != NULL, return -1, "Failed to dlsym getParamLabel %s", dl… in InitSelinuxOpsForInit() 60 …PARAM_CHECK(selinuxSpace->initParamSelinux != NULL, return -1, "Failed to dlsym initParamSelinux "… in InitSelinuxOpsForInit() 64 …PARAM_CHECK(selinuxSpace->getParamLabelIndex != NULL, return -1, "Failed to dlsym getParamLabelInd… in InitSelinuxOpsForInit() 72 PARAM_CHECK(selinuxSpace->destroyParamList != NULL, in InitSelinuxOpsForInit() 86 PARAM_CHECK(GetParamWorkSpace() != NULL, return -1, "Invalid workspace"); in InitLocalSecurityLabel() 88 PARAM_CHECK(security != NULL, return -1, "Invalid security"); in InitLocalSecurityLabel() 97 PARAM_CHECK(ret == 0, return -1, "Failed to init selinux ops"); in InitLocalSecurityLabel() [all …]
|
D | param_persistadp.c | 44 PARAM_CHECK(ret == 0, continue, "Failed to set param %d %s", ret, buffer); in LoadPersistParam_() 56 PARAM_CHECK(buffer != NULL, return -1, "Failed to alloc"); in LoadPersistParam() 122 …PARAM_CHECK(ret == 0, return, "BatchSavePersistParamEnd %s fail error %d", PARAM_PERSIST_SAVE_TMP_… in BatchSavePersistParamEnd() 128 PARAM_CHECK(ops != NULL, return -1, "Invalid ops"); in RegisterPersistParamOps()
|
D | param_dac.c | 114 PARAM_CHECK(security != NULL, return -1, "Invalid security"); in InitLocalSecurityLabel() 168 PARAM_CHECK(ret == 0, return -1, "Failed to get param info %d %s", ret, name); in LoadOneParam_() 230 PARAM_CHECK(path != NULL, return -1, "Invalid param"); in DacGetParamSecurityLabel() 238 PARAM_CHECK(pDir != NULL, return -1, "Read dir :%s failed.%d", path, errno); in DacGetParamSecurityLabel() 240 PARAM_CHECK(fileName != NULL, closedir(pDir); in DacGetParamSecurityLabel() 280 PARAM_CHECK(localLabel != NULL && fileName != NULL, return -1, "Invalid param"); in CheckFilePermission() 286 PARAM_CHECK(ops != NULL, return -1, "Invalid param"); in RegisterSecurityDacOps()
|
/base/startup/init/services/param/manager/ |
D | param_manager.c | 35 PARAM_CHECK(paramSpace != NULL, return NULL, "Invalid paramSpace"); in SystemCheckMatchParamWait() 39 PARAM_CHECK(workspace != NULL, return NULL, "Failed to get workspace %s", name); in SystemCheckMatchParamWait() 89 PARAM_CHECK(paramSpace != NULL, return -1, "Invalid paramSpace"); in SystemTraversalParameter() 91 PARAM_CHECK(traversalParameter != NULL, return -1, "The param is null"); in SystemTraversalParameter() 102 PARAM_CHECK(ret == 0, return ret, "Forbid to traversal parameters %s", prefix); in SystemTraversalParameter() 192 PARAM_CHECK(paramSpace != NULL, return, "Invalid paramSpace"); in SystemDumpParameters() 196 PARAM_CHECK(ret == 0, return, "Forbid to dump parameters "); in SystemDumpParameters() 242 PARAM_CHECK(paramSpace != NULL, return -1, "Invalid paramSpace"); in SysCheckParamExist() 244 PARAM_CHECK(name != NULL, return -1, "The name or handle is null"); in SysCheckParamExist() 271 PARAM_CHECK(paramSpace != NULL, return -1, "Invalid paramSpace"); in GetParamSecurityAuditData() [all …]
|
D | param_server.c | 64 PARAM_CHECK(ret == 0, return ret, "Invalid param name %s", name); in CommonDealFun() 67 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s %s", name, value); in CommonDealFun() 74 PARAM_CHECK(data != NULL, return -1, "Read sn from %s file failed!", file); in ReadSnFromFile() 91 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s", name); in ReadSnFromFile() 100 PARAM_CHECK(ret == 0, return ret, "Invalid name %s", name); in SnDealFun() 104 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s %s", name, value); in SnDealFun() 126 PARAM_CHECK(ret > 0, return ret, "snprinf_s failed"); in Common2ConstDealFun() 128 PARAM_CHECK(ret == 0, return ret, "Invalid name %s", name); in Common2ConstDealFun() 131 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s %s", fullName, value); in Common2ConstDealFun() 248 PARAM_CHECK(ctx.cmdline != NULL, return -1, "Failed to read file %s", BOOT_CMD_LINE); in LoadParamFromCmdLine() [all …]
|
D | param_persist.c | 39 PARAM_CHECK(paramSpace != NULL, return 0, "Invalid paramSpace"); in GetPersistCommitId() 54 PARAM_CHECK(paramSpace != NULL, return, "Invalid paramSpace"); in UpdatePersistCommitId() 81 PARAM_CHECK(ret == EOK, return -1, "Failed to read param name %s", entry->data); in SavePersistParam() 85 PARAM_CHECK(ret == 0, return -1, "Failed to write param %s", current->key); in SavePersistParam() 100 PARAM_CHECK(ret == 0, return PARAM_CODE_INVALID_NAME, "Failed to save persist"); in BatchSavePersistParam() 117 PARAM_CHECK(ret == 0, return PARAM_CODE_INVALID_NAME, "Save persist param fail"); in BatchSavePersistParam() 173 PARAM_CHECK(value != NULL && name != NULL, return PARAM_CODE_INVALID_PARAM, "Invalid param"); in WritePersistParam() 220 PARAM_CHECK(ret == 0, return ret, "Failed to init persist param"); in LoadPersistParams() 233 PARAM_CHECK(ret == 0, return ret, "Failed to load persist param"); in LoadPersistParams()
|
/base/update/updateservice/frameworks/js/napi/update/common/src/ |
D | client_helper.cpp | 128 …PARAM_CHECK(status == napi_ok, continue, "Failed to napi_create_object %d", static_cast<int32_t>(s… in BuildComponentDescriptions() 152 …PARAM_CHECK(status == napi_ok, continue, "Failed to napi_create_object %d", static_cast<int32_t>(s… in BuildVersionComponents() 178 …PARAM_CHECK(result.result.currentVersionInfo != nullptr, return CAST_INT(ClientStatus::CLIENT_SUCC… in BuildCurrentVersionInfo() 180 PARAM_CHECK(result.type == SessionType::SESSION_GET_CUR_VERSION, in BuildCurrentVersionInfo() 184 PARAM_CHECK(status == napi_ok, return CAST_INT(ClientStatus::CLIENT_INVALID_TYPE), in BuildCurrentVersionInfo() 188 PARAM_CHECK(info != nullptr, return CAST_INT(ClientStatus::CLIENT_FAIL), "info is null"); in BuildCurrentVersionInfo() 245 PARAM_CHECK(result.result.taskInfo != nullptr, return CAST_INT(ClientStatus::CLIENT_SUCCESS), in BuildTaskInfo() 249 PARAM_CHECK(status == napi_ok, return CAST_INT(ClientStatus::CLIENT_INVALID_TYPE), in BuildTaskInfo() 262 …PARAM_CHECK(result.result.newVersionInfo != nullptr, return CAST_INT(ClientStatus::CLIENT_SUCCESS), in BuildNewVersionInfo() 264 PARAM_CHECK(result.type == SessionType::SESSION_GET_NEW_VERSION, in BuildNewVersionInfo() [all …]
|
/base/update/updateservice/frameworks/js/napi/update/src/ |
D | update_client.cpp | 75 …PARAM_CHECK(ret == ClientStatus::CLIENT_SUCCESS, NapiCommonUtils::NapiThrowParamError(env, paramIn… in GetOnlineUpdater() 116 PARAM_CHECK(ret != nullptr, return nullptr, "Failed to start worker."); in CheckNewVersion() 129 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to start worker."); in CancelUpgrade() 143 PARAM_CHECK(ret == ClientStatus::CLIENT_SUCCESS, return ClientStatus::CLIENT_INVALID_PARAM, in ParseUpgOptions() 147 PARAM_CHECK(ret == ClientStatus::CLIENT_SUCCESS, return ClientStatus::CLIENT_INVALID_PARAM, in ParseUpgOptions() 160 PARAM_CHECK(ret == ClientStatus::CLIENT_SUCCESS, return ClientStatus::CLIENT_INVALID_PARAM, in ParseUpgOptions() 177 …PARAM_CHECK(ret == ClientStatus::CLIENT_SUCCESS, NapiCommonUtils::NapiThrowParamError(env, paramIn… in Download() 186 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to start worker."); in Download() 201 …PARAM_CHECK(ret == ClientStatus::CLIENT_SUCCESS, NapiCommonUtils::NapiThrowParamError(env, paramIn… in PauseDownload() 210 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to start worker."); in PauseDownload() [all …]
|
/base/update/updateservice/frameworks/js/napi/session/src/ |
D | napi_common_utils.cpp | 43 PARAM_CHECK(status == napi_ok && valueType == napi_number, in GetInt32() 46 …PARAM_CHECK(status == napi_ok, return CAST_INT(ClientStatus::CLIENT_INVALID_TYPE), "Error get GetI… in GetInt32() 54 PARAM_CHECK(status == napi_ok && valueType == napi_number, in GetUInt32() 57 …PARAM_CHECK(status == napi_ok, return CAST_INT(ClientStatus::CLIENT_INVALID_TYPE), "Error get GetU… in GetUInt32() 90 …PARAM_CHECK(status == napi_ok, return CAST_INT(ClientStatus::CLIENT_FAIL), "Failed to napi_typeof"… in GetString() 91 …PARAM_CHECK(valuetype == napi_string, return CAST_INT(ClientStatus::CLIENT_INVALID_TYPE), "Invalid… in GetString() 96 …PARAM_CHECK(status == napi_ok, return CAST_INT(ClientStatus::CLIENT_INVALID_TYPE), "Error get stri… in GetString() 145 PARAM_CHECK(status == napi_ok, return ClientStatus::CLIENT_FAIL, "Failed to napi_typeof"); in IsTypeOf() 146 PARAM_CHECK(valueType == type, return ClientStatus::CLIENT_INVALID_TYPE, "Not same napi type"); in IsTypeOf() 153 PARAM_CHECK(status == napi_ok, return ClientStatus::CLIENT_FAIL, "Failed to create reference"); in CreateReference() [all …]
|