Home
last modified time | relevance | path

Searched refs:checked_cast (Results 1 – 25 of 65) sorted by relevance

123

/external/libchrome/mojo/public/cpp/system/
Dmessage_pipe.cc27 base::checked_cast<uint32_t>(num_bytes), handles, in WriteMessageRaw()
28 base::checked_cast<uint32_t>(num_handles), in WriteMessageRaw()
34 DCHECK_GE(buffer_size, base::checked_cast<uint32_t>(num_bytes)); in WriteMessageRaw()
/external/libchrome/mojo/public/cpp/base/
Dfile_unittest.cc24 base::checked_cast<int>(test_content.size())); in TEST()
34 base::checked_cast<int>(test_content.size()))); in TEST()
47 base::checked_cast<int>(test_content.size())); in TEST()
/external/pdfium/fxbarcode/datamatrix/
DBC_HighLevelEncoder.cpp120 if (pdfium::base::checked_cast<int32_t>(codewords.GetLength()) < capacity) { in encodeHighLevel()
123 while (pdfium::base::checked_cast<int32_t>(codewords.GetLength()) < in encodeHighLevel()
126 PAD, pdfium::base::checked_cast<int32_t>(codewords.GetLength()) + 1)); in encodeHighLevel()
133 if (startpos >= pdfium::base::checked_cast<int32_t>(msg.GetLength())) { in lookAheadTest()
156 pdfium::base::checked_cast<int32_t>(msg.GetLength())) { in lookAheadTest()
258 pdfium::base::checked_cast<int32_t>(msg.GetLength()); in lookAheadTest()
/external/libbrillo/brillo/streams/
Dopenssl_stream_bio.cc29 return base::checked_cast<int>(written); in stream_write()
46 return base::checked_cast<int>(read); in stream_read()
/external/v4l2_codec2/vda/
Dv4l2_device.cc293 base::checked_cast<uint32_t>(max_resolution->width()) && in GetSupportedResolution()
295 base::checked_cast<uint32_t>(max_resolution->height())) { in GetSupportedResolution()
301 base::checked_cast<uint32_t>(min_resolution->width()) && in GetSupportedResolution()
303 base::checked_cast<uint32_t>(min_resolution->height()))) { in GetSupportedResolution()
Dvp8_bool_decoder.cc185 return base::checked_cast<uint8_t>(range_); in GetRange()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dexpand_unittest.cc126 EXPECT_EQ(rtc::checked_cast<int>(sum_output_len_samples / in TEST_F()
167 EXPECT_EQ(rtc::checked_cast<int>(sum_output_len_samples / in TEST_F()
Dneteq_impl.cc168 rtc::checked_cast<int>(*samples_per_channel * 100); in GetAudio()
722 rtc::checked_cast<int>((1000 * packet_length_samples) / fs_hz_)); in InsertPacketInternal()
984 -(samples_left + rtc::checked_cast<int>(output_size_samples_))); in GetDecision()
1009 if (samples_left >= rtc::checked_cast<int>(output_size_samples_) && in GetDecision()
1322 while (*decoded_length < rtc::checked_cast<int>(output_size_samples_)) { in DecodeCng()
1371 decode_length = rtc::checked_cast<int>(decoder_frame_length_); in DecodeLoop()
1897 packet_duration = rtc::checked_cast<int>(decoder_frame_length_); in ExtractPackets()
1916 packet_duration = rtc::checked_cast<int>(decoder_frame_length_); in ExtractPackets()
1935 } while (extracted_samples < rtc::checked_cast<int>(required_samples) && in ExtractPackets()
/external/pdfium/core/fxge/android/
Dcfpf_skiafont.cpp176 FT_ULong ulSize = pdfium::base::checked_cast<FT_ULong>(dwSize); in GetFontData()
179 return pdfium::base::checked_cast<uint32_t>(ulSize); in GetFontData()
/external/pdfium/fpdfsdk/
Dfpdfppo.cpp97 pdfium::base::checked_cast<uint16_t>(atoi(cbMidRange.c_str())); in ParserPageRangeString()
102 uint16_t nStartPageNum = pdfium::base::checked_cast<uint16_t>( in ParserPageRangeString()
112 uint16_t nEndPageNum = pdfium::base::checked_cast<uint16_t>( in ParserPageRangeString()
/external/webrtc/webrtc/base/
Dopensslstreamadapter.cc242 return checked_cast<int>(read); in stream_read()
260 return checked_cast<int>(written); in stream_write()
268 return stream_write(b, str, checked_cast<int>(strlen(str))); in stream_puts()
530 int code = SSL_write(ssl_, data, checked_cast<int>(data_len)); in Write()
591 int code = SSL_read(ssl_, data, checked_cast<int>(data_len)); in Read()
Dsafe_conversions.h34 inline Dst checked_cast(Src value) { in checked_cast() function
Dopenssladapter.cc152 return socket_write(b, str, rtc::checked_cast<int>(strlen(str))); in socket_puts()
491 int code = SSL_write(ssl_, pv, checked_cast<int>(cb)); in Send()
558 int code = SSL_read(ssl_, pv, checked_cast<int>(cb)); in Recv()
923 checked_cast<long>(cert_buffer_len)); in ConfigureTrustedRootCertificates()
/external/v8/src/base/
Dsafe_conversions.h30 inline Dst checked_cast(Src value) { in checked_cast() function
/external/libchrome/ipc/
Dipc_message_utils.h377 WriteParam(m, base::checked_cast<int>(p.size()));
411 WriteParam(m, base::checked_cast<int>(p.size()));
439 WriteParam(m, base::checked_cast<int>(p.size()));
470 WriteParam(m, base::checked_cast<int>(p.size()));
801 WriteParam(m, base::checked_cast<int>(p->size()));
841 WriteParam(m, base::checked_cast<int>(p.size()));
874 WriteParam(m, base::checked_cast<int>(p.size()));
/external/webrtc/webrtc/modules/audio_coding/neteq/test/
Dneteq_pcmu_quality_test.cc75 return rtc::checked_cast<int>(info.encoded_bytes); in EncodeBlock()
Dneteq_ilbc_quality_test.cc75 return rtc::checked_cast<int>(info.encoded_bytes); in EncodeBlock()
/external/libchrome/base/metrics/
Dhistogram_delta_serialization.cc62 Pickle pickle(it->data(), checked_cast<int>(it->size())); in DeserializeAndAddSamples()
/external/pdfium/third_party/base/
Dstl_util.h45 return pdfium::base::checked_cast<ResultType>(collection.size()); in CollectionSize()
/external/webrtc/webrtc/modules/audio_processing/
Daudio_processing_performance_unittest.cc310 const int denominator = rtc::checked_cast<int>(api_call_durations_.size()) - in GetDurationStandardDeviation()
313 ? rtc::checked_cast<int64_t>(sqrt(variance / denominator)) in GetDurationStandardDeviation()
323 const int denominator = rtc::checked_cast<int>(api_call_durations_.size()) - in GetDurationAverage()
/external/pdfium/fxjs/xfa/
Dcjx_list.cpp97 pdfium::base::checked_cast<int32_t>(GetXFAList()->GetLength())); in length()
/external/libchrome/base/numerics/
Dsafe_conversions.h104 constexpr Dst checked_cast(Src value) {
329 using internal::checked_cast;
/external/clang/test/CXX/drs/
Ddr2xx.cpp97 template<typename T, typename U> T checked_cast(U from) { U::error; } in checked_cast() function
98 template<typename T, typename U> T checked_cast(U *from);
100 void foo(int *arg) { checked_cast<const C *>(arg); } in foo()
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
Dneteq_rtpplay.cc519 int64_t start_time_ms = rtc::checked_cast<int64_t>(packet->time_ms()); in main()
598 next_input_time_ms = rtc::checked_cast<int64_t>(packet->time_ms()); in main()
621 sample_rate_hz = rtc::checked_cast<int>( in main()
/external/webrtc/talk/media/sctp/
Dsctpdataengine.cc648 rtc::checked_cast<socklen_t>(sizeof(spa)), SCTP_SENDV_SPA, 0); in SendData()
1015 resetp->srs_number_streams = rtc::checked_cast<uint16_t>(num_streams); in SendQueuedStreamResets()
1024 rtc::checked_cast<socklen_t>(reset_stream_buf.size())); in SendQueuedStreamResets()

123