Home
last modified time | relevance | path

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

12

/system/update_engine/common/
Dfile_fetcher.cc66 if (delegate_) in BeginTransfer()
67 delegate_->TransferComplete(this, false); in BeginTransfer()
90 if (delegate_) in BeginTransfer()
91 delegate_->TransferComplete(this, false); in BeginTransfer()
105 if (delegate_) { in TerminateTransfer()
107 delegate_->TransferTerminated(this); in TerminateTransfer()
137 if (delegate_) in ScheduleRead()
138 delegate_->TransferComplete(this, false); in ScheduleRead()
146 if (delegate_) in OnReadDoneCallback()
147 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()
106 if (delegate_ && !delegate_->ReceivedBytes(this, bytes, next_size)) in ReceivedBytes()
134 if (delegate_) in TransferEnded()
135 delegate_->TransferTerminated(this); in TransferEnded()
147 if (delegate_) in TransferEnded()
[all …]
Daction_processor.cc68 if (delegate_) in StopProcessing()
69 delegate_->ProcessingStopped(this); in StopProcessing()
111 if (delegate_) in ActionComplete()
112 delegate_->ActionCompleted(this, actionptr, code); in ActionComplete()
136 if (delegate_) { in StartNextActionOrFinish()
137 delegate_->ProcessingDone(this, code); in StartNextActionOrFinish()
Daction_processor_unittest.cc98 action_processor_.set_delegate(&delegate_); in SetUp()
113 MyActionProcessorDelegate delegate_{&action_processor_}; member in chromeos_update_engine::ActionProcessorTest
139 EXPECT_TRUE(delegate_.processing_done_called_); in TEST_F()
140 EXPECT_TRUE(delegate_.action_completed_called_); in TEST_F()
147 EXPECT_TRUE(delegate_.processing_stopped_called_); in TEST_F()
148 EXPECT_FALSE(delegate_.action_completed_called_); in TEST_F()
244 EXPECT_FALSE(delegate_.processing_done_called_); in TEST_F()
248 EXPECT_TRUE(delegate_.processing_done_called_); in TEST_F()
249 EXPECT_FALSE(delegate_.processing_stopped_called_); in TEST_F()
264 EXPECT_TRUE(delegate_.processing_stopped_called_); in TEST_F()
[all …]
Dmock_http_fetcher.cc77 CHECK(delegate_); in SendData()
78 delegate_->ReceivedBytes( in SendData()
103 if (delegate_) { in TerminateTransfer()
104 delegate_->TransferTerminated(this); in TerminateTransfer()
144 delegate_->TransferComplete(this, !fail_transfer_); in SignalTransferComplete()
Daction_processor.h82 ActionProcessorDelegate* delegate() const { return delegate_; } in delegate()
83 void set_delegate(ActionProcessorDelegate* delegate) { delegate_ = delegate; } in set_delegate()
118 ActionProcessorDelegate* delegate_{nullptr};
Dhttp_fetcher.h52 delegate_(nullptr), in HttpFetcher()
58 void set_delegate(HttpFetcherDelegate* delegate) { delegate_ = delegate; } in set_delegate()
59 HttpFetcherDelegate* delegate() const { return delegate_; } in delegate()
173 HttpFetcherDelegate* delegate_; variable
Ddownload_action.h105 DownloadActionDelegate* delegate() const { return delegate_; } in delegate()
106 void set_delegate(DownloadActionDelegate* delegate) { delegate_ = delegate; } in set_delegate()
143 DownloadActionDelegate* delegate_; variable
/system/bt/service/
Davrcp_target.cc114 delegate_ = delegate; in SetDelegate()
250 if (delegate_) in RemoteFeaturesCallback()
251 delegate_->OnGetRemoteFeatures(str_addr, static_cast<int32_t>(features)); in RemoteFeaturesCallback()
257 if (delegate_) delegate_->OnGetPlayStatus(str_addr); in GetPlayStatusCallback()
263 if (delegate_) delegate_->OnListPlayerAppAttr(str_addr); in ListPlayerAppAttrCallback()
270 if (delegate_) in ListPlayerAppValuesCallback()
271 delegate_->OnListPlayerAppValues(str_addr, static_cast<int32_t>(attr_id)); in ListPlayerAppValuesCallback()
285 if (delegate_) delegate_->OnGetPlayerAppValue(str_addr, attr_vec); in GetPlayerAppValueCallback()
299 if (delegate_) delegate_->OnGetPlayerAppAttrsText(str_addr, attr_vec); in GetPlayerAppAttrsTextCallback()
313 if (delegate_) in GetPlayerAppValuesTextCallback()
[all …]
Da2dp_sink.cc45 delegate_ = delegate; in SetDelegate()
116 if (delegate_) in ConnectionStateCallback()
117 delegate_->OnConnectionState(device_address, static_cast<int>(state)); in ConnectionStateCallback()
126 if (delegate_) in AudioStateCallback()
127 delegate_->OnAudioState(device_address, static_cast<int>(state)); in AudioStateCallback()
136 if (delegate_) in AudioConfigCallback()
137 delegate_->OnAudioConfig(device_address, sample_rate, channel_count); in AudioConfigCallback()
Davrcp_control.cc49 delegate_ = delegate; in SetDelegate()
140 if (delegate_) in ConnectionStateCallback()
141 delegate_->OnConnectionState(rc_connect, bt_connect, device_address); in ConnectionStateCallback()
148 if (delegate_) in CtrlSetabsvolCmdCallback()
149 delegate_->OnSetAbsVolumeRequest(device_address, abs_vol, label); in CtrlSetabsvolCmdCallback()
156 if (delegate_) in CtrlRegisternotificationAbsVolCallback()
157 delegate_->OnRegisterForAbsVolumeCallbackRequest(device_address, label); in CtrlRegisternotificationAbsVolCallback()
212 if (delegate_) delegate_->OnTrackChanged(device_address, attr); in CtrlTrackChangedCallback()
Dlow_energy_client.cc42 delegate_(nullptr) {} in LowEnergyClient()
129 delegate_ = delegate; in SetDelegate()
153 if (delegate_) in ConnectCallback()
154 delegate_->OnConnectionState(this, status, BtAddrString(&bda).c_str(), in ConnectCallback()
171 if (delegate_) in DisconnectCallback()
172 delegate_->OnConnectionState(this, status, BtAddrString(&bda).c_str(), in DisconnectCallback()
195 if (delegate_) delegate_->OnMtuChanged(this, status, addr.c_str(), mtu); in MtuChangedCallback()
Dgatt_server.cc33 : app_identifier_(uuid), server_id_(server_id), delegate_(nullptr) {} in GattServer()
52 delegate_ = delegate; in SetDelegate()
273 if (delegate_) in ConnectionCallback()
274 delegate_->OnConnectionStateChanged(this, device_address, false); in ConnectionCallback()
291 if (delegate_) in ConnectionCallback()
292 delegate_->OnConnectionStateChanged(this, device_address, true); in ConnectionCallback()
359 if (!delegate_) { in RequestReadCharacteristicCallback()
367 delegate_->OnCharacteristicReadRequest(this, device_address, trans_id, offset, in RequestReadCharacteristicCallback()
392 if (!delegate_) { in RequestReadDescriptorCallback()
400 delegate_->OnDescriptorReadRequest(this, device_address, trans_id, offset, in RequestReadDescriptorCallback()
[all …]
Da2dp_source.cc121 delegate_ = delegate; in SetDelegate()
169 if (delegate_) in ConnectionStateCallback()
170 delegate_->OnConnectionState(device_address, static_cast<int>(state)); in ConnectionStateCallback()
178 if (delegate_) in AudioStateCallback()
179 delegate_->OnAudioState(device_address, static_cast<int>(state)); in AudioStateCallback()
196 if (delegate_) in AudioConfigCallback()
197 delegate_->OnAudioConfig(device_address, codec_config, in AudioConfigCallback()
Dlow_energy_scanner.cc75 delegate_(nullptr) {} in LowEnergyScanner()
93 delegate_ = delegate; in SetDelegate()
148 if (!delegate_) return; in ScanResultCallback()
158 delegate_->OnScanResult(this, result); in ScanResultCallback()
/system/update_engine/
Ddownload_action.cc51 delegate_(nullptr) {} in DownloadAction()
132 delegate_, in StartDownloading()
153 delegate_, in StartDownloading()
217 if (delegate_ && download_active_) { in ReceivedBytes()
218 delegate_->BytesReceived(length, bytes_downloaded_total, bytes_total_); in ReceivedBytes()
250 if (delegate_) in TransferComplete()
251 delegate_->DownloadComplete(); in TransferComplete()
Dlibcurl_http_fetcher.cc367 if (delegate_) { in ForceTransferTermination()
369 delegate_->TransferTerminated(this); in ForceTransferTermination()
553 if (delegate_) in CurlPerformOnce()
554 delegate_->TransferComplete(this, false); // signal fail in CurlPerformOnce()
567 if (delegate_) in CurlPerformOnce()
568 delegate_->TransferComplete(this, false); // signal fail in CurlPerformOnce()
581 if (delegate_) { in CurlPerformOnce()
583 delegate_->TransferComplete(this, success); in CurlPerformOnce()
618 if (delegate_) { in LibcurlWrite()
620 auto should_terminate = !delegate_->ReceivedBytes(this, ptr, payload_size); in LibcurlWrite()
/system/update_engine/update_manager/
Dupdate_time_restrictions_monitor.cc63 delegate_(delegate),
65 if (device_policy_provider_ != nullptr && delegate_ != nullptr)
115 if (delegate_) in HandleRestrictedIntervalStarts()
116 delegate_->OnRestrictedIntervalStarts(); in HandleRestrictedIntervalStarts()
/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/
Dfilesystem_verifier_action.h77 this->delegate_ = delegate; in set_delegate()
80 return this->delegate_; in get_delegate()
171 FilesystemVerifyDelegate* delegate_{};
Dpostinstall_runner_action.h61 void set_delegate(DelegateInterface* delegate) { delegate_ = delegate; } in set_delegate()
124 DelegateInterface* delegate_{nullptr};
/system/update_engine/cros/
Ddownload_action_chromeos.h79 DownloadActionDelegate* delegate() const { return delegate_; } in delegate()
80 void set_delegate(DownloadActionDelegate* delegate) { delegate_ = delegate; } in set_delegate()
142 DownloadActionDelegate* delegate_; variable
Ddownload_action_chromeos.cc56 delegate_(nullptr), in DownloadActionChromeos()
244 delegate_, in StartDownloading()
266 delegate_, in StartDownloading()
375 if (delegate_ && download_active_) { in ReceivedBytes()
376 delegate_->BytesReceived(length, bytes_downloaded_total, bytes_total_); in ReceivedBytes()
437 if (delegate_) in TransferComplete()
438 delegate_->DownloadComplete(); in TransferComplete()
/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()

12