Home
last modified time | relevance | path

Searched refs:stoi (Results 1 - 25 of 43) sorted by relevance

12

/third_party/benchmark/test/
H A Dstring_util_gtest.cc76 TEST(StringUtilTest, stoi){{size_t pos = 0; in TEST()
77 EXPECT_EQ(0, benchmark::stoi("0", &pos)); in TEST()
82 EXPECT_EQ(-17, benchmark::stoi("-17", &pos)); in TEST()
87 EXPECT_EQ(1357, benchmark::stoi("1357", &pos)); in TEST()
92 EXPECT_EQ(10, benchmark::stoi("1010", &pos, 2)); in TEST()
97 EXPECT_EQ(520, benchmark::stoi("1010", &pos, 8)); in TEST()
102 EXPECT_EQ(1010, benchmark::stoi("1010", &pos, 10)); in TEST()
107 EXPECT_EQ(4112, benchmark::stoi("1010", &pos, 16)); in TEST()
112 EXPECT_EQ(0xBEEF, benchmark::stoi("BEEF", &pos, 16)); in TEST()
117 ASSERT_THROW(std::ignore = benchmark::stoi("thi in TEST()
[all...]
/test/ostest/wukong/test_flow/src/
H A Dspecial_test_flow.cpp104 swapParam->startX_ = stoi(swapStartPoint_[0]); in EnvInit()
105 swapParam->startY_ = stoi(swapStartPoint_[1]); in EnvInit()
106 swapParam->endX_ = stoi(swapEndPoint_[0]); in EnvInit()
107 swapParam->endY_ = stoi(swapEndPoint_[1]); in EnvInit()
121 touchParam->x_ = stoi(touchParam_[0]); in EnvInit()
122 touchParam->y_ = stoi(touchParam_[1]); in EnvInit()
340 intervalArgs_ = std::stoi(optarg); in SetRunningParam()
416 if (stoi(argumentlist[0]) > screenWidth || stoi(argumentlist[1]) > screenHeight || stoi(argumentlis in CheckPosition()
[all...]
H A Dfocus_test_flow.cpp293 intervalArgs_ = std::stoi(optarg); in SetRunningParam()
296 seedArgs_ = std::stoi(optarg); in SetRunningParam()
/test/xts/hats/hdf/location/agnss/
H A Dagnss_hdi_test.cpp143 refInfo.cellId.mcc = static_cast<unsigned short>(std::stoi(gsmCellInfo->GetMcc())); in JudgmentDataGsm()
144 refInfo.cellId.mnc = static_cast<unsigned short>(std::stoi(gsmCellInfo->GetMnc())); in JudgmentDataGsm()
155 refInfo.cellId.mcc = static_cast<unsigned short>(std::stoi(lteCellInfo->GetMcc())); in JudgmentDataLte()
156 refInfo.cellId.mnc = static_cast<unsigned short>(std::stoi(lteCellInfo->GetMnc())); in JudgmentDataLte()
168 refInfo.cellId.mcc = static_cast<unsigned short>(std::stoi(nrCellInfo->GetMcc())); in JudgmentDataNr()
169 refInfo.cellId.mnc = static_cast<unsigned short>(std::stoi(nrCellInfo->GetMnc())); in JudgmentDataNr()
182 refInfo.cellId.mcc = static_cast<unsigned short>(std::stoi(wcdmaCellInfo->GetMcc())); in JudgmentDataUmts()
183 refInfo.cellId.mnc = static_cast<unsigned short>(std::stoi(wcdmaCellInfo->GetMnc())); in JudgmentDataUmts()
/drivers/peripheral/codec/test/demo/v2.0/src/
H A Dcommand_parse.cpp74 opt.width = std::stoi(optarg); in Parse()
77 opt.height = std::stoi(optarg); in Parse()
81 opt.colorForamt = static_cast<ColorFormat>(std::stoi(optarg)); in Parse()
/drivers/peripheral/codec/test/demo/jpeg/src/
H A Dcommand_parse.cpp46 opt.width = std::stoi(optarg); in Parse()
49 opt.height = std::stoi(optarg); in Parse()
/drivers/peripheral/usb/test/moduletest/common/
H A Dusb_device_performance_test.cpp91 watchPid = stoi(pch); in HWTEST_F()
100 processCount = stoi(pch); in HWTEST_F()
H A Dusb_host_performance_test.cpp92 watchPid = stoi(pch); in HWTEST_F()
100 processCount = stoi(pch); in HWTEST_F()
H A Dusb_utils.cpp110 pinfo.threadCur = stoi(pch); in ParseFile()
/third_party/benchmark/src/
H A Dstring_util.h53 * stoul, stoi, stod. We reimplement them here using C functions strtoul,
59 int stoi(const std::string& str, size_t* pos = nullptr, int base = 10);
63 using std::stoi; // NOLINT(misc-unused-using-decls)
H A Dstring_util.cc171 * stoul, stoi, stod. We reimplement them here using C functions strtoul,
201 int stoi(const std::string& str, size_t* pos, int base) { in stoi() function
/test/testfwk/arkxtest/uitest/test/
H A Dmock_element_node_iterator.h105 eleRoot.rectInScreen.left_ = std::stoi(rectStrVec[0]); in WrapperJsonToElement()
106 eleRoot.rectInScreen.right_ = std::stoi(rectStrVec[1]); in WrapperJsonToElement()
107 eleRoot.rectInScreen.top_ = std::stoi(rectStrVec[2]); in WrapperJsonToElement()
108 eleRoot.rectInScreen.bottom_ = std::stoi(rectStrVec[3]); in WrapperJsonToElement()
/test/ostest/wukong/input_factory/src/
H A Drecord_input.cpp121 xPosi = std::stoi(caseInfo[0]); in ReadEventLine()
122 yPosi = std::stoi(caseInfo[1]); in ReadEventLine()
123 interval = std::stoi(caseInfo[NUMTWO]); in ReadEventLine()
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/
H A DSystemInfo_android.cpp50 info->androidSdkLevel = std::stoi(androidSdkLevel); in GetSystemInfo()
/test/xts/acts/multimedia/av_codec/audio_decoder/src/
H A Davcodec_audio_avbuffer_decoder_demo.cpp140 channelCount = stoi(dest[3]); // num 3 in GetParamsByName()
141 sampleRate = stoi(dest[1]); in GetParamsByName()
151 channelCount = stoi(dest[3]); // num 3 in GetParamsByName()
152 sampleRate = stoi(dest[1]); in GetParamsByName()
162 channelCount = stoi(dest[3]); // num 3 in GetParamsByName()
163 sampleRate = stoi(dest[2]); // 2nd parameter in GetParamsByName()
/third_party/skia/third_party/externals/tint/src/
H A Ddemangler.cc53 Symbol sym(std::stoi(id), symbols.ProgramID()); in Demangle()
/test/xts/acts/multimedia/av_codec/audio_encoder/src/
H A Davcodec_audio_avbuffer_encoder_demo.cpp128 channelCount = stoi(dest[splitNum3]); in GetParamsByName()
129 sampleRate = stoi(dest[splitNum1]); in GetParamsByName()
139 channelCount = stoi(dest[splitNum3]); in GetParamsByName()
140 sampleRate = stoi(dest[splitNum2]); in GetParamsByName()
/drivers/peripheral/thermal/interfaces/hdi_service/include/
H A Dthermal_zone_manager.h73 return std::stoi(value.c_str()); in ConvertInt()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
H A DLLVMAsm.cpp131 auto alignPow2 = std::stoi(matches[1]); in fixupAsmFile()
/third_party/skia/include/private/
H A DSkSLString.h68 bool stoi(const skstd::string_view& s, SKSL_INT* value);
/third_party/skia/src/sksl/
H A DSkSLString.cpp156 bool stoi(const skstd::string_view& s, SKSL_INT* value) { in stoi() function
/drivers/hdf_core/adapter/uhdf2/hdi/test/smq_test/
H A Dsmq_test.cpp113 hostPid = std::stoi(resBuf); in QueryPidOfHostName()
141 int fd = std::stoi(fdStr); in QueryOpendFdsByHostPid()
/third_party/skia/tools/
H A DMSKPPlayer.cpp301 fNextDrawPictureToLayerID = std::stoi(tokens[1].c_str());
315 fNextDrawImageFromLayerID = std::stoi(tokens[1].c_str());
/test/ostest/wukong/component_event/include/
H A Dtree_manager.h131 focusNum_ = std::stoi(focusNum); in SetFocusNum()
/third_party/mesa3d/src/gallium/frontends/clover/core/
H A Dprintf.cpp111 component_count = std::stoi(s); in print_formatted()

Completed in 17 milliseconds

12