Home
last modified time | relevance | path

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

/system/update_engine/common/
Dmulti_range_http_fetcher.cc36 if (delegate_) in BeginTransfer()
37 delegate_->TransferComplete(this, true); in BeginTransfer()
53 if (delegate_) in TerminateTransfer()
54 delegate_->TransferTerminated(this); in TerminateTransfer()
80 if (delegate_) in StartTransfer()
81 delegate_->SeekToOffset(range.offset()); in StartTransfer()
104 if (delegate_ && !delegate_->ReceivedBytes(this, bytes, next_size)) in ReceivedBytes()
132 if (delegate_) in TransferEnded()
133 delegate_->TransferTerminated(this); in TransferEnded()
145 if (delegate_) in TransferEnded()
[all …]
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 …]
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()
Dhttp_fetcher.h53 delegate_(nullptr), in HttpFetcher()
58 void set_delegate(HttpFetcherDelegate* delegate) { delegate_ = delegate; } in set_delegate()
59 HttpFetcherDelegate* delegate() const { return delegate_; } in delegate()
162 HttpFetcherDelegate* delegate_ = nullptr; variable
Daction_processor.h81 ActionProcessorDelegate* delegate() const { return delegate_; } in delegate()
82 void set_delegate(ActionProcessorDelegate* delegate) { delegate_ = delegate; } in set_delegate()
117 ActionProcessorDelegate* delegate_{nullptr};
Ddownload_action.h106 DownloadActionDelegate* delegate() const { return delegate_; } in delegate()
107 void set_delegate(DownloadActionDelegate* delegate) { delegate_ = delegate; } in set_delegate()
144 DownloadActionDelegate* delegate_; variable
Dmock_http_fetcher.h65 if (delegate_) in SetOffset()
66 delegate_->SeekToOffset(offset); in SetOffset()
/system/update_engine/
Ddownload_action.cc51 delegate_(nullptr), in DownloadAction()
133 delegate_, in StartDownloading()
156 delegate_, in StartDownloading()
221 if (delegate_ && download_active_) { in ReceivedBytes()
222 delegate_->BytesReceived( in ReceivedBytes()
259 if (delegate_) in TransferComplete()
260 delegate_->DownloadComplete(); in TransferComplete()
Dlibcurl_http_fetcher.cc360 if (delegate_) { in ForceTransferTermination()
362 delegate_->TransferTerminated(this); in ForceTransferTermination()
546 if (delegate_) in CurlPerformOnce()
547 delegate_->TransferComplete(this, false); // signal fail in CurlPerformOnce()
560 if (delegate_) in CurlPerformOnce()
561 delegate_->TransferComplete(this, false); // signal fail in CurlPerformOnce()
574 if (delegate_) { in CurlPerformOnce()
576 delegate_->TransferComplete(this, success); in CurlPerformOnce()
611 if (delegate_) { in LibcurlWrite()
613 auto should_terminate = !delegate_->ReceivedBytes(this, ptr, payload_size); in LibcurlWrite()
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action.h77 this->delegate_ = delegate; in set_delegate()
80 return this->delegate_; in get_delegate()
173 FilesystemVerifyDelegate* delegate_{};
Dpostinstall_runner_action.h62 void set_delegate(DelegateInterface* delegate) { delegate_ = delegate; } in set_delegate()
128 DelegateInterface* delegate_{nullptr};
Dpostinstall_runner_action.cc361 if (!delegate_) in ReportProgress()
364 delegate_->ProgressUpdate(1.); in ReportProgress()
374 delegate_->ProgressUpdate(postinst_action_progress); in ReportProgress()
Dfilesystem_verifier_action.cc157 if (delegate_ != nullptr) { in UpdateProgress()
158 delegate_->OnVerifyProgressUpdate(progress); in UpdateProgress()
/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/media/audio_utils/tests/
Daudio_tflite_tests.cpp185 delegate_ = NnApiDelegate(); // singleton in BuildTestModel()
186 delegate_status = interpreter_->ModifyGraphWithDelegate(delegate_); in BuildTestModel()
194 delegate_ = nullptr; in CleanUp()
207 TfLiteDelegate* delegate_ = nullptr; member in tflite::__anona2f1aff10111::ModelTest
/system/core/fs_mgr/libsnapshot/snapuserd/
Ddm_user_block_server.cpp29 : misc_name_(misc_name), ctrl_fd_(std::move(ctrl_fd)), delegate_(delegate) { in DmUserBlockServer()
70 return delegate_->RequestSectors(header->sector, header->len); in ProcessRequest()
/system/core/fs_mgr/libsnapshot/snapuserd/include/snapuserd/
Ddm_user_block_server.h43 Delegate* delegate_; variable
/system/update_engine/aosp/
Dcleanup_previous_update_action.h73 CleanupPreviousUpdateActionDelegateInterface* delegate_; variable
Dcleanup_previous_update_action.cc69 delegate_(delegate), in CleanupPreviousUpdateAction()
395 if (delegate_) { in OnMergePercentageUpdate()
397 delegate_->OnCleanupProgressUpdate(percentage / 100); in OnMergePercentageUpdate()
/system/nvram/messages/include/nvram/messages/
Dio.h99 InputStreamBuffer* delegate_; variable