Home
last modified time | relevance | path

Searched refs:delegate_ (Results 1 – 25 of 26) sorted by relevance

12

/system/update_engine/common/
Dfile_fetcher.cc65 if (delegate_) in BeginTransfer()
66 delegate_->TransferComplete(this, false); in BeginTransfer()
81 if (delegate_) in BeginTransfer()
82 delegate_->TransferComplete(this, false); in BeginTransfer()
96 if (delegate_) { in TerminateTransfer()
98 delegate_->TransferTerminated(this); in TerminateTransfer()
128 if (delegate_) in ScheduleRead()
129 delegate_->TransferComplete(this, false); in ScheduleRead()
137 if (delegate_) in OnReadDoneCallback()
138 delegate_->TransferComplete(this, true); in OnReadDoneCallback()
[all …]
Dmulti_range_http_fetcher.cc38 if (delegate_) in BeginTransfer()
39 delegate_->TransferComplete(this, true); in BeginTransfer()
55 if (delegate_) in TerminateTransfer()
56 delegate_->TransferTerminated(this); in TerminateTransfer()
82 if (delegate_) in StartTransfer()
83 delegate_->SeekToOffset(range.offset()); in StartTransfer()
102 if (delegate_) { in ReceivedBytes()
103 delegate_->ReceivedBytes(this, bytes, next_size); in ReceivedBytes()
129 if (delegate_) in TransferEnded()
130 delegate_->TransferTerminated(this); in TransferEnded()
[all …]
Daction_processor_unittest.cc97 action_processor_.set_delegate(&delegate_); in SetUp()
110 MyActionProcessorDelegate delegate_{&action_processor_}; member in chromeos_update_engine::ActionProcessorTest
135 EXPECT_TRUE(delegate_.processing_done_called_); in TEST_F()
136 EXPECT_TRUE(delegate_.action_completed_called_); in TEST_F()
143 EXPECT_TRUE(delegate_.processing_stopped_called_); in TEST_F()
144 EXPECT_FALSE(delegate_.action_completed_called_); in TEST_F()
237 EXPECT_FALSE(delegate_.processing_done_called_); in TEST_F()
241 EXPECT_TRUE(delegate_.processing_done_called_); in TEST_F()
242 EXPECT_FALSE(delegate_.processing_stopped_called_); in TEST_F()
257 EXPECT_TRUE(delegate_.processing_stopped_called_); in TEST_F()
[all …]
Daction_processor.cc67 if (delegate_) in StopProcessing()
68 delegate_->ProcessingStopped(this); in StopProcessing()
110 if (delegate_) in ActionComplete()
111 delegate_->ActionCompleted(this, actionptr, code); in ActionComplete()
136 if (delegate_) { in StartNextActionOrFinish()
137 delegate_->ProcessingDone(this, code); in StartNextActionOrFinish()
Daction_processor.h78 ActionProcessorDelegate* delegate() const { return delegate_; } in delegate()
80 delegate_ = delegate; in set_delegate()
113 ActionProcessorDelegate* delegate_{nullptr};
Dhttp_fetcher.h50 delegate_(nullptr), in HttpFetcher()
56 void set_delegate(HttpFetcherDelegate* delegate) { delegate_ = delegate; } in set_delegate()
57 HttpFetcherDelegate* delegate() const { return delegate_; } in delegate()
155 HttpFetcherDelegate* delegate_; variable
Dmock_http_fetcher.cc63 CHECK(delegate_); in SendData()
64 delegate_->ReceivedBytes(this, &data_[sent_size_], chunk_size); in SendData()
118 delegate_->TransferTerminated(this); in TerminateTransfer()
159 delegate_->TransferComplete(this, !fail_transfer_); in SignalTransferComplete()
Dmock_http_fetcher.h68 if (delegate_) in SetOffset()
69 delegate_->SeekToOffset(offset); in SetOffset()
/system/tpm/trunks/
Dhmac_authorization_delegate_test.cc102 ASSERT_TRUE(delegate_.InitSession(session_handle_, in SetUp()
113 HmacAuthorizationDelegate delegate_; member in trunks::HmacAuthorizationDelegateFixture
117 ASSERT_TRUE(delegate_.InitSession(session_handle_, in TEST_F()
124 EXPECT_EQ(delegate_.caller_nonce_.size, original_nonce.size); in TEST_F()
125 EXPECT_EQ(0, memcmp(delegate_.caller_nonce_.buffer, original_nonce.buffer, in TEST_F()
131 EXPECT_TRUE(delegate_.GetCommandAuthorization(command_hash, false, false, in TEST_F()
135 EXPECT_EQ(delegate_.caller_nonce_.size, original_nonce.size); in TEST_F()
137 EXPECT_NE(0, memcmp(delegate_.caller_nonce_.buffer, original_nonce.buffer, in TEST_F()
139 EXPECT_EQ(0, memcmp(delegate_.caller_nonce_.buffer, auth_command.nonce.buffer, in TEST_F()
143 original_nonce = delegate_.caller_nonce_; in TEST_F()
[all …]
Dsession_manager_test.cc43 delegate_ = new HmacAuthorizationDelegate(); in SessionManagerTest()
75 HmacAuthorizationDelegate* delegate_; member in trunks::SessionManagerTest
115 session_type, handle, "", false, delegate_)); in TEST_F()
126 delegate_)); in TEST_F()
133 delegate_)); in TEST_F()
147 delegate_)); in TEST_F()
164 session_type, handle, "", false, delegate_)); in TEST_F()
/system/bt/service/
Dlow_energy_client.cc39 delegate_(nullptr) {} in LowEnergyClient()
126 delegate_ = delegate; in SetDelegate()
150 if (delegate_) in ConnectCallback()
151 delegate_->OnConnectionState(this, status, BtAddrString(&bda).c_str(), in ConnectCallback()
168 if (delegate_) in DisconnectCallback()
169 delegate_->OnConnectionState(this, status, BtAddrString(&bda).c_str(), in DisconnectCallback()
192 if (delegate_) delegate_->OnMtuChanged(this, status, addr.c_str(), mtu); in MtuChangedCallback()
Dgatt_server.cc32 : app_identifier_(uuid), server_id_(server_id), delegate_(nullptr) {} in GattServer()
51 delegate_ = delegate; in SetDelegate()
271 if (delegate_) in ConnectionCallback()
272 delegate_->OnConnectionStateChanged(this, device_address, false); in ConnectionCallback()
289 if (delegate_) in ConnectionCallback()
290 delegate_->OnConnectionStateChanged(this, device_address, true); in ConnectionCallback()
357 if (!delegate_) { in RequestReadCharacteristicCallback()
365 delegate_->OnCharacteristicReadRequest(this, device_address, trans_id, offset, in RequestReadCharacteristicCallback()
390 if (!delegate_) { in RequestReadDescriptorCallback()
398 delegate_->OnDescriptorReadRequest(this, device_address, trans_id, offset, in RequestReadDescriptorCallback()
[all …]
Dlow_energy_scanner.cc74 delegate_(nullptr) {} in LowEnergyScanner()
92 delegate_ = delegate; in SetDelegate()
147 if (!delegate_) return; in ScanResultCallback()
157 delegate_->OnScanResult(this, result); in ScanResultCallback()
Dlow_energy_scanner.h121 Delegate* delegate_; variable
Dlow_energy_client.h128 Delegate* delegate_; variable
/system/bt/service/ipc/
Dipc_handler.h48 IPCManager::Delegate* delegate() const { return delegate_; } in delegate()
57 IPCManager::Delegate* delegate_; variable
Dipc_handler.cc25 : adapter_(adapter), delegate_(delegate) { in IPCHandler()
/system/update_engine/payload_consumer/
Ddownload_action.h105 DownloadActionDelegate* delegate() const { return delegate_; } in delegate()
107 delegate_ = delegate; in set_delegate()
168 DownloadActionDelegate* delegate_; variable
Dpostinstall_runner_action.h59 void set_delegate(DelegateInterface* delegate) { delegate_ = delegate; } in set_delegate()
122 DelegateInterface* delegate_{nullptr};
Ddownload_action.cc54 delegate_(nullptr), in DownloadAction()
244 prefs_, boot_control_, hardware_, delegate_, &install_plan_, payload_)); in StartDownloading()
320 if (delegate_ && download_active_) { in ReceivedBytes()
321 delegate_->BytesReceived(length, bytes_received_, bytes_total_); in ReceivedBytes()
Dpostinstall_runner_action.cc260 if (!delegate_) in ReportProgress()
263 delegate_->ProgressUpdate(1.); in ReportProgress()
273 delegate_->ProgressUpdate(postinst_action_progress); in ReportProgress()
/system/nvram/messages/
Dio.cpp138 delegate_(delegate), in NestedInputStreamBuffer()
142 remaining_ -= end_ - delegate_->pos_; in Advance()
144 delegate_->pos_ = end_; in Advance()
147 bool status = delegate_->Advance(); in Advance()
148 pos_ = delegate_->pos_; in Advance()
149 end_ = ClampEnd(delegate_, remaining_); in Advance()
/system/update_engine/
Dlibcurl_http_fetcher.cc373 if (delegate_) { in ForceTransferTermination()
375 delegate_->TransferTerminated(this); in ForceTransferTermination()
483 if (delegate_) in CurlPerformOnce()
484 delegate_->TransferComplete(this, false); // signal fail in CurlPerformOnce()
497 if (delegate_) in CurlPerformOnce()
498 delegate_->TransferComplete(this, false); // signal fail in CurlPerformOnce()
511 if (delegate_) { in CurlPerformOnce()
513 delegate_->TransferComplete(this, success); in CurlPerformOnce()
548 if (delegate_) in LibcurlWrite()
549 delegate_->ReceivedBytes(this, ptr, payload_size); in LibcurlWrite()
/system/bt/service/ipc/binder/
Dremote_callback_map.h96 Delegate* delegate_; // weak variable
219 : key_(key), callback_(callback), owner_(owner), delegate_(delegate) { in CallbackDeathRecipient()
242 if (delegate_) delegate_->OnRemoteCallbackRemoved(key_); in binderDied()
/system/nvram/messages/include/nvram/messages/
Dio.h99 InputStreamBuffer* delegate_; variable

12