Home
last modified time | relevance | path

Searched refs:value_or (Results 1 – 9 of 9) sorted by relevance

/external/libcxx/test/std/experimental/optional/optional.object/optional.object.observe/
Dvalue_or_const.pass.cpp48 static_assert(opt.value_or(y) == 2, ""); in main()
52 static_assert(opt.value_or(Y(3)) == 2, ""); in main()
57 static_assert(opt.value_or(y) == 3, ""); in main()
61 static_assert(opt.value_or(Y(3)) == 4, ""); in main()
66 assert(opt.value_or(y) == 2); in main()
70 assert(opt.value_or(Y(3)) == 2); in main()
75 assert(opt.value_or(y) == 3); in main()
79 assert(opt.value_or(Y(3)) == 4); in main()
Dvalue_or.pass.cpp51 assert(std::move(opt).value_or(y) == 2); in main()
56 assert(std::move(opt).value_or(Y(3)) == 2); in main()
62 assert(std::move(opt).value_or(y) == 3); in main()
67 assert(std::move(opt).value_or(Y(3)) == 4); in main()
/external/webrtc/webrtc/base/
Doptional_unittest.cc417 EXPECT_EQ(a, x.value_or(Logger(42))); in TEST()
419 EXPECT_EQ(b, y.value_or(Logger(42))); in TEST()
421 EXPECT_EQ(a, Optional<Logger>(Logger(17)).value_or(b)); in TEST()
423 EXPECT_EQ(b, Optional<Logger>().value_or(b)); in TEST()
Doptional.h114 const T& value_or(const T& default_val) const { in value_or() function
/external/webrtc/webrtc/modules/audio_coding/acm2/
Dcodec_manager.cc50 .value_or(false)) { in IsValidSendCodec()
56 return RentACodec::CodecIndexFromId(*maybe_codec_id).value_or(-1); in IsValidSendCodec()
/external/libcxx/include/experimental/
Doptional125 template <class U> constexpr T value_or(U&&) const &;
126 template <class U> constexpr T value_or(U&&) &&;
534 constexpr value_type value_or(_Up&& __v) const&
537 "optional<T>::value_or: T must be copy constructible");
539 "optional<T>::value_or: U must be convertible to T");
546 value_type value_or(_Up&& __v) &&
549 "optional<T>::value_or: T must be move constructible");
551 "optional<T>::value_or: U must be convertible to T");
/external/webrtc/talk/media/webrtc/
Dwebrtcvoiceengine.cc674 bool cn = options.aecm_generate_comfort_noise.value_or(false); in ApplyOptions()
713 default_agc_config_.targetLeveldBOv = options.tx_agc_target_dbov.value_or( in ApplyOptions()
716 options.tx_agc_digital_compression_gain.value_or( in ApplyOptions()
719 options.tx_agc_limiter.value_or(default_agc_config_.limiterEnable); in ApplyOptions()
1381 if (options_.dscp.value_or(false)) { in SetOptions()
1392 options_.combined_audio_video_bwe.value_or(false)); in SetOptions()
2006 options_.combined_audio_video_bwe.value_or(false), sp.sync_label, in AddRecvStream()
Dwebrtcvideoengine2.cc414 denoising = options.video_noise_reduction.value_or(false); in ConfigureVideoEncoderSettings()
1102 recv_codecs_, options_.disable_prerenderer_smoothing.value_or(false)); in AddRecvStream()
1484 options_.dscp.value_or(false) ? rtc::DSCP_AF41 : rtc::DSCP_DEFAULT; in SetOptions()
2004 if (parameters_.options.conference_mode.value_or(false) && in CreateVideoEncoderConfig()
/external/webrtc/talk/app/webrtc/
Dwebrtcsession_unittest.cc781 video_options.unsignalled_recv_stream_limit.value_or(-1)); in SetAndVerifyNumUnsignalledRecvStreams()