Home
last modified time | relevance | path

Searched refs:WeakPtr (Results 1 – 25 of 87) sorted by relevance

1234

/external/deqp/framework/delibs/decpp/
DdeSharedPtr.hpp96 class WeakPtr;
122 explicit SharedPtr (const WeakPtr<Y>& other);
131 SharedPtr& operator= (const WeakPtr<Y>& other);
148 void acquireFromWeak (const WeakPtr<T>& other);
154 friend class WeakPtr<T>;
173 class WeakPtr class
176 WeakPtr (void);
177 WeakPtr (const WeakPtr<T>& other);
179 explicit WeakPtr (const SharedPtr<T>& other);
180 ~WeakPtr (void);
[all …]
/external/perfetto/include/perfetto/base/
Dweak_ptr.h53 class WeakPtr {
55 WeakPtr() {} in WeakPtr() function
56 WeakPtr(const WeakPtr&) = default;
57 WeakPtr& operator=(const WeakPtr&) = default;
58 WeakPtr(WeakPtr&&) = default;
59 WeakPtr& operator=(WeakPtr&&) = default;
72 explicit WeakPtr(const std::shared_ptr<T*>& handle) : handle_(handle) {} in WeakPtr() function
94 WeakPtr<T> GetWeakPtr() const { return weak_ptr_; } in GetWeakPtr()
100 WeakPtr<T> weak_ptr_;
/external/libchrome/base/memory/
Dweak_ptr.h85 template <typename T> class WeakPtr; variable
182 static WeakPtr<Derived> StaticAsWeakPtr(Derived* t) { in StaticAsWeakPtr()
194 static WeakPtr<Derived> AsWeakPtrImpl(SupportsWeakPtr<Base>* t) { in AsWeakPtrImpl()
195 WeakPtr<Base> ptr = t->AsWeakPtr(); in AsWeakPtrImpl()
196 return WeakPtr<Derived>( in AsWeakPtrImpl()
219 class WeakPtr : public internal::WeakPtrBase {
221 WeakPtr() = default;
223 WeakPtr(std::nullptr_t) {} in WeakPtr() function
228 WeakPtr(const WeakPtr<U>& other) : WeakPtrBase(other) { in WeakPtr() function
235 WeakPtr(WeakPtr<U>&& other) : WeakPtrBase(std::move(other)) { in WeakPtr() function
[all …]
Dweak_ptr_unittest.nc24 WeakPtr<Producer> ptr = f.AsWeakPtr();
25 WeakPtr<DerivedProducer> derived_ptr = ptr;
32 WeakPtr<Producer> ptr = f.AsWeakPtr();
33 WeakPtr<DerivedProducer> derived_ptr =
34 static_cast<WeakPtr<DerivedProducer> >(ptr);
37 …non-const lvalue reference to type 'WeakPtr<base::DerivedProducer>' cannot bind to a value of unre…
41 WeakPtr<Producer> ptr = f.AsWeakPtr();
42 WeakPtr<DerivedProducer>& derived_ptr = ptr;
45 …non-const lvalue reference to type 'WeakPtr<base::DerivedProducer>' cannot bind to a value of unre…
49 WeakPtr<Producer> ptr = f.AsWeakPtr();
[all …]
Dweak_ptr_unittest.cc22 WeakPtr<int> PassThru(WeakPtr<int> ptr) { in PassThru()
78 WeakPtr<Target> target;
199 WeakPtr<TargetBase> b = object->target; in DoCopyAndAssignArrowBase()
201 WeakPtr<TargetBase> c; in DoCopyAndAssignArrowBase()
217 WeakPtr<int> ptr = factory.GetWeakPtr(); in TEST()
224 WeakPtr<int> ptr = factory.GetWeakPtr(); in TEST()
225 WeakPtr<int> ptr2 = ptr; in TEST()
232 WeakPtr<int> ptr = factory.GetWeakPtr(); in TEST()
233 WeakPtr<int> ptr2 = factory.GetWeakPtr(); in TEST()
234 WeakPtr<int> ptr3 = std::move(ptr2); in TEST()
[all …]
/external/pdfium/core/fxcrt/
Dweak_ptr.h20 class WeakPtr {
22 WeakPtr() = default;
23 WeakPtr(const WeakPtr& that) : m_pHandle(that.m_pHandle) {} in WeakPtr() function
24 WeakPtr(WeakPtr&& that) noexcept { Swap(that); } in WeakPtr() function
25 explicit WeakPtr(std::unique_ptr<T, D> pObj) in WeakPtr() function
30 WeakPtr(std::nullptr_t arg) {} in WeakPtr() function
36 WeakPtr& operator=(const WeakPtr& that) {
40 bool operator==(const WeakPtr& that) const {
43 bool operator!=(const WeakPtr& that) const { return !(*this == that); }
56 void Swap(WeakPtr& that) { m_pHandle.Swap(that.m_pHandle); } in Swap()
[all …]
Dweak_ptr_unittest.cpp17 using WeakTestPtr = WeakPtr<PseudoDeletable, ReleaseDeleter<PseudoDeletable>>;
38 TEST(WeakPtr, Null) { in TEST() argument
55 TEST(WeakPtr, NonNull) { in TEST() argument
84 TEST(WeakPtr, ResetNull) { in TEST() argument
102 TEST(WeakPtr, ResetNonNull) { in TEST() argument
124 TEST(WeakPtr, DeleteObject) { in TEST() argument
142 TEST(WeakPtr, Cyclic) { in TEST() argument
158 TEST(WeakPtr, CyclicDeleteObject) { in TEST() argument
/external/perfetto/src/base/
Dweak_ptr_unittest.cc33 WeakPtr<WeakClass> weak_ptr1 = owned_instance->weak_factory.GetWeakPtr(); in TEST()
34 WeakPtr<WeakClass> weak_ptr2; in TEST()
36 WeakPtr<WeakClass> weak_ptr_copied(weak_ptr2); in TEST()
37 WeakPtr<WeakClass> weak_ptr_copied2 = weak_ptr_copied; // NOLINT in TEST()
49 WeakPtr<WeakClass> weak_ptr_moved1(std::move(weak_ptr1)); in TEST()
50 WeakPtr<WeakClass> weak_ptr_moved2(weak_ptr_copied2); in TEST()
/external/perfetto/src/ipc/
Dclient_impl.h48 void BindService(base::WeakPtr<ServiceProxy>) override;
62 base::WeakPtr<ServiceProxy>,
70 base::WeakPtr<ServiceProxy> service_proxy;
91 std::map<ServiceID, base::WeakPtr<ServiceProxy>> service_bindings_;
94 std::list<base::WeakPtr<ServiceProxy>> queued_bindings_;
Dclient_impl.cc57 void ClientImpl::BindService(base::WeakPtr<ServiceProxy> service_proxy) { in BindService()
90 base::WeakPtr<ServiceProxy> service_proxy, in BeginInvoke()
134 for (base::WeakPtr<ServiceProxy>& service_proxy : queued_bindings_) { in OnConnect()
146 base::WeakPtr<ServiceProxy>& service_proxy = it.second; in OnDisconnect()
210 base::WeakPtr<ServiceProxy>& service_proxy = req.service_proxy; in OnBindServiceReply()
246 base::WeakPtr<ServiceProxy> service_proxy = req.service_proxy; in OnInvokeMethodReply()
Dservice_proxy.cc39 base::WeakPtr<Client> client, in InitializeBinding()
112 base::WeakPtr<ServiceProxy> ServiceProxy::GetWeakPtr() const { in GetWeakPtr()
/external/libcxx/test/libcxx/utilities/memory/util.smartptr/
Drace_condition.pass.cpp25 typedef std::weak_ptr<int> WeakPtr; typedef
38 WeakPtr x3 = x; // increment weak count in operator ()()
40 WeakPtr x5 = x3; // increment weak count in operator ()()
58 WeakPtr w = p; in run_test()
/external/perfetto/include/perfetto/ipc/
Dservice_proxy.h63 void InitializeBinding(base::WeakPtr<Client>,
84 base::WeakPtr<ServiceProxy> GetWeakPtr() const;
90 base::WeakPtr<Client> client_;
/external/libchrome/base/files/
Dfile_descriptor_watcher_posix.cc49 Watcher(WeakPtr<Controller> controller, MessagePumpForIO::Mode mode, int fd);
73 WeakPtr<Controller> controller_;
94 WeakPtr<Controller> controller, in Watcher()
186 WeakPtr<Controller> weak_this = weak_factory_.GetWeakPtr(); in RunCallback()
/external/libchrome/mojo/public/cpp/bindings/lib/
Dconnector.cc53 explicit ActiveDispatchTracker(const base::WeakPtr<Connector>& connector);
59 const base::WeakPtr<Connector> connector_;
116 const base::WeakPtr<Connector>& connector) in ActiveDispatchTracker()
368 base::WeakPtr<Connector> weak_self(weak_self_); in OnSyncHandleWatcherHandleReady()
430 base::WeakPtr<Connector> weak_self = weak_self_; in ReadSingleMessage()
482 base::WeakPtr<Connector> weak_self = weak_self_; in ReadAllAvailableMessages()
/external/v4l2_codec2/vda/
Dv4l2_video_decode_accelerator.h105 const base::WeakPtr<Client>& decode_client,
372 base::WeakPtr<V4L2VideoDecodeAccelerator> weak_this_;
378 base::WeakPtr<Client> client_;
380 base::WeakPtr<Client> decode_client_;
/external/libchrome/mojo/public/cpp/system/
Dsimple_watcher.cc26 base::WeakPtr<SimpleWatcher> watcher, in Create()
73 Context(base::WeakPtr<SimpleWatcher> weak_watcher, in Context()
113 const base::WeakPtr<SimpleWatcher> weak_watcher_;
272 base::WeakPtr<SimpleWatcher> weak_self = weak_factory_.GetWeakPtr(); in OnHandleReady()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_string.h21 CPDF_String(WeakPtr<ByteStringPool> pPool, const ByteString& str, bool bHex);
22 CPDF_String(WeakPtr<ByteStringPool> pPool, const WideString& str);
Dcpdf_string.cpp17 CPDF_String::CPDF_String(WeakPtr<ByteStringPool> pPool, in CPDF_String()
25 CPDF_String::CPDF_String(WeakPtr<ByteStringPool> pPool, const WideString& str) in CPDF_String()
Dcpdf_dictionary.h30 explicit CPDF_Dictionary(const WeakPtr<ByteStringPool>& pPool);
100 WeakPtr<ByteStringPool> GetByteStringPool() const { return m_pPool; } in GetByteStringPool()
108 WeakPtr<ByteStringPool> m_pPool;
Dcpdf_indirect_object_holder.h61 WeakPtr<ByteStringPool> GetByteStringPool() const { in GetByteStringPool()
75 WeakPtr<ByteStringPool> m_pByteStringPool;
/external/pdfium/core/fpdfapi/page/
Dcpdf_streamparser.h27 const WeakPtr<ByteStringPool>& pPool);
59 WeakPtr<ByteStringPool> m_pPool;
/external/perfetto/src/traced/probes/ftrace/
Dftrace_controller.cc179 base::WeakPtr<FtraceController> weak_ctl = thread_sync->trace_controller_weak; in OnCpuReaderRead()
213 base::WeakPtr<FtraceController> weak_ctl = thread_sync->trace_controller_weak; in OnCpuReaderFlush()
259 base::WeakPtr<FtraceController> weak_this = weak_factory_.GetWeakPtr(); in DrainCPUs()
298 base::WeakPtr<FtraceController> weak_this = weak_factory_.GetWeakPtr(); in StartIfNeeded()
353 base::WeakPtr<FtraceController> weak_this = weak_factory_.GetWeakPtr(); in Flush()
Dftrace_data_source.h58 FtraceDataSource(base::WeakPtr<FtraceController>,
97 base::WeakPtr<FtraceController> controller_weak_;
/external/perfetto/src/traced/probes/sys_stats/
Dsys_stats_data_source.h61 base::WeakPtr<SysStatsDataSource> GetWeakPtr() const;
73 static void Tick(base::WeakPtr<SysStatsDataSource>);

1234