Home
last modified time | relevance | path

Searched refs:inputString (Results 1 – 21 of 21) sorted by relevance

/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/
H A Dwifi_encryption_util_test.cpp55 const std::string inputString = "12345678"; variable
64 const std::string inputString = ""; variable
66 EXPECT_TRUE(inputString.compare(encryResult.encryptedPassword) == 0);
74 const std::string inputString = "12345678"; variable
78 EXPECT_TRUE(inputString.compare(decryptedData) == 0);
120 const std::string inputString = "12345678"; variable
158 std::string inputString = ""; variable
161 inputString = "12345678";
180 EXPECT_TRUE(inputString.compare(decryptedData) != 0);
185 EXPECT_TRUE(inputString.compare(decryptedData) == 0);
[all …]
/ohos5.0/base/telephony/core_service/test/fuzztest/vcard_fuzzer/
H A Dvcard_fuzzer.cpp60 std::string inputString = R"( in DecodeVcard() local
73 WriteTestData(inputString); in DecodeVcard()
81 std::string inputString = R"( in DecodeVcardData() local
94 WriteTestData(inputString); in DecodeVcardData()
101 std::string inputString = in DecodeVcardRelation() local
105 WriteTestData(inputString); in DecodeVcardRelation()
113 std::string inputString = in DecodeVcardRelationData() local
118 WriteTestData(inputString); in DecodeVcardRelationData()
217 WriteTestData(inputString); in DecodeVcardRelationV30()
235 std::string inputString = in DecodeVcardRelationV40() local
[all …]
/ohos5.0/base/telephony/core_service/test/unittest/core_service_gtest/
H A Dvcard_test.cpp313 WriteTestData(inputString);
382 std::string inputString = variable
421 std::string inputString = variable
451 std::string inputString = variable
477 std::string inputString = variable
648 std::string inputString = variable
765 std::string inputString = variable
817 std::string inputString = variable
906 std::string inputString = variable
961 std::string inputString = variable
[all …]
/ohos5.0/base/hiviewdfx/hiview/base/utility/
H A Dstring_util.cpp151 KeyValuePair GetKeyValueByString(size_t &start, const std::string &inputString) in GetKeyValueByString() argument
155 auto length = inputString.size(); in GetKeyValueByString()
157 if (inputString[start] == INDICATE_VALUE_CHAR) { in GetKeyValueByString()
161 key.append(1, inputString[start]); in GetKeyValueByString()
166 if (inputString[start] == KEY_VALUE_END_CHAR) { in GetKeyValueByString()
169 if (start + 1 < length && inputString[start + 1] == KEY_VALUE_END_CHAR) { in GetKeyValueByString()
170 value.append(1, inputString[start]); in GetKeyValueByString()
178 if (inputString[start] == INDICATE_VALUE_CHAR && start + 1 < length && in GetKeyValueByString()
179 inputString[start + 1] == INDICATE_VALUE_CHAR) { in GetKeyValueByString()
181 value.append(1, inputString[start]); in GetKeyValueByString()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/protocol/
H A Djson_protocol.cpp103 std::string inputString; in SetInput() local
104 inputString.insert(inputString.end(), input.begin(), input.end()); in SetInput()
105 jsonObject_ = nlohmann::json::parse(inputString, nullptr, false, false); in SetInput()
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/
H A Djs_base64.cpp204 char *inputString = nullptr; in DecodeSyncInner() local
212 inputString = new (std::nothrow) char[prolen + 1]; in DecodeSyncInner()
213 if (inputString == nullptr) { in DecodeSyncInner()
218 FreeMemory(inputString); in DecodeSyncInner()
226 if (inputString != nullptr) { in DecodeSyncInner()
228 pret = DecodeAchieve(env, inputString, prolen, valueType); in DecodeSyncInner()
239 FreeMemory(inputString); in DecodeSyncInner()
571 char *inputString = nullptr; in Decode() local
585 inputString = new char[prolen + 1]; in Decode()
595 CreateDecodePromise(env, inputString, prolen, valueType); in Decode()
[all …]
/ohos5.0/foundation/distributedhardware/device_manager/test/commonunittest/
H A DUTTest_dm_anonymous.cpp127 const std::string inputString = ""; variable
128 bool ret = IsNumberString(inputString);
140 const std::string inputString = "123inputstring"; variable
141 bool ret = IsNumberString(inputString);
153 const std::string inputString = "25633981"; variable
154 bool ret = IsNumberString(inputString);
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/
H A Dwifi_encryption_util.cpp89 int32_t WifiEncryption(const WifiEncryptionInfo &wifiEncryptionInfo, const std::string &inputString, in WifiEncryption() argument
92 if (inputString.length() == 0) { in WifiEncryption()
96 struct HksBlob plainText = { inputString.length(), (uint8_t *)&inputString[0] }; in WifiEncryption()
383 …t32_t WifiLoopEncrypt(const WifiEncryptionInfo &wifiEncryptionInfo, const std::string &inputString, in WifiLoopEncrypt() argument
386 if (inputString.length() == 0) { in WifiLoopEncrypt()
407 struct HksBlob inData = { inputString.length(), (uint8_t *)&inputString[0] }; in WifiLoopEncrypt()
408 uint8_t *cipherBuf = (uint8_t *)malloc(inputString.length() + AEAD_SIZE); in WifiLoopEncrypt()
413 struct HksBlob outData = { inputString.length() + AEAD_SIZE, cipherBuf }; in WifiLoopEncrypt()
H A Dwifi_encryption_util.h86 int32_t WifiEncryption(const WifiEncryptionInfo &wifiEncryptionInfo, const std::string &inputString,
122 …t32_t WifiLoopEncrypt(const WifiEncryptionInfo &wifiEncryptionInfo, const std::string &inputString,
/ohos5.0/foundation/distributedhardware/device_manager/common/src/
H A Ddm_anonymous.cpp66 bool IsNumberString(const std::string &inputString) in IsNumberString() argument
69 if (inputString.length() == 0) { in IsNumberString()
73 for (size_t i = 0; i < inputString.length(); i++) { in IsNumberString()
74 int num = (int)inputString[i]; in IsNumberString()
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/test/
H A Dtest_util.cpp2106 char* inputString = nullptr; variable
2119 delete []inputString;
2120 inputString = nullptr;
2158 delete []inputString;
2159 inputString = nullptr;
2198 delete []inputString;
2199 inputString = nullptr;
2237 delete []inputString;
2238 inputString = nullptr;
2276 delete []inputString;
[all …]
/ohos5.0/base/telephony/core_service/services/network_search/src/
H A Dnetwork_utils.cpp153 std::vector<std::string> NetworkUtils::SplitString(const std::string &inputString, const std::strin… in SplitString() argument
156 if (inputString.empty()) { in SplitString()
162 while ((position = inputString.find(flag, start)) != std::string::npos) { in SplitString()
163 result.push_back(inputString.substr(start, position - start)); in SplitString()
166 if (start != inputString.size()) { in SplitString()
167 result.push_back(inputString.substr(start, inputString.size() - start)); in SplitString()
/ohos5.0/foundation/window/window_manager/dmserver/src/
H A Ddisplay_manager_config.cpp192 std::string inputString = reinterpret_cast<const char*>(context); in ReadStringConfigInfo() local
194 stringConfig_[nodeName] = inputString; in ReadStringConfigInfo()
/ohos5.0/foundation/multimedia/av_session/frameworks/native/session/test/unittest/
H A Davsession_dumper_test.cpp162 std::string inputString = "This is error info"; variable
165 dumper.SetErrorInfo(inputString);
169 EXPECT_EQ(outputString.size() > inputString.size(), true);
/ohos5.0/foundation/distributedhardware/device_manager/common/include/
H A Ddm_anonymous.h30 bool IsNumberString(const std::string &inputString);
/ohos5.0/base/hiviewdfx/hiview/base/utility/include/
H A Dstring_util.h108 KeyValuePair GetKeyValueByString(size_t &start, const std::string &inputString);
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/
H A Dscreen_scene_config.cpp331 std::string inputString = reinterpret_cast<const char*>(context); in ReadStringConfigInfo() local
333 stringConfig_[nodeName] = inputString; in ReadStringConfigInfo()
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/notification_preferences_database_branch_test/
H A Dnotification_preferences_database_branch_test.cpp749 std::string inputString = ""; variable
750 ASSERT_EQ(preferncesDB_->FindLastString(findString, inputString), "");
/ohos5.0/base/telephony/core_service/services/network_search/include/
H A Dnetwork_utils.h49 …static std::vector<std::string> SplitString(const std::string &inputString, const std::string &fla…
/ohos5.0/base/notification/distributed_notification_service/services/ans/include/
H A Dnotification_preferences_database.h278 std::string FindLastString(const std::string &findString, const std::string &inputString) const;
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_preferences_database.cpp1188 const std::string &findString, const std::string &inputString) const in FindLastString()
1193 keyStr = inputString.substr(pos); in FindLastString()