/system/update_engine/common/ |
D | http_fetcher_unittest.cc | 493 HttpFetcherTestDelegate delegate; in TYPED_TEST() local 495 fetcher->set_delegate(&delegate); in TYPED_TEST() 505 EXPECT_EQ(0, delegate.times_transfer_terminated_called_); in TYPED_TEST() 509 HttpFetcherTestDelegate delegate; in TYPED_TEST() local 511 fetcher->set_delegate(&delegate); in TYPED_TEST() 521 EXPECT_EQ(0, delegate.times_transfer_terminated_called_); in TYPED_TEST() 529 HttpFetcherTestDelegate delegate; in TYPED_TEST() local 532 delegate.is_expect_error_ = true; in TYPED_TEST() 535 fetcher->set_delegate(&delegate); in TYPED_TEST() 547 EXPECT_EQ(0, delegate.times_received_bytes_called_); in TYPED_TEST() [all …]
|
D | action_processor.h | 82 ActionProcessorDelegate* delegate() const { return delegate_; } in delegate() function 83 void set_delegate(ActionProcessorDelegate* delegate) { delegate_ = delegate; } in set_delegate() argument
|
D | download_action.h | 105 DownloadActionDelegate* delegate() const { return delegate_; } in delegate() function 106 void set_delegate(DownloadActionDelegate* delegate) { delegate_ = delegate; } in set_delegate() argument
|
D | http_fetcher.h | 58 void set_delegate(HttpFetcherDelegate* delegate) { delegate_ = delegate; } in set_delegate() argument 59 HttpFetcherDelegate* delegate() const { return delegate_; } in delegate() function
|
/system/bt/service/test/ |
D | ipc_linux_unittest.cc | 159 TestDelegate delegate; in TEST_F() local 160 EXPECT_FALSE(ipc_manager_->Start(ipc::IPCManager::TYPE_LINUX, &delegate)); in TEST_F() 162 EXPECT_EQ(0, delegate.started_count()); in TEST_F() 163 EXPECT_EQ(0, delegate.stopped_count()); in TEST_F() 167 TestDelegate delegate; in TEST_F() local 168 EXPECT_TRUE(ipc_manager_->Start(ipc::IPCManager::TYPE_LINUX, &delegate)); in TEST_F() 176 EXPECT_EQ(1, delegate.started_count()); in TEST_F() 177 EXPECT_EQ(0, delegate.stopped_count()); in TEST_F() 184 EXPECT_EQ(1, delegate.stopped_count()); in TEST_F() 188 TestDelegate delegate; in TEST_F() local [all …]
|
D | a2dp_sink_unittest.cc | 235 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 …]
|
D | a2dp_source_unittest.cc | 210 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 …]
|
D | low_energy_scanner_unittest.cc | 297 TestDelegate delegate; in TEST_F() local 298 le_scanner_->SetDelegate(&delegate); in TEST_F() 300 EXPECT_EQ(0, delegate.scan_result_count()); in TEST_F() 318 EXPECT_EQ(0, delegate.scan_result_count()); in TEST_F() 332 EXPECT_EQ(1, delegate.scan_result_count()); in TEST_F() 333 EXPECT_EQ(kTestAddressStr, delegate.last_scan_result().device_address()); in TEST_F() 334 EXPECT_EQ(kTestRssi, delegate.last_scan_result().rssi()); in TEST_F() 335 EXPECT_EQ(3U, delegate.last_scan_result().scan_record().size()); in TEST_F() 339 EXPECT_EQ(2, delegate.scan_result_count()); in TEST_F() 340 EXPECT_EQ(kTestAddressStr, delegate.last_scan_result().device_address()); in TEST_F() [all …]
|
D | stub_ipc_handler_binder.cc | 26 IPCManager::Delegate* delegate) in IPCHandlerBinder() argument 27 : IPCHandler(adapter, delegate) { in IPCHandlerBinder()
|
/system/bt/service/ipc/binder/ |
D | ipc_handler_binder.cc | 39 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()
|
D | remote_callback_map.h | 64 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()
|
D | ipc_handler_binder.h | 29 IPCHandlerBinder(bluetooth::Adapter* adapter, IPCManager::Delegate* delegate);
|
/system/update_engine/payload_consumer/ |
D | filesystem_verifier_action_unittest.cc | 303 FilesystemVerifierActionTestDelegate delegate; in DoTest() local 304 processor_.set_delegate(&delegate); in DoTest() 315 bool is_delegate_ran = delegate.ran(); in DoTest() 319 EXPECT_EQ(ErrorCode::kError, delegate.code()); in DoTest() 320 return (ErrorCode::kError == delegate.code()); in DoTest() 324 EXPECT_EQ(expected_exit_code, delegate.code()); in DoTest() 325 return (expected_exit_code == delegate.code()); in DoTest() 327 EXPECT_EQ(ErrorCode::kSuccess, delegate.code()); in DoTest() 340 bool is_install_plan_eq = (*delegate.install_plan_ == install_plan_); in DoTest() 395 FilesystemVerifierActionTest2Delegate delegate; in TEST_F() local [all …]
|
D | postinstall_runner_action.h | 61 void set_delegate(DelegateInterface* delegate) { delegate_ = delegate; } in set_delegate() argument
|
D | filesystem_verifier_action.h | 76 void set_delegate(FilesystemVerifyDelegate* delegate) { in set_delegate() argument 77 this->delegate_ = delegate; in set_delegate()
|
/system/bt/service/ipc/ |
D | ipc_handler_linux.cc | 33 IPCManager::Delegate* delegate) in IPCHandlerLinux() argument 34 : IPCHandler(adapter, delegate), in IPCHandlerLinux() 187 if (!delegate()) return; in NotifyStartedOnOriginThread() 195 if (delegate()) delegate()->OnIPCHandlerStarted(IPCManager::TYPE_LINUX); in NotifyStartedOnCurrentThread() 199 if (!delegate()) return; in NotifyStoppedOnOriginThread() 207 if (delegate()) delegate()->OnIPCHandlerStopped(IPCManager::TYPE_LINUX); in NotifyStoppedOnCurrentThread()
|
D | ipc_manager.cc | 40 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()
|
D | ipc_handler.cc | 24 IPCManager::Delegate* delegate) in IPCHandler() argument 25 : adapter_(adapter), delegate_(delegate) { in IPCHandler()
|
D | ipc_handler.h | 34 IPCHandler(bluetooth::Adapter* adapter, IPCManager::Delegate* delegate); 48 IPCManager::Delegate* delegate() const { return delegate_; } in delegate() function
|
/system/nvram/messages/ |
D | io.cpp | 135 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/ |
D | PhysicalNetwork.cpp | 31 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/update_engine/cros/ |
D | download_action_chromeos.h | 79 DownloadActionDelegate* delegate() const { return delegate_; } in delegate() function 80 void set_delegate(DownloadActionDelegate* delegate) { delegate_ = delegate; } in set_delegate() argument
|
D | download_action_chromeos_unittest.cc | 182 DownloadActionTestProcessorDelegate delegate; in TestWithData() local 183 delegate.expected_code_ = in TestWithData() 185 delegate.expected_data_ = brillo::Blob(data.begin() + 1, data.end()); in TestWithData() 186 delegate.path_ = output_temp_file.path(); in TestWithData() 188 processor.set_delegate(&delegate); in TestWithData() 378 TerminateEarlyTestProcessorDelegate delegate; in TestTerminateEarly() local 380 processor.set_delegate(&delegate); in TestTerminateEarly() 491 PassObjectOutTestProcessorDelegate delegate; in TEST() local 492 processor.set_delegate(&delegate); in TEST() 505 EXPECT_EQ(true, delegate.did_test_action_run_); in TEST()
|
/system/bt/service/ipc/dbus/ |
D | ipc_handler_dbus.cc | 30 IPCManager::Delegate* delegate) in IPCHandlerDBus() argument 31 : IPCHandler(adapter, delegate) {} in IPCHandlerDBus()
|
/system/update_engine/update_manager/ |
D | update_time_restrictions_monitor.cc | 58 DevicePolicyProvider* device_policy_provider, Delegate* delegate) in UpdateTimeRestrictionsMonitor() argument 63 delegate_(delegate),
|