Home
last modified time | relevance | path

Searched refs:curr (Results 1 – 25 of 28) sorted by relevance

12

/base/useriam/user_auth_framework/common/utils/
Diam_time.cpp37 struct tm curr; in GetNowTimeString() local
39 localtime_r(&tt, &curr); in GetNowTimeString()
41curr.tm_year + startYear, curr.tm_mon + 1, curr.tm_mday, curr.tm_hour, curr.tm_min, curr.tm_sec); in GetNowTimeString()
/base/security/device_security_level/services/dslm/
Ddslm_inner_process.c44 uint64_t curr = GetMillisecondSinceBoot(); in CheckAndGenerateChallenge() local
45 …if ((curr <= device->nonceTimeStamp) || (curr - device->nonceTimeStamp > NONCE_ALIVE_TIME) || devi… in CheckAndGenerateChallenge()
50 device->nonceTimeStamp = curr; in CheckAndGenerateChallenge()
102 uint64_t curr = GetMillisecondSinceBoot(); in VerifyDeviceInfoResponse() local
103 … if ((curr <= device->nonceTimeStamp) || (curr - device->nonceTimeStamp > NONCE_ALIVE_TIME)) { in VerifyDeviceInfoResponse()
Ddslm_core_process.c151 const DeviceIdentify *curr = RefreshDeviceOnlineStatus(deviceId); in OnRequestDeviceSecLevelInfo() local
153 DslmDeviceInfo *deviceInfo = GetDslmDeviceInfo(curr); in OnRequestDeviceSecLevelInfo()
/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken_json_oper.c141 int32_t SetNativeTokenJsonObject(const NativeTokenList *curr, cJSON *object) in SetNativeTokenJsonObject() argument
143 cJSON *item = cJSON_CreateString(curr->processName); in SetNativeTokenJsonObject()
150 item = cJSON_CreateNumber(curr->apl); in SetNativeTokenJsonObject()
164 item = cJSON_CreateNumber(curr->tokenId); in SetNativeTokenJsonObject()
178 int32_t ret = AddStrArrayInfo(object, curr->dcaps, curr->dcapsNum, DCAPS_KEY_NAME); in SetNativeTokenJsonObject()
183 ret = AddStrArrayInfo(object, curr->perms, curr->permsNum, PERMS_KEY_NAME); in SetNativeTokenJsonObject()
188 ret = AddStrArrayInfo(object, curr->acls, curr->aclsNum, ACLS_KEY_NAME); in SetNativeTokenJsonObject()
192 cJSON *CreateNativeTokenJsonObject(const NativeTokenList *curr) in CreateNativeTokenJsonObject() argument
199 if (SetNativeTokenJsonObject(curr, object) != ATRET_SUCCESS) { in CreateNativeTokenJsonObject()
/base/startup/init/services/param/trigger/
Dtrigger_checker.c277 uint32_t curr = 0; in ConvertInfixToPrefix() local
283 while (curr < conditionLen) { in ConvertInfixToPrefix()
284 if (condition[curr] == ')') { in ConvertInfixToPrefix()
292 } else if (condition[curr] == '|') { in ConvertInfixToPrefix()
293 PARAM_CHECK(condition[curr + 1] == '|', in ConvertInfixToPrefix()
298 curr++; in ConvertInfixToPrefix()
299 } else if (condition[curr] == '&') { in ConvertInfixToPrefix()
300 PARAM_CHECK(condition[curr + 1] == '&', in ConvertInfixToPrefix()
303 CalculatorPushChar(&calculator, condition[curr]); in ConvertInfixToPrefix()
304 curr++; in ConvertInfixToPrefix()
[all …]
Dtrigger_manager.c59 CommandNode *GetNextCmdNode(const JobNode *trigger, const CommandNode *curr) in GetNextCmdNode() argument
62 if (curr == NULL) { in GetNextCmdNode()
65 return curr->next; in GetNextCmdNode()
218 static TriggerNode *GetNextTrigger_(const TriggerHeader *triggerHead, const TriggerNode *curr) in GetNextTrigger_() argument
222 if (curr != NULL) { in GetNextTrigger_()
223 node = curr->node.next; in GetNextTrigger_()
/base/security/device_security_level/baselib/utils/src/
Dutils_tlv.c76 uint8_t *curr = buff; in Serialize() local
81 curr = AppendTlv(curr, &tlv[index], boundary, &retCode); in Serialize()
82 if (curr == NULL || retCode != TLV_OK) { in Serialize()
86 *buffSize = curr - buff; in Serialize()
/base/startup/init/services/param/linux/
Dparam_msgadp.c34 uint32_t curr = 0; in OnReceiveRequest() local
35 while (curr < nread) { in OnReceiveRequest()
36 const ParamMessage *msg = (const ParamMessage *)(buffer + curr); in OnReceiveRequest()
37 if (((msg->msgSize + curr) > nread) in OnReceiveRequest()
38 || ((sizeof(ParamMessage) + curr) > nread) in OnReceiveRequest()
42 curr += msg->msgSize; in OnReceiveRequest()
Dparam_osadp.c106 INIT_LOCAL_API uint32_t Difftime(time_t curr, time_t base) in Difftime() argument
108 return (uint32_t)difftime(curr, base); in Difftime()
/base/startup/init/services/log/
Dinit_log.c44 struct timespec curr; in LogToFile() local
45 if (clock_gettime(CLOCK_REALTIME, &curr) != 0) { in LogToFile()
52 if (localtime_r(&curr.tv_sec, &t) != NULL) { in LogToFile()
55 …(void)fprintf(outfile, "[%s.%ld][pid=%d %d][%s]%s \n", dateTime, curr.tv_nsec, getpid(), gettid(),… in LogToFile()
/base/startup/init/services/init/standard/
Dinit_cmds.c58 uint32_t curr = 0; in GetParamValue() local
64 ret = strncpy_s(paramValue + curr, paramLen - curr, start, symLen); in GetParamValue()
68 ret = memcpy_s(paramValue + curr, paramLen - curr, start, begin - start); in GetParamValue()
70 curr += begin - start; in GetParamValue()
83 uint32_t valueLen = paramLen - curr; in GetParamValue()
84 ret = SystemReadParam(tmpName, paramValue + curr, &valueLen); in GetParamValue()
86 curr += valueLen; in GetParamValue()
/base/security/device_security_level/baselib/msglib/src/standard/
Dmessenger_device_status_manager.cpp212 DeviceIdentify curr = {DEVICE_ID_MAX_LEN, {0}}; in MessengerGetDeviceNodeBasicInfo() local
213 bool convert = MessengerConvertNodeToIdentity(device.networkId, curr); in MessengerGetDeviceNodeBasicInfo()
218 if (IsSameDevice(&devId, &curr)) { in MessengerGetDeviceNodeBasicInfo()
351 DeviceIdentify curr = {DEVICE_ID_MAX_LEN, {0}}; in MessengerForEachDeviceProcess() local
352 bool convert = MessengerConvertNodeToIdentity(device.networkId, curr); in MessengerForEachDeviceProcess()
354 processor(&curr, device.deviceTypeId, para); in MessengerForEachDeviceProcess()
/base/security/access_token/interfaces/innerkits/nativetoken/include/
Dnativetoken_json_oper.h32 extern cJSON *CreateNativeTokenJsonObject(const NativeTokenList *curr);
/base/update/updateservice/services/engine/src/
Dprogress_thread.cpp197 double curr = engine->GetPackageSize(); in DownloadProgress() local
198 unsigned int percent = (dlNow + curr) / (curr + dlTotal) * DOWNLOAD_FINISH_PERCENT; in DownloadProgress()
/base/startup/init/services/init/include/
Dinit_group_manager.h77 InitGroupNode *GetNextGroupNode(int type, const InitGroupNode *curr);
/base/startup/init/services/init/
Dinit_common_cmds.c83 int curr = 0; in BuildStringFromCmdArg() local
88 …int len = snprintf_s(options + curr, OPTIONS_SIZE - curr, OPTIONS_SIZE - 1 - curr, "%s ", ctx->arg… in BuildStringFromCmdArg()
94 curr += len; in BuildStringFromCmdArg()
96 if ((curr > 0) && (curr < OPTIONS_SIZE)) { in BuildStringFromCmdArg()
97 options[curr - 1] = '\0'; in BuildStringFromCmdArg()
Dinit_group_manager.c262 InitGroupNode *GetNextGroupNode(int type, const InitGroupNode *curr) in GetNextGroupNode() argument
265 if (curr == NULL) { in GetNextGroupNode()
268 return curr->next; in GetNextGroupNode()
/base/useriam/user_auth_framework/frameworks/native/common/attributes/src/
Dattributes.cpp103 const uint8_t *curr = &raw.front(); in Impl() local
105 while (curr < end) { in Impl()
106 if (curr + sizeof(uint32_t) + sizeof(uint32_t) < curr) { // in case of out of range in Impl()
111 if (curr + sizeof(uint32_t) + sizeof(uint32_t) > end) { in Impl()
117 if (memcpy_s(&type, sizeof(uint32_t), curr, sizeof(uint32_t)) != EOK) { in Impl()
121 curr += sizeof(uint32_t); in Impl()
124 if (memcpy_s(&length, sizeof(uint32_t), curr, sizeof(uint32_t)) != EOK) { in Impl()
128 curr += sizeof(uint32_t); in Impl()
135 if (length > end - curr) { in Impl()
141 … if (length != 0 && memcpy_s(value.data(), value.size() * sizeof(uint8_t), curr, length) != EOK) { in Impl()
[all …]
/base/security/device_security_level/baselib/msglib/src/lite/
Dmessenger_device_status_manager.c258 DeviceIdentify curr = {DEVICE_ID_MAX_LEN, {0}}; in MessengerGetDeviceNodeBasicInfo() local
259 bool convert = MessengerConvertNodeToIdentity(node, &curr); in MessengerGetDeviceNodeBasicInfo()
264 if (IsSameDevice(devId, &curr)) { in MessengerGetDeviceNodeBasicInfo()
/base/startup/init/services/param/liteos/
Dparam_osadp.c326 INIT_LOCAL_API uint32_t Difftime(time_t curr, time_t base) in Difftime() argument
329 return (uint32_t)difftime(curr, base); in Difftime()
331 (void)curr; in Difftime()
/base/startup/init/services/param/watcher/proxy/
Dwatcher_manager.cpp249 uint32_t curr = 0; in RunLoop() local
251 while (curr < dataLen) { in RunLoop()
252 if ((curr + sizeof(ParamMessage)) >= dataLen) { in RunLoop()
255 ParamMessage *msg = (ParamMessage *)(buffer.data() + curr); in RunLoop()
256 if ((msg->msgSize > dataLen) || ((curr + msg->msgSize) > dataLen)) { in RunLoop()
260 curr += msg->msgSize; in RunLoop()
/base/startup/init/services/param/include/
Dparam_manager.h99 INIT_LOCAL_API WorkSpace *GetNextWorkSpace(WorkSpace *curr);
Dparam_osadp.h212 INIT_LOCAL_API uint32_t Difftime(time_t curr, time_t base);
Dtrigger_manager.h187 CommandNode *GetNextCmdNode(const JobNode *trigger, const CommandNode *curr);
/base/startup/init/services/param/base/
Dparam_comm.c116 INIT_LOCAL_API WorkSpace *GetNextWorkSpace(WorkSpace *curr) in GetNextWorkSpace() argument
120 PARAM_CHECK(curr != NULL, return NULL, "Invalid curr"); in GetNextWorkSpace()
123 ListNode *node = curr->node.next; in GetNextWorkSpace()

12