Home
last modified time | relevance | path

Searched refs:index (Results 1 - 25 of 1061) sorted by relevance

12345678910>>...43

/base/hiviewdfx/hiview/base/running_status_logger/test/unittest/common/
H A Drunning_status_logger_test.cpp60 std::string GenerateInvalidFileName(int index) in GenerateInvalidFileName() argument
62 return GetLogDir() + "runningstatus_2024_0" + std::to_string(index); in GenerateInvalidFileName()
113 for (int index = 0; index < SIZE_512; index++) { in HWTEST_F()
116 for (int index = 0; index < SIZE_512; index++) { in HWTEST_F()
141 for (int index = 0; index < SIZE_51 in HWTEST_F()
[all...]
/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/
H A Dhks_generate_key_test.c86 uint32_t index = 0; in LITE_TEST_CASE() local
90 g_testGenKeyParams[index].keyAliasParams.blobExist, in LITE_TEST_CASE()
91 g_testGenKeyParams[index].keyAliasParams.blobSize, in LITE_TEST_CASE()
92 g_testGenKeyParams[index].keyAliasParams.blobDataExist, in LITE_TEST_CASE()
93 g_testGenKeyParams[index].keyAliasParams.blobDataSize); in LITE_TEST_CASE()
98 g_testGenKeyParams[index].paramSetParams.paramSetExist, in LITE_TEST_CASE()
99 g_testGenKeyParams[index].paramSetParams.setAlg, g_testGenKeyParams[index].paramSetParams.alg, in LITE_TEST_CASE()
100 g_testGenKeyParams[index].paramSetParams.setKeySize, g_testGenKeyParams[index] in LITE_TEST_CASE()
[all...]
H A Dhks_mac_test.c132 static int32_t BaseTestMac(uint32_t index) in BaseTestMac() argument
138 if (g_testMacParams[index].macType == HKS_TEST_MAC_TYPE_REE) { in BaseTestMac()
140 g_testMacParams[index].keyParams.blobExist, in BaseTestMac()
141 g_testMacParams[index].keyParams.blobSize, in BaseTestMac()
142 g_testMacParams[index].keyParams.blobDataExist, in BaseTestMac()
143 g_testMacParams[index].keyParams.blobDataSize); in BaseTestMac()
145 if (g_testMacParams[index].keyAliasParams.blobExist) { in BaseTestMac()
146 ret = GenerateKey(&key, &(g_testMacParams[index].keyAliasParams), in BaseTestMac()
147 &g_testMacParams[index].genKeyParamSetParams, NULL); in BaseTestMac()
150 g_testMacParams[index] in BaseTestMac()
[all...]
H A Dhks_derive_test.c84 static int32_t BaseTestDerive(uint32_t index) in BaseTestDerive() argument
89 if (g_testDeriveParams[index].genKeyParamSetParams.setKeyStorageFlag && in BaseTestDerive()
90 (g_testDeriveParams[index].genKeyParamSetParams.keyStorageFlag == HKS_STORAGE_TEMP)) { in BaseTestDerive()
92 &g_testDeriveParams[index].localKeyParams); in BaseTestDerive()
94 if (g_testDeriveParams[index].keyAliasParams.blobExist) { in BaseTestDerive()
96 &g_testDeriveParams[index].keyAliasParams, in BaseTestDerive()
97 &g_testDeriveParams[index].genKeyParamSetParams, NULL); in BaseTestDerive()
100 g_testDeriveParams[index].masterKeyParams.blobExist, in BaseTestDerive()
101 g_testDeriveParams[index].masterKeyParams.blobSize, in BaseTestDerive()
102 g_testDeriveParams[index] in BaseTestDerive()
[all...]
H A Dhks_modify_key_test.c72 int32_t BaseTestCipherProcess(const struct HksBlob *keyAlias, uint32_t index) in BaseTestCipherProcess() argument
81 &g_testCipherParams[index].plainTextParams, &g_testCipherParams[index].cipherTextParams); in BaseTestCipherProcess()
86 keyAlias, &g_testCipherParams[index], cipherData, in BaseTestCipherProcess()
90 keyAlias, &g_testCipherParams[index].encryptParamSetParams, in BaseTestCipherProcess()
94 if (ret != g_testCipherParams[index].expectResult) { in BaseTestCipherProcess()
99 if (ret != g_testCipherParams[index].expectResult) { in BaseTestCipherProcess()
103 if (ret == g_testCipherParams[index].expectResult) { in BaseTestCipherProcess()
143 uint32_t index = 0; in LITE_TEST_CASE() local
145 int32_t ret = GenerateKeyTwo(&keyAlias, &g_testCipherParams[index] in LITE_TEST_CASE()
[all...]
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
H A Dhks_generate_key_test.cpp82 uint32_t index = 0; in HWTEST_F() local
86 g_testGenKeyParams[index].keyAliasParams.blobExist, in HWTEST_F()
87 g_testGenKeyParams[index].keyAliasParams.blobSize, in HWTEST_F()
88 g_testGenKeyParams[index].keyAliasParams.blobDataExist, in HWTEST_F()
89 g_testGenKeyParams[index].keyAliasParams.blobDataSize); in HWTEST_F()
94 g_testGenKeyParams[index].paramSetParams.paramSetExist, in HWTEST_F()
95 g_testGenKeyParams[index].paramSetParams.setAlg, g_testGenKeyParams[index].paramSetParams.alg, in HWTEST_F()
96 g_testGenKeyParams[index].paramSetParams.setKeySize, g_testGenKeyParams[index] in HWTEST_F()
[all...]
H A Dhks_derive_test.cpp84 static int32_t BaseTestDerive(uint32_t index) in BaseTestDerive() argument
89 if (g_testDeriveParams[index].genKeyParamSetParams.setKeyStorageFlag && in BaseTestDerive()
90 (g_testDeriveParams[index].genKeyParamSetParams.keyStorageFlag == HKS_STORAGE_TEMP)) { in BaseTestDerive()
91 ret = GenerateLocalRandomKey(&keyAliasTest, &g_testDeriveParams[index].localKeyParams); in BaseTestDerive()
93 if (g_testDeriveParams[index].keyAliasParams.blobExist) { in BaseTestDerive()
94 ret = GenerateKey(&keyAliasTest, &g_testDeriveParams[index].keyAliasParams, in BaseTestDerive()
95 &g_testDeriveParams[index].genKeyParamSetParams, NULL); in BaseTestDerive()
98 g_testDeriveParams[index].masterKeyParams.blobExist, in BaseTestDerive()
99 g_testDeriveParams[index].masterKeyParams.blobSize, in BaseTestDerive()
100 g_testDeriveParams[index] in BaseTestDerive()
[all...]
H A Dhks_safe_compare_key_test.cpp84 uint32_t index = 0; in SafeTestGenerateKey() local
89 g_testGenKeyParams[index].paramSetParams.paramSetExist, g_testGenKeyParams[index].paramSetParams.setAlg, in SafeTestGenerateKey()
90 g_testGenKeyParams[index].paramSetParams.alg, g_testGenKeyParams[index].paramSetParams.setKeySize, in SafeTestGenerateKey()
91 g_testGenKeyParams[index].paramSetParams.keySize, in SafeTestGenerateKey()
92 g_testGenKeyParams[index].paramSetParams.setPurpose, g_testGenKeyParams[index].paramSetParams.purpose, in SafeTestGenerateKey()
93 g_testGenKeyParams[index].paramSetParams.setDigest, g_testGenKeyParams[index] in SafeTestGenerateKey()
[all...]
H A Dhks_mac_test.cpp132 static int32_t BaseTestMac(uint32_t index) in BaseTestMac() argument
138 if (g_testMacParams[index].macType == HKS_TEST_MAC_TYPE_REE) { in BaseTestMac()
140 g_testMacParams[index].keyParams.blobExist, in BaseTestMac()
141 g_testMacParams[index].keyParams.blobSize, in BaseTestMac()
142 g_testMacParams[index].keyParams.blobDataExist, in BaseTestMac()
143 g_testMacParams[index].keyParams.blobDataSize); in BaseTestMac()
145 if (g_testMacParams[index].keyAliasParams.blobExist) { in BaseTestMac()
147 &(g_testMacParams[index].keyAliasParams), &g_testMacParams[index].genKeyParamSetParams, NULL); in BaseTestMac()
150 g_testMacParams[index] in BaseTestMac()
[all...]
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/
H A Dhks_generate_key_test.cpp83 uint32_t index = 0; in HWTEST_F() local
88 g_testGenKeyParams[index].keyAliasParams.blobExist, in HWTEST_F()
89 g_testGenKeyParams[index].keyAliasParams.blobSize, in HWTEST_F()
90 g_testGenKeyParams[index].keyAliasParams.blobDataExist, in HWTEST_F()
91 g_testGenKeyParams[index].keyAliasParams.blobDataSize); in HWTEST_F()
96 g_testGenKeyParams[index].paramSetParams.paramSetExist, in HWTEST_F()
97 g_testGenKeyParams[index].paramSetParams.setAlg, g_testGenKeyParams[index].paramSetParams.alg, in HWTEST_F()
98 g_testGenKeyParams[index].paramSetParams.setKeySize, g_testGenKeyParams[index] in HWTEST_F()
[all...]
H A Dhks_derive_test.cpp82 static int32_t BaseTestDerive(uint32_t index) in BaseTestDerive() argument
87 if (g_testDeriveParams[index].genKeyParamSetParams.setKeyStorageFlag && in BaseTestDerive()
88 (g_testDeriveParams[index].genKeyParamSetParams.keyStorageFlag == HKS_STORAGE_TEMP)) { in BaseTestDerive()
89 ret = GenerateLocalRandomKey(&keyAlias, &g_testDeriveParams[index].localKeyParams); in BaseTestDerive()
91 if (g_testDeriveParams[index].keyAliasParams.blobExist) { in BaseTestDerive()
92 ret = GenerateKey(&keyAlias, &g_testDeriveParams[index].keyAliasParams, in BaseTestDerive()
93 &g_testDeriveParams[index].genKeyParamSetParams, NULL); in BaseTestDerive()
96 g_testDeriveParams[index].masterKeyParams.blobExist, in BaseTestDerive()
97 g_testDeriveParams[index].masterKeyParams.blobSize, in BaseTestDerive()
98 g_testDeriveParams[index] in BaseTestDerive()
[all...]
H A Dhks_mac_test.cpp131 static int32_t BaseTestMac(uint32_t index) in BaseTestMac() argument
137 if (g_testMacParams[index].macType == HKS_TEST_MAC_TYPE_REE) { in BaseTestMac()
139 g_testMacParams[index].keyParams.blobExist, in BaseTestMac()
140 g_testMacParams[index].keyParams.blobSize, in BaseTestMac()
141 g_testMacParams[index].keyParams.blobDataExist, in BaseTestMac()
142 g_testMacParams[index].keyParams.blobDataSize); in BaseTestMac()
144 if (g_testMacParams[index].keyAliasParams.blobExist) { in BaseTestMac()
145 ret = GenerateKey(&keyTest, &(g_testMacParams[index].keyAliasParams), in BaseTestMac()
146 &g_testMacParams[index].genKeyParamSetParams, NULL); in BaseTestMac()
149 g_testMacParams[index] in BaseTestMac()
[all...]
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/hisysevent_wrapper/src/
H A Dhks_report_wrapper.c44 static int32_t AppendParamToExtra(const struct HksParam *paramIn, char *extraOut, uint32_t *index) in AppendParamToExtra() argument
48 int32_t num = snprintf_s(extraOut + *index, EXTRA_DATA_SIZE - *index, EXTRA_DATA_SIZE - *index - 1, "%u", in AppendParamToExtra()
54 *index = *index + num; in AppendParamToExtra()
74 uint32_t *index) in AppendToExtra()
76 if (ISExceedTheLimitSize(*index)) { in AppendToExtra()
79 if (memcpy_s(extraOut + *index, EXTRA_DATA_SIZE - *index, ta in AppendToExtra()
73 AppendToExtra(const struct HksBlob *tag, const struct HksParam *paramIn, char *extraOut, uint32_t *index) AppendToExtra() argument
113 AppendIfExist(uint32_t tag, const struct HksParamSet *paramSetIn, const struct HksBlob *tagString, char *extraOut, uint32_t *index) AppendIfExist() argument
139 uint32_t index = 0; PackExtra() local
[all...]
/base/request/request/frameworks/js/napi/src/
H A Dutf8_utils.cpp50 bool GetNextByte(const std::vector<uint8_t> &v, size_t &index, uint8_t &next) in GetNextByte() argument
52 index += 1; in GetNextByte()
53 if (index >= v.size()) { in GetNextByte()
56 next = v[index]; in GetNextByte()
63 bool Check2Bytes(const std::vector<uint8_t> &v, size_t &index) in Check2Bytes() argument
66 return GetNextByte(v, index, next) && (next >= 0x80 && next <= 0xBF); in Check2Bytes()
72 bool Check3Bytes(const std::vector<uint8_t> &v, const size_t &first, size_t &index) in Check3Bytes() argument
75 if (!GetNextByte(v, index, next)) { in Check3Bytes()
87 return Check2Bytes(v, index); in Check3Bytes()
93 bool Check4Bytes(const std::vector<uint8_t> &v, const size_t &first, size_t &index) in Check4Bytes() argument
112 size_t index = 0; RunUtf8Validation() local
[all...]
/base/telephony/core_service/utils/codec/src/
H A Dreset_response.cpp57 bool ResetResponse::AnalysisInterfaceData(const std::vector<uint8_t> &atrData, uint32_t atrDataLen, uint32_t &index) in AnalysisInterfaceData() argument
65 if (index >= atrDataLen) { in AnalysisInterfaceData()
68 index++; in AnalysisInterfaceData()
71 if (index >= atrDataLen) { in AnalysisInterfaceData()
74 charB = atrData[index]; in AnalysisInterfaceData()
75 index++; in AnalysisInterfaceData()
81 if (index >= atrDataLen) { in AnalysisInterfaceData()
84 index++; in AnalysisInterfaceData()
87 if (index >= atrDataLen) { in AnalysisInterfaceData()
90 charD = atrData[index]; in AnalysisInterfaceData()
130 uint32_t index = 0; AnalysisAtrData() local
[all...]
/base/telephony/cellular_call/services/common/src/
H A Dcellular_call_rdb_helper.cpp66 for (int32_t index = 0; index < rowCnt; index++) { in QueryEccList()
68 result->GoToRow(index); in QueryEccList()
69 result->GetColumnIndex(EccData::ID, index); in QueryEccList()
70 result->GetInt(index, bean.id); in QueryEccList()
71 result->GetColumnIndex(EccData::NAME, index); in QueryEccList()
72 result->GetString(index, bean.name); in QueryEccList()
73 result->GetColumnIndex(EccData::MCC, index); in QueryEccList()
74 result->GetString(index, bea in QueryEccList()
[all...]
H A Dsupplement_request_ims.cpp26 int32_t SupplementRequestIms::SetClipRequest(int32_t slotId, int32_t action, int32_t index) in SetClipRequest() argument
34 return imsCallClient->SetClip(slotId, action, index); in SetClipRequest()
37 int32_t SupplementRequestIms::GetClipRequest(int32_t slotId, int32_t index) in GetClipRequest() argument
45 return imsCallClient->GetClip(slotId, index); in GetClipRequest()
48 int32_t SupplementRequestIms::SetClirRequest(int32_t slotId, int32_t action, int32_t index) in SetClirRequest() argument
56 return imsCallClient->SetClir(slotId, action, index); in SetClirRequest()
59 int32_t SupplementRequestIms::GetClirRequest(int32_t slotId, int32_t index) in GetClirRequest() argument
67 return imsCallClient->GetClir(slotId, index); in GetClirRequest()
70 int32_t SupplementRequestIms::GetCallTransferRequest(int32_t slotId, int32_t reason, int32_t index) in GetCallTransferRequest() argument
78 return imsCallClient->GetCallTransfer(slotId, reason, index); in GetCallTransferRequest()
81 SetCallTransferRequest( int32_t slotId, const CallTransferInfo &cfInfo, int32_t classType, int32_t index) SetCallTransferRequest() argument
104 GetCallRestrictionRequest(int32_t slotId, const std::string &fac, int32_t index) GetCallRestrictionRequest() argument
115 SetCallRestrictionRequest( int32_t slotId, std::string &fac, int32_t mode, std::string &pw, int32_t index) SetCallRestrictionRequest() argument
127 SetCallWaitingRequest(int32_t slotId, bool activate, int32_t classType, int32_t index) SetCallWaitingRequest() argument
138 GetCallWaitingRequest(int32_t slotId, int32_t index) GetCallWaitingRequest() argument
149 SetColrRequest(int32_t slotId, int32_t presentation, int32_t index) SetColrRequest() argument
160 GetColrRequest(int32_t slotId, int32_t index) GetColrRequest() argument
171 SetColpRequest(int32_t slotId, int32_t action, int32_t index) SetColpRequest() argument
182 GetColpRequest(int32_t slotId, int32_t index) GetColpRequest() argument
[all...]
/base/telephony/cellular_call/services/common/include/
H A Dsupplement_request_ims.h29 * @param slotId Indicates the card slot index number,
30 * ranging from {@code 0} to the maximum card slot index number supported by the device.
33 * @param index Indicates the index of command.
36 int32_t SetClipRequest(int32_t slotId, int32_t action, int32_t index);
41 * @param slotId Indicates the card slot index number,
42 * ranging from {@code 0} to the maximum card slot index number supported by the device.
43 * @param index Indicates the index of command.
46 int32_t GetClipRequest(int32_t slotId, int32_t index);
[all...]
/base/startup/appspawn/interfaces/innerkits/hnp/src/
H A Dhnp_api.c165 int index = 0; in NativeInstallHnp() local
184 argv[index++] = "hnp"; in NativeInstallHnp()
185 argv[index++] = "install"; in NativeInstallHnp()
186 argv[index++] = "-u"; in NativeInstallHnp()
187 argv[index++] = (char *)userId; in NativeInstallHnp()
188 argv[index++] = "-i"; in NativeInstallHnp()
189 argv[index++] = (char *)hnpRootPath; in NativeInstallHnp()
190 argv[index++] = "-p"; in NativeInstallHnp()
191 argv[index++] = (char *)hapInfo->packageName; in NativeInstallHnp()
192 argv[index in NativeInstallHnp()
208 int index = 0; NativeUnInstallHnp() local
[all...]
/base/location/test/fuzztest/locator/locatorbackgroundproxy_fuzzer/
H A Dlocatorbackgroundproxy_fuzzer.cpp29 int index = 0; in LocatorBackgroundProxyFuzzerTest() local
38 request->SetUid(data[index++]); in LocatorBackgroundProxyFuzzerTest()
39 request->SetPid(data[index++]); in LocatorBackgroundProxyFuzzerTest()
43 requestConfig->SetScenario(data[index++]); in LocatorBackgroundProxyFuzzerTest()
44 requestConfig->SetPriority(data[index++]); in LocatorBackgroundProxyFuzzerTest()
45 requestConfig->SetTimeInterval(data[index++]); in LocatorBackgroundProxyFuzzerTest()
46 requestConfig->SetDistanceInterval(data[index++]); in LocatorBackgroundProxyFuzzerTest()
47 requestConfig->SetMaxAccuracy(data[index++]); in LocatorBackgroundProxyFuzzerTest()
48 requestConfig->SetFixNumber(data[index++]); in LocatorBackgroundProxyFuzzerTest()
49 requestConfig->SetTimeOut(data[index in LocatorBackgroundProxyFuzzerTest()
[all...]
/base/security/crypto_framework/frameworks/js/jsi/src/
H A Djsi_api_errcode.cpp62 for (uint32_t index = 0; index < sizeof(g_errMsg) / sizeof(g_errMsg[0]); index++) { in ThrowErrorCodeResult()
63 if (g_errMsg[index].errorCode == GetJsiErrValueByErrCode((HcfResult)errCode)) { in ThrowErrorCodeResult()
64 return JSI::CreateErrorWithCode(g_errMsg[index].errorCode, g_errMsg[index].errorMsg); in ThrowErrorCodeResult()
73 for (uint32_t index = 0; index < sizeof(g_errMsg) /sizeof(g_errMsg[0]); index++) { in CallbackErrorCodeOrDataResult()
74 if (g_errMsg[index] in CallbackErrorCodeOrDataResult()
[all...]
/base/security/huks/test/unittest/huks_common_test/src/
H A Dhks_test_cipher_func.cpp195 int32_t BaseTestCipher(uint32_t times, uint32_t index, uint32_t performTimes) in BaseTestCipher() argument
200 if ((g_testCipherParams[index].genKeyParamSetParams.setKeyStorageFlag) && in BaseTestCipher()
201 g_testCipherParams[index].genKeyParamSetParams.keyStorageFlag == HKS_STORAGE_TEMP) { in BaseTestCipher()
202 ret = GenerateLocalRandomKey(&keyAlias, &g_testCipherParams[index].localKeyParams); in BaseTestCipher()
204 ret = GenerateKey(&keyAlias, &g_testCipherParams[index].keyAliasParams, in BaseTestCipher()
205 &g_testCipherParams[index].genKeyParamSetParams, &g_testCipherParams[index].genKeyParamSetParamsOut); in BaseTestCipher()
211 &g_testCipherParams[index].plainTextParams, &g_testCipherParams[index].cipherTextParams); in BaseTestCipher()
218 keyAlias, &g_testCipherParams[index] in BaseTestCipher()
253 BaseTestEncrypt(uint32_t times, uint32_t index, uint32_t performTimes) BaseTestEncrypt() argument
305 BaseTestDecrypt(uint32_t times, uint32_t index, uint32_t performTimes) BaseTestDecrypt() argument
[all...]
/base/telephony/core_service/utils/vcard/src/contact_data/
H A Dvcard_name_data.cpp175 int32_t index; in BuildData() local
176 resultSet->GetColumnIndex(ContactData::GIVEN_NAME, index); in BuildData()
177 resultSet->GetString(index, given_); in BuildData()
178 resultSet->GetColumnIndex(ContactData::FAMILY_NAME, index); in BuildData()
179 resultSet->GetString(index, family_); in BuildData()
180 resultSet->GetColumnIndex(ContactData::MIDDLE_NAME, index); in BuildData()
181 resultSet->GetString(index, middle_); in BuildData()
182 resultSet->GetColumnIndex(ContactData::NAME_PREFIX, index); in BuildData()
183 resultSet->GetString(index, prefix_); in BuildData()
184 resultSet->GetColumnIndex(ContactData::NAME_SUFFIX, index); in BuildData()
[all...]
/base/global/i18n_lite/frameworks/i18n/src/
H A Dplural_format_impl.cpp203 bool PluralFormatImpl::ParseDecimalFormula(const std::string &rule, const int ruleSize, int &index, in ParseDecimalFormula() argument
207 if ((index < ruleSize) && (rule[index] == NUM_OF_FRACTION)) { in ParseDecimalFormula()
209 } else if ((index < ruleSize) && in ParseDecimalFormula()
210 ((rule[index] == FRACTION_NUMBER) || (rule[index] == FRACTION_NUMBER_WITH_ZERO))) { in ParseDecimalFormula()
215 index += SKIP_SYMBOL_LENGTH; in ParseDecimalFormula()
216 return ParseFormula(rule, ruleSize, index, currentNumber); in ParseDecimalFormula()
284 bool PluralFormatImpl::ParseFormula(const std::string &rule, const int ruleSize, int &index, const int number) const in ParseFormula() argument
287 if ((index < ruleSiz in ParseFormula()
304 CompareResult(const std::string &rule, const int ruleSize, int &index, const int number) const CompareResult() argument
339 CompareNotEqualResult(const std::string &rule, const int ruleSize, int &index, const int number) const CompareNotEqualResult() argument
[all...]
H A Ddate_time_data.cpp40 string DateTimeData::GetMonthName(int32_t index, DateTimeDataType type) in GetMonthName() argument
42 if ((index < 0) || (index >= MONTH_SIZE)) { in GetMonthName()
47 return Parse(formatAbbreviatedMonthNames, index); in GetMonthName()
50 return Parse(formatWideMonthNames, index); in GetMonthName()
53 return Parse(standaloneAbbreviatedMonthNames, index); in GetMonthName()
56 return Parse(standaloneWideMonthNames, index); in GetMonthName()
61 string DateTimeData::GetDayName(int32_t index, DateTimeDataType type) in GetDayName() argument
63 if ((index < 0) || (index > in GetDayName()
82 GetAmPmMarker(int32_t index, DateTimeDataType type) GetAmPmMarker() argument
[all...]

Completed in 10 milliseconds

12345678910>>...43