Home
last modified time | relevance | path

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

12

/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/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()
Dtime_stretch.cc201 rtc::checked_cast<int32_t>(peak_index) * (right_side >> right_scale); in SpeechDetection()
Dexpand.cc216 (31 - WebRtcSpl_NormW32(rtc::checked_cast<int32_t>(max_lag_))) - 5; in Process()
311 std::min(expand_duration_samples_, rtc::checked_cast<size_t>(fs_hz_ * 2)); in Process()
320 rtc::checked_cast<int>(expand_duration_samples_) / (fs_hz_ / 1000)); in SetParametersForNormalAfterExpand()
Dstatistics_calculator.cc221 const int ms_per_packet = rtc::checked_cast<int>( in GetNetworkStatistics()
/external/pdfium/core/src/fxge/android/
Dfpf_skiafont.cpp172 FT_ULong ulSize = pdfium::base::checked_cast<FT_ULong>(dwSize); in GetFontData()
176 return pdfium::base::checked_cast<FX_DWORD>(ulSize); in GetFontData()
/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/pdfium/third_party/base/numerics/
Dsafe_conversions.h28 inline Dst checked_cast(Src value) { in checked_cast() function
/external/v8/src/base/
Dsafe_conversions.h30 inline Dst checked_cast(Src value) { in checked_cast() function
/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/pdfium/core/include/fxcrt/
Dfx_system.h163 #define FXSYS_strlen(ptr) pdfium::base::checked_cast<FX_STRSIZE>(strlen(ptr))
164 #define FXSYS_wcslen(ptr) pdfium::base::checked_cast<FX_STRSIZE>(wcslen(ptr))
/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/libchrome/base/numerics/
Dsafe_conversions.h48 inline Dst checked_cast(Src value) { in checked_cast() function
/external/libweave/third_party/chromium/base/numerics/
Dsafe_conversions.h48 inline Dst checked_cast(Src value) { in checked_cast() function
/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/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/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()
/external/libchrome/base/files/
Dimportant_file_writer.cc100 const int data_length = checked_cast<int32_t>(data.length()); in WriteFileAtomically()
/external/libchrome/base/time/
Dtime_mac.cc69 return base::checked_cast<int64_t>(result.ValueOrDie()); in ComputeCurrentTicks()
/external/pdfium/core/src/fpdfapi/fpdf_parser/
Dfpdf_parser_parser.cpp1103 pdfium::base::checked_cast<FX_DWORD, int32_t>(startnum); in LoadCrossRefV5()
1105 pdfium::base::checked_cast<FX_DWORD, int32_t>(arrIndex[i].second); in LoadCrossRefV5()
1117 pdfium::base::checked_cast<FX_DWORD, int32_t>(m_V5Type.GetSize()); in LoadCrossRefV5()
3598 FX_SAFE_DWORD safeSize = pdfium::base::checked_cast<FX_DWORD>(offset); in IsDataAvail()
4671 FX_SAFE_DWORD safeLoc = pdfium::base::checked_cast<FX_DWORD>(nStreamLen); in ReadPageHintTable()
4676 pdfium::base::checked_cast<FX_FILESIZE>(safeLoc.ValueOrDie()); in ReadPageHintTable()
4679 pdfium::base::checked_cast<FX_FILESIZE>(dwFirstObjLoc); in ReadPageHintTable()
4710 required_bits *= pdfium::base::checked_cast<FX_DWORD>(nPages); in ReadPageHintTable()
4723 required_bits *= pdfium::base::checked_cast<FX_DWORD>(nPages); in ReadPageHintTable()
4767 required_bits *= pdfium::base::checked_cast<FX_DWORD>(nPages); in ReadPageHintTable()
[all …]
/external/webrtc/webrtc/common_audio/
Daudio_converter.cc22 using rtc::checked_cast;

12