Home
last modified time | relevance | path

Searched refs:watcher_ (Results 1 – 25 of 37) sorted by relevance

12

/external/openscreen/discovery/public/
Ddns_sd_service_watcher_unittest.cc109 DnsSdServiceWatcherTests() : watcher_(&service_) { in DnsSdServiceWatcherTests()
111 EXPECT_FALSE(watcher_.is_running()); in DnsSdServiceWatcherTests()
113 watcher_.StartDiscovery(); in DnsSdServiceWatcherTests()
120 ConvertRefs(watcher_.GetServices()); in CreateNewInstance()
124 EXPECT_CALL(watcher_, Callback(_)) in CreateNewInstance()
129 watcher_.OnEndpointCreated(record); in CreateNewInstance()
130 testing::Mock::VerifyAndClearExpectations(&watcher_); in CreateNewInstance()
133 ConvertRefs(watcher_.GetServices()); in CreateNewInstance()
142 ConvertRefs(watcher_.GetServices()); in CreateExistingInstance()
146 EXPECT_CALL(watcher_, Callback(_)) in CreateExistingInstance()
[all …]
/external/libchrome/libchrome_tools/patches/
Dfix-fd-watcher-leak.patch41 - // Delete |watcher_| on the MessageLoopForIO.
44 - // |watcher_| is leaked. If the MessageLoopForIO is deleted after
46 - // |watcher_| is deleted from Watcher::WillDestroyCurrentMessageLoop().
47 - message_loop_for_io_task_runner_->DeleteSoon(FROM_HERE, watcher_.release());
66 + watcher_.reset();
68 + // Synchronously wait until |watcher_| is deleted on the MessagePumpForIO
99 + Unretained(watcher_.release()),
128 + controller_->watcher_.reset();
145 - // It is safe to use Unretained() below because |watcher_| can only be deleted
150 - FROM_HERE, BindOnce(&Watcher::StartWatching, Unretained(watcher_.get())));
[all …]
/external/libchrome/mojo/public/java/system/
Dwatcher_impl.cc25 : watcher_(FROM_HERE, in WatcherImpl()
41 watcher_.Watch(mojo::Handle(static_cast<MojoHandle>(mojo_handle)), in Start()
51 watcher_.Cancel(); in Cancel()
68 SimpleWatcher watcher_; member in mojo::android::__anon5e8a88260111::WatcherImpl
/external/libchrome/mojo/public/cpp/system/
Dstring_data_pipe_producer.cc61 watcher_(FROM_HERE, in StringDataPipeProducer()
92 watcher_.Watch(producer_.get(), MOJO_HANDLE_SIGNAL_WRITABLE, in Write()
119 watcher_.Cancel(); in OnProducerHandleReady()
127 watcher_.Cancel(); in OnProducerHandleReady()
Dfile_data_pipe_producer.cc109 watcher_ = std::make_unique<SimpleWatcher>( in StartFromFileOnFileSequence()
112 watcher_->Watch(producer_handle_.get(), MOJO_HANDLE_SIGNAL_WRITABLE, in StartFromFileOnFileSequence()
212 watcher_.reset(); in Finish()
226 std::unique_ptr<SimpleWatcher> watcher_; member in mojo::FileDataPipeProducer::FileSequenceState
Dstring_data_pipe_producer.h82 SimpleWatcher watcher_; variable
/external/libchrome/mojo/core/
Dwatch.cc18 : watcher_(watcher), in Watch()
78 watcher_->InvokeWatchCallback(context_, result, state, flags); in InvokeCallback()
85 watcher_->lock_.AssertAcquired(); in AssertWatcherLockAcquired()
Dwatch.h96 const scoped_refptr<WatcherDispatcher> watcher_; variable
/external/rust/crates/grpcio-sys/grpc/src/core/lib/transport/
Dconnectivity_state.cc63 : watcher_(std::move(watcher)), state_(state), status_(status) { in Notifier()
80 self->watcher_.get(), ConnectivityStateName(self->state_), in SendNotification()
83 self->watcher_->OnConnectivityStateChange(self->state_, self->status_); in SendNotification()
87 RefCountedPtr<AsyncConnectivityStateWatcherInterface> watcher_; member in grpc_core::AsyncConnectivityStateWatcherInterface::Notifier
/external/libchrome/base/message_loop/
Dmessage_pump_libevent.cc68 watcher_ = nullptr; in StopWatchingFileDescriptor()
88 if (!watcher_) in OnFileCanReadWithoutBlocking()
90 watcher_->OnFileCanReadWithoutBlocking(fd); in OnFileCanReadWithoutBlocking()
96 DCHECK(watcher_); in OnFileCanWriteWithoutBlocking()
97 watcher_->OnFileCanWriteWithoutBlocking(fd); in OnFileCanWriteWithoutBlocking()
Dmessage_pump_libevent.h51 void set_watcher(FdWatcher* watcher) { watcher_ = watcher; } in set_watcher()
58 FdWatcher* watcher_ = nullptr; variable
/external/libbrillo/brillo/
Dbinder_watcher.cc56 watcher_ = base::FileDescriptorWatcher::WatchReadable( in Init()
59 if (!watcher_) { in Init()
Dbinder_watcher.h38 std::unique_ptr<base::FileDescriptorWatcher::Controller> watcher_;
/external/libchrome/mojo/public/cpp/system/tests/
Dstring_data_pipe_producer_unittest.cc33 watcher_(FROM_HERE, in DataPipeReader()
36 watcher_.Watch( in DataPipeReader()
65 watcher_.Cancel(); in OnDataAvailable()
72 SimpleWatcher watcher_; member in mojo::__anonb19f71a90111::DataPipeReader
Dfile_data_pipe_producer_unittest.cc38 watcher_(FROM_HERE, in DataPipeReader()
41 watcher_.Watch( in DataPipeReader()
70 watcher_.Cancel(); in OnDataAvailable()
78 SimpleWatcher watcher_; member in mojo::__anon8747ff720111::DataPipeReader
/external/tensorflow/tensorflow/core/framework/
Dop.cc158 if (watcher_ && watcher) { in SetWatcher()
162 watcher_ = watcher; in SetWatcher()
246 if (watcher_) { in RegisterAlreadyLocked()
247 watcher_status = watcher_(s, op_reg_data->op_def); in RegisterAlreadyLocked()
/external/libchrome/base/files/
Dfile_descriptor_watcher_posix.cc39 message_loop_for_io_task_runner_->DeleteSoon(FROM_HERE, watcher_.release()); in ~Controller()
169 watcher_ = std::make_unique<Watcher>(weak_factory_.GetWeakPtr(), mode, fd); in Controller()
180 FROM_HERE, BindOnce(&Watcher::StartWatching, Unretained(watcher_.get()))); in StartWatching()
Dfile_descriptor_watcher_posix.h74 std::unique_ptr<Watcher> watcher_; variable
/external/openscreen/cast/standalone_sender/
Dreceiver_chooser.cc49 watcher_ = std::make_unique<discovery::DnsSdServiceWatcher<ServiceInfo>>( in ReceiverChooser()
57 task_runner->PostTask([this] { watcher_->StartDiscovery(); }); in ReceiverChooser()
Dreceiver_chooser.h54 std::unique_ptr<discovery::DnsSdServiceWatcher<ServiceInfo>> watcher_; variable
/external/libbrillo/brillo/message_loops/
Dbase_message_loop.cc56 watcher_ = std::make_unique<base::FileDescriptorWatcher>(base_loop_); in BaseMessageLoop()
61 watcher_(std::make_unique<base::FileDescriptorWatcher>(base_loop_)) {} in BaseMessageLoop()
Dbase_message_loop.h106 std::unique_ptr<base::FileDescriptorWatcher> watcher_; variable
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/health/
Dhealth_check_client.cc62 watcher_(std::move(watcher)), in HealthCheckClient()
97 if (watcher_ != nullptr) { in SetHealthStatusLocked()
98 watcher_->Notify(state, in SetHealthStatusLocked()
112 watcher_.reset(); in Orphan()
/external/libchrome/base/synchronization/
Dwaitable_event_watcher.h114 win::ObjectWatcher watcher_; variable
/external/webrtc/test/network/
Dnetwork_emulation.cc91 if (watcher_) { in OnPacketReceived()
92 watcher_(packet); in OnPacketReceived()
128 watcher_ = watcher; in SetWatcher()

12