/third_party/benchmark/test/ |
H A D | string_util_gtest.cc | 76 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 D | special_test_flow.cpp | 104 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 D | focus_test_flow.cpp | 293 intervalArgs_ = std::stoi(optarg); in SetRunningParam() 296 seedArgs_ = std::stoi(optarg); in SetRunningParam()
|
/test/xts/hats/hdf/location/agnss/ |
H A D | agnss_hdi_test.cpp | 143 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 D | command_parse.cpp | 74 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 D | command_parse.cpp | 46 opt.width = std::stoi(optarg); in Parse() 49 opt.height = std::stoi(optarg); in Parse()
|
/drivers/peripheral/usb/test/moduletest/common/ |
H A D | usb_device_performance_test.cpp | 91 watchPid = stoi(pch); in HWTEST_F() 100 processCount = stoi(pch); in HWTEST_F()
|
H A D | usb_host_performance_test.cpp | 92 watchPid = stoi(pch); in HWTEST_F() 100 processCount = stoi(pch); in HWTEST_F()
|
H A D | usb_utils.cpp | 110 pinfo.threadCur = stoi(pch); in ParseFile()
|
/third_party/benchmark/src/ |
H A D | string_util.h | 53 * 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 D | string_util.cc | 171 * 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 D | mock_element_node_iterator.h | 105 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 D | record_input.cpp | 121 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 D | SystemInfo_android.cpp | 50 info->androidSdkLevel = std::stoi(androidSdkLevel); in GetSystemInfo()
|
/test/xts/acts/multimedia/av_codec/audio_decoder/src/ |
H A D | avcodec_audio_avbuffer_decoder_demo.cpp | 140 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 D | demangler.cc | 53 Symbol sym(std::stoi(id), symbols.ProgramID()); in Demangle()
|
/test/xts/acts/multimedia/av_codec/audio_encoder/src/ |
H A D | avcodec_audio_avbuffer_encoder_demo.cpp | 128 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 D | thermal_zone_manager.h | 73 return std::stoi(value.c_str()); in ConvertInt()
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
H A D | LLVMAsm.cpp | 131 auto alignPow2 = std::stoi(matches[1]); in fixupAsmFile()
|
/third_party/skia/include/private/ |
H A D | SkSLString.h | 68 bool stoi(const skstd::string_view& s, SKSL_INT* value);
|
/third_party/skia/src/sksl/ |
H A D | SkSLString.cpp | 156 bool stoi(const skstd::string_view& s, SKSL_INT* value) { in stoi() function
|
/drivers/hdf_core/adapter/uhdf2/hdi/test/smq_test/ |
H A D | smq_test.cpp | 113 hostPid = std::stoi(resBuf);
in QueryPidOfHostName() 141 int fd = std::stoi(fdStr);
in QueryOpendFdsByHostPid()
|
/third_party/skia/tools/ |
H A D | MSKPPlayer.cpp | 301 fNextDrawPictureToLayerID = std::stoi(tokens[1].c_str()); 315 fNextDrawImageFromLayerID = std::stoi(tokens[1].c_str());
|
/test/ostest/wukong/component_event/include/ |
H A D | tree_manager.h | 131 focusNum_ = std::stoi(focusNum); in SetFocusNum()
|
/third_party/mesa3d/src/gallium/frontends/clover/core/ |
H A D | printf.cpp | 111 component_count = std::stoi(s); in print_formatted()
|