Home
last modified time | relevance | path

Searched refs:tempLen (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/drivers/peripheral/pin_auth/hdi_service/database/src/
H A Dpin_db_ops_v1.c81 uint32_t tempLen = dataLen; in GetPinIndexV1() local
106 uint32_t tempLen = dataLen; in UnpackPinDbV1() local
107 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV1->dbVersion)), in UnpackPinDbV1()
116 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV1->pinIndexLen)), in UnpackPinDbV1()
129 if (GetPinIndexV1(temp, tempLen, pinDbV1) != RESULT_SUCCESS) { in UnpackPinDbV1()
181 uint32_t tempLen = dataLen; in WritePinInfo() local
184 &temp, &tempLen) != RESULT_SUCCESS) { in WritePinInfo()
239 uint32_t tempLen = dataLen; in WritePinDbV1() local
241 &temp, &tempLen) != RESULT_SUCCESS) { in WritePinDbV1()
247 &temp, &tempLen) != RESULT_SUCCESS) { in WritePinDbV1()
[all …]
H A Dpin_db_ops_v0.c50 uint32_t tempLen = dataLen; in GetPinIndexV0() local
52 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV0->pinIndex[i].pinInfo)), in GetPinIndexV0()
75 uint32_t tempLen = dataLen; in UnpackPinDbV0() local
76 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV0->version)), in UnpackPinDbV0()
85 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV0->pinIndexLen)), in UnpackPinDbV0()
99 if (GetPinIndexV0(temp, tempLen, pinDbV0) != RESULT_SUCCESS) { in UnpackPinDbV0()
H A Dpin_db_ops.c56 uint32_t tempLen = dataLen; in GetVersion() local
57 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(version), sizeof(uint32_t)) != RESULT_SUCCESS) { in GetVersion()
/ohos5.0/base/telephony/sms_mms/services/sms/gsm/
H A Dgsm_sms_param_encode.cpp42 size_t tempLen = strlen(temp); in EncodeAddressPdu() local
43 if (tempLen > MAX_SMSC_LEN) { in EncodeAddressPdu()
48 if (temp[0] == '+' && tempLen > 1) { in EncodeAddressPdu()
49 resultNum.push_back(tempLen - 1); in EncodeAddressPdu()
51 tempLen--; in EncodeAddressPdu()
54 resultNum.push_back(tempLen); in EncodeAddressPdu()
63 if (!utils.DigitToBcd(temp, tempLen, bcd, MAX_ADD_PARAM_LEN, length)) { in EncodeAddressPdu()
/ohos5.0/base/telephony/sms_mms/frameworks/native/mms/src/
H A Dmms_body_part.cpp216 uint32_t tempLen = encodebuffer.length(); in DecodePartBody() local
217 if (tempLen > MMS_PDU_MAX_SIZE) { in DecodePartBody()
221 pbodyPartBuffer_ = std::make_unique<char[]>(tempLen); in DecodePartBody()
226 if (memcpy_s(pbodyPartBuffer_.get(), tempLen, encodebuffer.data(), tempLen) != EOK) { in DecodePartBody()
230 bodyLen_ = tempLen; in DecodePartBody()
H A Dmms_header.cpp720 uint32_t tempLen = 0; in DecodeFieldTextStringValue() local
721 if (!buff.DecodeText(tempString, tempLen)) { in DecodeFieldTextStringValue()
726 len = (int32_t)tempLen; in DecodeFieldTextStringValue()
/ohos5.0/base/update/updater/services/package/pkg_verify/
H A Dzip_pkg_parse.cpp191 uint16_t tempLen = ReadLE16(zipSignCommentAddr); in CheckZipEocd() local
192 if (signCommentTotalLen != tempLen) { in CheckZipEocd()
193 …PKG_LOGE("compare sign comment length: eocd[0x%04X], footer[0x%04X] error", tempLen, signCommentTo… in CheckZipEocd()
/ohos5.0/commonlibrary/ets_utils/js_api_module/uri/
H A Djs_uri.cpp519 size_t tempLen = temp.size(); in Normalize() local
521 for (size_t i = 0; i < tempLen; ++i) { in Normalize()
534 tempLen = normalizeTemp.size(); in Normalize()
535 if (tempLen == 0) { in Normalize()
538 for (size_t i = 0; i < tempLen; ++i) { in Normalize()
H A Dnative_module_uri.cpp66 size_t tempLen = normalizeUri.size(); in Normalize() local
67 NAPI_CALL(env, napi_create_string_utf8(env, normalizeUri.c_str(), tempLen, &result)); in Normalize()
211 size_t tempLen = temp.size(); in AddSegment() local
212 NAPI_CALL(env, napi_create_string_utf8(env, temp.c_str(), tempLen, &result)); in AddSegment()
395 size_t tempLen = temp.size(); in ClearQuery() local
396 NAPI_CALL(env, napi_create_string_utf8(env, temp.c_str(), tempLen, &result)); in ClearQuery()
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/kits/js/file_uri/
H A Dfile_uri_n_exporter.cpp204 size_t tempLen = temp.size(); in NormalizeUri() local
206 for (size_t i = 0; i < tempLen; ++i) { in NormalizeUri()
219 tempLen = normalizeTemp.size(); in NormalizeUri()
220 if (tempLen == 0) { in NormalizeUri()
223 for (size_t i = 0; i < tempLen; ++i) { in NormalizeUri()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/symmetric_alg_test/
H A Dhks_aes_cipher_ccm_test.cpp1368 uint32_t tempLen = HKS_CIPHER_CCM_MODE_MAX_DATA_LEN + CCM_MAX_AEAD_SIZE + CCM_MAX_NONCE_SIZE; variable
1369 uint8_t *tempData = reinterpret_cast<uint8_t *>(HksMalloc(tempLen));
1370 struct HksBlob inData = {tempLen, tempData};
1371 struct HksBlob cipherText = {tempLen, tempData };
1398 cipherText.size = tempLen;
1403 cipherText.size = tempLen;
/ohos5.0/commonlibrary/ets_utils/js_api_module/url/
H A Djs_url.cpp694 size_t tempLen = temp.size(); in AnalyseIPv4() local
695 size_t lastSize = temp[tempLen - 1].size(); in AnalyseIPv4()
701 for (size_t i = 0; i < tempLen; ++i) { in AnalyseIPv4()
703 if (i != tempLen - 1) { in AnalyseIPv4()
708 if (tempLen > 4) { // 4:ipv4 max size in AnalyseIPv4()
712 } else if (tempLen == 4) { // 4:ipv4 max size in AnalyseIPv4()
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/
H A Dnative_module_util.cpp296 size_t tempLen = uuidString.size(); in RandomUUID() local
297 napi_create_string_utf8(env, uuidString.c_str(), tempLen, &result); in RandomUUID()