Home
last modified time | relevance | path

Searched refs:stod (Results 1 - 25 of 34) sorted by relevance

12

/third_party/benchmark/test/
H A Dstring_util_gtest.cc123 TEST(StringUtilTest, stod){{size_t pos = 0; in TEST()
124 EXPECT_EQ(0.0, benchmark::stod("0", &pos)); in TEST()
129 EXPECT_EQ(-84.0, benchmark::stod("-84", &pos)); in TEST()
134 EXPECT_EQ(1234.0, benchmark::stod("1234", &pos)); in TEST()
139 EXPECT_EQ(1.5, benchmark::stod("1.5", &pos)); in TEST()
145 EXPECT_EQ(-1.25e+9, benchmark::stod("-1.25e+9", &pos)); in TEST()
150 ASSERT_THROW(std::ignore = benchmark::stod("this is a test"), in TEST()
/drivers/peripheral/usb/test/moduletest/common/
H A Dusb_utils.cpp41 logTs = stod(lineStr.substr(pos + tsStartPos, tsLength)); in HasLog()
90 pinfo.ramCur = stod(pch); in ParseFile()
100 pinfo.cpuCur = stod(pch); in ParseFile()
160 logTs = stod(lineStr.substr(tsStartPos, tsLength)); in GetTsFromLog()
/base/hiviewdfx/hitrace/frameworks/native/
H A Ddynamic_buffer.cpp50 traceStats.oldTs = std::stod(line.substr(oldTsPos)); in GetPerCpuStatsInfo()
53 traceStats.nowTs = std::stod(line.substr(nowTsPos)); in GetPerCpuStatsInfo()
56 traceStats.bytes = std::stod(line.substr(bytesPos)); in GetPerCpuStatsInfo()
/third_party/benchmark/src/
H A Dstring_util.h53 * stoul, stoi, stod. We reimplement them here using C functions strtoul,
60 double stod(const std::string& str, size_t* pos = nullptr);
62 using std::stod; // NOLINT(misc-unused-using-decls)
H A Dstring_util.cc171 * stoul, stoi, stod. We reimplement them here using C functions strtoul,
227 double stod(const std::string& str, size_t* pos) { in stod() function
H A Dsysinfo.cc685 double cycles_per_second = benchmark::stod(value) * 1000000.0; in GetCPUCyclesPerSecond()
690 bogo_clock = benchmark::stod(value) * 1000000.0; in GetCPUCyclesPerSecond()
/foundation/ability/ability_runtime/frameworks/cj/ffi/
H A Dcj_environment_callback.cpp101 cfg.fontSizeScale = fontSizeScale == "" ? 1.0 : std::stod(fontSizeScale); in CreateCConfiguration()
103 cfg.fontWeightScale = fontWeightScale == "" ? 1.0 : std::stod(fontWeightScale); in CreateCConfiguration()
/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_common/
H A Dnapi_common_configuration.cpp79 jsValue = WrapDoubleToJS(env, fontSizeScale != "" ? std::stod(fontSizeScale) : 1.0); in WrapConfiguration()
83 jsValue = WrapDoubleToJS(env, fontWeightScale != "" ? std::stod(fontWeightScale) : 1.0); in WrapConfiguration()
/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_data_struct_converter.cpp115 CreateJsValue(env, fontSizeScale == "" ? 1.0 : std::stod(fontSizeScale))); in CreateJsConfiguration()
119 CreateJsValue(env, fontWeightScale == "" ? 1.0 : std::stod(fontWeightScale))); in CreateJsConfiguration()
/foundation/ability/ability_base/interfaces/inner_api/base/src/
H A Ddouble_wrapper.cpp58 double value = std::stod(str, &idx); in Parse()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_rating_ffi.cpp64 lambda(std::stod(value)); in FfiOHOSAceFrameworkRatingSetOnChange()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_rating.cpp67 auto newJSVal = JSRef<JSVal>::Make(ToJSValue(stod(value))); in ParseRatingObject()
190 auto newJSVal = JSRef<JSVal>::Make(ToJSValue(stod(value))); in SetOnChange()
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/benchmarks/benchmark_dcl/
H A Ddrawing_command.cpp117 opItemStep_ = std::stod(augment.c_str()); in HandleCommand()
H A Ddrawing_playback.cpp323 opItemStep_ = std::stod(words[1]); in GetDirectionAndStep()
/third_party/node/deps/v8/src/torque/ls/
H A Djson-parser.cc53 double d = std::stod(number.c_str()); in MakeNumberLiteral()
/third_party/skia/include/private/
H A DSkSLString.h67 bool stod(const skstd::string_view& s, SKSL_FLOAT* value);
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/state_manage/
H A Dcj_persistent_storage_ffi.cpp126 result.value = std::stod(tmp); in FfiOHOSAceFrameworkPersistentGetFloat64()
/third_party/skia/src/sksl/
H A DSkSLString.cpp148 bool stod(const skstd::string_view& s, SKSL_FLOAT* value) { in stod() function
/base/update/updater/services/
H A Dupdater_utils.cpp79 upParams.installTime[index++] = std::chrono::duration<double>(std::stod(buf)); in ReadInstallTime()
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dcolor.cpp132 auto opacity = static_cast<double>(std::stod(matches[4])); in FromString()
545 auto opacityDouble = std::stod(matches[4]);
/foundation/arkui/ui_appearance/interfaces/kits/napi/src/
H A Djs_ui_appearance.cpp354 double fontScaleNumber = std::stod(fontScale); in JSGetFontScale()
427 double fontWeightScaleNumber = std::stod(fontWeightScale); in JSGetFontWeightScale()
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/
H A Dsvg_attributes_parser.cpp279 auto alpha = static_cast<double>(std::stod(matches[4])); in CheckColorAlpha()
/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dstring_utils.cpp218 double num = std::stod(inputOutputNum); in LocalizeNumber()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
H A Dnanobenchmark.cc133 return std::stod(digits) * multipliers[i]; in NominalClockRate()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_audio_operations_test/src/
H A Dmedialibrary_audio_operations_test.cpp480 values.PutDouble(columnKey, stod(columnValue)); in SetValuesBucketInUpdate()
513 double columnDoubleValue = stod(columnValue); in TestQueryAssetDoubleParams()

Completed in 17 milliseconds

12