Lines Matching defs:ret
184 ErrCode ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids);
185 if (ret != ERR_OK || ids.empty()) {
186 HILOGE("Get userId from active Os AccountIds fail, ret : %{public}d", ret);
192 ret = AccountSA::OhosAccountKits::GetInstance().GetOhosAccountInfo(osAccountInfo);
193 if (ret != 0 || osAccountInfo.uid_ == "") {
194 HILOGE("Get accountId from Ohos account info fail, ret: %{public}d.", ret);
686 int32_t ret = memcpy_s(devIdentify.identity, DEVICE_ID_MAX_LEN, udid.c_str(), udid.length());
687 if (ret != 0) {
688 HILOGE("str copy failed %{public}d", ret);
692 ret = RequestDeviceSecurityInfo(&devIdentify, nullptr, &info);
693 if (ret != SUCCESS) {
694 HILOGE("request device security info failed %{public}d", ret);
700 ret = GetDeviceSecurityLevelValue(info, &level);
704 if (ret != SUCCESS) {
705 HILOGE("get device security level failed %{public}d", ret);