Home
last modified time | relevance | path

Searched refs:PARAM_CHECK (Results 1 – 25 of 36) sorted by relevance

12

/base/startup/init/services/param/liteos/
Dparam_osadp.c45 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()
120PARAM_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 …]
Dparam_client.c33 PARAM_CHECK(ret == 0, return -1, "Failed to init param workspace"); in InitParamClient()
60 PARAM_CHECK(name != NULL && value != NULL, return -1, "Invalid name or value %s", name); in SystemSetParameter()
63 PARAM_CHECK(ret == 0, return ret, "Forbid to set parameter %s", name); in SystemSetParameter()
68 PARAM_CHECK(ret == 0, return ret, "Failed to set param %d name %s %s", ret, name, value); in SystemSetParameter()
70 PARAM_CHECK(ret == 0, return ret, "Failed to set persist param name %s", name); in SystemSetParameter()
79 PARAM_CHECK(name != NULL && value != NULL, return -1, "Invalid name or value %s", name); in SystemWaitParameter()
85 PARAM_CHECK(ret == 0, return ret, "Forbid to wait parameters %s", name); in SystemWaitParameter()
Dparam_service.c69 PARAM_CHECK(ret == 0, return, "Init parameter workspace fail"); in InitParamService()
71 PARAM_CHECK(ret == 0, return, "Init persist parameter workspace fail"); in InitParamService()
77 PARAM_CHECK(buffer != NULL, return, "Failed to malloc for buffer"); in InitParamService()
83 PARAM_CHECK(ret == 0, continue, "Failed to set param %d name %s %s", in InitParamService()
106 PARAM_CHECK(ret == 0, return ret, "Forbid to set parameter %s", name); in SystemWriteParam()
111 PARAM_CHECK(ret == 0, return ret, "Failed to set param %d name %s %s", ret, name, value); in SystemWriteParam()
113 PARAM_CHECK(ret == 0, return ret, "Failed to set persist param name %s", name); in SystemWriteParam()
Dparam_hal.c115 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()
Dparam_litedac.c22 PARAM_CHECK(security != NULL, return -1, "Invalid security"); in InitLocalSecurityLabel()
51 PARAM_CHECK(localLabel != NULL && fileName != NULL, return -1, "Invalid param"); in CheckFilePermission()
69 PARAM_CHECK(ops != NULL, return -1, "Invalid param"); in RegisterSecurityDacOps()
/base/startup/init/services/param/linux/
Dparam_message.c25 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()
47PARAM_CHECK(value != NULL && length > 0 && length < PARAM_BUFFER_MAX, return -1, "Invalid value"); in FillParamMsgContent()
50 PARAM_CHECK((offset + sizeof(ParamMsgContent) + length) <= bufferSize, in FillParamMsgContent()
56 PARAM_CHECK(ret == EOK, return -1, "Failed to copy value for %d", type); in FillParamMsgContent()
[all …]
Dparam_msgadp.c49 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 …]
Dparam_osadp.c29 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()
86 PARAM_CHECK(fd >= 0, return NULL, "Open file %s mode %x fail error %d", fileName, mode, errno); 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()
Dparam_request.c72 PARAM_CHECK(valueContent != NULL, return PARAM_CODE_TIMEOUT, "Invalid msg"); in ProcessRecvMsg()
117 PARAM_CHECK(clientFd >= 0, return -1, "Failed to create socket"); in GetClientSocket()
136PARAM_CHECK(sendLen >= 0, return PARAM_CODE_FAIL_CONNECT, "Failed to send message err: %d", errno); in StartRequest()
147 PARAM_CHECK(name != NULL && value != NULL, return -1, "Invalid name or value"); in SystemSetParameter()
149 PARAM_CHECK(ret == 0, return ret, "Illegal param name %s", name); in SystemSetParameter()
151 PARAM_CHECK(ret == 0, return ret, "Illegal param value %s", value); in SystemSetParameter()
157 PARAM_CHECK(request != NULL, return -1, "Failed to malloc for connect"); in SystemSetParameter()
160 PARAM_CHECK(ret == 0, free(request); in SystemSetParameter()
194 PARAM_CHECK(name != NULL, return -1, "Invalid name"); in SystemWaitParameter()
196 PARAM_CHECK(ret == 0, return ret, "Illegal param name %s", name); in SystemWaitParameter()
[all …]
Dparam_service.c65 PARAM_CHECK(entry != NULL, return, "Failed to get data %s ", name); in CheckAndSendTrigger()
93 PARAM_CHECK(response != NULL, return PARAM_CODE_ERROR, "Failed to alloc memory for response"); in SendResponseMsg()
104 PARAM_CHECK(content != NULL, return -1, "Invalid content"); in SendWatcherNotifyMessage()
105 PARAM_CHECK(extData != NULL && extData->stream != NULL, return -1, "Invalid extData"); in SendWatcherNotifyMessage()
108 PARAM_CHECK(msg != NULL, return -1, "Failed to create msg "); in SendWatcherNotifyMessage()
115 PARAM_CHECK(ret == 0, free(msg); in SendWatcherNotifyMessage()
119 PARAM_CHECK(ret == 0, free(msg); in SendWatcherNotifyMessage()
123 PARAM_CHECK(ret == 0, free(msg); in SendWatcherNotifyMessage()
146 PARAM_CHECK(ret == 0, return ret, "Forbid to set parameter %s", name); in SystemSetParam()
151 PARAM_CHECK(ret == 0, return ret, "Failed to set param %d name %s %s", ret, name, value); in SystemSetParam()
[all …]
/base/startup/init/services/param/trigger/
Dtrigger_checker.c27 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()
72PARAM_CHECK(calculator->endIndex < calculator->dataNumber, return -1, "More data for calculator su… in CalculatorPushChar()
73PARAM_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 …]
Dtrigger_processor.c34 PARAM_CHECK(trigger != NULL, return -1, "Invalid trigger"); in DoTriggerExecute_()
36PARAM_CHECK(trigger->type <= TRIGGER_UNKNOW, return -1, "Invalid trigger type %d", trigger->type); in DoTriggerExecute_()
63 PARAM_CHECK(trigger != NULL, return -1, "Invalid trigger"); in ExecuteTriggerImmediately()
149 PARAM_CHECK(content != NULL, return, "Invalid param"); in SendTriggerEvent()
156 PARAM_CHECK(name != NULL && value != NULL, return, "Invalid param"); in PostParamTrigger()
158 PARAM_CHECK(bufferSize < (PARAM_CONST_VALUE_LEN_MAX + PARAM_NAME_LEN_MAX + 1 + 1 + 1), in PostParamTrigger()
161 PARAM_CHECK(buffer != NULL, return, "Failed to alloc memory for param %s", name); in PostParamTrigger()
163 PARAM_CHECK(ret > EOK, free(buffer); in PostParamTrigger()
171 PARAM_CHECK(content != NULL && contentLen > 0, return, "Invalid param"); in PostTrigger()
198 PARAM_CHECK(matchCmd != NULL, return -1, "Command not support %s", cmdLine); in GetCommandInfo()
[all …]
Dtrigger_manager.c30 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()
51 PARAM_CHECK(trigger->lastCmd != NULL, free(node); in AddCommand()
61 PARAM_CHECK(trigger != NULL, return NULL, "trigger is null"); in GetNextCmdNode()
76 PARAM_CHECK(ret == 0, return -1, "Failed to convert condition for trigger"); in CopyCondition()
78 PARAM_CHECK(node->condition != NULL, return -1, "Failed to dup conditition"); in CopyCondition()
86 PARAM_CHECK(node != NULL, return NULL, "Failed to alloc memory for trigger"); in AddTriggerNode_()
89 PARAM_CHECK(ret == 0, free(node); in AddTriggerNode_()
103 PARAM_CHECK(ret == EOK, return -1, "Failed to copy name for trigger"); in AddJobNode_()
[all …]
/base/startup/init/services/param/base/
Dparam_base.c60 PARAM_CHECK(workSpace != NULL && type < PARAM_SECURITY_MAX, return -1, "Invalid param"); in InitParamSecurity()
64 PARAM_CHECK(workSpace->paramSecurityOps[type].securityInitLabel != NULL, in InitParamSecurity()
67 PARAM_CHECK(ret == 0, return PARAM_CODE_INVALID_NAME, "Failed to init security"); in InitParamSecurity()
71 PARAM_CHECK(paramSecurityOps != NULL, return -1, "Invalid paramSecurityOps"); in InitParamSecurity()
72PARAM_CHECK(paramSecurityOps->securityFreeLabel != NULL, return -1, "Invalid securityFreeLabel"); in InitParamSecurity()
73PARAM_CHECK(paramSecurityOps->securityCheckFilePermission != NULL, return -1, "Invalid securityChe… in InitParamSecurity()
74PARAM_CHECK(paramSecurityOps->securityCheckParamPermission != NULL, return -1, "Invalid securityCh… in InitParamSecurity()
76PARAM_CHECK(paramSecurityOps->securityGetLabel != NULL, return -1, "Invalid securityGetLabel"); in InitParamSecurity()
79PARAM_CHECK(ret == 0, return PARAM_CODE_INVALID_NAME, "No permission to read file %s", PARAM_STORA… in InitParamSecurity()
93 PARAM_CHECK(ret == 0, return -1, "Failed to get security operations"); in RegisterSecurityOps()
[all …]
Dparam_trie.c29 PARAM_CHECK(ret > 0, return -1, "Failed to copy file name %s", workSpace->fileName); in GetRealFileName()
37 PARAM_CHECK(workSpace != NULL, return PARAM_CODE_INVALID_PARAM, "Invalid workSpace"); in InitWorkSpace_()
38 PARAM_CHECK(sizeof(ParamTrieHeader) < spaceSize, in InitWorkSpace_()
40 PARAM_CHECK(workSpace->allocTrieNode != NULL, in InitWorkSpace_()
42 PARAM_CHECK(workSpace->compareTrieNode != NULL, in InitWorkSpace_()
47 PARAM_CHECK(ret == 0, return -1, "Failed to get file name %s", workSpace->fileName); in InitWorkSpace_()
75 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()
105 PARAM_CHECK(workSpace != NULL, return PARAM_CODE_INVALID_NAME, "Invalid workSpace"); in InitWorkSpace()
122 PARAM_CHECK(workSpace != NULL, return, "The workspace is null"); in CloseWorkSpace()
[all …]
Dparam_comm.c34 PARAM_CHECK(workSpace != NULL && workSpace->area != NULL, return -1, "Invalid param"); in GetParamHandle()
44 PARAM_CHECK(paramSpace != NULL, return NULL, "Invalid paramSpace"); in GetWorkSpace()
45PARAM_CHECK(paramSpace->workSpaceHashHandle != NULL, return NULL, "Invalid workSpaceHashHandle"); in GetWorkSpace()
81 PARAM_CHECK(paramSpace != NULL, return NULL, "Invalid paramSpace"); in GetTrieNodeByHandle()
104 PARAM_CHECK(paramSpace != NULL, return NULL, "Invalid paramSpace"); in GetFirstWorkSpace()
119 PARAM_CHECK(paramSpace != NULL, return NULL, "Invalid paramSpace"); in GetNextWorkSpace()
120 PARAM_CHECK(curr != NULL, return NULL, "Invalid curr"); in GetNextWorkSpace()
134 PARAM_CHECK(paramSpace != NULL, return -1, "Invalid paramSpace"); in ReadParamWithCheck()
136 PARAM_CHECK(handle != NULL, return PARAM_CODE_INVALID_PARAM, "Invalid param handle"); in ReadParamWithCheck()
137 PARAM_CHECK(name != NULL, return PARAM_CODE_INVALID_PARAM, "Invalid param name"); in ReadParamWithCheck()
[all …]
/base/startup/init/services/param/adapter/
Dparam_selinux.c42 PARAM_CHECK(selinuxSpace->selinuxHandle != NULL, in InitSelinuxOpsForInit()
48PARAM_CHECK(selinuxSpace->setParamCheck != NULL, return -1, "Failed to dlsym setParamCheck %s", dl… in InitSelinuxOpsForInit()
52PARAM_CHECK(selinuxSpace->getParamList != NULL, return -1, "Failed to dlsym getParamList %s", dler… in InitSelinuxOpsForInit()
56PARAM_CHECK(selinuxSpace->getParamLabel != NULL, return -1, "Failed to dlsym getParamLabel %s", dl… in InitSelinuxOpsForInit()
60PARAM_CHECK(selinuxSpace->initParamSelinux != NULL, return -1, "Failed to dlsym initParamSelinux "… in InitSelinuxOpsForInit()
71 PARAM_CHECK(selinuxSpace->destroyParamList != NULL, in InitSelinuxOpsForInit()
85 PARAM_CHECK(GetParamWorkSpace() != NULL, return -1, "Invalid workspace"); in InitLocalSecurityLabel()
87 PARAM_CHECK(security != NULL, return -1, "Invalid security"); in InitLocalSecurityLabel()
96 PARAM_CHECK(ret == 0, return -1, "Failed to init selinux ops"); in InitLocalSecurityLabel()
118 PARAM_CHECK(GetParamWorkSpace() != NULL && GetParamWorkSpace()->ops.setfilecon != NULL, in SetSelinuxFileCon()
[all …]
Dparam_persistadp.c32 PARAM_CHECK(ret == 0, return ret, "Failed to write param %d name:%s %s", ret, name, value); in LoadOnePersistParam_()
47PARAM_CHECK(fp != NULL, return -1, "No valid persist parameter file %s", PARAM_PERSIST_SAVE_PATH); in LoadPersistParam()
59 PARAM_CHECK(ret == 0, continue, "Failed to set param %d %s", ret, buffer); in LoadPersistParam()
104 PARAM_CHECK(ret > 0, return -1, "Failed to write param"); in BatchSavePersistParam()
122PARAM_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()
Dparam_dac.c111 PARAM_CHECK(security != NULL, return -1, "Invalid security"); in InitLocalSecurityLabel()
132 PARAM_CHECK(ret == 0, return -1, "Failed to get param info %d %s", ret, name); in LoadOneParam_()
173 PARAM_CHECK(path != NULL, return -1, "Invalid param"); in DacGetParamSecurityLabel()
181 PARAM_CHECK(pDir != NULL, return -1, "Read dir :%s failed.%d", path, errno); in DacGetParamSecurityLabel()
183 PARAM_CHECK(fileName != NULL, closedir(pDir); in DacGetParamSecurityLabel()
218 PARAM_CHECK(localLabel != NULL && fileName != NULL, return -1, "Invalid param"); in CheckFilePermission()
227PARAM_CHECK(ret >= 0, return -1, "Failed to format name for %s.%d.%d", GROUP_FORMAT, groupId, uid); in CheckUserInGroup()
230PARAM_CHECK(node != NULL, return DAC_RESULT_FORBIDED, "Can not get security label %d", labelIndex); in CheckUserInGroup()
249 PARAM_CHECK(space != NULL, return DAC_RESULT_FORBIDED, "Failed to get dac space %s", name); in DacCheckParamPermission()
252PARAM_CHECK(node != NULL, return DAC_RESULT_FORBIDED, "Can not get security label %d", labelIndex); in DacCheckParamPermission()
[all …]
/base/startup/init/services/param/manager/
Dparam_server.c24 PARAM_CHECK(paramSpace != NULL, return -1, "Invalid paramSpace"); in LoadSecurityLabel()
26 PARAM_CHECK(fileName != NULL, return -1, "Invalid filename for load"); in LoadSecurityLabel()
51 PARAM_CHECK(ret == 0, return ret, "Invalid param name %s", name); in CommonDealFun()
54 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s %s", name, value); in CommonDealFun()
64 PARAM_CHECK(data != NULL, return -1, "Read sn from %s file failed!", file); in ReadSnFromFile()
81 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s", name); in ReadSnFromFile()
92 PARAM_CHECK(ret == 0, return ret, "Invalid name %s", name); in SnDealFun()
96 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s %s", name, value); in SnDealFun()
129 PARAM_CHECK(data != NULL, return -1, "Failed to read file %s", BOOT_CMD_LINE); in LoadParamFromCmdLine()
131 PARAM_CHECK(value != NULL, free(data); in LoadParamFromCmdLine()
[all …]
Dparam_manager.c31 PARAM_CHECK(paramSpace != NULL, return NULL, "Invalid paramSpace"); in SystemCheckMatchParamWait()
35 PARAM_CHECK(workspace != NULL, return NULL, "Failed to get workspace %s", name); in SystemCheckMatchParamWait()
86 PARAM_CHECK(paramSpace != NULL, return -1, "Invalid paramSpace"); in SystemTraversalParameter()
88 PARAM_CHECK(traversalParameter != NULL, return -1, "The param is null"); in SystemTraversalParameter()
102 PARAM_CHECK(ret == 0, return ret, "Forbid to traversal parameters"); in SystemTraversalParameter()
180 PARAM_CHECK(paramSpace != NULL, return, "Invalid paramSpace"); in SystemDumpParameters()
186 PARAM_CHECK(ret == 0, return, "Forbid to dump parameters"); in SystemDumpParameters()
214 PARAM_CHECK(paramSpace != NULL, return -1, "Invalid paramSpace"); in SysCheckParamExist()
216 PARAM_CHECK(name != NULL, return -1, "The name or handle is null"); in SysCheckParamExist()
237 PARAM_CHECK(paramSpace != NULL, return -1, "Invalid paramSpace"); in GetParamSecurityAuditData()
[all …]
Dparam_persist.c39 PARAM_CHECK(paramSpace != NULL, return 0, "Invalid paramSpace"); in GetPersistCommitId()
54 PARAM_CHECK(paramSpace != NULL, return, "Invalid paramSpace"); in UpdatePersistCommitId()
82 PARAM_CHECK(ret == EOK, return -1, "Failed to read param name %s", entry->data); in SavePersistParam()
86 PARAM_CHECK(ret == 0, return -1, "Failed to write param %s", current->key); in SavePersistParam()
101 PARAM_CHECK(ret == 0, return PARAM_CODE_INVALID_NAME, "Failed to save persist"); in BatchSavePersistParam()
118 PARAM_CHECK(ret == 0, return PARAM_CODE_INVALID_NAME, "Save persist param fail"); in BatchSavePersistParam()
174 PARAM_CHECK(value != NULL && name != NULL, return PARAM_CODE_INVALID_PARAM, "Invalid param"); in WritePersistParam()
221 PARAM_CHECK(ret == 0, return ret, "Failed to init persist param"); in LoadPersistParams()
234 PARAM_CHECK(ret == 0, return ret, "Failed to load persist param"); in LoadPersistParams()
/base/update/updateservice/frameworks/js/napi/base/src/
Dclient_helper.cpp184PARAM_CHECK(result.result.currentVersionInfo != nullptr, return CAST_INT(ClientStatus::CLIENT_SUCC… in BuildCurrentVersionInfo()
187 PARAM_CHECK(result.type == SessionType::SESSION_GET_CUR_VERSION, in BuildCurrentVersionInfo()
190 PARAM_CHECK(status == napi_ok, return CAST_INT(ClientStatus::CLIENT_INVALID_TYPE), in BuildCurrentVersionInfo()
194 PARAM_CHECK(info != nullptr, return CAST_INT(ClientStatus::CLIENT_FAIL), "info is null"); in BuildCurrentVersionInfo()
250 PARAM_CHECK(result.result.taskInfo != nullptr, return CAST_INT(ClientStatus::CLIENT_SUCCESS), in BuildTaskInfo()
254 PARAM_CHECK(status == napi_ok, return CAST_INT(ClientStatus::CLIENT_INVALID_TYPE), in BuildTaskInfo()
265PARAM_CHECK(result.result.newVersionInfo != nullptr, return CAST_INT(ClientStatus::CLIENT_SUCCESS), in BuildNewVersionInfo()
267 PARAM_CHECK(result.type == SessionType::SESSION_GET_NEW_VERSION, in BuildNewVersionInfo()
272 PARAM_CHECK(status == napi_ok, return CAST_INT(ClientStatus::CLIENT_INVALID_TYPE), in BuildNewVersionInfo()
283PARAM_CHECK(result.result.versionDescriptionInfo != nullptr, return CAST_INT(ClientStatus::CLIENT_… in BuildVersionDescriptionInfo()
[all …]
Dnapi_util.cpp64PARAM_CHECK(status == napi_ok, return CAST_INT(ClientStatus::CLIENT_FAIL), "Failed to napi_typeof"… in GetString()
65PARAM_CHECK(valuetype == napi_string, return CAST_INT(ClientStatus::CLIENT_INVALID_TYPE), "Invalid… in GetString()
70PARAM_CHECK(status == napi_ok, return CAST_INT(ClientStatus::CLIENT_INVALID_TYPE), "Error get stri… in GetString()
111 PARAM_CHECK(status == napi_ok, return ClientStatus::CLIENT_FAIL, "Failed to napi_typeof"); in IsTypeOf()
112 PARAM_CHECK(valueType == type, return ClientStatus::CLIENT_INVALID_TYPE, "Not same napi type"); in IsTypeOf()
119 PARAM_CHECK(status == napi_ok, return ClientStatus::CLIENT_FAIL, "Failed to create reference"); in CreateReference()
/base/update/updateservice/frameworks/js/napi/client/
Dupdate_client.cpp76 PARAM_CHECK(ret == ClientStatus::CLIENT_SUCCESS, in GetOnlineUpdater()
100 PARAM_CHECK(ret != nullptr, return nullptr, "Failed to start worker."); in CheckNewVersion()
124 PARAM_CHECK(retValue != nullptr, sessionsMgr_->RemoveSession(sess->GetSessionId()); in CancelUpgrade()
143PARAM_CHECK(ret == ClientStatus::CLIENT_SUCCESS, ClientHelper::NapiThrowParamError(env, paramNames… in ParseUpgOptions()
151PARAM_CHECK(ret == ClientStatus::CLIENT_SUCCESS, ClientHelper::NapiThrowParamError(env, names, typ… in ParseUpgOptions()
171 PARAM_CHECK(ret == ClientStatus::CLIENT_SUCCESS, in Download()
181 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to start worker."); in Download()
199 PARAM_CHECK(ret == ClientStatus::CLIENT_SUCCESS, in PauseDownload()
209 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to start worker."); in PauseDownload()
227 PARAM_CHECK(ret == ClientStatus::CLIENT_SUCCESS, in ResumeDownload()
[all …]

12