Home
last modified time | relevance | path

Searched refs:cancelTask (Results 1 – 3 of 3) sorted by relevance

/hardware/interfaces/broadcastradio/common/utils/
DWorkerThread.cpp49 auto cancelTask = []() {}; in schedule() local
50 schedule(std::move(task), cancelTask, delay); in schedule()
53 void WorkerThread::schedule(function<void()> task, function<void()> cancelTask, in schedule() argument
58 mTasks.push(Task({when, std::move(task), std::move(cancelTask)})); in schedule()
/hardware/interfaces/broadcastradio/aidl/default/
DBroadcastRadio.cpp284 auto cancelTask = [sel, callback]() { callback->onTuneFailed(Result::CANCELED, sel); }; in handleProgramInfoUpdateRadioCallback() local
286 auto sisAcquiredTask = [this, callback, programInfo, cancelTask]() { in handleProgramInfoUpdateRadioCallback()
296 mTuningThread->schedule(audioAcquiredTask, cancelTask, kTuneDelayTimeMs); in handleProgramInfoUpdateRadioCallback()
300 mTuningThread->schedule(sisAcquiredTask, cancelTask, kTuneDelayTimeMs); in handleProgramInfoUpdateRadioCallback()
337 auto cancelTask = [program, callback]() { callback->onTuneFailed(Result::CANCELED, program); }; in tune() local
338 mTuningThread->schedule(task, cancelTask, kTuneDelayTimeMs); in tune()
481 auto cancelTask = [callback]() { callback->onTuneFailed(Result::CANCELED, {}); }; in seek() local
492 mTuningThread->schedule(task, cancelTask, kSeekDelayTimeMs); in seek()
505 mTuningThread->schedule(task, cancelTask, kSeekDelayTimeMs); in seek()
561 auto cancelTask = [callback]() { callback->onTuneFailed(Result::CANCELED, {}); }; in step() local
[all …]
/hardware/interfaces/broadcastradio/common/utils/include/broadcastradio-utils/
DWorkerThread.h33 void schedule(std::function<void()> task, std::function<void()> cancelTask,