Home
last modified time | relevance | path

Searched refs:keyboardHeight (Results 1 - 20 of 20) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dkeyboard_base_pattern.cpp102 auto keyboardHeight = GetKeyboardHeight(); in SetKeyboardAreaChange() local
105 Rect keyboardRect = Rect(0.0f, 0.0f, 0.0f, keyboardHeight); in SetKeyboardAreaChange()
107 keyboardHeight, safeHeight_); in SetKeyboardAreaChange()
H A Doverlay_manager.cpp5395 auto keyboardHeight = keyboardGeo->GetFrameSize().Height(); in CalcCustomKeyboardOffset() local
5405 finalOffset = (pageHeight - keyboardHeight) - (pageHeight - keyboardHeight) / NUM_FLOAT_2; in CalcCustomKeyboardOffset()
5415 keyboardOffsetInfo.outAniEndOffset = finalOffset + keyboardHeight; in CalcCustomKeyboardOffset()
/foundation/arkui/ace_engine/frameworks/core/pipeline/
H A Dpipeline_base.cpp749 double keyboardHeight = keyboardArea.Height(); in OnVirtualKeyboardAreaChange() local
750 if (NotifyVirtualKeyBoard(rootWidth_, rootHeight_, keyboardHeight)) { in OnVirtualKeyboardAreaChange()
753 OnVirtualKeyboardHeightChange(keyboardHeight, rsTransaction, safeHeight, supportAvoidance, forceChange); in OnVirtualKeyboardAreaChange()
760 float keyboardHeight = keyboardArea.Height(); in OnVirtualKeyboardAreaChange() local
766 CheckAndUpdateKeyboardInset(keyboardHeight); in OnVirtualKeyboardAreaChange()
770 if (NotifyVirtualKeyBoard(rootWidth_, rootHeight_, keyboardHeight)) { in OnVirtualKeyboardAreaChange()
773 OnVirtualKeyboardHeightChange(keyboardHeight, positionY, height, rsTransaction, forceChange); in OnVirtualKeyboardAreaChange()
786 double PipelineBase::ModifyKeyboardHeight(double keyboardHeight) const in ModifyKeyboardHeight()
790 return keyboardHeight > 0.0 && keyboardHeight in ModifyKeyboardHeight()
[all...]
H A Dpipeline_base.h395 virtual void CheckAndUpdateKeyboardInset(float keyboardHeight) {} in CheckAndUpdateKeyboardInset() argument
1472 virtual void OnVirtualKeyboardHeightChange(float keyboardHeight, in OnVirtualKeyboardHeightChange() argument
1476 virtual void OnVirtualKeyboardHeightChange(float keyboardHeight, double positionY, double height, in OnVirtualKeyboardHeightChange() argument
1599 double ModifyKeyboardHeight(double keyboardHeight) const;
H A Dpipeline_context.cpp1975 void PipelineContext::OnVirtualKeyboardHeightChange(float keyboardHeight, in OnVirtualKeyboardHeightChange() argument
1988 auto func = [this, keyboardHeight]() { in OnVirtualKeyboardHeightChange()
1993 auto newKeyboardHeight = keyboardHeight / viewScale_; in OnVirtualKeyboardHeightChange()
2020 AnimationOption option = AnimationUtil::CreateKeyboardAnimationOption(keyboardAnimationConfig_, keyboardHeight); in OnVirtualKeyboardHeightChange()
H A Dpipeline_context.h238 void OnVirtualKeyboardHeightChange(float keyboardHeight,
/foundation/arkui/ace_engine/frameworks/core/pipeline_ng/
H A Dpipeline_context.cpp1889 void PipelineContext::CheckAndUpdateKeyboardInset(float keyboardHeight) in CheckAndUpdateKeyboardInset() argument
1891 safeAreaManager_->UpdateKeyboardSafeArea(keyboardHeight); in CheckAndUpdateKeyboardInset()
2035 void PipelineContext::OnVirtualKeyboardHeightChange(float keyboardHeight, in OnVirtualKeyboardHeightChange() argument
2040 // prevent repeated trigger with same keyboardHeight in OnVirtualKeyboardHeightChange()
2041 if (!forceChange && NearEqual(keyboardHeight, safeAreaManager_->GetKeyboardInset().Length())) { in OnVirtualKeyboardHeightChange()
2054 AvoidanceLogic(keyboardHeight, rsTransaction, safeHeight, supportAvoidance); in OnVirtualKeyboardHeightChange()
2056 OriginalAvoidanceLogic(keyboardHeight, rsTransaction); in OnVirtualKeyboardHeightChange()
2066 void PipelineContext::AvoidanceLogic(float keyboardHeight, const std::shared_ptr<Rosen::RSTransaction>& rsTransaction, in AvoidanceLogic() argument
2069 auto func = [this, keyboardHeight, safeHeight, supportAvoidance]() mutable { in AvoidanceLogic()
2070 safeAreaManager_->UpdateKeyboardSafeArea(static_cast<uint32_t>(keyboardHeight)); in AvoidanceLogic()
2116 OriginalAvoidanceLogic( float keyboardHeight, const std::shared_ptr<Rosen::RSTransaction>& rsTransaction) OriginalAvoidanceLogic() argument
2171 OnVirtualKeyboardHeightChange(float keyboardHeight, double positionY, double height, const std::shared_ptr<Rosen::RSTransaction>& rsTransaction, bool forceChange) OnVirtualKeyboardHeightChange() argument
2319 OnCaretPositionChangeOrKeyboardHeightChange( float keyboardHeight, double positionY, double height, const std::shared_ptr<Rosen::RSTransaction>& rsTransaction, bool forceChange) OnCaretPositionChangeOrKeyboardHeightChange() argument
2358 DoKeyboardAvoidFunc(float keyboardHeight, double positionY, double height, bool keyboardHeightChanged) DoKeyboardAvoidFunc() argument
2410 CalcAvoidOffset(float keyboardHeight, float positionY, float height, SizeF rootSize) CalcAvoidOffset() argument
5007 DoKeyboardAvoidAnimate(const KeyboardAnimationConfig& keyboardAnimationConfig, float keyboardHeight, const std::function<void()>& func) DoKeyboardAvoidAnimate() argument
[all...]
H A Dpipeline_context.h356 void CheckAndUpdateKeyboardInset(float keyboardHeight) override;
376 void OnCaretPositionChangeOrKeyboardHeightChange(float keyboardHeight, double positionY, double height,
378 void DoKeyboardAvoidFunc(float keyboardHeight, double positionY, double height,
380 float CalcAvoidOffset(float keyboardHeight, float positionYWithOffset,
984 void OnVirtualKeyboardHeightChange(float keyboardHeight,
987 void OnVirtualKeyboardHeightChange(float keyboardHeight, double positionY, double height,
995 void AvoidanceLogic(float keyboardHeight, const std::shared_ptr<Rosen::RSTransaction>& rsTransaction = nullptr,
998 float keyboardHeight, const std::shared_ptr<Rosen::RSTransaction>& rsTransaction = nullptr);
1000 void DoKeyboardAvoidAnimate(const KeyboardAnimationConfig& keyboardAnimationConfig, float keyboardHeight,
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/ui_extension/
H A Dsecurity_session_wrapper_impl.cpp647 int32_t keyboardHeight = static_cast<int32_t>(info->rect_.height_); in NotifyOccupiedAreaChangeInfo() local
648 if (keyboardHeight > 0) { in NotifyOccupiedAreaChangeInfo()
654 keyboardHeight = static_cast<int32_t>(std::max(keyboardHeight - spaceWindow, 0)); in NotifyOccupiedAreaChangeInfo()
658 newInfo->rect_.height_ = static_cast<uint32_t>(keyboardHeight); in NotifyOccupiedAreaChangeInfo()
659 PLATFORM_LOGI("The occcupied area with 'keyboardHeight = %{public}d' is notified to the provider.", in NotifyOccupiedAreaChangeInfo()
660 keyboardHeight); in NotifyOccupiedAreaChangeInfo()
H A Dsession_wrapper_impl.cpp890 int32_t keyboardHeight = static_cast<int32_t>(info->rect_.height_); in InnerNotifyOccupiedAreaChangeInfo() local
895 if (keyboardHeight > 0) { in InnerNotifyOccupiedAreaChangeInfo()
898 keyboardHeight = static_cast<int32_t>(std::max(keyboardHeight - spaceWindow, 0)); in InnerNotifyOccupiedAreaChangeInfo()
900 keyboardHeight = keyboardHeight + (displayArea_.Bottom() - curWindow.Bottom()); in InnerNotifyOccupiedAreaChangeInfo()
905 newInfo->rect_.height_ = static_cast<uint32_t>(keyboardHeight); in InnerNotifyOccupiedAreaChangeInfo()
906 UIEXT_LOGI("OccupiedArea keyboardHeight = %{public}d, displayArea = %{public}s, " in InnerNotifyOccupiedAreaChangeInfo()
908 keyboardHeight, displayArea_.ToString().c_str(), curWindow.ToString().c_str(), GetSessionId()); in InnerNotifyOccupiedAreaChangeInfo()
H A Dui_extension_manager.cpp236 int32_t keyboardHeight = static_cast<int32_t>(info->rect_.height_); in NotifyOccupiedAreaChangeInfo() local
237 if (keyboardHeight != 0) { in NotifyOccupiedAreaChangeInfo()
241 // keyboardHeight is 0, broadcast it. in NotifyOccupiedAreaChangeInfo()
/foundation/arkui/ace_engine/frameworks/core/animation/
H A Danimation_util.h56 static AnimationOption CreateKeyboardAnimationOption(const KeyboardAnimationConfig& config, float keyboardHeight);
H A Danimation_util.cpp485 const KeyboardAnimationConfig& config, float keyboardHeight) in CreateKeyboardAnimationOption()
504 auto curveConfig = NearZero(keyboardHeight) ? config.curveOut_ : config.curveIn_; in CreateKeyboardAnimationOption()
484 CreateKeyboardAnimationOption( const KeyboardAnimationConfig& config, float keyboardHeight) CreateKeyboardAnimationOption() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/safe_area/
H A Dsafe_area_manager.cpp93 bool SafeAreaManager::UpdateKeyboardSafeArea(float keyboardHeight, std::optional<uint32_t> rootHeight) in UpdateKeyboardSafeArea() argument
101 SafeAreaInsets::Inset inset = { .start = bottom - keyboardHeight, .end = bottom }; in UpdateKeyboardSafeArea()
H A Dsafe_area_manager.h122 * @param keyboardHeight The height of the keyboard in pixels.
125 bool UpdateKeyboardSafeArea(float keyboardHeight, std::optional<uint32_t> rootHeight = std::nullopt);
/foundation/arkui/ace_engine/test/mock/core/pipeline/
H A Dmock_pipeline_context.cpp443 void PipelineContext::OnVirtualKeyboardHeightChange(float keyboardHeight, in OnVirtualKeyboardHeightChange() argument
448 void PipelineContext::OnVirtualKeyboardHeightChange(float keyboardHeight, double positionY, double height, in OnVirtualKeyboardHeightChange() argument
452 void PipelineContext::AvoidanceLogic(float keyboardHeight, const std::shared_ptr<Rosen::RSTransaction>& rsTransaction, in AvoidanceLogic() argument
457 float keyboardHeight, const std::shared_ptr<Rosen::RSTransaction>& rsTransaction) in OriginalAvoidanceLogic()
783 void PipelineContext::CheckAndUpdateKeyboardInset(float keyboardHeight) {} in CheckAndUpdateKeyboardInset() argument
456 OriginalAvoidanceLogic( float keyboardHeight, const std::shared_ptr<Rosen::RSTransaction>& rsTransaction) OriginalAvoidanceLogic() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toast/
H A Dtoast_pattern.cpp150 auto keyboardHeight = safeAreaManager ? safeAreaManager->GetKeyboardInset().Length() : 0; in OnDirtyLayoutWrapperSwap() local
151 AnimationOption option = AnimationUtil::CreateKeyboardAnimationOption(keyboardAnimationConfig, keyboardHeight); in OnDirtyLayoutWrapperSwap()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/
H A Dselect_overlay_layout_algorithm.cpp68 auto keyboardHeight = safeAreaManager->IsNeedAvoidWindow() ? 0.0f : safeAreaManager->GetKeyboardInset().Length(); in MeasureChild() local
70 SizeF(layoutConstraint.maxSize.Width(), layoutConstraint.maxSize.Height() - keyboardHeight - in MeasureChild()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dmenu_layout_algorithm.cpp517 auto keyboardHeight = safeAreaManager->GetKeyboardInset().Length(); in GetBottomBySafeAreaManager() local
518 if (menuPattern->IsSelectOverlayExtensionMenu() && GreatNotEqual(keyboardHeight, 0)) { in GetBottomBySafeAreaManager()
519 bottom = keyboardHeight; in GetBottomBySafeAreaManager()
524 if (LessOrEqual(keyboardHeight, 0)) { in GetBottomBySafeAreaManager()
525 keyboardHeight = safeAreaManager->GetkeyboardHeightConsideringUIExtension(); in GetBottomBySafeAreaManager()
527 if (GreatNotEqual(keyboardHeight, 0)) { in GetBottomBySafeAreaManager()
528 bottom = keyboardHeight; in GetBottomBySafeAreaManager()
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dui_content_impl.cpp369 uint32_t keyboardHeight = safeAreaManager->GetKeyboardInset().Length(); in UpdateSafeArea() local
370 safeAreaManager->UpdateKeyboardSafeArea(keyboardHeight, config.Height()); in UpdateSafeArea()

Completed in 56 milliseconds