Home
last modified time | relevance | path

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

123

/external/pdfium/core/fxge/
Dcfx_pathdata.cpp16 const CFX_PointF& end_pos, in UpdateLineEndPoints() argument
18 if (start_pos.x == end_pos.x) { in UpdateLineEndPoints()
19 if (start_pos.y == end_pos.y) { in UpdateLineEndPoints()
20 rect->UpdateRect(end_pos + CFX_PointF(hw, hw)); in UpdateLineEndPoints()
21 rect->UpdateRect(end_pos - CFX_PointF(hw, hw)); in UpdateLineEndPoints()
26 if (end_pos.y < start_pos.y) in UpdateLineEndPoints()
27 point_y = end_pos.y - hw; in UpdateLineEndPoints()
29 point_y = end_pos.y + hw; in UpdateLineEndPoints()
31 rect->UpdateRect(CFX_PointF(end_pos.x + hw, point_y)); in UpdateLineEndPoints()
32 rect->UpdateRect(CFX_PointF(end_pos.x - hw, point_y)); in UpdateLineEndPoints()
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
DPathV2.cpp131 size_t end_pos = filename_pos(path); in parent_path_end() local
133 bool filename_was_sep = path.size() > 0 && is_separator(path[end_pos]); in parent_path_end()
136 size_t root_dir_pos = root_dir_start(path.substr(0, end_pos)); in parent_path_end()
138 while(end_pos > 0 && in parent_path_end()
139 (end_pos - 1) != root_dir_pos && in parent_path_end()
140 is_separator(path[end_pos - 1])) in parent_path_end()
141 --end_pos; in parent_path_end()
143 if (end_pos == 1 && root_dir_pos == 0 && filename_was_sep) in parent_path_end()
146 return end_pos; in parent_path_end()
216 size_t end_pos = Path.find_first_of(separators, Position); in operator ++() local
[all …]
/external/libbrillo/brillo/streams/
Dstream_utils_unittest.cc103 const uint64_t end_pos = 2000; in TEST() local
107 FROM_HERE, 0, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); in TEST()
111 FROM_HERE, 0, Whence::FROM_CURRENT, current_pos, end_pos, &pos, nullptr)); in TEST()
115 FROM_HERE, 0, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); in TEST()
116 EXPECT_EQ(end_pos, pos); in TEST()
119 FROM_HERE, 10, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); in TEST()
123 FROM_HERE, 10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST()
128 FROM_HERE, 10, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); in TEST()
129 EXPECT_EQ(end_pos + 10, pos); in TEST()
132 FROM_HERE, -10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST()
[all …]
/external/openssh/
Dprogressmeter.c70 static off_t end_pos; /* ending position of transfer */ variable
135 bytes_left = end_pos - cur_pos; in refresh_progress_meter()
142 transferred = end_pos - start_pos; in refresh_progress_meter()
174 if (end_pos == 0 || cur_pos == end_pos) in refresh_progress_meter()
177 percent = ((float)cur_pos / end_pos) * 100; in refresh_progress_meter()
255 end_pos = filesize; in start_progress_meter()
279 if (cur_pos != end_pos) in stop_progress_meter()
/external/v8/src/builtins/
Dbuiltins-intl.h17 int32_t end_pos; member
20 NumberFormatSpan(int32_t field_id, int32_t begin_pos, int32_t end_pos) in NumberFormatSpan()
21 : field_id(field_id), begin_pos(begin_pos), end_pos(end_pos) {} in NumberFormatSpan()
Dbuiltins-intl.cc235 if (a.end_pos < b.end_pos) return false; in cmp_NumberFormatSpan()
236 if (a.end_pos > b.end_pos) return true; in cmp_NumberFormatSpan()
286 Intl::ToString(isolate, formatted, part.begin_pos, part.end_pos), in FormatNumberToParts()
318 int32_t end_pos = fp.getEndIndex(); in FormatDateToParts() local
331 Intl::ToString(isolate, formatted, begin_pos, end_pos), Object); in FormatDateToParts()
335 previous_end_pos = end_pos; in FormatDateToParts()
396 int32_t entire_size = top_region.end_pos; in FlattenRegionsToParts()
414 while (top_region.end_pos < next_region_begin_pos) { in FlattenRegionsToParts()
415 if (climber < top_region.end_pos) { in FlattenRegionsToParts()
418 top_region.end_pos)); in FlattenRegionsToParts()
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DPath.cpp136 size_t end_pos = filename_pos(path); in parent_path_end() local
138 bool filename_was_sep = path.size() > 0 && is_separator(path[end_pos]); in parent_path_end()
141 size_t root_dir_pos = root_dir_start(path.substr(0, end_pos)); in parent_path_end()
143 while(end_pos > 0 && in parent_path_end()
144 (end_pos - 1) != root_dir_pos && in parent_path_end()
145 is_separator(path[end_pos - 1])) in parent_path_end()
146 --end_pos; in parent_path_end()
148 if (end_pos == 1 && root_dir_pos == 0 && filename_was_sep) in parent_path_end()
151 return end_pos; in parent_path_end()
295 size_t end_pos = Path.find_first_of(separators, Position); in operator ++() local
[all …]
/external/llvm/lib/Support/
DPath.cpp136 size_t end_pos = filename_pos(path); in parent_path_end() local
138 bool filename_was_sep = path.size() > 0 && is_separator(path[end_pos]); in parent_path_end()
141 size_t root_dir_pos = root_dir_start(path.substr(0, end_pos)); in parent_path_end()
143 while(end_pos > 0 && in parent_path_end()
144 (end_pos - 1) != root_dir_pos && in parent_path_end()
145 is_separator(path[end_pos - 1])) in parent_path_end()
146 --end_pos; in parent_path_end()
148 if (end_pos == 1 && root_dir_pos == 0 && filename_was_sep) in parent_path_end()
151 return end_pos; in parent_path_end()
295 size_t end_pos = Path.find_first_of(separators, Position); in operator ++() local
[all …]
/external/v8/src/parsing/
Dpreparser.cc113 CheckStrictOctalLiteral(start_position, scanner()->location().end_pos, &ok); in PreParseProgram()
171 int formals_end_position = scanner()->location().end_pos; in PreParseFunction()
200 inner_scope->set_end_position(scanner()->peek_location().end_pos); in PreParseFunction()
244 int end_pos = scanner()->location().end_pos; in PreParseFunction() local
245 CheckStrictOctalLiteral(function_scope->start_position(), end_pos, ok); in PreParseFunction()
315 int formals_end_position = scanner()->location().end_pos; in ParseFunctionLiteral()
344 int end_position = scanner()->location().end_pos; in ParseFunctionLiteral()
384 int body_end = scanner()->peek_location().end_pos; in ParseStatementListAndLogFunction()
Dparser-base.h124 return scanner_->location().end_pos; in GetPosition()
128 return scanner_->peek_location().end_pos; in GetPosition()
697 return (peek() == Token::SEMICOLON) ? scanner_->peek_location().end_pos in PositionAfterSemicolon()
698 : scanner_->location().end_pos; in PositionAfterSemicolon()
833 void CheckStrictOctalLiteral(int beg_pos, int end_pos, bool* ok) { in CheckStrictOctalLiteral() argument
836 octal.end_pos <= end_pos) { in CheckStrictOctalLiteral()
868 void CheckDestructuringElement(ExpressionT element, int beg_pos, int end_pos);
1322 ExpressionT expression, int beg_pos, int end_pos,
1325 ExpressionT expression, int beg_pos, int end_pos,
1427 int end_pos = kNoSourcePosition) {
[all …]
Dscanner-character-streams.cc691 int start_pos, int end_pos) { in For() argument
693 DCHECK_LE(start_pos, end_pos); in For()
694 DCHECK_LE(end_pos, data->length()); in For()
709 static_cast<size_t>(end_pos)); in For()
714 static_cast<size_t>(end_pos)); in For()
718 start_offset, static_cast<size_t>(end_pos)); in For()
723 static_cast<size_t>(end_pos)); in For()
Dscanner.h209 Location(int b, int e) : beg_pos(b), end_pos(e) { } in Location()
210 Location() : beg_pos(0), end_pos(0) { } in Location()
213 return beg_pos >= 0 && end_pos >= beg_pos; in IsValid()
219 int end_pos; member
769 int source_length = (location.end_pos - location.beg_pos); in LiteralContainsEscapes()
Dscanner-character-streams.h24 int start_pos, int end_pos);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DPath.cpp139 size_t end_pos = filename_pos(path, style); in parent_path_end() local
142 path.size() > 0 && is_separator(path[end_pos], style); in parent_path_end()
146 while (end_pos > 0 && in parent_path_end()
147 (root_dir_pos == StringRef::npos || end_pos > root_dir_pos) && in parent_path_end()
148 is_separator(path[end_pos - 1], style)) in parent_path_end()
149 --end_pos; in parent_path_end()
151 if (end_pos == root_dir_pos && !filename_was_sep) { in parent_path_end()
158 return end_pos; in parent_path_end()
298 size_t end_pos = Path.find_first_of(separators(S), Position); in operator ++() local
299 Component = Path.slice(Position, end_pos); in operator ++()
[all …]
/external/tensorflow/tensorflow/lite/testing/nnapi_tflite_zip_tests/
Dgenerated_examples_zip_test.cc48 size_t end_pos = manifest.find("\n", pos); in FindAllTests() local
49 if (end_pos == string::npos) break; in FindAllTests()
52 string filename = manifest.substr(pos, end_pos - pos); in FindAllTests()
55 pos = end_pos + 1; in FindAllTests()
/external/bsdiff/
Dfile.cc113 off_t end_pos = lseek(fd_, 0, SEEK_END); in GetSize()
114 if (end_pos == -1) in GetSize()
116 *size = end_pos; in GetSize()
/external/curl/lib/vtls/
Dvtls.c750 char *stripped_pem, *begin_pos, *end_pos; in pubkey_pem_to_der() local
771 end_pos = strstr(pem + pem_count, "\n-----END PUBLIC KEY-----"); in pubkey_pem_to_der()
772 if(!end_pos) in pubkey_pem_to_der()
775 pem_len = end_pos - pem; in pubkey_pem_to_der()
817 char *encoded, *pinkeycopy, *begin_pos, *end_pos; in Curl_pin_peer_pubkey() local
864 end_pos = strstr(begin_pos, ";sha256//"); in Curl_pin_peer_pubkey()
869 if(end_pos) in Curl_pin_peer_pubkey()
870 end_pos[0] = '\0'; in Curl_pin_peer_pubkey()
883 if(end_pos) { in Curl_pin_peer_pubkey()
884 end_pos[0] = ';'; in Curl_pin_peer_pubkey()
[all …]
/external/webrtc/webrtc/base/
Dwin32.cc174 char* end_pos; in inet_pton_v4() local
175 long value = strtol(src_pos, &end_pos, 10); in inet_pton_v4()
176 if (value < 0 || value > 255 || src_pos == end_pos) { in inet_pton_v4()
184 src_pos = end_pos; in inet_pton_v4()
Dstringencode.cc615 size_t end_pos = remain_source.find(end_mark, start_pos); in tokenize() local
616 if (std::string::npos == end_pos) break; in tokenize()
621 fields->push_back(remain_source.substr(start_pos, end_pos - start_pos)); in tokenize()
622 remain_source = remain_source.substr(end_pos + 1); in tokenize()
/external/tensorflow/tensorflow/lite/testing/
Dgenerated_examples_zip_test.cc218 size_t end_pos = manifest.find("\n", pos); in ReadManifest() local
219 if (end_pos == string::npos) break; in ReadManifest()
220 string filename = manifest.substr(pos, end_pos - pos); in ReadManifest()
222 pos = end_pos + 1; in ReadManifest()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
Dbwe_test_fileutils.cc38 int32_t end_pos = ftell(file_); in IsAtEnd() local
40 return current_pos == end_pos; in IsAtEnd()
/external/libxaac/decoder/
Dixheaacd_drc_freq_dec.c878 WORD32 drc_band, spec_pos, start_pos, end_pos; in ixheaacd_drc_apply() local
985 end_pos = pstr_drc_data->n_mdct_bands[drc_band]; in ixheaacd_drc_apply()
988 for (spec_pos = start_pos; spec_pos < end_pos; spec_pos++) { in ixheaacd_drc_apply()
1059 qmf_stop_pos = ixheaacd_drc_ceil(end_pos, frame_size); in ixheaacd_drc_apply()
1073 start_pos = end_pos; in ixheaacd_drc_apply()
/external/curl/src/
Dtool_formparse.c347 static char *get_param_word(char **str, char **end_pos, char endchar) in get_param_word() argument
370 *end_pos = ptr; in get_param_word()
379 while(ptr < *end_pos); in get_param_word()
380 *end_pos = ptr2; in get_param_word()
395 *str = *end_pos = ptr; in get_param_word()
/external/google-styleguide/cpplint/
Dcpplint.py1619 (end_pos, stack) = FindEndOfExpressionInLine(line, pos, [])
1620 if end_pos > -1:
1621 return (line, linenum, end_pos)
1627 (end_pos, stack) = FindEndOfExpressionInLine(line, 0, stack)
1628 if end_pos > -1:
1629 return (line, linenum, end_pos)
2511 (_, end_line, end_pos) = CloseExpression(clean_lines, linenum, pos - 1)
2512 if end_pos < 0:
2516 pos = end_pos
3356 (_, _, end_pos) = CloseExpression(
[all …]
/external/swiftshader/third_party/LLVM/lib/DebugInfo/
DDWARFDebugLine.cpp453 iterator end_pos = Rows.end(); in lookupAddress() local
454 iterator pos = std::lower_bound(begin_pos, end_pos, row, in lookupAddress()
456 if (pos == end_pos) { in lookupAddress()

123