/developtools/smartperf_host/trace_streamer/src/parser/rawtrace_parser/ |
H A D | ftrace_field_processor.cpp | 30 std::string HandleString(const uint8_t *startPos, const uint8_t *endPos, int size) in HandleString() argument 32 TS_CHECK_TRUE_RET(endPos - startPos >= static_cast<ptrdiff_t>(size), ""); in HandleString() 46 bool FtraceFieldProcessor::HandleTypeData(const uint8_t *startPos, const uint8_t *endPos, void *out, size_t size) in HandleTypeData() argument 48 ptrdiff_t memSize = endPos - startPos; in HandleTypeData() 51 size, startPos, endPos); in HandleTypeData() local 60 uint8_t *endPos = data + size; in HandleStrField() local 69 curStr = HandleString(startPos, endPos, format.size); in HandleStrField() 74 curStrSize = endPos - startPos; in HandleStrField() 75 curStr = HandleString(startPos, endPos, curStrSize); in HandleStrField() 77 curStr = HandleString(startPos, endPos, curStrSiz in HandleStrField() [all...] |
H A D | ftrace_field_processor.h | 32 auto endPos = data + size; in HandleIntField() local 34 HandleTypeData(startPos, endPos, &curValue, format.size); in HandleIntField() 77 static bool HandleTypeData(const uint8_t *startPos, const uint8_t *endPos, void *out, size_t size);
|
/developtools/global_resource_tool/src/ |
H A D | translatable_parser.cpp | 163 auto endPos = str.find(NO_TRANSLATE_END, 0); in FindTranslatePairs() local 166 while (!(startPos == string::npos && endPos == string::npos)) { in FindTranslatePairs() 167 if (startPos == string::npos || endPos == string::npos) { in FindTranslatePairs() 170 if (startPos >= endPos || (!posData.empty() && posData.back() >= startPos)) { in FindTranslatePairs() 175 posData.emplace_back(endPos); in FindTranslatePairs() 176 posData.emplace_back(endPos + endLength); in FindTranslatePairs() 178 endPos = str.find(NO_TRANSLATE_END, endPos + endLength); in FindTranslatePairs()
|
/developtools/smartperf_host/trace_streamer/src/rpc/ |
H A D | ffrt_converter.cpp | 71 auto endPos = match.str().find(')'); in ExtractProcessId() local 72 return std::stoi(match.str().substr(beginPos, endPos - beginPos)); in ExtractProcessId() 91 auto endPos = match.str().find(']'); in ExtractCpuId() local 92 return match.str().substr(beginPos, endPos - beginPos); in ExtractCpuId() 249 auto endPos = context_[index].find_first_of(" ", beginPos); in FindIntNumberAfterStr() local 250 return stoi(context_[index].substr(beginPos, endPos - beginPos)); in FindIntNumberAfterStr() 257 auto endPos = context_[index].find_first_of(" ", beginPos); in FindSubStrAfterStr() local 258 return context_[index].substr(beginPos, endPos - beginPos); in FindSubStrAfterStr() 301 auto endPos = context_[index].find(match.str()); in FindFfrtProcessAndClassify() local 302 std::string res = context_[index].substr(0, endPos); in FindFfrtProcessAndClassify() 334 auto endPos = str.find_last_not_of(" "); IsDigit() local 413 auto endPos = context_[index].find_first_of(" ", beginPos); ProcessMarkWithSchedSwitch() local 432 auto endPos = line.rfind("]"); GetLabel() local 440 auto endPos = line.find_first_of("|", beginPos); GetLabel() local 448 auto endPos = line.rfind("]"); GetLabel() local 456 auto endPos = line.find_first_of("|", beginPos); GetLabel() local [all...] |
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/utils/ |
H A D | HapUtils.java | 391 private static ByteBuffer sliceBuffer(ByteBuffer source, int startPos, int endPos) { in sliceBuffer() argument 393 if (startPos < 0 || endPos < startPos || endPos > capacity) { in sliceBuffer() 395 "startPos: " + startPos + ", endPos: " + endPos + ", capacity: " + capacity); in sliceBuffer() 401 source.limit(endPos); in sliceBuffer() 413 * Slice buffer from startPos to endPos, and then reverse it. 417 * @param endPos end position of slice buffer. 420 public static ByteBuffer reverseSliceBuffer(ByteBuffer hapSigningBlock, int startPos, int endPos) { in reverseSliceBuffer() argument 421 ByteBuffer header = HapUtils.sliceBuffer(hapSigningBlock, startPos, endPos); in reverseSliceBuffer() [all...] |
/developtools/profiler/device/cmds/src/ |
H A D | parse_plugin_config.cpp | 56 size_t endPos = 0; in GetPluginsConfig() local 73 endPos = content.find(destStr); in GetPluginsConfig() 74 if (endPos == std::string::npos) { in GetPluginsConfig() 77 std::string contentStr = content.substr(0, endPos); in GetPluginsConfig() 90 content = content.substr(endPos + 1, content.size()); in GetPluginsConfig()
|
/developtools/profiler/host/smartperf/client/client_command/ |
H A D | profiler_fps.cpp | 440 size_t endPos = cmdResult.find(end, startPos); in GetGameLayer() local 441 std::string nodeIdStr = cmdResult.substr(startPos, endPos - startPos); in GetGameLayer() 456 if (layerEndPos - layerStartPos <= 1 && layerEndPos > endPos) { in GetGameLayer()
|
H A D | FPS.cpp | 269 size_t endPos = screen.length(); in FindFpsRefreshrate() local 270 value = screen.substr(startPos, endPos - startPos); in FindFpsRefreshrate()
|
/developtools/smartperf_host/trace_streamer/src/parser/ |
H A D | print_event_parser.cpp | 512 size_t endPos = pointStr.find('|', nameIndex); in GetGHNameLength() local 513 if (endPos == std::string_view::npos) { in GetGHNameLength() 516 size_t nextEndPos = pointStr.find('|', endPos + 1); in GetGHNameLength()
|