/base/useriam/user_auth_framework/common/utils/ |
D | iam_time.cpp | 37 struct tm curr; in GetNowTimeString() local 39 localtime_r(&tt, &curr); in GetNowTimeString() 41 … curr.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/ |
D | dslm_inner_process.c | 44 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()
|
D | dslm_core_process.c | 151 const DeviceIdentify *curr = RefreshDeviceOnlineStatus(deviceId); in OnRequestDeviceSecLevelInfo() local 153 DslmDeviceInfo *deviceInfo = GetDslmDeviceInfo(curr); in OnRequestDeviceSecLevelInfo()
|
/base/security/access_token/interfaces/innerkits/nativetoken/src/ |
D | nativetoken_json_oper.c | 141 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/ |
D | trigger_checker.c | 277 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 …]
|
D | trigger_manager.c | 59 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/ |
D | utils_tlv.c | 76 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/ |
D | param_msgadp.c | 34 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()
|
D | param_osadp.c | 106 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/ |
D | init_log.c | 44 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/ |
D | init_cmds.c | 58 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/ |
D | messenger_device_status_manager.cpp | 212 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/ |
D | nativetoken_json_oper.h | 32 extern cJSON *CreateNativeTokenJsonObject(const NativeTokenList *curr);
|
/base/update/updateservice/services/engine/src/ |
D | progress_thread.cpp | 197 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/ |
D | init_group_manager.h | 77 InitGroupNode *GetNextGroupNode(int type, const InitGroupNode *curr);
|
/base/startup/init/services/init/ |
D | init_common_cmds.c | 83 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()
|
D | init_group_manager.c | 262 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/ |
D | attributes.cpp | 103 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/ |
D | messenger_device_status_manager.c | 258 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/ |
D | param_osadp.c | 326 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/ |
D | watcher_manager.cpp | 249 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/ |
D | param_manager.h | 99 INIT_LOCAL_API WorkSpace *GetNextWorkSpace(WorkSpace *curr);
|
D | param_osadp.h | 212 INIT_LOCAL_API uint32_t Difftime(time_t curr, time_t base);
|
D | trigger_manager.h | 187 CommandNode *GetNextCmdNode(const JobNode *trigger, const CommandNode *curr);
|
/base/startup/init/services/param/base/ |
D | param_comm.c | 116 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()
|