Home
last modified time | relevance | path

Searched refs:stringValue (Results 1 – 17 of 17) sorted by relevance

/base/startup/init/services/init/
Dinit_service_manager.c338 char *stringValue = GetStringValue(json, "family", &strLen); in ParseSocketFamily() local
339 INIT_ERROR_CHECK((stringValue != NULL) && (strLen > 0), return SERVICE_FAILURE, in ParseSocketFamily()
341 if (strcmp(stringValue, "AF_UNIX") == 0) { in ParseSocketFamily()
343 } else if (strncmp(stringValue, "AF_NETLINK", strLen) == 0) { in ParseSocketFamily()
353 char *stringValue = GetStringValue(json, "type", &strLen); in ParseSocketType() local
354 INIT_ERROR_CHECK((stringValue != NULL) && (strLen > 0), return SERVICE_FAILURE, in ParseSocketType()
356 if (strncmp(stringValue, "SOCK_SEQPACKET", strLen) == 0) { in ParseSocketType()
358 } else if (strncmp(stringValue, "SOCK_STREAM", strLen) == 0) { in ParseSocketType()
360 } else if (strncmp(stringValue, "SOCK_DGRAM", strLen) == 0) { in ParseSocketType()
370 char *stringValue = GetStringValue(json, "protocol", &strLen); in ParseSocketProtocol() local
[all …]
/base/web/webview/interfaces/kits/napi/common/
Dnapi_parse_utils.cpp215 char *stringValue = new (std::nothrow) char[bufferSize + 1]; in ParseString() local
216 if (stringValue == nullptr) { in ParseString()
221 napi_get_value_string_utf8(env, argv, stringValue, bufferSize + 1, &jsStringLength); in ParseString()
223 delete [] stringValue; in ParseString()
224 stringValue = nullptr; in ParseString()
227 std::string message(stringValue); in ParseString()
229 delete [] stringValue; in ParseString()
230 stringValue = nullptr; in ParseString()
/base/telephony/core_service/frameworks/native/src/
Doperator_config_types.cpp71 if (!parcel.WriteInt32(stringValue.size())) { in MarshallingStringMap()
74 auto valueIt = stringValue.begin(); in MarshallingStringMap()
75 while (valueIt != stringValue.end()) { in MarshallingStringMap()
252 stringValue.clear(); in ReadFromStringMap()
261 stringValue.emplace(std::pair<std::string, std::string>(first, second)); in ReadFromStringMap()
/base/telephony/core_service/services/sim/src/
Doperator_config_cache.cpp61 opc_.stringValue.clear(); in ClearMemoryCache()
145 for (const auto &it : from.stringValue) { in CopyOperatorConfig()
146 to.stringValue[it.first] = it.second; in CopyOperatorConfig()
Doperator_file_parser.cpp154 if (valueType == Json::stringValue) { in ParseOperatorConfigFromJson()
156 opc.stringValue[keyStr8] = value.asString(); in ParseOperatorConfigFromJson()
233 if (valueType == Json::stringValue) { in ParseArray()
/base/web/webview/interfaces/kits/napi/webdatabase/
Dnapi_web_data_base.cpp99 char stringValue[bufferSize + 1]; in GetStringPara() local
101 napi_get_value_string_utf8(env, argv, stringValue, bufferSize + 1, &jsStringLength); in GetStringPara()
105 outValue = stringValue; in GetStringPara()
Dnapi_geolocation_permission.cpp97 char stringValue[bufferSize + 1]; in GetStringPara() local
99 napi_get_value_string_utf8(env, argv, stringValue, bufferSize + 1, &jsStringLength); in GetStringPara()
103 outValue = stringValue; in GetStringPara()
/base/web/webview/interfaces/kits/napi/webasynccontroller/
Dnapi_web_async_controller.cpp120 char stringValue[bufferSize + 1]; in JS_StoreWebArchive() local
122 napi_get_value_string_utf8(env, argv[0], stringValue, bufferSize + 1, &jsStringLength); in JS_StoreWebArchive()
124 std::string baseName(stringValue); in JS_StoreWebArchive()
/base/web/webview/interfaces/kits/napi/webstorage/
Dnapi_web_storage.cpp90 char stringValue[bufferSize + 1]; in JsDeleteOrigin() local
92 napi_get_value_string_utf8(env, argv, stringValue, bufferSize + 1, &jsStringLength); in JsDeleteOrigin()
97 std::string origin(stringValue); in JsDeleteOrigin()
455 char stringValue[bufferSize + 1]; in JsGetOriginUsageOrQuota() local
457 napi_get_value_string_utf8(env, argv[PARAMZERO], stringValue, bufferSize + 1, &jsStringLength); in JsGetOriginUsageOrQuota()
462 std::string origin(stringValue); in JsGetOriginUsageOrQuota()
/base/telephony/core_service/interfaces/innerkits/include/
Doperator_config_types.h97 std::map<std::string, std::string> stringValue {};
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/
Dmap_string_serializer.cpp43 …if (root[member].type() != Json::ValueType::stringValue && root[member].type() != Json::ValueType:… in Deserialize()
/base/web/webview/interfaces/kits/napi/webcookiemanager/
Dnapi_web_cookie_manager.cpp83 char stringValue[bufferSize + 1]; in GetStringPara() local
85 napi_get_value_string_utf8(env, argv, stringValue, bufferSize + 1, &jsStringLength); in GetStringPara()
89 outValue = stringValue; in GetStringPara()
/base/update/updater/services/script/script_interpreter/
Dscript_context.cpp487 StringValue* stringValue = (StringValue*)(rightValue.get()); in Computer() local
488 if (stringValue == nullptr) { in Computer()
493 return make_shared<StringValue>(str + stringValue->GetValue()); in Computer()
/base/telephony/core_service/services/network_search/src/
Doperator_name.cpp496 …if (operatorConfig.stringValue.find(KEY_OPERATOR_NAME_CUST_STRING) != operatorConfig.stringValue.e… in UpdateOperatorConfig()
497 spnCust_ = operatorConfig.stringValue[KEY_OPERATOR_NAME_CUST_STRING]; in UpdateOperatorConfig()
/base/telephony/cellular_call/vendor/ims/services/ims_call/src/
Dims_call_stub.cpp365 std::string stringValue = data.ReadString(); in OnSetImsConfigString() local
367 reply.WriteInt32(SetImsConfig(item, stringValue)); in OnSetImsConfigString()
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dnapi_webview_controller.cpp1457 char* stringValue = new (std::nothrow) char[bufferSize + 1]; in PostMessageEvent() local
1458 if (stringValue == nullptr) { in PostMessageEvent()
1463 … napi_get_value_string_utf8(env, argv[INTEGER_ZERO], stringValue, bufferSize + 1, &jsStringLength); in PostMessageEvent()
1464 std::string message(stringValue); in PostMessageEvent()
1465 delete [] stringValue; in PostMessageEvent()
1466 stringValue = nullptr; in PostMessageEvent()
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsim_test_util.cpp128 EXPECT_EQ("JSON中国", poc.stringValue["string"]); in CompareOperatorConfProcess()