Lines Matching defs:context
134 const std::shared_ptr<OHOS::AbilityRuntime::Context>& context,
139 if (context) {
140 bundleName = context->GetBundleName();
141 moduleName = context->GetHapModuleInfo()->name;
148 if (context && context->GetResourceManager()) {
149 resourceAdapter = AceType::MakeRefPtr<ResourceAdapterImplV2>(context->GetResourceManager(), resourceInfo);
331 RefPtr<PipelineBase> context;
334 context.Swap(pipelineContext_);
336 auto uiTask = [context]() { context->Destroy(); };
558 auto context = container->GetPipelineContext();
559 CHECK_NULL_RETURN(context, false);
560 if (context->PopPageStackOverlay()) {
563 return context->CallRouterBackToPopPage();
691 LOGE("pipeline context is null, OnActive failed.");
728 LOGE("pipeline context is null, OnInactive failed.");
828 auto&& touchEventCallback = [context = pipelineContext_, id = instanceId_](
832 context->CheckAndLogLastReceivedTouchEventInfo(event.touchEventId, event.type);
833 auto touchTask = [context, event, markProcess, node]() {
836 context->OnAccessibilityHoverEvent(event, node);
838 context->OnPenHoverEvent(event, node);
841 context->OnTouchEvent(event, node);
843 context->OnTouchEvent(event);
848 context->CheckAndLogLastConsumedTouchEventInfo(event.touchEventId, event.type);
850 auto uiTaskRunner = SingleTaskExecutor::Make(context->GetTaskExecutor(), TaskExecutor::TaskType::UI);
855 context->GetTaskExecutor()->PostTask(
860 auto&& mouseEventCallback = [context = pipelineContext_, id = instanceId_](
864 context->CheckAndLogLastReceivedMouseEventInfo(event.touchEventId, event.action);
865 auto mouseTask = [context, event, markProcess, node]() {
867 context->OnMouseEvent(event, node);
869 context->OnMouseEvent(event);
873 context->CheckAndLogLastConsumedMouseEventInfo(event.touchEventId, event.action);
875 auto uiTaskRunner = SingleTaskExecutor::Make(context->GetTaskExecutor(), TaskExecutor::TaskType::UI);
880 context->GetTaskExecutor()->PostTask(
885 auto&& axisEventCallback = [context = pipelineContext_, id = instanceId_](
889 context->CheckAndLogLastReceivedAxisEventInfo(event.touchEventId, event.action);
890 auto axisTask = [context, event, markProcess, node]() {
892 context->OnAxisEvent(event, node);
894 context->OnAxisEvent(event);
898 context->CheckAndLogLastConsumedAxisEventInfo(event.touchEventId, event.action);
900 auto uiTaskRunner = SingleTaskExecutor::Make(context->GetTaskExecutor(), TaskExecutor::TaskType::UI);
905 context->GetTaskExecutor()->PostTask(
910 auto&& keyEventCallback = [context = pipelineContext_, id = instanceId_](const KeyEvent& event) {
913 context->GetTaskExecutor()->PostSyncTask(
914 [context, event, &result, id]() {
916 result = context->OnKeyEvent(event);
923 auto&& rotationEventCallback = [context = pipelineContext_, id = instanceId_](const RotationEvent& event) {
926 context->GetTaskExecutor()->PostSyncTask(
927 [context, event, &result]() { result = context->OnRotationEvent(event); },
933 auto&& viewChangeCallback = [context = pipelineContext_, id = instanceId_](int32_t width, int32_t height,
940 context->SetSurfaceChangeMsg(width, height, type, rsTransaction);
941 context->RequestFrame();
944 context->ResetSurfaceChangeMsg();
946 auto callback = [context, width, height, type, rsTransaction, id]() {
947 context->OnSurfaceChanged(width, height, type, rsTransaction);
967 auto&& viewPositionChangeCallback = [context = pipelineContext_, id = instanceId_](int32_t posX, int32_t posY) {
970 context->GetTaskExecutor()->PostTask(
971 [context, posX, posY]() { context->OnSurfacePositionChanged(posX, posY); },
976 auto&& densityChangeCallback = [context = pipelineContext_, id = instanceId_](double density) {
979 auto callback = [context, density, id]() {
980 context->OnSurfaceDensityChanged(density);
981 if (context->IsDensityChanged()) {
990 auto taskExecutor = context->GetTaskExecutor();
1000 auto&& transformHintChangeCallback = [context = pipelineContext_, id = instanceId_](uint32_t transform) {
1003 auto callback = [context, transform]() { context->OnTransformHintChanged(transform); };
1004 auto taskExecutor = context->GetTaskExecutor();
1014 auto&& systemBarHeightChangeCallback = [context = pipelineContext_, id = instanceId_](
1018 context->GetTaskExecutor()->PostTask(
1019 [context, statusBar, navigationBar]() { context->OnSystemBarHeightChanged(statusBar, navigationBar); },
1024 auto&& surfaceDestroyCallback = [context = pipelineContext_, id = instanceId_]() {
1026 context->GetTaskExecutor()->PostTask(
1027 [context]() { context->OnSurfaceDestroyed(); }, TaskExecutor::TaskType::UI, "ArkUISurfaceDestroyed");
1036 auto&& dragEventCallback = [context = pipelineContext_, id = instanceId_](const PointerEvent& pointerEvent,
1039 CHECK_NULL_VOID(context);
1040 auto callback = [context, pointerEvent, action, node]() {
1041 context->OnDragEvent(pointerEvent, action, node);
1043 auto taskExecutor = context->GetTaskExecutor();
1246 auto context = container->GetPipelineContext();
1247 CHECK_NULL_RETURN(context, false);
1248 return context->CallRouterBackToPopPage();
1767 auto context = runtimeContext_.lock();
1768 DumpLog::GetInstance().Print("bundleName:" + context->GetHapModuleInfo()->bundleName);
1769 DumpLog::GetInstance().Print("moduleName:" + context->GetHapModuleInfo()->moduleName);
1890 NativeReference* storage, const std::shared_ptr<OHOS::AbilityRuntime::Context>& context)
1895 contextWeak = std::weak_ptr<OHOS::AbilityRuntime::Context>(context), id = instanceId_,
2071 auto context = container->GetPipelineContext();
2072 CHECK_NULL_VOID(context);
2073 context->GetTaskExecutor()->PostTask(
2087 auto context = container->GetPipelineContext();
2088 CHECK_NULL_VOID(context);
2089 context->GetTaskExecutor()->PostTask(
2103 auto context = container->GetPipelineContext();
2104 CHECK_NULL_VOID(context);
2105 context->GetTaskExecutor()->PostTask(
2126 context = runtimeContext_.lock(), abilityInfo = abilityInfo_.lock()]() {
2130 InitResourceAndThemeManager(pipelineContext, assetManager, colorScheme, resourceInfo, context, abilityInfo);
2146 auto setupRootElementTask = [context = pipelineContext_, callback, isSubContainer = isSubContainer_]() {
2148 callback(AceType::DynamicCast<PipelineContext>(context));
2151 context->SetupRootElement();
2422 auto context = runtimeContext_.lock();
2423 CHECK_NULL_RETURN(context, nullptr);
2438 return isFormRender_ ? nullptr : context->CreateModuleContext(bundle, module);
2752 auto context = AceType::DynamicCast<NG::PipelineContext>(container->GetPipelineContext());
2753 CHECK_NULL_RETURN(context, nullptr);
2754 auto window = static_cast<FormRenderWindow*>(context->GetWindow());
2790 auto context = runtimeContext_.lock();
2796 pipelineContext_, assetManager_, colorScheme_, resourceInfo_, context, abilityInfo, true);
2819 auto context = AceType::DynamicCast<NG::PipelineContext>(GetPipelineContext());
2820 CHECK_NULL_VOID(context);
2821 auto sharedImageManager = context->GetOrCreateSharedImageManager();
2833 auto context = GetPipelineContext();
2834 CHECK_NULL_VOID(context);
2868 GetImageDataFromAshmem(picNameCopy, ashmem, context, byteLenArray[i]);
2892 auto context = AceType::DynamicCast<NG::PipelineContext>(pipelineContext);
2893 CHECK_NULL_VOID(context);
2894 RefPtr<SharedImageManager> sharedImageManager = context->GetOrCreateSharedImageManager();