Home
last modified time | relevance | path

Searched refs:StrToInt (Results 1 – 25 of 108) sorted by relevance

12345

/ohos5.0/foundation/multimodalinput/input/tools/inject_event/src/
H A Dinput_manager_command.cpp229 if (!StrToInt(optarg, px) || !StrToInt(argv[optind], py)) { in ParseCommand()
1232 if (!StrToInt(optarg, px1) || !StrToInt(argv[optind], py1)) { in ParseCommand()
1262 if (!StrToInt(optarg, px1) || !StrToInt(argv[optind], py1)) { in ParseCommand()
1839 if ((!StrToInt(optarg, firstDownX)) || !StrToInt(argv[optind], firstDownY) || in SingleKnuckleGestureProcesser()
1840 …!StrToInt(argv[optind + 1], secondDownX) || !StrToInt(argv[optind + TWO_MORE_COMMAND], secondDownY… in SingleKnuckleGestureProcesser()
1846 if ((!StrToInt(optarg, firstDownX)) || !StrToInt(argv[optind], firstDownY) || in SingleKnuckleGestureProcesser()
1847 …!StrToInt(argv[optind + 1], secondDownX) || !StrToInt(argv[optind + TWO_MORE_COMMAND], secondDownY… in SingleKnuckleGestureProcesser()
1889 if (!StrToInt(optarg, firstDownX) || !StrToInt(argv[optind], firstDownY) || in DoubleKnuckleGestureProcesser()
1890 …!StrToInt(argv[optind + 1], secondDownX) || !StrToInt(argv[optind + TWO_MORE_COMMAND], secondDownY… in DoubleKnuckleGestureProcesser()
1896 if ((!StrToInt(optarg, firstDownX)) || !StrToInt(argv[optind], firstDownY) || in DoubleKnuckleGestureProcesser()
[all …]
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/test/unittest/src/
H A Dsystem_ability_test_tool.cpp355 StrToInt(argv[ARV_SAID_INDEX], said); in DoExtend()
361 StrToInt(argv[ARV_SAID_INDEX], said); in DoExtend()
368 StrToInt(argv[ARV_SAID_INDEX], said); in DoExtend()
375 StrToInt(argv[ARV_SAID_INDEX], said); in DoExtend()
386 StrToInt(argv[ARV_SAID_INDEX], said); in DoRemote()
393 StrToInt(argv[ARV_SAID_INDEX], said); in DoRemote()
400 StrToInt(argv[ARV_SAID_INDEX], said); in DoRemote()
402 StrToInt(argv[ARV_DEVICEID_INDEX], rssProcess); in DoRemote()
/ohos5.0/base/powermgr/power_manager/services/native/src/
H A Dpower_save_mode.cpp76 StrToInt(TrimStr(GetProp(nodePtr, "id")), policyId); in StartXMlParse()
83 StrToInt(TrimStr(GetProp(policyNodePtr, "id")), switchId); in StartXMlParse()
84 StrToInt(TrimStr(GetProp(policyNodePtr, "recover_flag")), pmp.recover_flag); in StartXMlParse()
85 StrToInt(TrimStr(GetProp(policyNodePtr, "value")), pmp.value); in StartXMlParse()
/ohos5.0/base/hiviewdfx/hidumper/services/native/src/
H A Ddump_common_utils.cpp130 StrToInt(cpuId, cpuInfo.id_); in GetCpuInfos()
166 StrToInt(name, pidInfo.pid_); in GetPidInfos()
212 StrToInt(file, pid); in GetUserPids()
320 StrToInt(val0, info.pid_); in GetProcessInfo()
322 StrToInt(val0, info.ppid_); in GetProcessInfo()
324 StrToInt(val0, info.uid_); in GetProcessInfo()
326 StrToInt(val0, info.gid_); in GetProcessInfo()
/ohos5.0/base/telephony/core_service/services/network_search/src/
H A Dnitz_update.cpp124 StrToInt(strYear, networkTime.year); in NitzParse()
125 StrToInt(strsRet[1], networkTime.month); in NitzParse()
126 StrToInt(strsRet[LOCATION_DAY_OR_SEC], networkTime.day); in NitzParse()
158 StrToInt(strsRet[1], networkTime.offset); in NitzTimeParse()
168 StrToInt(strsRet[0], networkTime.hour); in NitzTimeParse()
169 StrToInt(strsRet[1], networkTime.minute); in NitzTimeParse()
170 StrToInt(strsRet[LOCATION_DAY_OR_SEC], networkTime.second); in NitzTimeParse()
/ohos5.0/base/powermgr/thermal_manager/test/unittest/src/
H A Dthermal_config_file_parser.cpp299 StrToInt(reinterpret_cast<char*>(value), idleState.level); in ParseIdleNode()
305 StrToInt(reinterpret_cast<char*>(value), idleState.soc); in ParseIdleNode()
311 StrToInt(reinterpret_cast<char*>(value), idleState.charging); in ParseIdleNode()
317 StrToInt(reinterpret_cast<char*>(value), idleState.current); in ParseIdleNode()
387 StrToInt(tempRiseRanges[INDEX0], auxlevelItem.lowerTemp); in ParseAuxSensorSubnodeInfo()
388 StrToInt(tempRiseRanges[INDEX1], auxlevelItem.upperTemp); in ParseAuxSensorSubnodeInfo()
391 StrToInt(reinterpret_cast<char*>(xmlLevel), auxlevelItem.level); in ParseAuxSensorSubnodeInfo()
454 StrToInt(thresholds.at(i), levelItem.threshold); in ParseSensorSubnodeInfo()
455 StrToInt(thresholdClrs.at(i), levelItem.thresholdClr); in ParseSensorSubnodeInfo()
/ohos5.0/foundation/multimedia/player_framework/services/utils/
H A Duri_helper.cpp58 bool StrToInt(const std::string_view& str, T& value) in StrToInt() function
237 CHECK_AND_RETURN_RET_LOG(StrToInt(uri, fd_), false, "Invalid fd url"); in ParseFdUri()
241 CHECK_AND_RETURN_RET_LOG(StrToInt(fdstr, fd) && delim1 + delim1Len < uri.size() in ParseFdUri()
244 … CHECK_AND_RETURN_RET_LOG(StrToInt(offsetStr, offset_) && delim2 + delim2Len < uri.size(), false, in ParseFdUri()
247 CHECK_AND_RETURN_RET_LOG(StrToInt(sizeStr, size_), false, "Invalid fd url"); in ParseFdUri()
H A Dxml_parse.cpp75 bool ret = StrToInt(head, range.minVal); in TransStrAsRange()
79 ret = StrToInt(tail, range.maxVal); in TransStrAsRange()
94 bool ret = StrToInt(*iter, num); in TransStrAsIntegerArray()
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dbg/
H A Dhdf_dbg.cpp99 static int StrToInt(std::string tempstr) in StrToInt() function
277 info.inParam = StrToInt(result[PARAM_IN_IDX]); in ParseParameterCount()
279 info.inParam = StrToInt(result[PARAM_IN_IDX]); in ParseParameterCount()
280 info.outParam = StrToInt(result[PARAM_OUT_IDX]); in ParseParameterCount()
332 info.cmd = StrToInt(argv[CMD_ID_IDX]); in ParseHdfDbg()
359 data.WriteInt32(StrToInt(info.inParamVec[i][1])); in InjectDebugHdi()
480 uint32_t queryIdx = static_cast<uint32_t>(StrToInt(argvStr)); in main()
/ohos5.0/base/powermgr/thermal_manager/services/native/src/thermal_policy/
H A Dthermal_srv_config_parser.cpp316 StrToInt(tempRanges[INDEX0], auxlevelItem.lowerTemp); in ParseAuxSensorLevInfo()
317 StrToInt(tempRanges[INDEX1], auxlevelItem.upperTemp); in ParseAuxSensorLevInfo()
320 StrToInt(reinterpret_cast<char*>(xmlLevel), auxlevelItem.level); in ParseAuxSensorLevInfo()
462 StrToInt(thresholds.at(sensorIdx), levelItem.threshold); in ParseLevelThreshold()
463 StrToInt(thresholdClrs.at(sensorIdx), levelItem.thresholdClr); in ParseLevelThreshold()
664 StrToInt(reinterpret_cast<char*>(value), idleState.level); in ParseIdleNode()
670 StrToInt(reinterpret_cast<char*>(value), idleState.soc); in ParseIdleNode()
676 StrToInt(reinterpret_cast<char*>(value), idleState.charging); in ParseIdleNode()
682 StrToInt(reinterpret_cast<char*>(value), idleState.current); in ParseIdleNode()
745 StrToInt(faultStr, faultNum); in ParseFanFaultInfo()
[all …]
/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_string_test.cpp428 bool result = StrToInt(strValue, iValue);
433 result = StrToInt(strValue, iValue);
441 bool result = StrToInt(strValue, iValue);
446 result = StrToInt(strValue, iValue);
450 result = StrToInt(strvalue2, iValue);
458 bool result = StrToInt(strValue, ivalue);
466 bool result = StrToInt(strValue, iValue);
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/scene_recognize/src/
H A Dbackground_sensitive_task_overlapping_scene_recognizer.cpp66 StrToInt(payload[PID_KEY].get<std::string>(), sceneboardPid_); in OnDispatchResource()
77 StrToInt(payload[PID_KEY].get<std::string>(), pid); in HandleContinuousTask()
196 StrToInt(payload[PID_KEY].get<std::string>(), foregroundPid_); in HandleForeground()
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/string_benchmark_test/
H A Dstring_benchmark_test.cpp512 bool result = StrToInt(strValue, iValue); in BENCHMARK_F()
517 result = StrToInt(strValue, iValue); in BENCHMARK_F()
529 bool result = StrToInt(strValue, iValue); in BENCHMARK_F()
534 result = StrToInt(strValue, iValue); in BENCHMARK_F()
538 result = StrToInt(strvalue2, iValue); in BENCHMARK_F()
550 bool result = StrToInt(strValue, ivalue); in BENCHMARK_F()
562 bool result = StrToInt(strValue, iValue); in BENCHMARK_F()
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/src/
H A Ddms_version_manager.cpp145 …if (!OHOS::StrToInt(versionNumList[DMS_MAJOR_VERSION_INDEX], majorVersionNum) || majorVersionNum <… in ParseDmsVersion()
151 …if (!OHOS::StrToInt(versionNumList[DMS_MINOR_VERSION_INDEX], minorVersionNum) || minorVersionNum <… in ParseDmsVersion()
157 …if (!OHOS::StrToInt(versionNumList[DMS_FEATURE_VERSION_INDEX], featureVersionNum) || featureVersio… in ParseDmsVersion()
/ohos5.0/base/powermgr/thermal_manager/application/protector/src/policy/
H A Dthermal_kernel_config_file.cpp107 StrToInt(reinterpret_cast<char*>(xmlInterval), interval); in ParseControlNode()
150 StrToInt(reinterpret_cast<char*>(xmlThreshold), tziItem.threshold); in ParseSubNode()
155 StrToInt(reinterpret_cast<char*>(xmlThresholdClr), tziItem.thresholdClr); in ParseSubNode()
/ohos5.0/base/powermgr/power_manager/utils/shell/src/
H A Dpower_shell_command.cpp437 StrToInt(optarg, uid); in RunAsProxyLockCommand()
515 StrToInt(optarg, value); in RunAsDisplayCommandOverride()
549 StrToInt(optarg, value); in RunAsDisplayCommandBoost()
583 StrToInt(optarg, value); in RunAsDisplayCommandSetValue()
661 StrToInt(optarg, timeout); in RunAsTimeOutCommand()
/ohos5.0/base/hiviewdfx/hiview/base/utility/include/
H A Dstring_util.h91 bool StrToInt(const std::string& str, int& value);
92 int StrToInt(const std::string& str);
/ohos5.0/base/powermgr/power_manager/utils/param/src/
H A Dsysparam.cpp48 StrToInt(TrimStr(value), intValue); in GetIntValue()
/ohos5.0/base/security/access_token/services/el5filekeymanager/src/
H A Del5_filekey_manager_service_ability.cpp61 if (StrToInt(strUserId, userId)) { in OnStart()
/ohos5.0/drivers/peripheral/thermal/interfaces/hdi_service/src/
H A Dthermal_hdf_utils.cpp41 StrToInt(content, value); in ReadNodeToInt()
H A Dthermal_hdf_timer.cpp66 StrToInt(TrimStr(baseIter->value), isSim_); in SetSimluationFlag()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/
H A Dbundle_resource_event_subscriber.cpp44 if (oldId.empty() || !OHOS::StrToInt(oldId, oldUserId)) { in OnReceiveEvent()
/ohos5.0/base/hiviewdfx/hiview/base/utility/
H A Dstring_util.cpp111 bool StrToInt(const string& str, int& value) in StrToInt() function
130 int StrToInt(const string& str) in StrToInt() function
133 StrToInt(str, id); in StrToInt()
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/calculator/
H A Dio_calculator.cpp63 int manfid = StringUtil::StrToInt(eMMCManfid); in GetEMMCManfid()
/ohos5.0/foundation/bundlemanager/bundle_tool/frameworks/src/
H A Dbundle_command.cpp619 if (!OHOS::StrToInt(optarg, userId) || userId < 0) { in RunAsInstallCommand()
632 if (!OHOS::StrToInt(optarg, waittingTime) || waittingTime < MINIMUM_WAITTING_TIME || in RunAsInstallCommand()
860 if (!OHOS::StrToInt(optarg, userId) || userId < 0) { in RunAsUninstallCommand()
885 if (!OHOS::StrToInt(optarg, versionCode) || versionCode < 0) { in RunAsUninstallCommand()
1050 if (!OHOS::StrToInt(optarg, userId) || userId < 0) { in RunAsDumpCommand()
1229 if (!OHOS::StrToInt(optarg, userId) || userId < 0) { in RunAsCleanCommand()
1241 … if (!OHOS::StrToInt(optarg, appIndex) || (appIndex < 0 || appIndex > INITIAL_SANDBOX_APP_INDEX)) { in RunAsCleanCommand()
1397 if (!OHOS::StrToInt(optarg, userId) || userId < 0) { in RunAsEnableCommand()
1543 if (!OHOS::StrToInt(optarg, userId) || userId < 0) { in RunAsDisableCommand()
1858 if (!OHOS::StrToInt(optarg, userId) || userId < 0) { in RunAsDumpOverlay()
[all …]

12345