Home
last modified time | relevance | path

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

/external/libtextclassifier/native/lang_id/common/fel/
Dtask-context.cc26 std::string TaskContext::GetInputPath(const std::string &name) const { in GetInputPath()
34 void TaskContext::SetInputPath(const std::string &name, in SetInputPath()
39 std::string TaskContext::Get(const std::string &name, in Get()
48 int TaskContext::Get(const std::string &name, int defval) const { in Get()
57 float TaskContext::Get(const std::string &name, float defval) const { in Get()
66 bool TaskContext::Get(const std::string &name, bool defval) const { in Get()
71 void TaskContext::SetParameter(const std::string &name, in SetParameter()
Dfeature-extractor.h183 SAFTM_MUST_USE_RESULT virtual bool Setup(TaskContext *context) { in Setup()
191 SAFTM_MUST_USE_RESULT virtual bool Init(TaskContext *context) { return true; } in Init()
391 SAFTM_MUST_USE_RESULT bool Setup(TaskContext *context) override { in Setup()
405 SAFTM_MUST_USE_RESULT virtual bool SetupNested(TaskContext *context) { in SetupNested()
412 SAFTM_MUST_USE_RESULT bool Init(TaskContext *context) override { in Init()
423 SAFTM_MUST_USE_RESULT virtual bool InitNested(TaskContext *context) { in InitNested()
573 SAFTM_MUST_USE_RESULT bool Setup(TaskContext *context) { in Setup()
584 SAFTM_MUST_USE_RESULT bool Init(TaskContext *context) { in Init()
Dtask-context.h41 class TaskContext {
/external/webrtc/rtc_base/
Dtask_queue_gcd.cc53 struct TaskContext { struct in webrtc::__anon8d2de7380111::TaskQueueGcd
54 TaskContext(TaskQueueGcd* queue, std::unique_ptr<QueuedTask> task) in TaskContext() argument
101 auto* context = new TaskContext(this, std::move(task)); in PostTask()
107 auto* context = new TaskContext(this, std::move(task)); in PostDelayedTask()
115 std::unique_ptr<TaskContext> tc(static_cast<TaskContext*>(task_context)); in RunTask()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/scheduling/
DTasks.kt67 internal interface TaskContext { interface
72 internal object NonBlockingContext : TaskContext { in afterTask()
82 @JvmField var taskContext: TaskContext
94 taskContext: TaskContext
DDispatcher.kt113 internal fun dispatchWithContext(block: Runnable, context: TaskContext, tailDispatch: Boolean) { in toString()
148 ) : ExecutorCoroutineDispatcher(), TaskContext, Executor {
DCoroutineScheduler.kt383 …fun dispatch(block: Runnable, taskContext: TaskContext = NonBlockingContext, tailDispatch: Boolean… in <lambda>()
406 internal fun createTask(block: Runnable, taskContext: TaskContext): Task { in <lambda>()
/external/libtextclassifier/native/lang_id/common/
Dembedding-feature-extractor.h58 SAFTM_MUST_USE_RESULT virtual bool Setup(TaskContext *context);
59 SAFTM_MUST_USE_RESULT virtual bool Init(TaskContext *context);
115 SAFTM_MUST_USE_RESULT bool Setup(TaskContext *context) override { in Setup()
129 SAFTM_MUST_USE_RESULT bool Init(TaskContext *context) override { in Init()
Dembedding-feature-extractor.cc36 bool GenericEmbeddingFeatureExtractor::Setup(TaskContext *context) { in Setup()
68 bool GenericEmbeddingFeatureExtractor::Init(TaskContext *context) { in Init()
Dembedding-feature-interface.h43 SAFTM_MUST_USE_RESULT bool SetupForProcessing(TaskContext *context) { in SetupForProcessing()
49 SAFTM_MUST_USE_RESULT bool InitForProcessing(TaskContext *context) { in InitForProcessing()
Dembedding-network-params.h182 mobile::TaskContext *task_context) = 0;
/external/libtextclassifier/native/lang_id/features/
Drelevant-script-feature.h45 bool Setup(TaskContext *context) override;
46 bool Init(TaskContext *context) override;
Dchar-ngram-feature.h58 bool Setup(TaskContext *context) override;
59 bool Init(TaskContext *context) override;
Drelevant-script-feature.cc32 bool RelevantScriptFeature::Setup(TaskContext *context) { in Setup()
52 bool RelevantScriptFeature::Init(TaskContext *context) { in Init()
Dchar-ngram-feature.cc33 bool ContinuousBagOfNgramsFunction::Setup(TaskContext *context) { in Setup()
60 bool ContinuousBagOfNgramsFunction::Init(TaskContext *context) { in Init()
/external/libtextclassifier/native/lang_id/fb_model/
Dmodel-provider-from-fb.h71 const TaskContext *GetTaskContext() const override { in GetTaskContext()
106 TaskContext context_;
/external/libtextclassifier/native/lang_id/
Dlang-id.cc87 TaskContext context = *model_provider_->GetTaskContext(); in LangIdImpl()
211 bool Setup(TaskContext *context) { in Setup()
238 bool Init(TaskContext *context) { in Init()
Dcustom-tokenizer.h33 void Setup(TaskContext *context);
Dmodel-provider.h45 virtual const TaskContext *GetTaskContext() const = 0;
Dcustom-tokenizer.cc98 void TokenizerForLangId::Setup(TaskContext *context) { in Setup()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DSchedulerTask.kt11 internal actual typealias SchedulerTaskContext = TaskContext
/external/libtextclassifier/native/lang_id/common/flatbuffers/
Dmodel-utils.h59 bool FillParameters(const Model &model, mobile::TaskContext *context);
Dmodel-utils.cc104 bool FillParameters(const Model &model, mobile::TaskContext *context) { in FillParameters()
Dembedding-network-params-from-flatbuffer.h51 bool UpdateTaskContextParameters(mobile::TaskContext *task_context) override { in UpdateTaskContextParameters()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/scheduling/
DCoroutineSchedulerTest.kt171 private class TaskContextImpl(override val taskMode: Int) : TaskContext { in <lambda>()