Home
last modified time | relevance | path

Searched refs:delegate_ (Results 1 – 25 of 39) 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.cc74 CHECK(delegate_); in SendData()
75 delegate_->ReceivedBytes(this, &data_[sent_size_ - chunk_size], chunk_size); in SendData()
96 delegate_->TransferTerminated(this); in TerminateTransfer()
135 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
Dmock_http_fetcher.h68 if (delegate_) in SetOffset()
69 delegate_->SeekToOffset(offset); in SetOffset()
/system/bt/service/
Davrcp_target.cc113 delegate_ = delegate; in SetDelegate()
249 if (delegate_) in RemoteFeaturesCallback()
250 delegate_->OnGetRemoteFeatures(str_addr, static_cast<int32_t>(features)); in RemoteFeaturesCallback()
256 if (delegate_) delegate_->OnGetPlayStatus(str_addr); in GetPlayStatusCallback()
262 if (delegate_) delegate_->OnListPlayerAppAttr(str_addr); in ListPlayerAppAttrCallback()
269 if (delegate_) in ListPlayerAppValuesCallback()
270 delegate_->OnListPlayerAppValues(str_addr, static_cast<int32_t>(attr_id)); in ListPlayerAppValuesCallback()
284 if (delegate_) delegate_->OnGetPlayerAppValue(str_addr, attr_vec); in GetPlayerAppValueCallback()
298 if (delegate_) delegate_->OnGetPlayerAppAttrsText(str_addr, attr_vec); in GetPlayerAppAttrsTextCallback()
312 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.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.cc34 : app_identifier_(uuid), server_id_(server_id), delegate_(nullptr) {} in GattServer()
53 delegate_ = delegate; in SetDelegate()
275 if (delegate_) in ConnectionCallback()
276 delegate_->OnConnectionStateChanged(this, device_address, false); in ConnectionCallback()
293 if (delegate_) in ConnectionCallback()
294 delegate_->OnConnectionStateChanged(this, device_address, true); in ConnectionCallback()
361 if (!delegate_) { in RequestReadCharacteristicCallback()
369 delegate_->OnCharacteristicReadRequest(this, device_address, trans_id, offset, in RequestReadCharacteristicCallback()
394 if (!delegate_) { in RequestReadDescriptorCallback()
402 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/payload_consumer/
Dfilesystem_verifier_action.h74 this->delegate_ = delegate; in set_delegate()
77 return this->delegate_; in get_delegate()
145 FilesystemVerifyDelegate* delegate_{};
Ddownload_action.h104 DownloadActionDelegate* delegate() const { return delegate_; } in delegate()
105 void set_delegate(DownloadActionDelegate* delegate) { delegate_ = delegate; } in set_delegate()
171 DownloadActionDelegate* delegate_; variable
Ddownload_action.cc56 delegate_(nullptr), in DownloadAction()
243 delegate_, in StartDownloading()
265 delegate_, in StartDownloading()
373 if (delegate_ && download_active_) { in ReceivedBytes()
374 delegate_->BytesReceived(length, bytes_downloaded_total, bytes_total_); in ReceivedBytes()
434 if (delegate_) in TransferComplete()
435 delegate_->DownloadComplete(); in TransferComplete()
Dpostinstall_runner_action.h61 void set_delegate(DelegateInterface* delegate) { delegate_ = delegate; } in set_delegate()
121 DelegateInterface* delegate_{nullptr};
Ddownload_action_unittest.cc577 delegate_.expected_data_ = in StartDownload()
579 delegate_.path_ = output_temp_file.path(); in StartDownload()
580 processor_.set_delegate(&delegate_); in StartDownload()
600 DownloadActionTestProcessorDelegate delegate_; member in chromeos_update_engine::P2PDownloadActionTest
626 string file_id = delegate_.p2p_file_id_; in TEST_F()
644 EXPECT_EQ(delegate_.p2p_file_id_, ""); in TEST_F()
668 EXPECT_EQ(delegate_.p2p_file_id_, file_id); in TEST_F()
/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/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.cc368 if (delegate_) { in ForceTransferTermination()
370 delegate_->TransferTerminated(this); in ForceTransferTermination()
555 if (delegate_) in CurlPerformOnce()
556 delegate_->TransferComplete(this, false); // signal fail in CurlPerformOnce()
569 if (delegate_) in CurlPerformOnce()
570 delegate_->TransferComplete(this, false); // signal fail in CurlPerformOnce()
583 if (delegate_) { in CurlPerformOnce()
585 delegate_->TransferComplete(this, success); in CurlPerformOnce()
620 if (delegate_) { in LibcurlWrite()
622 auto should_terminate = !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()

12