/foundation/ability/ability_runtime/test/unittest/runtime_test/ |
H A D | js_worker_test.cpp | 76 std::shared_ptr<JsEnv::WorkerInfo> workerInfo = std::make_shared<JsEnv::WorkerInfo>(); in HWTEST_F() local 77 workerInfo->codePath = panda::panda_file::StringPacProtect("/data/test/codePath"); in HWTEST_F() 78 workerInfo->packagePathStr = "/data/test/packagePath"; in HWTEST_F() 79 workerInfo->hapPath = panda::panda_file::StringPacProtect("/data/test/hapPath"); in HWTEST_F() 80 workerInfo->moduleName = "moduleName"; in HWTEST_F() 81 TestSetGetAssetFunc(AssetHelper(workerInfo)); in HWTEST_F() 103 std::shared_ptr<JsEnv::WorkerInfo> workerInfo = std::make_shared<JsEnv::WorkerInfo>(); in HWTEST_F() local 104 workerInfo->codePath = panda::panda_file::StringPacProtect("/data/test/codePath"); in HWTEST_F() 105 workerInfo->packagePathStr = "/data/test/packagePath"; in HWTEST_F() 106 workerInfo in HWTEST_F() [all...] |
H A D | ohos_js_environment_test.cpp | 135 std::shared_ptr<JsEnv::WorkerInfo> workerInfo = std::make_shared<JsEnv::WorkerInfo>(); in HWTEST_F() local 136 jsEnvImpl->InitWorkerModule(jsEngine, workerInfo); in HWTEST_F()
|
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/task_manager/ |
H A D | thread_pool.cpp | 90 for (auto& workerInfo : workers_) { in BeginBackgroundTasks() 91 SetThreadPriority(workerInfo.thread.native_handle(), PRIORITY_BACKGROUND); in BeginBackgroundTasks() 98 for (auto& workerInfo : workers_) { in EndBackgroundTasks() 99 SetThreadPriority(workerInfo.thread.native_handle(), PRIORITY_NORMAL); in EndBackgroundTasks() 106 for (auto& workerInfo : workers_) { in SetThreadPoolPriority() 107 SetThreadPriority(workerInfo.thread.native_handle(), priority); in SetThreadPoolPriority() 120 for (auto& workerInfo : workers_) { in PrintThreadInfo() 121 int ret = pthread_getschedparam(workerInfo.thread.native_handle(), &policy, &sch); in PrintThreadInfo() 124 workerInfo.name.c_str(), sch.sched_priority, policy); in PrintThreadInfo() 126 DP_DEBUG_LOG("thread (%s) pthread_getschedparam failed, ret = %{public}d.", workerInfo in PrintThreadInfo() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilityframeworksnativejsworker_fuzzer/ |
H A D | abilityframeworksnativejsworker_fuzzer.cpp | 68 std::shared_ptr<JsEnv::WorkerInfo> workerInfo = std::make_shared<JsEnv::WorkerInfo>(); in DoSomethingInterestingWithMyAPI() local 69 workerInfo->codePath = panda::panda_file::StringPacProtect("/data/test/codePath"); in DoSomethingInterestingWithMyAPI() 70 workerInfo->packagePathStr = "/data/test/packagePath"; in DoSomethingInterestingWithMyAPI() 71 workerInfo->hapPath = panda::panda_file::StringPacProtect("/data/test/hapPath"); in DoSomethingInterestingWithMyAPI() 72 workerInfo->moduleName = "moduleName"; in DoSomethingInterestingWithMyAPI() 73 AbilityRuntime::AssetHelper helper = AbilityRuntime::AssetHelper(workerInfo); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/ability_runtime/frameworks/native/runtime/ |
H A D | ohos_js_environment_impl.cpp | 164 void OHOSJsEnvironmentImpl::InitWorkerModule(NativeEngine* engine, std::shared_ptr<JsEnv::WorkerInfo> workerInfo) in InitWorkerModule() argument 168 CHECK_POINTER(workerInfo); in InitWorkerModule() 171 engine->SetGetAssetFunc(AssetHelper(workerInfo)); in InitWorkerModule() 172 engine->SetApiVersion(static_cast<int32_t>(workerInfo->apiTargetVersion.GetOriginPointer())); in InitWorkerModule()
|
H A D | js_runtime_lite.cpp | 380 std::shared_ptr<JsEnv::WorkerInfo> workerInfo = std::make_shared<JsEnv::WorkerInfo>(); in InitWorkerModule() local 381 workerInfo->codePath = panda::panda_file::StringPacProtect(options.codePath); in InitWorkerModule() 382 workerInfo->isDebugVersion = options.isDebugVersion; in InitWorkerModule() 383 workerInfo->isBundle = options.isBundle; in InitWorkerModule() 384 workerInfo->packagePathStr = options.packagePathStr; in InitWorkerModule() 385 workerInfo->assetBasePathStr = options.assetBasePathStr; in InitWorkerModule() 386 workerInfo->hapPath = panda::panda_file::StringPacProtect(options.hapPath); in InitWorkerModule() 387 workerInfo->isStageModel = panda::panda_file::BoolPacProtect(options.isStageModel); in InitWorkerModule() 388 workerInfo->moduleName = options.moduleName; in InitWorkerModule() 392 jsEnv->InitWorkerModule(workerInfo); in InitWorkerModule() [all...] |
H A D | js_worker.h | 36 explicit AssetHelper(std::shared_ptr<JsEnv::WorkerInfo> workerInfo) : workerInfo_(workerInfo) in AssetHelper() argument
|
H A D | ohos_js_environment_impl.h | 43 void InitWorkerModule(NativeEngine* engine, std::shared_ptr<JsEnv::WorkerInfo> workerInfo) override;
|
H A D | js_runtime.cpp | 1443 std::shared_ptr<JsEnv::WorkerInfo> workerInfo = std::make_shared<JsEnv::WorkerInfo>(); in InitWorkerModule() local 1444 workerInfo->codePath = panda::panda_file::StringPacProtect(options.codePath); in InitWorkerModule() 1445 workerInfo->isDebugVersion = options.isDebugVersion; in InitWorkerModule() 1446 workerInfo->isBundle = options.isBundle; in InitWorkerModule() 1447 workerInfo->packagePathStr = options.packagePathStr; in InitWorkerModule() 1448 workerInfo->assetBasePathStr = options.assetBasePathStr; in InitWorkerModule() 1449 workerInfo->hapPath = panda::panda_file::StringPacProtect(options.hapPath); in InitWorkerModule() 1450 workerInfo->isStageModel = panda::panda_file::BoolPacProtect(options.isStageModel); in InitWorkerModule() 1451 workerInfo->moduleName = options.moduleName; in InitWorkerModule() 1452 workerInfo in InitWorkerModule() [all...] |
/foundation/resourceschedule/ffrt/src/util/ |
H A D | worker_monitor.h | 61 TimeoutFunctionInfo(const CoWorkerInfo& coWorkerInfo, const WorkerInfo& workerInfo, int executionTime) in TimeoutFunctionInfo() 62 : coWorkerInfo_(coWorkerInfo), workerInfo_(workerInfo), executionTime_(executionTime) in TimeoutFunctionInfo()
|
H A D | worker_monitor.cpp | 217 WorkerInfo workerInfo(worker->Id(), worker->curTaskGid_, worker->curTaskType_, worker->curTaskLabel_); in RecordTimeoutFunctionInfo() 218 timeoutFunctions.emplace_back(coWorkerInfo, workerInfo, taskInfo.executionTime_); in RecordTimeoutFunctionInfo()
|
/foundation/ability/ability_runtime/js_environment/interfaces/inner_api/ |
H A D | js_environment_impl.h | 60 virtual void InitWorkerModule(NativeEngine* engine, std::shared_ptr<WorkerInfo> workerInfo) = 0;
|
H A D | js_environment.h | 63 void InitWorkerModule(std::shared_ptr<WorkerInfo> workerInfo);
|
/foundation/ability/ability_runtime/js_environment/frameworks/js_environment/src/ |
H A D | js_environment.cpp | 84 void JsEnvironment::InitWorkerModule(std::shared_ptr<WorkerInfo> workerInfo)
in InitWorkerModule() argument 92 impl_->InitWorkerModule(engine_, workerInfo);
in InitWorkerModule()
|