Home
last modified time | relevance | path

Searched refs:sink_ (Results 1 – 25 of 61) sorted by relevance

123

/external/chromium_org/mojo/public/cpp/bindings/lib/
Dfilter_chain.cc14 FilterChain::FilterChain(MessageReceiver* sink) : sink_(sink) { in FilterChain()
17 FilterChain::FilterChain(RValue other) : sink_(other.object->sink_) { in FilterChain()
18 other.object->sink_ = NULL; in FilterChain()
23 std::swap(sink_, other.object->sink_); in operator =()
37 MOJO_DCHECK(!sink_); in SetSink()
38 sink_ = sink; in SetSink()
44 MOJO_DCHECK(sink_); in GetHead()
45 return filters_.empty() ? sink_ : filters_.front(); in GetHead()
Dmessage_filter.cc9 MessageFilter::MessageFilter(MessageReceiver* sink) : sink_(sink) { in MessageFilter()
20 return sink_->Accept(message); in Accept()
/external/chromium_org/mojo/public/cpp/bindings/
Dcallback.h34 explicit Callback(Runnable* runnable) : sink_(runnable) {} in Callback()
39 Callback(const Sink& sink) : sink_(new Adapter<Sink>(sink)) {} in Callback()
42 if (sink_.get()) in Run()
43 sink_->Run(); in Run()
47 return !sink_.get(); in is_null()
60 internal::SharedPtr<Runnable> sink_; variable
75 explicit Callback(Runnable* runnable) : sink_(runnable) {} in Callback()
80 Callback(const Sink& sink) : sink_(new Adapter<Sink>(sink)) {} in Callback()
83 if (sink_.get()) in Run()
84 sink_->Run(internal::Forward(a1)); in Run()
[all …]
Dcallback.h.pump44 explicit Callback(Runnable* runnable) : sink_(runnable) {}
49 Callback(const Sink& sink) : sink_(new Adapter<Sink>(sink)) {}
55 if (sink_.get())
56 sink_->Run($if ARITY > 1 [[
63 return !sink_.get();
82 internal::SharedPtr<Runnable> sink_;
Dmessage_filter.h23 void set_sink(MessageReceiver* sink) { sink_ = sink; } in set_sink()
26 MessageReceiver* sink_;
/external/chromium_org/content/renderer/media/
Dwebrtc_local_audio_renderer.cc123 DCHECK(!sink_.get()); in ~WebRtcLocalAudioRenderer()
134 DCHECK(!sink_.get()); in Start()
135 sink_ = AudioDeviceFactory::NewOutputDevice(source_render_view_id_, in Start()
156 if (sink_.get()) { in Stop()
157 sink_->Stop(); in Stop()
158 sink_ = NULL; in Stop()
175 if (!sink_.get()) in Play()
194 if (!sink_.get()) in Pause()
218 if (sink_.get()) in SetVolume()
219 sink_->SetVolume(volume); in SetVolume()
[all …]
Dmedia_stream_audio_track_sink.h47 WrapsMediaStreamSink(MediaStreamAudioSink* sink) : sink_(sink) {} in WrapsMediaStreamSink()
50 return owner->IsEqual(sink_); in operator()
52 MediaStreamAudioSink* sink_; member
55 WrapsPeerConnectionSink(PeerConnectionAudioSink* sink) : sink_(sink) {} in WrapsPeerConnectionSink()
58 return owner->IsEqual(sink_); in operator()
60 PeerConnectionAudioSink* sink_; member
/external/chromium_org/media/blink/
Dwebaudiosourceprovider_impl.cc57 sink_(sink), in WebAudioSourceProviderImpl()
68 sink_->Stop(); in setClient()
86 sink_->SetVolume(volume_); in setClient()
88 sink_->Start(); in setClient()
90 sink_->Play(); in setClient()
132 sink_->Start(); in Start()
139 sink_->Stop(); in Stop()
147 sink_->Play(); in Play()
155 sink_->Pause(); in Pause()
162 sink_->SetVolume(volume); in SetVolume()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/session/media/
Dmediarecorder_unittest.cc55 sink_.reset(new RtpDumpSink(Open(path_.pathname()))); in SetUp()
72 sink_->OnPacket(buf.Data(), buf.Length(), false); in OnRtpPacket()
77 sink_.reset(); // This will close the file. So we can read it. in ReadPacket()
85 rtc::scoped_ptr<RtpDumpSink> sink_; member in cricket::RtpDumpSinkTest
93 EXPECT_FALSE(sink_->IsEnabled()); in TEST_F()
94 sink_->set_packet_filter(PF_ALL); in TEST_F()
98 EXPECT_TRUE(sink_->Enable(true)); in TEST_F()
99 EXPECT_TRUE(sink_->IsEnabled()); in TEST_F()
104 EXPECT_TRUE(sink_->Enable(false)); in TEST_F()
105 EXPECT_FALSE(sink_->IsEnabled()); in TEST_F()
[all …]
/external/chromium_org/content/browser/renderer_host/
Drender_widget_host_view_aura_unittest.cc332 sink_ = &process_host_->sink(); in SetUpEnvironment()
349 sink_ = NULL; in TearDownEnvironment()
388 IPC::TestSink* sink_; member in content::RenderWidgetHostViewAuraTest
423 sink_->ClearMessages(); in SetUpOverscrollEnvironmentImpl()
586 size_t count = sink_->message_count(); in GetSentMessageCountAndResetSink()
587 sink_->ClearMessages(); in GetSentMessageCountAndResetSink()
592 if (!sink_->message_count()) in AckLastSentInputEventIfNecessary()
597 sink_->GetMessageAt(sink_->message_count() - 1), &params)) { in AckLastSentInputEventIfNecessary()
781 sink_->ClearMessages(); in TEST_F()
786 sink_->GetFirstMessageMatching(InputMsg_ImeSetComposition::ID); in TEST_F()
[all …]
/external/chromium_org/content/renderer/accessibility/
Drenderer_accessibility_browsertest.cc50 sink_ = &render_thread_->sink(); in SetUp()
60 sink_->GetUniqueMessageMatching(AccessibilityHostMsg_Events::ID); in GetLastAccEvent()
75 IPC::TestSink* sink_; member in content::RendererAccessibilityTest
128 sink_->ClearMessages(); in TEST_F()
153 sink_->ClearMessages(); in TEST_F()
165 sink_->ClearMessages(); in TEST_F()
177 sink_->ClearMessages(); in TEST_F()
190 sink_->ClearMessages(); in TEST_F()
203 sink_->ClearMessages(); in TEST_F()
217 sink_->ClearMessages(); in TEST_F()
[all …]
/external/chromium_org/components/nacl/loader/
Dnacl_ipc_adapter_unittest.cc28 sink_ = new IPC::TestSink; in SetUp()
33 adapter_ = new NaClIPCAdapter(scoped_ptr<IPC::Channel>(sink_), in SetUp()
37 sink_ = NULL; // This pointer is actually owned by the IPCAdapter. in TearDown()
69 IPC::TestSink* sink_; member in __anonaa636ed60111::NaClIPCAdapterTest
134 ASSERT_EQ(1u, sink_->message_count()); in TEST_F()
135 const IPC::Message* msg = sink_->GetMessageAt(0); in TEST_F()
143 sink_->ClearMessages(); in TEST_F()
150 ASSERT_EQ(0u, sink_->message_count()); in TEST_F()
157 ASSERT_EQ(0u, sink_->message_count()); in TEST_F()
167 ASSERT_EQ(1u, sink_->message_count()); in TEST_F()
[all …]
/external/chromium_org/v8/src/
Dserialize.cc1184 sink_(sink), in Serializer()
1240 sink_->Put(kSkip, "Skip"); in VisitPointers()
1241 sink_->PutInt(kPointerSize, "SkipOneWord"); in VisitPointers()
1243 sink_->Put(kRawData + 1, "Smi"); in VisitPointers()
1245 sink_->Put(reinterpret_cast<byte*>(current)[i], "Byte"); in VisitPointers()
1332 sink_->Put(kBackref + how_to_code + where_to_point + space, "BackRefSer"); in SerializeReferenceToPreviousObject()
1334 sink_->Put(kBackrefWithSkip + how_to_code + where_to_point + space, in SerializeReferenceToPreviousObject()
1336 sink_->PutInt(skip, "BackRefSkipDistance"); in SerializeReferenceToPreviousObject()
1338 sink_->PutInt(offset, "offset"); in SerializeReferenceToPreviousObject()
1362 sink_->Put(kSkip, "FlushPendingSkip"); in SerializeObject()
[all …]
/external/chromium_org/components/autofill/content/renderer/
Drenderer_save_password_progress_logger_unittest.cc19 TestLogger() : RendererSavePasswordProgressLogger(&sink_, 0) {} in TestLogger()
30 const IPC::Message* message = sink_.GetFirstMessageMatching(kMsgID); in GetLogMessage()
36 sink_.ClearMessages(); in GetLogMessage()
41 IPC::TestSink sink_; member in autofill::__anonb15214b30111::TestLogger
/external/chromium_org/media/filters/
Daudio_renderer_impl_unittest.cc94 sink_ = new FakeAudioRendererSink(); in AudioRendererImplTest()
96 sink_.get(), in AudioRendererImplTest()
292 EXPECT_TRUE(sink_->Render(bus.get(), 0, &frames_read)); in ConsumeBufferedData()
335 scoped_refptr<FakeAudioRendererSink> sink_; member in media::AudioRendererImplTest
669 sink_->OnRenderError(); in TEST_F()
680 EXPECT_EQ(FakeAudioRendererSink::kPaused, sink_->state()); in TEST_F()
682 EXPECT_EQ(FakeAudioRendererSink::kPaused, sink_->state()); in TEST_F()
684 EXPECT_EQ(FakeAudioRendererSink::kPaused, sink_->state()); in TEST_F()
689 EXPECT_EQ(FakeAudioRendererSink::kPlaying, sink_->state()); in TEST_F()
691 EXPECT_EQ(FakeAudioRendererSink::kPaused, sink_->state()); in TEST_F()
[all …]
Daudio_renderer_impl.cc52 sink_(sink), in AudioRendererImpl()
79 sink_->Stop(); in ~AudioRendererImpl()
112 sink_->Play(); in StartRendering_Locked()
140 sink_->Pause(); in StopRendering_Locked()
266 DCHECK(sink_.get()); in Initialize()
352 sink_->Initialize(audio_parameters_, this); in OnAudioBufferStreamInitialized()
353 sink_->Start(); in OnAudioBufferStreamInitialized()
356 sink_->Pause(); in OnAudioBufferStreamInitialized()
365 DCHECK(sink_.get()); in SetVolume()
366 sink_->SetVolume(volume); in SetVolume()
[all …]
/external/chromium_org/content/renderer/media/webrtc/
Dwebrtc_audio_sink_adapter.cc13 : sink_(sink) { in WebRtcAudioSinkAdapter()
22 return (other == sink_); in IsEqual()
29 sink_->OnData(audio_data, 16, sample_rate, number_of_channels, in OnData()
/external/chromium_org/third_party/webrtc/base/
Dwin32socketserver.cc228 closing_(false), close_error_(0), sink_(NULL), dns_(NULL) { in Win32Socket()
268 if (sink_) in SetTimeout()
269 ::SetTimer(sink_->handle(), 1, ms, 0); in SetTimeout()
328 if (!sink_) { in Connect()
334 dns->handle = WSAAsyncGetHostByName(sink_->handle(), WM_DNSNOTIFY, in Connect()
503 if (sink_) { in Close()
504 sink_->Dispose(); in Close()
505 sink_ = NULL; in Close()
544 ASSERT(NULL == sink_); in CreateSink()
547 sink_ = new EventSink(this); in CreateSink()
[all …]
/external/chromium_org/mojo/public/tools/bindings/generators/cpp_templates/
Dinterface_stub_declaration.tmpl4 void set_sink({{interface.name}}* sink) { sink_ = sink; }
5 {{interface.name}}* sink() { return sink_; }
13 {{interface.name}}* sink_;
/external/chromium_org/content/renderer/screen_orientation/
Dscreen_orientation_dispatcher_unittest.cc59 :ScreenOrientationDispatcher(NULL) , sink_(sink) { in ScreenOrientationDispatcherWithSink()
63 return sink_->Send(message); in Send()
66 IPC::TestSink* sink_; member in content::ScreenOrientationDispatcherWithSink
72 dispatcher_.reset(new ScreenOrientationDispatcherWithSink(&sink_)); in SetUp()
86 return sink_; in sink()
107 IPC::TestSink sink_; member in content::ScreenOrientationDispatcherTest
/external/chromium_org/content/browser/renderer_host/pepper/
Dbrowser_ppapi_host_test.cc11 BrowserPpapiHostTest::BrowserPpapiHostTest() : sink_() { in BrowserPpapiHostTest()
13 new BrowserPpapiHostImpl(&sink_, in BrowserPpapiHostTest()
Dbrowser_ppapi_host_test.h24 ppapi::proxy::ResourceMessageTestSink& sink() { return sink_; } in sink()
28 ppapi::proxy::ResourceMessageTestSink sink_;
/external/chromium_org/device/serial/
Ddata_sender.cc68 : sink_(sink.Pass()), in DataSender()
71 sink_.set_error_handler(this); in DataSender()
79 sink_->Init(remote_handle.Pass()); in DataSender()
80 sink_.set_client(this); in DataSender()
110 sink_->Cancel(error); in Cancel()
/external/chromium_org/content/renderer/pepper/
Dpepper_device_enumeration_host_helper_unittest.cc78 : ppapi_host_(&sink_, ppapi::PpapiPermissions()), in PepperDeviceEnumerationHostHelperTest()
103 ASSERT_TRUE(sink_.GetFirstResourceReplyMatching( in CheckNotifyDeviceChangeMessage()
107 sink_.ClearMessages(); in CheckNotifyDeviceChangeMessage()
121 ppapi::proxy::ResourceMessageTestSink sink_; member in content::__anonf9f61afd0111::PepperDeviceEnumerationHostHelperTest
164 ASSERT_TRUE(sink_.GetFirstResourceReplyMatching( in TEST_F()
/external/chromium_org/media/base/
Daudio_renderer_mixer_unittest.cc53 sink_ = new MockAudioRendererSink(); in AudioRendererMixerTest()
54 EXPECT_CALL(*sink_.get(), Start()); in AudioRendererMixerTest()
55 EXPECT_CALL(*sink_.get(), Stop()); in AudioRendererMixerTest()
58 input_parameters_, output_parameters_, sink_)); in AudioRendererMixerTest()
59 mixer_callback_ = sink_->callback(); in AudioRendererMixerTest()
274 scoped_refptr<MockAudioRendererSink> sink_; member in media::AudioRendererMixerTest
433 EXPECT_CALL(*sink_.get(), Pause()).Times(2) in TEST_P()
449 EXPECT_CALL(*sink_.get(), Play()); in TEST_P()

123