Home
last modified time | relevance | path

Searched refs:delegate (Results 1 – 25 of 54) sorted by relevance

123

/system/update_engine/common/
Dhttp_fetcher_unittest.cc479 HttpFetcherTestDelegate delegate; in TYPED_TEST() local
481 fetcher->set_delegate(&delegate); in TYPED_TEST()
491 EXPECT_EQ(0, delegate.times_transfer_terminated_called_); in TYPED_TEST()
495 HttpFetcherTestDelegate delegate; in TYPED_TEST() local
497 fetcher->set_delegate(&delegate); in TYPED_TEST()
507 EXPECT_EQ(0, delegate.times_transfer_terminated_called_); in TYPED_TEST()
515 HttpFetcherTestDelegate delegate; in TYPED_TEST() local
518 delegate.is_expect_error_ = true; in TYPED_TEST()
521 fetcher->set_delegate(&delegate); in TYPED_TEST()
533 EXPECT_EQ(0, delegate.times_received_bytes_called_); in TYPED_TEST()
[all …]
Daction_processor.h82 ActionProcessorDelegate* delegate() const { return delegate_; } in delegate() function
83 void set_delegate(ActionProcessorDelegate* delegate) { delegate_ = delegate; } in set_delegate() argument
Dhttp_fetcher.h58 void set_delegate(HttpFetcherDelegate* delegate) { delegate_ = delegate; } in set_delegate() argument
59 HttpFetcherDelegate* delegate() const { return delegate_; } in delegate() function
/system/bt/service/test/
Dipc_linux_unittest.cc157 TestDelegate delegate; in TEST_F() local
158 EXPECT_FALSE(ipc_manager_->Start(ipc::IPCManager::TYPE_LINUX, &delegate)); in TEST_F()
160 EXPECT_EQ(0, delegate.started_count()); in TEST_F()
161 EXPECT_EQ(0, delegate.stopped_count()); in TEST_F()
165 TestDelegate delegate; in TEST_F() local
166 EXPECT_TRUE(ipc_manager_->Start(ipc::IPCManager::TYPE_LINUX, &delegate)); in TEST_F()
174 EXPECT_EQ(1, delegate.started_count()); in TEST_F()
175 EXPECT_EQ(0, delegate.stopped_count()); in TEST_F()
182 EXPECT_EQ(1, delegate.stopped_count()); in TEST_F()
186 TestDelegate delegate; in TEST_F() local
[all …]
Da2dp_sink_unittest.cc235 TestDelegate delegate; in TEST_F() local
236 a2dp_sink_->SetDelegate(&delegate); in TEST_F()
241 EXPECT_EQ(0, delegate.connection_state().count); in TEST_F()
244 EXPECT_EQ(1, delegate.connection_state().count); in TEST_F()
245 EXPECT_EQ(kTestAddr, delegate.connection_state().device_address); in TEST_F()
246 EXPECT_EQ(kConnectionState, delegate.connection_state().state); in TEST_F()
250 EXPECT_EQ(0, delegate.audio_state().count); in TEST_F()
253 EXPECT_EQ(1, delegate.audio_state().count); in TEST_F()
254 EXPECT_EQ(kTestAddr, delegate.audio_state().device_address); in TEST_F()
255 EXPECT_EQ(kAudioState, delegate.audio_state().state); in TEST_F()
[all …]
Da2dp_source_unittest.cc210 TestDelegate delegate; in TEST_F() local
211 a2dp_source_->SetDelegate(&delegate); in TEST_F()
216 EXPECT_EQ(0, delegate.connection_state().count); in TEST_F()
219 EXPECT_EQ(1, delegate.connection_state().count); in TEST_F()
220 EXPECT_EQ(kTestAddr, delegate.connection_state().device_address); in TEST_F()
221 EXPECT_EQ(kConnectionState, delegate.connection_state().state); in TEST_F()
225 EXPECT_EQ(0, delegate.audio_state().count); in TEST_F()
228 EXPECT_EQ(1, delegate.audio_state().count); in TEST_F()
229 EXPECT_EQ(kTestAddr, delegate.audio_state().device_address); in TEST_F()
230 EXPECT_EQ(kAudioState, delegate.audio_state().state); in TEST_F()
[all …]
Dlow_energy_scanner_unittest.cc291 TestDelegate delegate; in TEST_F() local
292 le_scanner_->SetDelegate(&delegate); in TEST_F()
294 EXPECT_EQ(0, delegate.scan_result_count()); in TEST_F()
312 EXPECT_EQ(0, delegate.scan_result_count()); in TEST_F()
326 EXPECT_EQ(1, delegate.scan_result_count()); in TEST_F()
327 EXPECT_EQ(kTestAddressStr, delegate.last_scan_result().device_address()); in TEST_F()
328 EXPECT_EQ(kTestRssi, delegate.last_scan_result().rssi()); in TEST_F()
329 EXPECT_EQ(3U, delegate.last_scan_result().scan_record().size()); in TEST_F()
333 EXPECT_EQ(2, delegate.scan_result_count()); in TEST_F()
334 EXPECT_EQ(kTestAddressStr, delegate.last_scan_result().device_address()); in TEST_F()
[all …]
Dstub_ipc_handler_binder.cc26 IPCManager::Delegate* delegate) in IPCHandlerBinder() argument
27 : IPCHandler(adapter, delegate) { in IPCHandlerBinder()
Dlow_energy_client_unittest.cc260 TestDelegate delegate; in TEST_F() local
261 le_client_->SetDelegate(&delegate); in TEST_F()
278 EXPECT_EQ(1, delegate.connection_state_count()); in TEST_F()
293 EXPECT_EQ(2, delegate.connection_state_count()); in TEST_F()
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action_unittest.cc143 FilesystemVerifierActionTestDelegate delegate; in DoTest() local
144 processor_.set_delegate(&delegate); in DoTest()
159 bool is_delegate_ran = delegate.ran(); in DoTest()
163 EXPECT_EQ(ErrorCode::kError, delegate.code()); in DoTest()
164 return (ErrorCode::kError == delegate.code()); in DoTest()
168 EXPECT_EQ(expected_exit_code, delegate.code()); in DoTest()
169 return (expected_exit_code == delegate.code()); in DoTest()
171 EXPECT_EQ(ErrorCode::kSuccess, delegate.code()); in DoTest()
184 bool is_install_plan_eq = (*delegate.install_plan_ == install_plan); in DoTest()
233 FilesystemVerifierActionTest2Delegate delegate; in TEST_F() local
[all …]
Ddownload_action.h104 DownloadActionDelegate* delegate() const { return delegate_; } in delegate() function
105 void set_delegate(DownloadActionDelegate* delegate) { delegate_ = delegate; } in set_delegate() argument
Dfilesystem_verifier_action.h73 void set_delegate(FilesystemVerifyDelegate* delegate) { in set_delegate() argument
74 this->delegate_ = delegate; in set_delegate()
Dpostinstall_runner_action.h61 void set_delegate(DelegateInterface* delegate) { delegate_ = delegate; } in set_delegate() argument
Ddownload_action_unittest.cc184 DownloadActionTestProcessorDelegate delegate; in TestWithData() local
185 delegate.expected_code_ = in TestWithData()
187 delegate.expected_data_ = brillo::Blob(data.begin() + 1, data.end()); in TestWithData()
188 delegate.path_ = output_temp_file.path(); in TestWithData()
190 processor.set_delegate(&delegate); in TestWithData()
382 TerminateEarlyTestProcessorDelegate delegate; in TestTerminateEarly() local
384 processor.set_delegate(&delegate); in TestTerminateEarly()
496 PassObjectOutTestProcessorDelegate delegate; in TEST() local
497 processor.set_delegate(&delegate); in TEST()
510 EXPECT_EQ(true, delegate.did_test_action_run_); in TEST()
/system/bt/service/ipc/binder/
Dipc_handler_binder.cc39 IPCManager::Delegate* delegate) in IPCHandlerBinder() argument
40 : IPCHandler(adapter, delegate) {} in IPCHandlerBinder()
58 if (delegate()) { in Run()
76 if (delegate()) delegate()->OnIPCHandlerStarted(IPCManager::TYPE_BINDER); in NotifyStarted()
Dremote_callback_map.h64 Delegate* delegate = nullptr);
85 RemoteCallbackMap<K, V>* owner, Delegate* delegate);
128 Delegate* delegate) { in Register() argument
137 new CallbackDeathRecipient(key, callback, this, delegate)); in Register()
218 Delegate* delegate) in CallbackDeathRecipient() argument
219 : key_(key), callback_(callback), owner_(owner), delegate_(delegate) { in CallbackDeathRecipient()
Dipc_handler_binder.h29 IPCHandlerBinder(bluetooth::Adapter* adapter, IPCManager::Delegate* delegate);
/system/bt/service/ipc/
Dipc_handler_linux.cc32 IPCManager::Delegate* delegate) in IPCHandlerLinux() argument
33 : IPCHandler(adapter, delegate), in IPCHandlerLinux()
184 if (!delegate()) return; in NotifyStartedOnOriginThread()
192 if (delegate()) delegate()->OnIPCHandlerStarted(IPCManager::TYPE_LINUX); in NotifyStartedOnCurrentThread()
196 if (!delegate()) return; in NotifyStoppedOnOriginThread()
204 if (delegate()) delegate()->OnIPCHandlerStopped(IPCManager::TYPE_LINUX); in NotifyStoppedOnCurrentThread()
Dipc_manager.cc40 bool IPCManager::Start(Type type, Delegate* delegate) { in Start() argument
48 linux_handler_ = new IPCHandlerLinux(adapter_, delegate); in Start()
62 binder_handler_ = new IPCHandlerBinder(adapter_, delegate); in Start()
75 dbus_handler_ = new IPCHandlerDBus(adapter_, delegate); in Start()
Dipc_handler.cc24 IPCManager::Delegate* delegate) in IPCHandler() argument
25 : adapter_(adapter), delegate_(delegate) { in IPCHandler()
Dipc_handler.h34 IPCHandler(bluetooth::Adapter* adapter, IPCManager::Delegate* delegate);
48 IPCManager::Delegate* delegate() const { return delegate_; } in delegate() function
/system/nvram/messages/
Dio.cpp135 NestedInputStreamBuffer::NestedInputStreamBuffer(InputStreamBuffer* delegate, in NestedInputStreamBuffer() argument
137 : InputStreamBuffer(delegate->pos_, ClampEnd(delegate, size)), in NestedInputStreamBuffer()
138 delegate_(delegate), in NestedInputStreamBuffer()
154 const uint8_t* NestedInputStreamBuffer::ClampEnd(InputStreamBuffer* delegate, in ClampEnd() argument
156 NVRAM_CHECK(delegate->pos_ <= delegate->end_); in ClampEnd()
157 return size < static_cast<size_t>(delegate->end_ - delegate->pos_) in ClampEnd()
158 ? delegate->pos_ + size in ClampEnd()
159 : delegate->end_; in ClampEnd()
/system/netd/server/
DPhysicalNetwork.cpp31 PhysicalNetwork::Delegate* delegate) { in addToDefault() argument
36 if (int ret = delegate->addFallthrough(interface, permission)) { in addToDefault()
43 Permission permission, PhysicalNetwork::Delegate* delegate) { in removeFromDefault() argument
49 if (int ret = delegate->removeFallthrough(interface, permission)) { in removeFromDefault()
59 PhysicalNetwork::PhysicalNetwork(unsigned netId, PhysicalNetwork::Delegate* delegate) : in PhysicalNetwork() argument
60 Network(netId), mDelegate(delegate), mPermission(PERMISSION_NONE), mIsDefault(false) { in PhysicalNetwork()
/system/bt/service/ipc/dbus/
Dipc_handler_dbus.cc30 IPCManager::Delegate* delegate) in IPCHandlerDBus() argument
31 : IPCHandler(adapter, delegate) {} in IPCHandlerDBus()
Dipc_handler_dbus.h31 IPCHandlerDBus(bluetooth::Adapter* adapter, IPCManager::Delegate* delegate);

123