Home | History | Annotate | Download | only in runtime

Lines Matching refs:executionCallback

185 // Ensure that executionCallback->notify() is called.
187 const sp<ExecutionCallback>& executionCallback) {
193 sp<ExecutionCallback> fallbackCallback;
195 executionCallback->notify(ErrorStatus::GENERAL_FAILURE);
199 executionCallback->notify(fallbackCallback->getStatus());
204 // return true. (Do not call executionCallback->notify().)
206 // ensure that executionCallback->notify() is called, and return
211 const sp<ExecutionCallback>& executionCallback) {
216 cpuFallbackFull(executionBuilder, executionCallback);
219 sp<ExecutionCallback> fallbackCallback;
221 cpuFallbackFull(executionBuilder, executionCallback);
226 cpuFallbackFull(executionBuilder, executionCallback);
236 const sp<ExecutionCallback>& executionCallback) {
244 cpuFallbackFull(executionBuilder, executionCallback);
246 executionCallback->notify(ErrorStatus::GENERAL_FAILURE);
251 executionCallback->notify(ErrorStatus::NONE);
255 sp<ExecutionCallback> stepCallback;
259 if (cpuFallbackPartial(executionBuilder, plan, controller, executionCallback)) {
268 executionCallback->notify(ErrorStatus::GENERAL_FAILURE);
276 if (cpuFallbackPartial(executionBuilder, plan, controller, executionCallback)) {
285 executionCallback->notify(status);
292 int ExecutionBuilder::startCompute(sp<ExecutionCallback>* synchronizationCallback) {
332 // sp<ExecutionCallback> object is returned when the
334 // nullptr is returned. The executionCallback is
336 sp<ExecutionCallback> executionCallback = new ExecutionCallback();
339 executionCallback);
340 executionCallback->bind_thread(std::move(thread));
341 *synchronizationCallback = executionCallback;
469 int StepExecutor::startCompute(sp<ExecutionCallback>* synchronizationCallback) {
477 int StepExecutor::startComputeOnDevice(sp<ExecutionCallback>* synchronizationCallback) {
546 // Prepare the callback for asynchronous execution. sp<ExecutionCallback>
548 // otherwise a nullptr is returned. The executionCallback is abstracted in
556 sp<ExecutionCallback> executionCallback = new ExecutionCallback();
566 if (mPreparedModel->execute(request, executionCallback) != ErrorStatus::NONE) {
573 executionCallback->wait();
574 Return<ErrorStatus> executionStatus = executionCallback->getStatus();
597 *synchronizationCallback = executionCallback;
604 const sp<IExecutionCallback>& executionCallback) {
609 executionCallback->notify(status);
612 int StepExecutor::startComputeOnCpu(sp<ExecutionCallback>* synchronizationCallback) {
618 // Prepare the callback for asynchronous execution. sp<ExecutionCallback>
620 // otherwise a nullptr is returned. The executionCallback is abstracted in
622 sp<ExecutionCallback> executionCallback = new ExecutionCallback();
662 executionCallback);
663 executionCallback->bind_thread(std::move(thread));
665 *synchronizationCallback = executionCallback;