Home
last modified time | relevance | path

Searched refs:Unwrap (Results 1 – 25 of 67) sorted by relevance

123

/external/llvm-project/flang/include/flang/Common/
Dunwrap.h50 static auto Unwrap(B &x) -> Constify<A, B> * {
60 static auto Unwrap(B *p) -> Constify<A, B> * {
62 return Unwrap<A>(*p);
69 static auto Unwrap(const std::unique_ptr<B> &p) -> Constify<A, B> * {
71 return Unwrap<A>(*p);
78 static auto Unwrap(const std::shared_ptr<B> &p) -> Constify<A, B> * {
80 return Unwrap<A>(*p);
87 static auto Unwrap(std::optional<B> &x) -> Constify<A, B> * {
89 return Unwrap<A>(*x);
96 static auto Unwrap(const std::optional<B> &x) -> Constify<A, B> * {
[all …]
/external/webrtc/modules/
Dmodule_common_types_unittest.cc119 EXPECT_EQ(0, unwrapper.Unwrap(0)); in TEST()
120 EXPECT_EQ(0x8000, unwrapper.Unwrap(0x8000)); in TEST()
122 EXPECT_EQ(0, unwrapper.Unwrap(0)); in TEST()
124 EXPECT_EQ(0x8000, unwrapper.Unwrap(0x8000)); in TEST()
125 EXPECT_EQ(0xFFFF, unwrapper.Unwrap(0xFFFF)); in TEST()
126 EXPECT_EQ(0x10000, unwrapper.Unwrap(0)); in TEST()
127 EXPECT_EQ(0xFFFF, unwrapper.Unwrap(0xFFFF)); in TEST()
128 EXPECT_EQ(0x8000, unwrapper.Unwrap(0x8000)); in TEST()
129 EXPECT_EQ(0, unwrapper.Unwrap(0)); in TEST()
132 EXPECT_EQ(0xFFFF, unwrapper.Unwrap(0xFFFF)); in TEST()
[all …]
/external/llvm-project/flang/include/flang/Parser/
Dtools.h50 template <typename A, typename B> static const A *Unwrap(B *p) { in Unwrap() function
52 return Unwrap<A>(*p); in Unwrap()
59 static const A *Unwrap(const common::Indirection<B, COPY> &x) { in Unwrap() function
60 return Unwrap<A>(x.value()); in Unwrap()
64 static const A *Unwrap(const std::variant<Bs...> &x) { in Unwrap() function
65 return std::visit([](const auto &y) { return Unwrap<A>(y); }, x); in Unwrap()
69 static const A *Unwrap(const std::optional<B> &o) { in Unwrap() function
71 return Unwrap<A>(*o); in Unwrap()
78 static const A *Unwrap(const UnlabeledStatement<B> &x) { in Unwrap() function
79 return Unwrap<A>(x.statement); in Unwrap()
[all …]
/external/webrtc/rtc_base/numerics/
Dsequence_number_util_unittest.cc217 EXPECT_EQ(123, unwrapper.Unwrap(123)); in TEST()
222 EXPECT_EQ(255, unwrapper.Unwrap(255)); in TEST()
223 EXPECT_EQ(256, unwrapper.Unwrap(0)); in TEST()
228 EXPECT_EQ(30, unwrapper.Unwrap(30)); in TEST()
229 EXPECT_EQ(36, unwrapper.Unwrap(3)); in TEST()
234 EXPECT_EQ(0, unwrapper.Unwrap(0)); in TEST()
235 EXPECT_EQ(-2, unwrapper.Unwrap(254)); in TEST()
240 EXPECT_EQ(0, unwrapper.Unwrap(0)); in TEST()
241 EXPECT_EQ(-2, unwrapper.Unwrap(31)); in TEST()
244 TEST(SeqNumUnwrapper, Unwrap) { in TEST() argument
[all …]
/external/vulkan-validation-layers/layers/generated/
Dlayer_chassis_dispatch.cpp58 … safe_struct->pAcquireSyncs[index0] = layer_data->Unwrap(safe_struct->pAcquireSyncs[index0]); in WrapPnextChainHandles()
63 … safe_struct->pReleaseSyncs[index0] = layer_data->Unwrap(safe_struct->pReleaseSyncs[index0]); in WrapPnextChainHandles()
74 … safe_struct->pAcquireSyncs[index0] = layer_data->Unwrap(safe_struct->pAcquireSyncs[index0]); in WrapPnextChainHandles()
79 … safe_struct->pReleaseSyncs[index0] = layer_data->Unwrap(safe_struct->pReleaseSyncs[index0]); in WrapPnextChainHandles()
88 safe_struct->image = layer_data->Unwrap(safe_struct->image); in WrapPnextChainHandles()
91 safe_struct->buffer = layer_data->Unwrap(safe_struct->buffer); in WrapPnextChainHandles()
98 safe_struct->image = layer_data->Unwrap(safe_struct->image); in WrapPnextChainHandles()
101 safe_struct->buffer = layer_data->Unwrap(safe_struct->buffer); in WrapPnextChainHandles()
108 safe_struct->swapchain = layer_data->Unwrap(safe_struct->swapchain); in WrapPnextChainHandles()
115 safe_struct->conversion = layer_data->Unwrap(safe_struct->conversion); in WrapPnextChainHandles()
[all …]
/external/webrtc/rtc_tools/py_event_log_analyzer/
Dmisc_test.py27 unwrapped_3 = misc.Unwrap(data, 3)
32 unwrapped_4 = misc.Unwrap(data, 4)
37 _ = misc.Unwrap(data, 4)
46 random_data_unwrapped_mod = misc.Unwrap(random_data, mod)
57 random_data_unwrapped_mod = misc.Unwrap(random_data, mod)
67 _ = misc.Unwrap(random_data, mod)
Dmisc.py59 def Unwrap(data, mod): function
/external/webrtc/rtc_base/
Dtime_utils_unittest.cc76 TEST_F(TimestampWrapAroundHandlerTest, Unwrap) { in TEST_F() argument
80 wraparound_handler_.Unwrap(static_cast<uint32_t>(ts & 0xffffffff))); in TEST_F()
85 wraparound_handler_.Unwrap(static_cast<uint32_t>(ts & 0xffffffff))); in TEST_F()
90 wraparound_handler_.Unwrap(static_cast<uint32_t>(ts & 0xffffffff))); in TEST_F()
96 ts, wraparound_handler_.Unwrap(static_cast<uint32_t>(ts & 0xffffffff))); in TEST_F()
102 wraparound_handler_.Unwrap(static_cast<uint32_t>(ts & 0xffffffff))); in TEST_F()
107 wraparound_handler_.Unwrap(static_cast<uint32_t>(ts & 0xffffffff))); in TEST_F()
112 wraparound_handler_.Unwrap(static_cast<uint32_t>(ts & 0xffffffff))); in TEST_F()
118 wraparound_handler_.Unwrap(static_cast<uint32_t>(ts & 0xffffffff))); in TEST_F()
Dtime_utils.h109 int64_t Unwrap(uint32_t ts);
/external/llvm-project/flang/lib/Semantics/
Dcanonicalize-acc.cpp34 if (auto *accLoop{parser::Unwrap<parser::OpenACCLoopConstruct>(*it)}) { in Post()
37 parser::Unwrap<parser::OpenACCCombinedConstruct>(*it)}) { in Post()
40 parser::Unwrap<parser::AccEndCombinedDirective>(*it)}) { in Post()
73 loop = it != block.end() ? parser::Unwrap<parser::DoConstruct>(*it) in CheckTileClauseRestriction()
127 if (auto *doCons{parser::Unwrap<parser::DoConstruct>(*nextIt)}) { in RewriteOpenACCLoopConstruct()
173 if (auto *doCons{parser::Unwrap<parser::DoConstruct>(*nextIt)}) { in RewriteOpenACCCombinedConstruct()
182 parser::Unwrap<parser::AccEndCombinedDirective>(*nextIt)}) { in RewriteOpenACCCombinedConstruct()
/external/webrtc/rtc_tools/rtc_event_log_visualizer/
Dalerts.cc78 seq_num_unwrapper.Unwrap(packets[0].header.sequenceNumber); in AnalyzeStreamGaps()
81 capture_time_unwrapper.Unwrap(packets[0].header.timestamp); in AnalyzeStreamGaps()
89 int64_t seq_num = seq_num_unwrapper.Unwrap(packet.header.sequenceNumber); in AnalyzeStreamGaps()
97 capture_time_unwrapper.Unwrap(packet.header.timestamp); in AnalyzeStreamGaps()
/external/llvm/include/llvm/IR/
DValueMap.h253 KeyT Unwrap() const { return cast_or_null<KeySansPointerT>(getValPtr()); }
262 Config::onDelete(Copy.Map->Data, Copy.Unwrap()); // May destroy *this.
277 Config::onRAUW(Copy.Map->Data, Copy.Unwrap(), typed_new_key);
302 return DenseMapInfo<KeyT>::getHashValue(Val.Unwrap());
341 ValueTypeProxy Result = {I->first.Unwrap(), I->second};
391 ValueTypeProxy Result = {I->first.Unwrap(), I->second};
/external/llvm-project/llvm/include/llvm/IR/
DValueMap.h258 KeyT Unwrap() const { return cast_or_null<KeySansPointerT>(getValPtr()); }
267 Config::onDelete(Copy.Map->Data, Copy.Unwrap()); // May destroy *this.
283 Config::onRAUW(Copy.Map->Data, Copy.Unwrap(), typed_new_key);
310 return DenseMapInfo<KeyT>::getHashValue(Val.Unwrap());
354 ValueTypeProxy Result = {I->first.Unwrap(), I->second};
406 ValueTypeProxy Result = {I->first.Unwrap(), I->second};
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DValueMap.h258 KeyT Unwrap() const { return cast_or_null<KeySansPointerT>(getValPtr()); }
267 Config::onDelete(Copy.Map->Data, Copy.Unwrap()); // May destroy *this.
283 Config::onRAUW(Copy.Map->Data, Copy.Unwrap(), typed_new_key);
310 return DenseMapInfo<KeyT>::getHashValue(Val.Unwrap());
354 ValueTypeProxy Result = {I->first.Unwrap(), I->second};
406 ValueTypeProxy Result = {I->first.Unwrap(), I->second};
/external/webrtc/modules/video_coding/
Drtp_frame_reference_finder.cc205 frame->id.picture_id = unwrapper_.Unwrap(picture_id & 0x7FFF); in ManageFramePidOrSeqNum()
260 frame->references[0] = rtp_seq_num_unwrapper_.Unwrap(last_picture_id_gop); in ManageFramePidOrSeqNum()
267 frame->id.picture_id = rtp_seq_num_unwrapper_.Unwrap(frame->id.picture_id); in ManageFramePidOrSeqNum()
311 int64_t unwrapped_tl0 = tl0_unwrapper_.Unwrap(codec_header.tl0PicIdx & 0xFF); in ManageFrameVp8()
487 tl0_unwrapper_.Unwrap(codec_header.tl0_pic_idx & 0xFF); in ManageFrameVp9()
712 frame->references[i] = unwrapper_.Unwrap(frame->references[i]); in UnwrapPictureIds()
713 frame->id.picture_id = unwrapper_.Unwrap(frame->id.picture_id); in UnwrapPictureIds()
753 frame->references[i] = rtp_seq_num_unwrapper_.Unwrap(frame->references[i]); in UpdateLayerInfoH264()
754 frame->id.picture_id = rtp_seq_num_unwrapper_.Unwrap(frame->id.picture_id); in UpdateLayerInfoH264()
/external/libchrome/base/
Dbind_internal.h171 decltype(auto) Unwrap(T&& o) { in decltype()
172 return Unwrapper<T>::Unwrap(std::forward<T>(o)); in decltype()
682 Unwrap(std::get<indices>(std::forward<BoundArgsTuple>(bound)))...,
881 static T&& Unwrap(T&& o) {
888 static T* Unwrap(const internal::UnretainedWrapper<T>& o) { return o.get(); }
893 static const T& Unwrap(const internal::ConstRefWrapper<T>& o) {
900 static T* Unwrap(const internal::RetainedRefWrapper<T>& o) { return o.get(); }
905 static T* Unwrap(const internal::OwnedWrapper<T>& o) { return o.get(); }
910 static T Unwrap(const internal::PassedWrapper<T>& o) { return o.Take(); }
Dbind_unittest.cc1450 EXPECT_EQ(&i, internal::Unwrap(unretained)); in TEST_F()
1451 EXPECT_EQ(&i, internal::Unwrap(std::move(unretained))); in TEST_F()
1457 EXPECT_EQ(&p, &internal::Unwrap(const_ref)); in TEST_F()
1458 EXPECT_EQ(&p, &internal::Unwrap(std::move(const_ref))); in TEST_F()
1464 EXPECT_EQ(p.get(), internal::Unwrap(retained_ref)); in TEST_F()
1465 EXPECT_EQ(p.get(), internal::Unwrap(std::move(retained_ref))); in TEST_F()
1471 EXPECT_EQ(p, internal::Unwrap(owned)); in TEST_F()
1472 EXPECT_EQ(p, internal::Unwrap(std::move(owned))); in TEST_F()
1478 EXPECT_EQ(p, internal::Unwrap(passed).get()); in TEST_F()
1481 EXPECT_EQ(p, internal::Unwrap(Passed(WrapUnique(p))).get()); in TEST_F()
/external/webrtc/system_wrappers/source/
Drtp_to_ntp_estimator.cc128 int64_t unwrapped_rtp_timestamp = unwrapper_.Unwrap(rtp_timestamp); in UpdateMeasurements()
187 int64_t rtp_timestamp_unwrapped = unwrapper_.Unwrap(rtp_timestamp); in Estimate()
/external/webrtc/modules/congestion_controller/rtp/
Dtransport_feedback_adapter.cc96 seq_num_unwrapper_.Unwrap(packet_info.transport_sequence_number); in AddPacket()
119 seq_num_unwrapper_.Unwrap(sent_packet.packet_id); in ProcessSentPacket()
218 int64_t seq_num = seq_num_unwrapper_.Unwrap(packet.sequence_number()); in ProcessTransportFeedbackInner()
Dtransport_feedback_demuxer.cc47 {seq_num_unwrapper_.Unwrap(packet_info.transport_sequence_number), in AddPacket()
/external/libaom/libaom/third_party/googletest/src/googletest/include/gtest/
Dgtest-matchers.h548 static const T &Unwrap(const T &v) { in Unwrap() function
552 static const T &Unwrap(std::reference_wrapper<T> v) { in Unwrap() function
562 return Op()(lhs, Unwrap(rhs_)); in MatchAndExplain()
566 UniversalPrint(Unwrap(rhs_), os); in DescribeTo()
570 UniversalPrint(Unwrap(rhs_), os); in DescribeNegationTo()
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/include/gtest/
Dgtest-matchers.h537 static const T& Unwrap(const T& v) { return v; } in Unwrap() function
539 static const T& Unwrap(std::reference_wrapper<T> v) { return v; } in Unwrap() function
547 return Op()(lhs, Unwrap(rhs_)); in MatchAndExplain()
551 UniversalPrint(Unwrap(rhs_), os); in DescribeTo()
555 UniversalPrint(Unwrap(rhs_), os); in DescribeNegationTo()
/external/mesa3d/src/gtest/include/gtest/
Dgtest-matchers.h539 static const T& Unwrap(const T& v) { return v; } in Unwrap() function
541 static const T& Unwrap(std::reference_wrapper<T> v) { return v; } in Unwrap() function
549 return Op()(lhs, Unwrap(rhs_)); in MatchAndExplain()
553 UniversalPrint(Unwrap(rhs_), os); in DescribeTo()
557 UniversalPrint(Unwrap(rhs_), os); in DescribeNegationTo()
/external/webrtc/video/
Dvideo_analyzer.cc239 wrap_handler_.Unwrap(rtp_packet.Timestamp() - rtp_timestamp_delta_); in DeliverPacket()
289 wrap_handler_.Unwrap(rtp_packet.Timestamp() - rtp_timestamp_delta_); in SendRtp()
312 wrap_handler_.Unwrap(video_frame.timestamp() - rtp_timestamp_delta_); in OnFrame()
314 while (wrap_handler_.Unwrap(frames_.front().timestamp()) < send_timestamp) { in OnFrame()
330 wrap_handler_.Unwrap(reference_frame.timestamp()); in OnFrame()
895 int64_t reference_timestamp = wrap_handler_.Unwrap(reference.timestamp()); in AddFrameComparison()
/external/googletest/googletest/include/gtest/
Dgtest-matchers.h716 return Op()(lhs, Unwrap(rhs_));
720 UniversalPrint(Unwrap(rhs_), os);
724 UniversalPrint(Unwrap(rhs_), os);
729 static const T& Unwrap(const T& v) {
733 static const T& Unwrap(std::reference_wrapper<T> v) {

123