Home
last modified time | relevance | path

Searched refs:original_length (Results 1 – 24 of 24) sorted by relevance

/external/chromium_org/base/strings/
Dutf_offset_string_conversions.cc17 size_t original_length, in Adjustment() argument
20 original_length(original_length), in Adjustment()
45 if (*offset < (i->original_offset + i->original_length)) { in AdjustOffset()
49 adjustment += static_cast<int>(i->original_length - i->output_length); in AdjustOffset()
75 adjustment += static_cast<int>(i->original_length - i->output_length); in UnadjustOffset()
77 (i->original_offset + i->original_length)) { in UnadjustOffset()
105 adjusted_iter->original_length) <= first_iter->original_offset)) { in MergeSequentialAdjustments()
134 shift += first_iter->original_length - first_iter->output_length; in MergeSequentialAdjustments()
154 const int collapse = static_cast<int>(first_iter->original_length) - in MergeSequentialAdjustments()
159 adjusted_iter->original_length += collapse; in MergeSequentialAdjustments()
Dutf_offset_string_conversions_unittest.cc277 EXPECT_EQ(4u, adjustments_on_adjusted_string[0].original_length); in TEST()
280 EXPECT_EQ(4u, adjustments_on_adjusted_string[1].original_length); in TEST()
283 EXPECT_EQ(1u, adjustments_on_adjusted_string[2].original_length); in TEST()
286 EXPECT_EQ(3u, adjustments_on_adjusted_string[3].original_length); in TEST()
289 EXPECT_EQ(3u, adjustments_on_adjusted_string[4].original_length); in TEST()
292 EXPECT_EQ(1u, adjustments_on_adjusted_string[5].original_length); in TEST()
Dutf_offset_string_conversions.h25 size_t original_length,
29 size_t original_length; member
/external/chromium_org/courgette/
Dencode_decode_unittest.cc19 size_t original_length = file.length(); in TestAssembleToStreamDisassemble() local
24 original_length, in TestAssembleToStreamDisassemble()
65 EXPECT_EQ(original_length, assembled_length); in TestAssembleToStreamDisassemble()
66 EXPECT_EQ(0, memcmp(original_buffer, assembled_buffer, original_length)); in TestAssembleToStreamDisassemble()
Dencoded_program_fuzz_unittest.cc39 size_t original_length = file1.length(); in FuzzExe() local
43 courgette::ParseDetectedExecutable(original_buffer, original_length, in FuzzExe()
/external/chromium_org/components/data_reduction_proxy/browser/
Ddata_reduction_proxy_metrics.cc61 int64 original_length, in RecordDailyContentLengthHistograms() argument
72 if (original_length <= 0 || received_length <= 0) in RecordDailyContentLengthHistograms()
77 "Net.DailyOriginalContentLength", original_length >> 10); in RecordDailyContentLengthHistograms()
82 if (original_length > received_length) { in RecordDailyContentLengthHistograms()
83 percent = (100 * (original_length - received_length)) / original_length; in RecordDailyContentLengthHistograms()
/external/chromium_org/net/websockets/
Dwebsocket_job.cc300 size_t original_length = handshake_request_->original_length(); in OnSentSpdyHeaders() local
303 delegate_->OnSentData(socket_.get(), original_length); in OnSentSpdyHeaders()
422 size_t original_length = handshake_request_->original_length(); in OnSentHandshakeRequest() local
425 delegate_->OnSentData(socket, original_length); in OnSentHandshakeRequest()
Dwebsocket_handshake_handler.h39 size_t original_length() const;
Dwebsocket_handshake_handler.cc181 size_t WebSocketHandshakeRequestHandler::original_length() const { in original_length() function in net::WebSocketHandshakeRequestHandler
/external/chromium_org/net/base/
Dnet_util_icu.cc324 size_t original_length = out->length(); in IDNToUnicodeOneComponent() local
329 out->resize(original_length + output_length); in IDNToUnicodeOneComponent()
335 uidna, comp, static_cast<int32_t>(comp_len), &(*out)[original_length], in IDNToUnicodeOneComponent()
342 out->resize(original_length + output_length); in IDNToUnicodeOneComponent()
343 if (IsIDNComponentSafe(out->data() + original_length, output_length, in IDNToUnicodeOneComponent()
349 out->resize(original_length); in IDNToUnicodeOneComponent()
/external/chromium_org/net/quic/
Dquic_packet_creator.cc285 QuicSequenceNumberLength original_length) { in ReserializeAllFrames() argument
293 sequence_number_length_ = original_length; in ReserializeAllFrames()
294 next_sequence_number_length_ = original_length; in ReserializeAllFrames()
Dquic_packet_generator.cc377 QuicSequenceNumberLength original_length) { in ReserializeAllFrames() argument
378 return packet_creator_.ReserializeAllFrames(frames, original_length); in ReserializeAllFrames()
Dquic_packet_generator.h162 QuicSequenceNumberLength original_length);
Dquic_packet_creator.h113 QuicSequenceNumberLength original_length);
/external/qemu/distrib/jpeg-6b/
Djdmarker.c768 cur_marker->original_length = (unsigned int) length; in save_marker()
814 length = cur_marker->original_length - data_length; in save_marker()
Djpeglib.h198 unsigned int original_length; /* # bytes of data in the file */ member
/external/pdfium/core/src/fxcodec/libjpeg/
Dfpdfapi_jdmarker.c802 cur_marker->original_length = (unsigned int) length; in save_marker()
848 length = cur_marker->original_length - data_length; in save_marker()
Djpeglib.h265 unsigned int original_length; /* # bytes of data in the file */ member
/external/jpeg/
Djdmarker.c776 cur_marker->original_length = (unsigned int) length; in save_marker()
822 length = cur_marker->original_length - data_length; in save_marker()
Djpeglib.h198 unsigned int original_length; /* # bytes of data in the file */ member
/external/chromium_org/third_party/libjpeg_turbo/
Djdmarker.c784 cur_marker->original_length = (unsigned int) length; in save_marker()
830 length = cur_marker->original_length - data_length; in save_marker()
Djpeglib.h210 unsigned int original_length; /* # bytes of data in the file */ member
/external/chromium_org/third_party/motemplate/
Dmotemplate.py460 original_length = len(self._string)
462 return original_length - len(self._string)
/external/pdfium/core/include/thirdparties/libjpeg/
Djpeglib.h265 unsigned int original_length; /* # bytes of data in the file */ member