/ohos5.0/base/telephony/sms_mms/test/fuzztest/cdmasmsdecode_fuzzer/ |
H A D | cdmasmsdecode_fuzzer.cpp | 39 SmsReadBuffer pdu(strValue); in TeleserviceIdDecode() 61 SmsReadBuffer pdu(strValue); in ServiceCategoryDecode() 83 SmsReadBuffer pdu(strValue); in BearerReplyDecode() 105 SmsReadBuffer pdu(strValue); in CauseCodesDecode() 127 SmsReadBuffer pdu(strValue); in AddressParameterDecode() 149 SmsReadBuffer pdu(strValue); in SubaddressDecode() 165 SmsReadBuffer pdu(strValue); in BearerDataDecode() 209 SmsReadBuffer pdu(strValue); in BaseParameterDecode() 230 SmsReadBuffer pdu(strValue); in ReservedParameterDecode() 252 SmsReadBuffer pdu(strValue); in MessageIdDecode() [all …]
|
/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_string_test.cpp | 407 string strValue = "12345"; variable 426 string strValue = "12345"; variable 432 strValue = "123r54"; 445 strValue = "123= 54"; 473 string strValue(test); 478 strValue = "1234"; 482 strValue = "abcde"; 598 string strValue; variable 615 string strValue; variable 627 vector<string> strValue; variable [all …]
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/app_manager/src/appmgr/ |
H A D | fault_data.cpp | 26 std::string strValue; in ReadFromParcel() local 27 if (!parcel.ReadString(strValue)) { in ReadFromParcel() 31 errorObject.name = strValue; in ReadFromParcel() 37 errorObject.message = strValue; in ReadFromParcel() 43 errorObject.stack = strValue; in ReadFromParcel() 56 timeoutMarkers = strValue; in ReadFromParcel() 153 std::string strValue; in ReadFromParcel() local 158 errorObject.name = strValue; in ReadFromParcel() 164 errorObject.message = strValue; in ReadFromParcel() 170 errorObject.stack = strValue; in ReadFromParcel() [all …]
|
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/string_benchmark_test/ |
H A D | string_benchmark_test.cpp | 487 string strValue = "12345"; in BENCHMARK_F() local 510 string strValue = "12345"; in BENCHMARK_F() local 516 strValue = "123r54"; in BENCHMARK_F() 533 strValue = "123= 54"; in BENCHMARK_F() 573 string strValue(test); in BENCHMARK_F() local 578 strValue = "1234"; in BENCHMARK_F() 582 strValue = "abcde"; in BENCHMARK_F() 670 string strValue; in BENCHMARK_F() local 691 string strValue; in BENCHMARK_F() local 706 vector<string> strValue; in BENCHMARK_F() local [all …]
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/connectionobs_manager/src/ |
H A D | dlp_state_data.cpp | 71 std::u16string strValue; in ReadFromParcel() local 72 if (!parcel.ReadString16(strValue)) { in ReadFromParcel() 75 targetBundleName = Str16ToStr8(strValue); in ReadFromParcel() 77 if (!parcel.ReadString16(strValue)) { in ReadFromParcel() 80 targetModuleName = Str16ToStr8(strValue); in ReadFromParcel() 82 if (!parcel.ReadString16(strValue)) { in ReadFromParcel() 85 targetAbilityName = Str16ToStr8(strValue); in ReadFromParcel() 97 if (!parcel.ReadString16(strValue)) { in ReadFromParcel() 101 callerName = Str16ToStr8(strValue); in ReadFromParcel()
|
H A D | connection_data.cpp | 75 std::u16string strValue; in ReadFromParcel() local 76 if (!parcel.ReadString16(strValue)) { in ReadFromParcel() 79 extensionBundleName = Str16ToStr8(strValue); in ReadFromParcel() 81 if (!parcel.ReadString16(strValue)) { in ReadFromParcel() 84 extensionModuleName = Str16ToStr8(strValue); in ReadFromParcel() 86 if (!parcel.ReadString16(strValue)) { in ReadFromParcel() 89 extensionName = Str16ToStr8(strValue); in ReadFromParcel() 107 if (!parcel.ReadString16(strValue)) { in ReadFromParcel() 111 callerName = Str16ToStr8(strValue); in ReadFromParcel()
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/native_engine/jsi/test/unittest/common/ |
H A D | jsi_interface_tdd_test.cpp | 284 if ((strValue != nullptr) && res1 && !res2 && !strcmp(strValue, "test")) { in JSIInterfaceTest007() 289 EXPECT_TRUE((strValue != nullptr) && res1 && !res2 && !strcmp(strValue, "test")); in JSIInterfaceTest007() 291 JSI::ReleaseString(strValue); in JSIInterfaceTest007() 900 if ((strValue != nullptr) && res1 && !res2 && !strcmp(strValue, "test")) { in JSIInterfaceTest024() 905 EXPECT_TRUE((strValue != nullptr) && res1 && !res2 && !strcmp(strValue, "test")); in JSIInterfaceTest024() 907 JSI::ReleaseString(strValue); in JSIInterfaceTest024() 938 if ((strValue != nullptr) && res1 && !res2 && !strcmp(strValue, "123")) { in JSIInterfaceTest025() 943 EXPECT_TRUE((strValue != nullptr) && res1 && !res2 && !strcmp(strValue, "123")); in JSIInterfaceTest025() 975 if ((strValue != nullptr) && res1 && !res2 && !strcmp(strValue, "true")) { in JSIInterfaceTest026() 980 EXPECT_TRUE((strValue != nullptr) && res1 && !res2 && !strcmp(strValue, "true")); in JSIInterfaceTest026() [all …]
|
/ohos5.0/base/telephony/sms_mms/test/fuzztest/wappushbuffer_fuzzer/ |
H A D | wappushbuffer_fuzzer.cpp | 32 std::string strValue(reinterpret_cast<const char *>(data), size); in WapPushBuffer() 35 smsWapPushHandler->DecodeWapPushPdu(indexer, strValue); in WapPushBuffer() 58 decodeBuffer->DecodeTokenText(strValue, desLen); in WapPushBuffer() 59 decodeBuffer->DecodeText(strValue, desLen); in WapPushBuffer() 61 decodeBuffer->DecodeQuotedText(strValue, desLen); in WapPushBuffer() 75 decodeBuffer->DecodeTextValue(strValue, isNoValue); in WapPushBuffer()
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/unittest/ |
H A D | profile_utils_test.cpp | 374 string strValue = ""; variable 430 string strValue = ""; variable 480 string strValue = ""; variable 536 string strValue = ""; variable 541 EXPECT_EQ("acer1", strValue); 592 string strValue = ""; variable 597 EXPECT_EQ("acee1", strValue); 688 string strValue = ""; variable 693 EXPECT_EQ("acer2", strValue); 738 string strValue = ""; variable [all …]
|
/ohos5.0/foundation/deviceprofile/device_info_manager/common/src/utils/ |
H A D | profile_utils.cpp | 496 std::string strValue = ""; in EntriesToTrustDeviceProfile() local 499 profile.SetDeviceId(strValue); in EntriesToTrustDeviceProfile() 502 profile.SetDeviceIdHash(strValue); in EntriesToTrustDeviceProfile() 515 std::string strValue = ""; in EntriesToAccessControlProfile() local 528 profile.SetSessionKey(strValue); in EntriesToAccessControlProfile() 549 profile.SetTrustDeviceId(strValue); in EntriesToAccessControlProfile() 555 profile.SetDeviceIdHash(strValue); in EntriesToAccessControlProfile() 563 std::string strValue = ""; in EntriesToAccesser() local 570 accesser.SetAccesserDeviceId(strValue); in EntriesToAccesser() 593 std::string strValue = ""; in EntriesToAccessee() local [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/ |
H A D | hfp_ag_system_event_processer.cpp | 199 std::string strValue("bt_headset_nrec+"); in ProcessNoiseReductionEvent() local 202 strValue.append("on"); in ProcessNoiseReductionEvent() 204 strValue.append("off"); in ProcessNoiseReductionEvent() 206 systemInterface_.SetAudioParameters(strValue); in ProcessNoiseReductionEvent() 211 std::string strValue("bt_wbs+"); in ProcessWideBandSpeechEvent() local 214 strValue.append("on"); in ProcessWideBandSpeechEvent() 218 strValue.append("off"); in ProcessWideBandSpeechEvent() 221 strValue.clear(); in ProcessWideBandSpeechEvent() 224 systemInterface_.SetAudioParameters(strValue); in ProcessWideBandSpeechEvent()
|
/ohos5.0/drivers/peripheral/audio/hal/hdi_passthrough/src/ |
H A D | audio_adapter_info_common.c | 467 char strValue[MAP_MAX] = { 0 }; in AddElementToList() local 469 ret = sprintf_s(strValue, sizeof(strValue), "%s=%d;", key, *((int32_t *)value)); in AddElementToList() 474 ret = sprintf_s(strValue, sizeof(strValue), "%s=%u;", key, formatBits); in AddElementToList() 477 ret = sprintf_s(strValue, sizeof(strValue), "%s=%u;", key, *((uint32_t *)value)); in AddElementToList() 479 ret = sprintf_s(strValue, sizeof(strValue), "%s=%llu;", key, *((uint64_t *)value)); in AddElementToList() 481 ret = sprintf_s(strValue, sizeof(strValue), "%s=%u", key, *((uint32_t *)value)); in AddElementToList() 490 if (listLenth < (int32_t)strlen(strValue)) { in AddElementToList() 494 ret = strncat_s(keyValueList, listLenth, strValue, strlen(strValue)); in AddElementToList()
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/system_sound_manager/src/ringtone_player/ |
H A D | ringtone_common_napi.cpp | 28 std::string strValue = ""; in GetStringArgument() local 33 CHECK_AND_RETURN_RET_LOG(buffer != nullptr, strValue, "no memory"); in GetStringArgument() 37 strValue = buffer; in GetStringArgument() 42 return strValue; in GetStringArgument()
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/audio_haptic/src/ |
H A D | audio_haptic_common_napi.cpp | 72 std::string strValue = ""; in GetStringArgument() local 77 CHECK_AND_RETURN_RET_LOG(buffer != nullptr, strValue, "GetStringArgument: no memory"); in GetStringArgument() 81 strValue = buffer; in GetStringArgument() 86 return strValue; in GetStringArgument()
|
/ohos5.0/drivers/peripheral/audio/hdi_service/primary_impl/src/ |
H A D | audio_adapter_info_common.c | 462 char strValue[MAP_MAX] = {0}; in AddElementToList() local 470 ret = sprintf_s(strValue, sizeof(strValue), "%s=%d;", key, *((int32_t *)value)); in AddElementToList() 474 ret = sprintf_s(strValue, sizeof(strValue), "%s=%u;", key, formatBits); in AddElementToList() 477 ret = sprintf_s(strValue, sizeof(strValue), "%s=%u;", key, *((uint32_t *)value)); in AddElementToList() 479 ret = sprintf_s(strValue, sizeof(strValue), "%s=%llu;", key, *((uint64_t *)value)); in AddElementToList() 481 ret = sprintf_s(strValue, sizeof(strValue), "%s=%u", key, *((uint32_t *)value)); in AddElementToList() 490 ret = strncat_s(keyValueList, listLenth, strValue, strlen(strValue)); in AddElementToList()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/test/native/rdb_data_share_adapter/unittest/ |
H A D | rdb_data_share_adapter_test.cpp | 203 std::string strValue; variable 204 allDataTypes->GetString(1, strValue); 205 EXPECT_EQ("hello", strValue); 245 std::string strValue; variable 246 allDataTypes->GetString(1, strValue); 247 EXPECT_EQ("hello", strValue); 259 allDataTypes->GetString(1, strValue); 260 EXPECT_EQ("hello world", strValue); 344 std::string strValue; variable 345 allDataTypes->GetString(1, strValue); [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | div_component.cpp | 49 const char * const strValue = GetStyleStrValue(style); in ApplyPrivateStyle() local 50 if (strValue == nullptr) { in ApplyPrivateStyle() 55 NativeViewSetDirection(style, stylePropNameId, strValue, applyResult); in ApplyPrivateStyle() 60 const char * const strValue, bool& applyResult) in NativeViewSetDirection() argument 62 uint16_t valueId = KeyParser::ParseKeyId(strValue, GetStyleStrValueLen(style)); in NativeViewSetDirection()
|
H A D | image_component.cpp | 90 const char * const strValue = GetStyleStrValue(style); in ApplyPrivateStyle() local 91 if (strValue == nullptr) { in ApplyPrivateStyle() 94 uint16_t mode = KeyParser::ParseKeyId(strValue, GetStyleStrValueLen(style)); in ApplyPrivateStyle()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_picker_base.cpp | 98 std::string strValue; in GetPickerDate() local 103 outDate.SetYear(StringUtils::StringToInt(strValue)); in GetPickerDate() 111 outDate.SetDay(StringUtils::StringToInt(strValue)); in GetPickerDate() 117 std::string strValue; in GetPickerTime() local 122 outTime.SetHour(StringUtils::StringToInt(strValue)); in GetPickerTime() 128 if (std::getline(streamDate, strValue)) { in GetPickerTime() 165 std::string strValue = attr.second; in SetSpecializedAttr() local 166 strValue.erase( in SetSpecializedAttr() 167 …std::remove_if(strValue.begin(), strValue.end(), [](char c) { return c == DOM_PICKER_SPLIT_ARRAY; … in SetSpecializedAttr() 168 strValue.end()); in SetSpecializedAttr() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/ |
H A D | js_query.cpp | 126 auto strValue = std::get_if<std::string>(&ctxt->vv); in EqualTo() local 127 if (strValue != nullptr) { in EqualTo() 128 query.EqualTo(ctxt->field, *strValue); in EqualTo() 152 if (strValue != nullptr) { in NotEqualTo() 153 query.NotEqualTo(ctxt->field, *strValue); in NotEqualTo() 177 if (strValue != nullptr) { in GreaterThan() 178 query.GreaterThan(ctxt->field, *strValue); in GreaterThan() 202 if (strValue != nullptr) { in LessThan() 203 query.LessThan(ctxt->field, *strValue); in LessThan() 227 if (strValue != nullptr) { in GreaterThanOrEqualTo() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/ |
H A D | js_query.cpp | 138 auto strValue = std::get_if<std::string>(&ctxt->vv); in EqualTo() local 139 if (strValue != nullptr) { in EqualTo() 140 query.EqualTo(ctxt->field, *strValue); in EqualTo() 166 if (strValue != nullptr) { in NotEqualTo() 167 query.NotEqualTo(ctxt->field, *strValue); in NotEqualTo() 193 if (strValue != nullptr) { in GreaterThan() 194 query.GreaterThan(ctxt->field, *strValue); in GreaterThan() 220 if (strValue != nullptr) { in LessThan() 221 query.LessThan(ctxt->field, *strValue); in LessThan() 247 if (strValue != nullptr) { in GreaterThanOrEqualTo() [all …]
|
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/src/ |
H A D | dhcp_dhcpd.cpp | 202 std::string strValue = arg->value; in InitLeaseTime() local 203 config->leaseTime = static_cast<uint32_t>(OHOS::DHCP::CheckDataLegal(strValue)); in InitLeaseTime() 216 std::string strValue = arg->value; in InitRenewalTime() local 217 config->renewalTime = static_cast<uint32_t>(OHOS::DHCP::CheckDataLegal(strValue)); in InitRenewalTime() 231 std::string strValue = arg->value; in InitRebindingTime() local 232 config->rebindingTime = static_cast<uint32_t>(OHOS::DHCP::CheckDataLegal(strValue)); in InitRebindingTime()
|
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/src/ |
H A D | preferences_value_parcel.cpp | 486 std::string strValue; in UnmarshallingStringValue() local 489 strValue = ""; in UnmarshallingStringValue() 491 strValue.resize(strLen); in UnmarshallingStringValue() 492 …strValue.assign(startAddr + sizeof(uint8_t) + sizeof(size_t), startAddr + sizeof(uint8_t) + sizeof… in UnmarshallingStringValue() 498 obj.valueStr = strValue; in UnmarshallingStringValue() 501 return std::make_pair(E_OK, PreferencesValue(strValue)); in UnmarshallingStringValue() 522 std::string strValue; in UnmarshallingStringArrayValue() local 524 strValue = ""; in UnmarshallingStringArrayValue() 526 strValue.resize(strLen); in UnmarshallingStringArrayValue() 527 strValue.assign(startAddr, startAddr + strLen); in UnmarshallingStringArrayValue() [all …]
|
/ohos5.0/base/update/updateservice/frameworks/js/napi/session/src/ |
H A D | napi_common_utils.cpp | 79 …nUtils::GetString(napi_env env, napi_value arg, const std::string &attrName, std::string &strValue) in GetString() argument 86 return GetString(env, value, strValue); in GetString() 91 int32_t NapiCommonUtils::GetString(napi_env env, napi_value arg, std::string &strValue) in GetString() argument 102 strValue.assign(buff.data(), copied); in GetString() 288 std::string strValue; in ConvertVectorToStr() local 290 if (!strValue.empty()) { in ConvertVectorToStr() 291 strValue.append(", "); in ConvertVectorToStr() 294 strValue.append(str.first); in ConvertVectorToStr() 296 strValue.append(str.second); in ConvertVectorToStr() 299 return strValue; in ConvertVectorToStr()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | rdb_step_result_set_test.cpp | 34 std::string strValue; member 177 std::string strValue; in CheckResultSetData() local 184 EXPECT_EQ(resultSetData.strValue, strValue); in CheckResultSetData() 570 std::string strValue; variable 581 EXPECT_EQ("10", strValue); 584 EXPECT_EQ("1", strValue); 598 EXPECT_EQ("2", strValue); 601 EXPECT_EQ("-5", strValue); 604 EXPECT_EQ("2.5", strValue); 1644 std::string strValue; variable [all …]
|