Home
last modified time | relevance | path

Searched refs:substr (Results 1 – 25 of 70) sorted by relevance

123

/hardware/interfaces/gnss/common/utils/default/
DNmeaFixInfo.cpp100 tm.tm_mday = std::stoi(dateStr.substr(0, 2).c_str()); in nmeaPartsToTimestamp()
101 tm.tm_mon = std::stoi(dateStr.substr(2, 2).c_str()) - 1; in nmeaPartsToTimestamp()
102 tm.tm_year = std::stoi(dateStr.substr(4, 2).c_str()) + unixYearOffset; in nmeaPartsToTimestamp()
103 tm.tm_hour = std::stoi(timeStr.substr(0, 2).c_str()); in nmeaPartsToTimestamp()
104 tm.tm_min = std::stoi(timeStr.substr(2, 2).c_str()); in nmeaPartsToTimestamp()
105 tm.tm_sec = std::stoi(timeStr.substr(4, 2).c_str()); in nmeaPartsToTimestamp()
118 this->latDeg = std::stof(sentenceValues[2].substr(0, 2)) + in parseGGALine()
119 (std::stof(sentenceValues[2].substr(2)) / 60.0); in parseGGALine()
125 this->lngDeg = std::stof(sentenceValues[4].substr(0, 3)) + in parseGGALine()
126 std::stof(sentenceValues[4].substr(3)) / 60.0; in parseGGALine()
/hardware/qcom/sm7250/display/sde-drm/
Ddrm_utils.cpp66 final_format_str = matched_sub_str.substr(0, matched_sub_str.find("/")); in ParseFormats()
69 string vendor_sub_str = matched_sub_str.substr(matched_sub_str.find("/") + 1); in ParseFormats()
73 uint64_t fmt_modifier = std::stoi(vendor_sub_str.substr(vendor_sub_str.find("/") + 1)); in ParseFormats()
/hardware/qcom/sm7250/display/sdm/libs/utils/
Ddebug.cpp181 *height = UINT32(stoi(str.substr(str.find('x') + 1))); in GetMixerResolution()
196 str = (str.substr(str.find(',') + 1)); in GetWindowRect()
198 str = (str.substr(str.find(',') + 1)); in GetWindowRect()
200 str = (str.substr(str.find(',') + 1)); in GetWindowRect()
221 *num_dma_pipes = UINT32(stoi(str.substr(str.find('x') + 1))); in GetReducedConfig()
/hardware/nxp/secure_element/pn8x/libese-spi/p73/utils/
Dconfig.cpp70 value_string_ = in.substr(1, in.length() - 2); in parseFromString()
77 return parseBytesString(in.substr(1, in.length() - 2), value_bytes_); in parseFromString()
110 string key(Trim(line.substr(0, search))); in parseFromString()
111 string value_string(Trim(line.substr(search + 1, string::npos))); in parseFromString()
/hardware/nxp/secure_element/snxxx/libese-spi/p73/utils/
Dconfig.cpp89 value_string_ = in.substr(1, in.length() - 2); in parseFromString()
96 return parseBytesString(in.substr(1, in.length() - 2), value_bytes_); in parseFromString()
129 string key(Trim(line.substr(0, search))); in parseFromString()
130 string value_string(Trim(line.substr(search + 1, string::npos))); in parseFromString()
/hardware/st/secure_element/ese-spi-driver/utils-lib/
Dconfig.cc65 value_string_ = in.substr(1, in.length() - 2); in parseFromString()
72 return parseBytesString(in.substr(1, in.length() - 2), value_bytes_); in parseFromString()
105 string key(Trim(line.substr(0, search))); in parseFromString()
106 string value_string(Trim(line.substr(search + 1, string::npos))); in parseFromString()
/hardware/google/av/hooks/
Dpre-commit28 if (found) { print substr(chunk, 2); found=0; chunk="" }
45 END { if (found) { print substr(chunk, 2) } }
/hardware/interfaces/automotive/can/1.0/tools/
Dcanhalsend.cpp77 const std::string msgidStr = msg.substr(0, hashpos); in parseCanMessage()
78 const std::string payloadStr = msg.substr(hashpos + 1); in parseCanMessage()
102 if (!android::base::ParseUint(payloadStr.substr(1), &dlc, 10000u)) { in parseCanMessage()
/hardware/nxp/nfc/snxxx/halimpl/hal/
DphNxpNciHal_IoctlOperations.cc419 string key(Trim(line.substr(0, search))); in phNxpNciHal_extractConfig()
427 string value_string(Trim(line.substr(search + 1, string::npos))); in phNxpNciHal_extractConfig()
465 string key(Trim(line.substr(0, search))); in phNxpNciHal_IsAutonmousModeSet()
467 string value(Trim(line.substr(search + 1, string::npos))); in phNxpNciHal_IsAutonmousModeSet()
504 string key(Trim(line.substr(0, search))); in phNxpNciHal_UpdatePwrStateConfigs()
508 string value(Trim(line.substr(search + 1, string::npos))); in phNxpNciHal_UpdatePwrStateConfigs()
/hardware/qcom/sdm845/display/sdm/libs/core/drm/
Dhw_tv_drm.cpp130 height = UINT32(stoi(str.substr(str.find(':') + 1))); in GetConfigIndex()
131 std::string str3 = str.substr(str.find(':') + 1); in GetConfigIndex()
132 fps = UINT32(stoi(str3.substr(str3.find(':') + 1))); in GetConfigIndex()
133 std::string str4 = str3.substr(str3.find(':') + 1); in GetConfigIndex()
134 format = UINT32(stoi(str4.substr(str4.find(':') + 1))); in GetConfigIndex()
/hardware/qcom/sm8150/display/sdm/libs/core/drm/
Dhw_tv_drm.cpp140 height = UINT32(stoi(str.substr(str.find(':') + 1))); in GetConfigIndex()
141 std::string str3 = str.substr(str.find(':') + 1); in GetConfigIndex()
142 fps = UINT32(stoi(str3.substr(str3.find(':') + 1))); in GetConfigIndex()
143 std::string str4 = str3.substr(str3.find(':') + 1); in GetConfigIndex()
144 format = UINT32(stoi(str4.substr(str4.find(':') + 1))); in GetConfigIndex()
/hardware/qcom/sm7250/display/sdm/libs/core/drm/
Dhw_tv_drm.cpp141 height = UINT32(stoi(str.substr(str.find(':') + 1))); in GetConfigIndex()
142 std::string str3 = str.substr(str.find(':') + 1); in GetConfigIndex()
143 fps = UINT32(stoi(str3.substr(str3.find(':') + 1))); in GetConfigIndex()
144 std::string str4 = str3.substr(str3.find(':') + 1); in GetConfigIndex()
145 format = UINT32(stoi(str4.substr(str4.find(':') + 1))); in GetConfigIndex()
/hardware/google/graphics/common/memtrack-pixel/core/
Dfilesystem.h29 return path(strPath.substr(pos, l - pos)); in filename()
/hardware/qcom/sm8150/display/sdm/libs/utils/
Ddebug.cpp193 *height = UINT32(stoi(str.substr(str.find('x') + 1))); in GetMixerResolution()
209 *num_dma_pipes = UINT32(stoi(str.substr(str.find('x') + 1))); in GetReducedConfig()
/hardware/qcom/sm8150/gps/utils/
Dloc_log.cpp252 std::string tag = line.substr(0, pos); in log_tag_level_map_init()
253 std::string level = line.substr(pos+1, 1); in log_tag_level_map_init()
/hardware/qcom/sdm845/display/sdm/libs/utils/
Ddebug.cpp193 *height = UINT32(stoi(str.substr(str.find('x') + 1))); in GetMixerResolution()
209 *num_dma_pipes = UINT32(stoi(str.substr(str.find('x') + 1))); in GetReducedConfig()
/hardware/qcom/sm7250/gps/utils/
Dloc_log.cpp252 std::string tag = line.substr(0, pos); in log_tag_level_map_init()
253 std::string level = line.substr(pos+1, 1); in log_tag_level_map_init()
/hardware/interfaces/keymaster/4.1/vts/functional/
DKeymaster4_1HidlTest.cpp51 result = Finish(op_handle_, finish_params, message.substr(consumed), unused, &finish_out_params, in ProcessMessage()
/hardware/qcom/sm8150/gps/android/1.1/
DGnss.cpp64 const char* substr = s.c_str(); in getVersionString() local
66 while (0 != substr[found] && isspace(substr[found])) { in getVersionString()
/hardware/qcom/sm7150/gps/android/1.1/
DGnss.cpp63 const char* substr = s.c_str(); in getVersionString() local
65 while (0 != substr[found] && isspace(substr[found])) { in getVersionString()
/hardware/google/pixel/thermal/utils/
Dpower_files.cpp202 strtoul(line.substr(start_pos + 2, end_pos - start_pos - 2).c_str(), NULL, 10); in updateEnergyValues()
211 railName = line.substr(start_pos + 2, end_pos - start_pos - 2); in updateEnergyValues()
218 energy_counter = strtoul(line.substr(start_pos + 2).c_str(), NULL, 10); in updateEnergyValues()
/hardware/qcom/sm8150p/gps/android/1.1/
DGnss.cpp63 const char* substr = s.c_str(); in getVersionString() local
65 while (0 != substr[found] && isspace(substr[found])) { in getVersionString()
/hardware/qcom/sm7250/gps/android/1.1/
DGnss.cpp64 const char* substr = s.c_str(); in getVersionString() local
66 while (0 != substr[found] && isspace(substr[found])) { in getVersionString()
/hardware/google/pixel/health/
DChargerDetect.cpp101 *type = usbType.substr(start + 1, usbType.find(']') - start - 1); in getPsyUsbType()
/hardware/qcom/sm8150/data/ipacfg-mgr/hal/src/
DPrefixParser.cpp218 addr = in.substr(0, pos); in splitIntoAddrAndMask()
231 mask = in.substr(pos + 1); in splitIntoAddrAndMask()

123