/third_party/benchmark/test/ |
H A D | string_util_gtest.cc | 123 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 D | usb_utils.cpp | 41 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 D | dynamic_buffer.cpp | 50 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 D | string_util.h | 53 * 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 D | string_util.cc | 171 * 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 D | sysinfo.cc | 685 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 D | cj_environment_callback.cpp | 101 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 D | napi_common_configuration.cpp | 79 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 D | js_data_struct_converter.cpp | 115 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 D | double_wrapper.cpp | 58 double value = std::stod(str, &idx); in Parse()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_rating_ffi.cpp | 64 lambda(std::stod(value)); in FfiOHOSAceFrameworkRatingSetOnChange()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_rating.cpp | 67 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 D | drawing_command.cpp | 117 opItemStep_ = std::stod(augment.c_str()); in HandleCommand()
|
H A D | drawing_playback.cpp | 323 opItemStep_ = std::stod(words[1]); in GetDirectionAndStep()
|
/third_party/node/deps/v8/src/torque/ls/ |
H A D | json-parser.cc | 53 double d = std::stod(number.c_str()); in MakeNumberLiteral()
|
/third_party/skia/include/private/ |
H A D | SkSLString.h | 67 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 D | cj_persistent_storage_ffi.cpp | 126 result.value = std::stod(tmp); in FfiOHOSAceFrameworkPersistentGetFloat64()
|
/third_party/skia/src/sksl/ |
H A D | SkSLString.cpp | 148 bool stod(const skstd::string_view& s, SKSL_FLOAT* value) { in stod() function
|
/base/update/updater/services/ |
H A D | updater_utils.cpp | 79 upParams.installTime[index++] = std::chrono::duration<double>(std::stod(buf)); in ReadInstallTime()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | color.cpp | 132 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 D | js_ui_appearance.cpp | 354 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 D | svg_attributes_parser.cpp | 279 auto alpha = static_cast<double>(std::stod(matches[4])); in CheckColorAlpha()
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
H A D | string_utils.cpp | 218 double num = std::stod(inputOutputNum); in LocalizeNumber()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
H A D | nanobenchmark.cc | 133 return std::stod(digits) * multipliers[i]; in NominalClockRate()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_audio_operations_test/src/ |
H A D | medialibrary_audio_operations_test.cpp | 480 values.PutDouble(columnKey, stod(columnValue)); in SetValuesBucketInUpdate() 513 double columnDoubleValue = stod(columnValue); in TestQueryAssetDoubleParams()
|