mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 06:50:40 +00:00
commit
898e043b25
@ -112,7 +112,7 @@ public:
|
||||
*/
|
||||
DMError MakeMirror(ScreenId mainScreenId, std::vector<ScreenId> mirrorScreenId, ScreenId& screenGroupId);
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Make screens as mirror-screen
|
||||
*
|
||||
* @param mainScreenId Main screen id.
|
||||
@ -123,7 +123,7 @@ public:
|
||||
DMError SetMultiScreenMode(ScreenId mainScreenId, ScreenId secondaryScreenId,
|
||||
MultiScreenMode screenMode);
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Set Screen Relative Position
|
||||
*
|
||||
* @param mainScreenOptions Main screen id and position.
|
||||
|
@ -1775,7 +1775,7 @@ public:
|
||||
* @brief Transfer accessibility event data
|
||||
*
|
||||
* @param func Function to notify transfer component data.
|
||||
*/
|
||||
*/
|
||||
virtual WMError TransferAccessibilityEvent(const Accessibility::AccessibilityEventInfo& info,
|
||||
int64_t uiExtensionIdLevel) { return WMError::WM_OK; };
|
||||
|
||||
@ -1815,7 +1815,7 @@ public:
|
||||
*
|
||||
* @param keepKeyboardFlag true means the keyboard should be preserved, otherwise means the opposite.
|
||||
* @return WM_OK means set keep keyboard flag success, others means failed.
|
||||
*/
|
||||
*/
|
||||
virtual WmErrorCode KeepKeyboardOnFocus(bool keepKeyboardFlag)
|
||||
{
|
||||
return WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT;
|
||||
@ -2009,7 +2009,7 @@ public:
|
||||
*
|
||||
* @param titleButtonRect.
|
||||
* @return WMError.
|
||||
*/
|
||||
*/
|
||||
virtual WMError GetTitleButtonArea(TitleButtonRect& titleButtonRect)
|
||||
{
|
||||
return WMError::WM_ERROR_DEVICE_NOT_SUPPORT;
|
||||
@ -2240,7 +2240,7 @@ public:
|
||||
* @brief clear keyEvent filter.
|
||||
*
|
||||
* @return WMError
|
||||
*/
|
||||
*/
|
||||
virtual WMError ClearKeyEventFilter() { return WMError::WM_ERROR_DEVICE_NOT_SUPPORT;}
|
||||
|
||||
/**
|
||||
@ -2366,14 +2366,14 @@ public:
|
||||
*/
|
||||
virtual void NotifyExtensionTimeout(int32_t errorCode) {}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @brief Get the real parent id of UIExtension
|
||||
*
|
||||
* @return Real parent id of UIExtension
|
||||
*/
|
||||
virtual int32_t GetRealParentId() const { return static_cast<int32_t>(INVALID_WINDOW_ID); }
|
||||
|
||||
/*
|
||||
/**
|
||||
* @brief Get the parent window type of UIExtension
|
||||
*
|
||||
* @return Parent window type of UIExtension
|
||||
|
@ -513,11 +513,11 @@ public:
|
||||
*/
|
||||
WMError UnregisterVisibilityChangedListener(const sptr<IVisibilityChangedListener>& listener);
|
||||
/**
|
||||
* @brief Register drawingcontent changed listener.
|
||||
*
|
||||
* @param listener IDrawingContentChangedListener.
|
||||
* @return WM_OK means register success, others means register failed.
|
||||
*/
|
||||
* @brief Register drawingcontent changed listener.
|
||||
*
|
||||
* @param listener IDrawingContentChangedListener.
|
||||
* @return WM_OK means register success, others means register failed.
|
||||
*/
|
||||
WMError RegisterDrawingContentChangedListener(const sptr<IDrawingContentChangedListener>& listener);
|
||||
|
||||
/**
|
||||
@ -723,7 +723,7 @@ public:
|
||||
* @param uid user id
|
||||
* @param visible visibility
|
||||
* @return WM_OK means notify success, others means notify failed.
|
||||
*/
|
||||
*/
|
||||
WMError NotifyWindowExtensionVisibilityChange(int32_t pid, int32_t uid, bool visible);
|
||||
|
||||
/**
|
||||
@ -732,7 +732,7 @@ public:
|
||||
* @param sourcePersistentId Window id which the focus shift from
|
||||
* @param targetPersistentId Window id which the focus shift to
|
||||
* @return WM_OK means shift window focus success, others means failed.
|
||||
*/
|
||||
*/
|
||||
WMError ShiftAppWindowFocus(int32_t sourcePersistentId, int32_t targetPersistentId);
|
||||
|
||||
/**
|
||||
@ -741,7 +741,7 @@ public:
|
||||
* @param windowId Window id which want to snapshot.
|
||||
* @param pixelMap Snapshot output pixel map.
|
||||
* @return WM_OK means get snapshot success, others means failed.
|
||||
*/
|
||||
*/
|
||||
WMError GetSnapshotByWindowId(int32_t windowId, std::shared_ptr<Media::PixelMap>& pixelMap);
|
||||
|
||||
/**
|
||||
@ -768,11 +768,11 @@ public:
|
||||
WMError RegisterWindowStyleChangedListener(const sptr<IWindowStyleChangedListener>& listener);
|
||||
|
||||
/**
|
||||
* @brief Unregister WindowStyle changed listener.
|
||||
*
|
||||
* @param listener IWindowStyleChangedListener
|
||||
* @return WM_OK means unregister success, others means unregister failed.
|
||||
*/
|
||||
* @brief Unregister WindowStyle changed listener.
|
||||
*
|
||||
* @param listener IWindowStyleChangedListener
|
||||
* @return WM_OK means unregister success, others means unregister failed.
|
||||
*/
|
||||
WMError UnregisterWindowStyleChangedListener(const sptr<IWindowStyleChangedListener>& listener);
|
||||
|
||||
/**
|
||||
|
@ -84,11 +84,11 @@ public:
|
||||
*/
|
||||
void GetFocusWindowInfo(FocusChangeInfo& focusInfo);
|
||||
/**
|
||||
* @brief Register drawingcontent changed listener.
|
||||
*
|
||||
* @param listener IDrawingContentChangedListener.
|
||||
* @return WM_OK means register success, others means register failed.
|
||||
*/
|
||||
* @brief Register drawingcontent changed listener.
|
||||
*
|
||||
* @param listener IDrawingContentChangedListener.
|
||||
* @return WM_OK means register success, others means register failed.
|
||||
*/
|
||||
WMError RegisterDrawingContentChangedListener(const sptr<IDrawingContentChangedListener>& listener);
|
||||
|
||||
/**
|
||||
@ -114,19 +114,19 @@ public:
|
||||
WMError UnregisterWindowModeChangedListener(const sptr<IWindowModeChangedListener>& listener);
|
||||
|
||||
/**
|
||||
* @brief Register camera window changed listener.
|
||||
*
|
||||
* @param listener ICameraWindowChangedListener.
|
||||
* @return WM_OK means register success, others means register failed.
|
||||
*/
|
||||
* @brief Register camera window changed listener.
|
||||
*
|
||||
* @param listener ICameraWindowChangedListener.
|
||||
* @return WM_OK means register success, others means register failed.
|
||||
*/
|
||||
WMError RegisterCameraWindowChangedListener(const sptr<ICameraWindowChangedListener>& listener);
|
||||
|
||||
/**
|
||||
* @brief Unregister camera window changed listener.
|
||||
*
|
||||
* @param listener ICameraWindowChangedListener.
|
||||
* @return WM_OK means unregister success, others means unregister failed.
|
||||
*/
|
||||
* @brief Unregister camera window changed listener.
|
||||
*
|
||||
* @param listener ICameraWindowChangedListener.
|
||||
* @return WM_OK means unregister success, others means unregister failed.
|
||||
*/
|
||||
WMError UnregisterCameraWindowChangedListener(const sptr<ICameraWindowChangedListener>& listener);
|
||||
|
||||
/**
|
||||
@ -206,11 +206,11 @@ public:
|
||||
*/
|
||||
WMError RegisterWindowStyleChangedListener(const sptr<IWindowStyleChangedListener>& listener);
|
||||
/**
|
||||
* @brief Unregister WindowStyle changed listener.
|
||||
*
|
||||
* @param listener IWindowStyleChangedListener
|
||||
* @return WM_OK means unregister success, others means unregister failed.
|
||||
*/
|
||||
* @brief Unregister WindowStyle changed listener.
|
||||
*
|
||||
* @param listener IWindowStyleChangedListener
|
||||
* @return WM_OK means unregister success, others means unregister failed.
|
||||
*/
|
||||
WMError UnregisterWindowStyleChangedListener(const sptr<IWindowStyleChangedListener>& listener);
|
||||
/**
|
||||
* @brief Get window style type.
|
||||
|
@ -409,28 +409,28 @@ public:
|
||||
* @brief Get subwindow title
|
||||
*
|
||||
* @return Return the subwindow title
|
||||
*/
|
||||
*/
|
||||
std::string GetSubWindowTitle() const;
|
||||
|
||||
/**
|
||||
* @brief Get subwindow decor enable
|
||||
*
|
||||
* @return Return ture means the subwindow decor enabled, otherwise not.
|
||||
*/
|
||||
*/
|
||||
bool GetSubWindowDecorEnable() const;
|
||||
|
||||
/**
|
||||
* @brief Get only sceneboard supported
|
||||
*
|
||||
* @return Return ture means only sceneboard supported, otherwise not.
|
||||
*/
|
||||
*/
|
||||
bool GetOnlySupportSceneBoard() const;
|
||||
|
||||
/**
|
||||
* @brief Get isUIExtFirstSubWindow flag
|
||||
*
|
||||
* @return true - is the first sub window of UIExtension, false - is not the first sub window of UIExtension
|
||||
*/
|
||||
*/
|
||||
bool GetIsUIExtFirstSubWindow() const;
|
||||
|
||||
/**
|
||||
@ -444,21 +444,21 @@ public:
|
||||
* @brief Get dialog decor enable
|
||||
*
|
||||
* @return true means the dialog decor is enabled, otherwise not.
|
||||
*/
|
||||
*/
|
||||
bool GetDialogDecorEnable() const;
|
||||
|
||||
/**
|
||||
* @brief Get dialog title
|
||||
*
|
||||
* @return Return the dialog title
|
||||
*/
|
||||
*/
|
||||
std::string GetDialogTitle() const;
|
||||
|
||||
/**
|
||||
* @brief Get window topmost
|
||||
*
|
||||
* @return true means the window is topmost, otherwise not.
|
||||
*/
|
||||
*/
|
||||
bool GetWindowTopmost() const;
|
||||
|
||||
/**
|
||||
@ -480,7 +480,7 @@ public:
|
||||
*
|
||||
* @param isUIExtAnySubWindow true - is any sub window of UIExtension,
|
||||
* false - is not any sub window of UIExtension.
|
||||
*/
|
||||
*/
|
||||
void SetIsUIExtAnySubWindow(bool isUIExtAnySubWindow);
|
||||
|
||||
/**
|
||||
|
@ -1113,7 +1113,7 @@ struct TitleButtonRect {
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
/**
|
||||
* Config of keyboard animation
|
||||
*/
|
||||
class KeyboardAnimationCurve : public Parcelable {
|
||||
|
@ -368,28 +368,28 @@ public:
|
||||
* @brief Get only sceneboard supported
|
||||
*
|
||||
* @return Return ture means only sceneboard supported, otherwise not.
|
||||
*/
|
||||
*/
|
||||
bool GetOnlySupportSceneBoard() const;
|
||||
|
||||
/**
|
||||
* @brief Get subwindow decor enable
|
||||
*
|
||||
* @return Return ture means the subwindow decor enabled, otherwise not.
|
||||
*/
|
||||
*/
|
||||
bool GetSubWindowDecorEnable() const;
|
||||
|
||||
/**
|
||||
* @brief Get subwindow title
|
||||
*
|
||||
* @return Return the subwindow title
|
||||
*/
|
||||
*/
|
||||
std::string GetSubWindowTitle() const;
|
||||
|
||||
/**
|
||||
* @brief Get window topmost
|
||||
*
|
||||
* @return true means the window is topmost, otherwise not.
|
||||
*/
|
||||
*/
|
||||
bool GetWindowTopmost() const;
|
||||
|
||||
/**
|
||||
@ -397,7 +397,7 @@ public:
|
||||
*
|
||||
* @param isUIExtAnySubWindow true - is any sub window of UIExtension,
|
||||
* false - is not any sub window of UIExtension.
|
||||
*/
|
||||
*/
|
||||
void SetIsUIExtAnySubWindow(bool isUIExtAnySubWindow);
|
||||
|
||||
/**
|
||||
|
@ -709,7 +709,7 @@ struct TitleButtonRect {
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
/**
|
||||
* Config of keyboard animation
|
||||
*/
|
||||
class KeyboardAnimationCurve : public Parcelable {
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include "wm_common.h"
|
||||
|
||||
namespace OHOS::Rosen {
|
||||
/**
|
||||
/**
|
||||
* @enum WindowDrawingContentState
|
||||
*
|
||||
* @brief DrawingContent state of a window
|
||||
|
@ -202,7 +202,7 @@ public:
|
||||
void SetSubWindowLevel(uint32_t subWindowLevel);
|
||||
uint32_t GetSubWindowLevel() const;
|
||||
|
||||
/*
|
||||
/**
|
||||
* UIExtension
|
||||
*/
|
||||
void SetRealParentId(int32_t realParentId);
|
||||
@ -218,7 +218,7 @@ public:
|
||||
void SetIsUIExtAnySubWindow(bool isUIExtAnySubWindow);
|
||||
bool GetIsUIExtAnySubWindow() const;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Multi instance
|
||||
*/
|
||||
void SetAppInstanceKey(const std::string& appInstanceKey);
|
||||
@ -361,7 +361,7 @@ private:
|
||||
*/
|
||||
uint32_t subWindowLevel_ = 1;
|
||||
|
||||
/*
|
||||
/**
|
||||
* UIExtension
|
||||
*/
|
||||
int32_t realParentId_ = INVALID_SESSION_ID;
|
||||
@ -371,7 +371,7 @@ private:
|
||||
bool isUIExtAnySubWindow_ = false;
|
||||
WindowType parentWindowType_ = WindowType::WINDOW_TYPE_APP_MAIN_WINDOW;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Multi instance
|
||||
*/
|
||||
std::string appInstanceKey_;
|
||||
|
@ -170,10 +170,10 @@ void IntentionEventManager::InputEventListener::OnInputEvent(
|
||||
}
|
||||
if (IS_BETA) {
|
||||
/*
|
||||
* Triggers input down event recorded.
|
||||
* If the special num of the events reached within the sepcial time interval,
|
||||
* a panic behavior is reported.
|
||||
*/
|
||||
* Triggers input down event recorded.
|
||||
* If the special num of the events reached within the sepcial time interval,
|
||||
* a panic behavior is reported.
|
||||
*/
|
||||
HiviewDFX::XCollie::GetInstance().TriggerTimerCount("FREQUENT_CLICK_WARNING", true, "");
|
||||
}
|
||||
}
|
||||
|
@ -348,7 +348,7 @@ struct SessionInfo {
|
||||
bool canStartAbilityFromBackground_ = false;
|
||||
bool isFoundationCall_ = false;
|
||||
|
||||
/*
|
||||
/**
|
||||
* UIExtension
|
||||
*/
|
||||
int32_t realParentId_ = INVALID_SESSION_ID;
|
||||
@ -357,7 +357,7 @@ struct SessionInfo {
|
||||
uint32_t parentWindowType_ = 1; // WINDOW_TYPE_APP_MAIN_WINDOW
|
||||
SessionViewportConfig config_;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Multi instance
|
||||
*/
|
||||
bool isNewAppInstance_ = false;
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
sptr<FoldCreaseRegion> currentFoldCreaseRegion_ = nullptr;
|
||||
bool lockDisplayStatus_ = false;
|
||||
bool onBootAnimation_ = false;
|
||||
/*
|
||||
/**
|
||||
* Avoid fold to expand process queues public interface
|
||||
*/
|
||||
bool GetModeChangeRunningStatus();
|
||||
@ -65,7 +65,7 @@ public:
|
||||
FoldDisplayMode GetLastCacheDisplayMode();
|
||||
|
||||
protected:
|
||||
/*
|
||||
/**
|
||||
* Avoid fold to expand process queues private variable
|
||||
*/
|
||||
std::atomic<int> pengdingTask_{FOLD_TO_EXPAND_TASK_NUM};
|
||||
|
@ -512,7 +512,7 @@ void ScreenSessionDumper::DumpScreenPropertyById(ScreenId id)
|
||||
dumpInfo_.append(oss.str());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* hidumper inject methods
|
||||
*/
|
||||
void ScreenSessionDumper::ShowNotifyFoldStatusChangedInfo()
|
||||
|
@ -32,7 +32,7 @@ public:
|
||||
WSError TransferKeyEvent(const std::shared_ptr<MMI::KeyEvent>& keyEvent) override;
|
||||
void RectCheck(uint32_t curWidth, uint32_t curHeight) override;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Hierarchy
|
||||
*/
|
||||
WSError SetTopmost(bool topmost) override;
|
||||
|
@ -47,7 +47,7 @@ public:
|
||||
MoveDragController(int32_t persistentId, bool isSystemWindow = false);
|
||||
~MoveDragController() = default;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Cross Display Move Drag
|
||||
*/
|
||||
enum class TargetRectCoordinate {
|
||||
@ -84,7 +84,7 @@ public:
|
||||
void OnLostFocus();
|
||||
void SetIsPcWindow(bool isPcWindow);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Cross Display Move Drag
|
||||
*/
|
||||
uint64_t GetMoveDragStartDisplayId() const;
|
||||
@ -97,7 +97,7 @@ public:
|
||||
void MoveDragInterrupt();
|
||||
void ResetCrossMoveDragProperty();
|
||||
|
||||
/*
|
||||
/**
|
||||
* Monitor screen connection status
|
||||
*/
|
||||
void OnConnect(ScreenId screenId) override;
|
||||
@ -165,7 +165,7 @@ private:
|
||||
void ResSchedReportData(int32_t type, bool onOffTag);
|
||||
void NotifyWindowInputPidChange(bool isServerPid);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Cross Display Move Drag
|
||||
*/
|
||||
std::pair<int32_t, int32_t> CalcUnifiedTranslate(const std::shared_ptr<MMI::PointerEvent>& pointerEvent);
|
||||
@ -226,7 +226,7 @@ private:
|
||||
{AreaType::LEFT_BOTTOM, Gravity::TOP_RIGHT}
|
||||
};
|
||||
|
||||
/*
|
||||
/**
|
||||
* Cross Display Move Drag
|
||||
*/
|
||||
bool isSystemWindow_ = false;
|
||||
|
@ -223,7 +223,7 @@ public:
|
||||
void SetFloatingScale(float floatingScale) override;
|
||||
WSError RaiseAboveTarget(int32_t subWindowId) override;
|
||||
|
||||
/*
|
||||
/**
|
||||
* PiP Window
|
||||
*/
|
||||
PiPTemplateInfo GetPiPTemplateInfo() const;
|
||||
@ -263,7 +263,7 @@ public:
|
||||
void SetMovable(bool isMovable);
|
||||
void SetOriPosYBeforeRaisedByKeyboard(int32_t posY);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Hierarchy
|
||||
*/
|
||||
virtual WSError SetTopmost(bool topmost) { return WSError::WS_ERROR_INVALID_CALLING; }
|
||||
@ -326,7 +326,7 @@ public:
|
||||
int32_t GetOriPosYBeforeRaisedByKeyboard() const;
|
||||
std::string GetClientIdentityToken() const;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Watermark
|
||||
*/
|
||||
void SetWatermarkEnabled(const std::string& watermarkName, bool isEnabled);
|
||||
@ -382,17 +382,17 @@ public:
|
||||
|
||||
void SetUpdatePrivateStateAndNotifyFunc(const UpdatePrivateStateAndNotifyFunc& func);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Rotation
|
||||
*/
|
||||
void RegisterRequestedOrientationChangeCallback(NotifyReqOrientationChangeFunc&& callback);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Visibility
|
||||
*/
|
||||
void SetNotifyVisibleChangeFunc(const NotifyVisibleChangeFunc& func);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Lifecycle
|
||||
*/
|
||||
void ClearJsSceneSessionCbMap(bool needRemove); // ONLY Accessed on OS_sceneSession thread
|
||||
@ -429,7 +429,7 @@ public:
|
||||
static void AddOrUpdateWindowDragHotArea(DisplayId displayId, uint32_t type, const WSRect& area);
|
||||
WSError UpdateRectChangeListenerRegistered(bool isRegister) override;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Decor
|
||||
*/
|
||||
int32_t GetCustomDecorHeight() const;
|
||||
@ -467,7 +467,7 @@ public:
|
||||
bool IsImmersiveType() const;
|
||||
bool IsPcOrPadEnableActivation() const;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Multi User
|
||||
*/
|
||||
void SetMinimizedFlagByUserSwitch(bool isMinimized);
|
||||
@ -475,7 +475,7 @@ public:
|
||||
void UnregisterSessionChangeListeners() override;
|
||||
void SetVisibilityChangedDetectFunc(const VisibilityChangedDetectFunc& func);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window ZOrder: PC
|
||||
*/
|
||||
void SetPcScenePanel(bool isPcScenePanel) { isPcScenePanel_ = isPcScenePanel; }
|
||||
@ -483,7 +483,7 @@ public:
|
||||
|
||||
void SetPrivacyModeChangeNotifyFunc(const NotifyPrivacyModeChangeFunc& func);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Multi Window
|
||||
*/
|
||||
WSError SetSplitButtonVisible(bool isVisible);
|
||||
@ -491,12 +491,12 @@ public:
|
||||
void SetRequestNextVsyncFunc(const RequestVsyncFunc& func);
|
||||
void OnNextVsyncDragReceived();
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Layout
|
||||
*/
|
||||
void ResetSizeChangeReasonIfDirty();
|
||||
|
||||
/*
|
||||
/**
|
||||
* Gesture Back
|
||||
*/
|
||||
bool GetGestureBackEnabled();
|
||||
@ -533,7 +533,7 @@ protected:
|
||||
virtual void NotifyClientToUpdateAvoidArea();
|
||||
bool PipelineNeedNotifyClientToUpdateAvoidArea(uint32_t dirty) const;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Gesture Back
|
||||
*/
|
||||
void UpdateGestureBackEnabled() override;
|
||||
@ -556,7 +556,7 @@ protected:
|
||||
*/
|
||||
NotifySystemBarPropertyChangeFunc onSystemBarPropertyChange_;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Hierarchy
|
||||
*/
|
||||
NotifyMainWindowTopmostChangeFunc mainWindowTopmostChangeFunc_;
|
||||
@ -581,7 +581,7 @@ private:
|
||||
void GetKeyboardAvoidArea(WSRect& rect, AvoidArea& avoidArea);
|
||||
void GetAINavigationBarArea(WSRect rect, AvoidArea& avoidArea) const;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Lifecycle
|
||||
*/
|
||||
bool CheckIdentityTokenIfMatched(const std::string& identityToken);
|
||||
@ -590,7 +590,7 @@ private:
|
||||
// session lifecycle funcs
|
||||
WSError ForegroundTask(const sptr<WindowSessionProperty>& property);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Move Drag
|
||||
*/
|
||||
void HandleMoveDragSurfaceNode(const SizeChangeReason reason);
|
||||
@ -600,7 +600,7 @@ private:
|
||||
bool isGlobal, bool needFlush);
|
||||
void HandleMoveDragEnd(WSRect& rect, const SizeChangeReason reason);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Gesture Back
|
||||
*/
|
||||
WMError SetGestureBackEnabled(bool isEnabled) override;
|
||||
@ -690,7 +690,7 @@ private:
|
||||
WSPropertyChangeAction action);
|
||||
void NotifyPrivacyModeChange();
|
||||
|
||||
/*
|
||||
/**
|
||||
* PiP Window
|
||||
*/
|
||||
NotifySessionPiPControlStatusChangeFunc sessionPiPControlStatusChangeFunc_;
|
||||
@ -716,7 +716,7 @@ private:
|
||||
ExtensionWindowFlags combinedExtWindowFlags_ { 0 };
|
||||
std::map<int32_t, ExtensionWindowFlags> extWindowFlagsMap_;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Decor
|
||||
*/
|
||||
mutable std::mutex customDecorHeightMutex_;
|
||||
@ -748,12 +748,12 @@ private:
|
||||
// Multi User
|
||||
bool isMinimizedByUserSwitch_ { false };
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window ZOrder: PC
|
||||
*/
|
||||
bool isPcScenePanel_ { false };
|
||||
|
||||
/*
|
||||
/**
|
||||
* Move Drag
|
||||
*/
|
||||
static std::shared_mutex windowDragHotAreaMutex_;
|
||||
@ -762,13 +762,13 @@ private:
|
||||
// Set true if either sessionProperty privacyMode or combinedExtWindowFlags_ privacyModeFlag is true.
|
||||
bool isPrivacyMode_ { false };
|
||||
|
||||
/*
|
||||
/**
|
||||
* Gesture Back
|
||||
*/
|
||||
bool isEnableGestureBack_ { true };
|
||||
bool isEnableGestureBackHadSet_ { false };
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Visibility
|
||||
*/
|
||||
NotifyVisibleChangeFunc notifyVisibleChangeFunc_;
|
||||
|
@ -152,7 +152,7 @@ public:
|
||||
bool RegisterLifecycleListener(const std::shared_ptr<ILifecycleListener>& listener);
|
||||
bool UnregisterLifecycleListener(const std::shared_ptr<ILifecycleListener>& listener);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Callbacks for ILifecycleListener
|
||||
*/
|
||||
void NotifyActivation();
|
||||
@ -166,7 +166,7 @@ public:
|
||||
void NotifyTransferAccessibilityEvent(const Accessibility::AccessibilityEventInfo& info,
|
||||
int64_t uiExtensionIdLevel) override;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Cross Display Move Drag
|
||||
*/
|
||||
std::shared_ptr<RSSurfaceNode> GetSurfaceNodeForMoveDrag() const;
|
||||
@ -344,13 +344,13 @@ public:
|
||||
void SetContextTransparentFunc(const NotifyContextTransparentFunc& func);
|
||||
void NotifyContextTransparent();
|
||||
bool NeedCheckContextTransparent() const;
|
||||
|
||||
/*
|
||||
|
||||
/**
|
||||
* Window Rotate Animation
|
||||
*/
|
||||
void SetAcquireRotateAnimationConfigFunc(const AcquireRotateAnimationConfigFunc& func);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Focus
|
||||
*/
|
||||
virtual WSError SetSystemSceneBlockingFocus(bool blocking);
|
||||
@ -375,7 +375,7 @@ public:
|
||||
virtual void NotifyUILostFocus();
|
||||
WSError NotifyFocusStatus(bool isFocused);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Multi Window
|
||||
*/
|
||||
void SetIsMidScene(bool isMidScene);
|
||||
@ -404,7 +404,7 @@ public:
|
||||
sptr<IRemoteObject> GetAbilityToken() const;
|
||||
WindowMode GetWindowMode() const;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window ZOrder
|
||||
*/
|
||||
virtual void SetZOrder(uint32_t zOrder);
|
||||
@ -527,7 +527,7 @@ protected:
|
||||
void UpdateSessionTouchable(bool touchable);
|
||||
virtual WSError UpdateActiveStatus(bool isActive) { return WSError::WS_OK; }
|
||||
|
||||
/*
|
||||
/**
|
||||
* Gesture Back
|
||||
*/
|
||||
virtual void UpdateGestureBackEnabled() {}
|
||||
@ -624,7 +624,7 @@ protected:
|
||||
NotifyFrameLayoutFinishFunc frameLayoutFinishFunc_;
|
||||
VisibilityChangedDetectFunc visibilityChangedDetectFunc_;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Rotate Animation
|
||||
*/
|
||||
AcquireRotateAnimationConfigFunc acquireRotateAnimationConfigFunc_;
|
||||
@ -636,13 +636,13 @@ protected:
|
||||
float snapshotScale_ = 0.5;
|
||||
sptr<ScenePersistence> scenePersistence_ = nullptr;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window ZOrder
|
||||
*/
|
||||
uint32_t zOrder_ = 0;
|
||||
uint32_t lastZOrder_ = 0;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Focus
|
||||
*/
|
||||
bool isFocused_ = false;
|
||||
@ -690,12 +690,12 @@ private:
|
||||
bool ShouldCreateDetectTaskInRecent(bool newShowRecent, bool oldShowRecent, bool isAttach) const;
|
||||
void CreateDetectStateTask(bool isAttach, WindowMode windowMode);
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Rotate Animation
|
||||
*/
|
||||
int32_t GetRotateAnimationDuration();
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Property
|
||||
*/
|
||||
void InitSessionPropertyWhenConnect(const sptr<WindowSessionProperty>& property);
|
||||
@ -727,7 +727,7 @@ private:
|
||||
mutable std::shared_mutex propertyMutex_;
|
||||
sptr<WindowSessionProperty> property_;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Window Focus
|
||||
*/
|
||||
mutable std::shared_mutex uiRequestFocusMutex_;
|
||||
@ -739,7 +739,7 @@ private:
|
||||
bool showRecent_ = false;
|
||||
bool bufferAvailable_ = false;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Multi Window
|
||||
*/
|
||||
bool isMidScene_ = false;
|
||||
|
@ -283,7 +283,7 @@ public:
|
||||
*/
|
||||
virtual WSError OnSessionModalTypeChange(SubWindowModalType subWindowModalType) { return WSError::WS_OK; }
|
||||
|
||||
/*
|
||||
/**
|
||||
* Gesture Back
|
||||
*/
|
||||
virtual WMError SetGestureBackEnabled(bool isEnabled) { return WMError::WM_OK; }
|
||||
|
@ -102,7 +102,7 @@ public:
|
||||
void NotifyExtensionEventAsync(uint32_t notifyEvent) override;
|
||||
WSError OnSessionModalTypeChange(SubWindowModalType subWindowModalType) override;
|
||||
|
||||
/*
|
||||
/**
|
||||
* Gesture Back
|
||||
*/
|
||||
WMError SetGestureBackEnabled(bool isEnabled) override;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright (c) 2023 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -120,7 +120,7 @@ namespace {
|
||||
controller->ConvertBoundaryRectsByRotation(boundaryRects, displayId);
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @tc.name: CurrentRotation90
|
||||
* @tc.desc: CurrentRotation90 func
|
||||
* @tc.type: FUNC
|
||||
@ -145,7 +145,7 @@ namespace {
|
||||
ASSERT_EQ(finalVector[0].height_, 20);
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @tc.name: CurrentRotation180
|
||||
* @tc.desc: CurrentRotation180 func
|
||||
* @tc.type: FUNC
|
||||
|
@ -94,7 +94,7 @@ namespace {
|
||||
ASSERT_EQ(ScreenSettingHelper::dpiObserver_, nullptr);
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @tc.name: UnregisterSettingDpiObserver02
|
||||
* @tc.desc: UnregisterSettingDpiObserver02
|
||||
* @tc.type: FUNC
|
||||
@ -323,7 +323,7 @@ namespace {
|
||||
ASSERT_EQ(result, false);
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @tc.name: GetSettingRotationScreenID02
|
||||
* @tc.desc: GetSettingRotationScreenID02
|
||||
* @tc.type: FUNC
|
||||
|
@ -66,9 +66,9 @@ void WindowDisplayChangeAdapterTest::TearDown()
|
||||
|
||||
namespace {
|
||||
/**
|
||||
*@tc.name: OnChange
|
||||
*@tc.desc: Window Display Information Change
|
||||
*@tc.type: FUNC
|
||||
* @tc.name: OnChange
|
||||
* @tc.desc: Window Display Information Change
|
||||
* @tc.type: FUNC
|
||||
*/
|
||||
HWTEST_F(WindowDisplayChangeAdapterTest, OnChange, Function | SmallTest | Level2)
|
||||
{
|
||||
@ -83,9 +83,9 @@ HWTEST_F(WindowDisplayChangeAdapterTest, OnChange, Function | SmallTest | Level2
|
||||
}
|
||||
|
||||
/**
|
||||
*@tc.name: OnDisplayInfoChange
|
||||
*@tc.desc: notify Display Information Change
|
||||
*@tc.type: FUNC
|
||||
* @tc.name: OnDisplayInfoChange
|
||||
* @tc.desc: notify Display Information Change
|
||||
* @tc.type: FUNC
|
||||
*/
|
||||
HWTEST_F(WindowDisplayChangeAdapterTest, OnDisplayInfoChange, Function | SmallTest | Level2)
|
||||
{
|
||||
|
@ -1331,7 +1331,7 @@ HWTEST_F(WindowImplTest, SetBrightness03, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: RequestVsync
|
||||
* @tc.desc: RequestVsync test
|
||||
* @tc.type: FUNC
|
||||
@ -1363,7 +1363,7 @@ HWTEST_F(WindowImplTest, RequestVsync, Function | SmallTest | Level3)
|
||||
window->RequestVsync(callback);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: Create3
|
||||
* @tc.desc: Create3 WindowCreateCheck
|
||||
* @tc.type: FUNC
|
||||
|
@ -633,7 +633,7 @@ HWTEST_F(WindowImplTest2, CalculatePointerDirection, Function | SmallTest | Leve
|
||||
ASSERT_EQ(5, window->CalculatePointerDirection(102, 50));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: FindWindowById
|
||||
* @tc.desc: FindWindowById Test
|
||||
* @tc.type: FUNC
|
||||
@ -658,7 +658,7 @@ HWTEST_F(WindowImplTest2, FindWindowById, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetSubWindow
|
||||
* @tc.desc: GetSubWindow Test
|
||||
* @tc.type: FUNC
|
||||
@ -689,7 +689,7 @@ HWTEST_F(WindowImplTest2, GetSubWindow, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: UpdateConfigurationForAll
|
||||
* @tc.desc: UpdateConfigurationForAll Test
|
||||
* @tc.type: FUNC
|
||||
@ -707,7 +707,7 @@ HWTEST_F(WindowImplTest2, UpdateConfigurationForAll, Function | SmallTest | Leve
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetAlpha
|
||||
* @tc.desc: SetAlpha | GetAlpha
|
||||
* @tc.type: FUNC
|
||||
@ -728,7 +728,7 @@ HWTEST_F(WindowImplTest2, SetAlpha, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetAvoidAreaByType
|
||||
* @tc.desc: Test GetAvoidAreaByType when ret is not ok
|
||||
* @tc.type: FUNC
|
||||
@ -749,7 +749,7 @@ HWTEST_F(WindowImplTest2, GetAvoidAreaByType, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetWindowType
|
||||
* @tc.desc: SetWindowType Test
|
||||
* @tc.type: FUNC
|
||||
@ -775,7 +775,7 @@ HWTEST_F(WindowImplTest2, SetWindowType, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetWindowMode
|
||||
* @tc.desc: SetWindowMode Test
|
||||
* @tc.type: FUNC
|
||||
@ -813,7 +813,7 @@ HWTEST_F(WindowImplTest2, SetWindowMode, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: WindowFlag
|
||||
* @tc.desc: GetWindowFlags | SetWindowFlags | AddWindowFlag | RemoveWindowFlag
|
||||
* @tc.type: FUNC
|
||||
@ -841,7 +841,7 @@ HWTEST_F(WindowImplTest2, WindowFlag, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: OnNewWant
|
||||
* @tc.desc: OnNewWant test
|
||||
* @tc.type: FUNC
|
||||
@ -868,7 +868,7 @@ HWTEST_F(WindowImplTest2, OnNewWant, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetContentInfo
|
||||
* @tc.desc: GetContentInfo test
|
||||
* @tc.type: FUNC
|
||||
@ -894,7 +894,7 @@ HWTEST_F(WindowImplTest2, GetContentInfo, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: Snapshot
|
||||
* @tc.desc: Snapshot test
|
||||
* @tc.type: FUNC
|
||||
@ -920,7 +920,7 @@ HWTEST_F(WindowImplTest2, Snapshot, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: DumpInfo
|
||||
* @tc.desc: DumpInfo test
|
||||
* @tc.type: FUNC
|
||||
@ -952,7 +952,7 @@ HWTEST_F(WindowImplTest2, DumpInfo, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetLayoutFullScreen
|
||||
* @tc.desc: SetLayoutFullScreen test
|
||||
* @tc.type: FUNC
|
||||
@ -1010,7 +1010,7 @@ HWTEST_F(WindowImplTest2, SetLayoutFullScreen, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetImmersiveModeEnabledState
|
||||
* @tc.desc: SetImmersiveModeEnabledState test
|
||||
* @tc.type: FUNC
|
||||
@ -1071,7 +1071,7 @@ HWTEST_F(WindowImplTest2, SetImmersiveModeEnabledState, Function | SmallTest | L
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetFullScreen
|
||||
* @tc.desc: SetFullScreen test
|
||||
* @tc.type: FUNC
|
||||
@ -1133,7 +1133,7 @@ HWTEST_F(WindowImplTest2, SetFullScreen, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: UpdateTitleButtonVisibility
|
||||
* @tc.desc: UpdateTitleButtonVisibility test
|
||||
* @tc.type: FUNC
|
||||
@ -1160,7 +1160,7 @@ HWTEST_F(WindowImplTest2, UpdateTitleButtonVisibility, Function | SmallTest | Le
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: WindowCreateCheck
|
||||
* @tc.desc: WindowCreateCheck test
|
||||
* @tc.type: FUNC
|
||||
@ -1176,7 +1176,7 @@ HWTEST_F(WindowImplTest2, WindowCreateCheck, Function | SmallTest | Level3)
|
||||
ASSERT_NE(WMError::WM_OK, window->WindowCreateCheck(static_cast<uint32_t>(-1)));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: BindDialogTarget
|
||||
* @tc.desc: BindDialogTarget test
|
||||
* @tc.type: FUNC
|
||||
@ -1206,7 +1206,7 @@ HWTEST_F(WindowImplTest2, BindDialogTarget, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: Destroy
|
||||
* @tc.desc: Destroy test
|
||||
* @tc.type: FUNC
|
||||
@ -1232,7 +1232,7 @@ HWTEST_F(WindowImplTest2, Destroy, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_DO_NOTHING, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: UpdateSurfaceNodeAfterCustomAnimation
|
||||
* @tc.desc: UpdateSurfaceNodeAfterCustomAnimation test
|
||||
* @tc.type: FUNC
|
||||
@ -1329,7 +1329,7 @@ HWTEST_F(WindowImplTest2, ShowHide, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: CloseWindow
|
||||
* @tc.desc: CloseWindow test
|
||||
* @tc.type: FUNC
|
||||
@ -1352,7 +1352,7 @@ HWTEST_F(WindowImplTest2, CloseWindow, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: PendingCloseWindow
|
||||
* @tc.desc: PendingCloseWindow test
|
||||
* @tc.type: FUNC
|
||||
@ -1366,7 +1366,7 @@ HWTEST_F(WindowImplTest2, PendingCloseWindow, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(nullptr, window->context_);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: InvalidWindow
|
||||
* @tc.desc: InvalidWindow test
|
||||
* @tc.type: FUNC
|
||||
@ -1382,7 +1382,7 @@ HWTEST_F(WindowImplTest2, InvalidWindow, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_WINDOW, window->Close());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: BackgroundColor
|
||||
* @tc.desc: GetBackgroundColor | SetBackGroundColor test
|
||||
* @tc.type: FUNC
|
||||
@ -1409,7 +1409,7 @@ HWTEST_F(WindowImplTest2, BackgroundColor, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(0, window->GetBackgroundColor());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetTransparent
|
||||
* @tc.desc: SetTransparent test
|
||||
* @tc.type: FUNC
|
||||
@ -1434,7 +1434,7 @@ HWTEST_F(WindowImplTest2, SetTransparent, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: TransferLifeCycleEventToString
|
||||
* @tc.desc: TransferLifeCycleEventToString test
|
||||
* @tc.type: FUNC
|
||||
@ -1448,7 +1448,7 @@ HWTEST_F(WindowImplTest2, TransferLifeCycleEventToString, Function | SmallTest |
|
||||
static_cast<LifeCycleEvent>(uint32_t(-1))));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyWindowTransition
|
||||
* @tc.desc: NotifyWindowTransition test
|
||||
* @tc.type: FUNC
|
||||
|
@ -119,7 +119,7 @@ void WindowImplTest3::TearDown()
|
||||
}
|
||||
|
||||
namespace {
|
||||
/*
|
||||
/**
|
||||
* @tc.name: RegisterAnimationTransitionController
|
||||
* @tc.desc: RegisterAnimationTransitionController test
|
||||
* @tc.type: FUNC
|
||||
@ -143,7 +143,7 @@ HWTEST_F(WindowImplTest3, RegisterAnimationTransitionController, Function | Smal
|
||||
window->RegisterAnimationTransitionController(listener);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: RegisterDialogDeathRecipientListener
|
||||
* @tc.desc: RegisterDialogDeathRecipientListener | NotifyDestroy test
|
||||
* @tc.type: FUNC
|
||||
@ -165,7 +165,7 @@ HWTEST_F(WindowImplTest3, RegisterDialogDeathRecipientListener, Function | Small
|
||||
window->NotifyDestroy();
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyScreenshot
|
||||
* @tc.desc: NotifyScreenshot test
|
||||
* @tc.type: FUNC
|
||||
@ -184,7 +184,7 @@ HWTEST_F(WindowImplTest3, NotifyScreenshot, Function | SmallTest | Level3)
|
||||
window->screenshotListeners_[window->GetWindowId()].clear();
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyTouchDialogTarget
|
||||
* @tc.desc: NotifyTouchDialogTarget test
|
||||
* @tc.type: FUNC
|
||||
@ -204,7 +204,7 @@ HWTEST_F(WindowImplTest3, NotifyTouchDialogTarget, Function | SmallTest | Level3
|
||||
window->dialogTargetTouchListeners_[window->GetWindowId()].clear();
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifySizeChange
|
||||
* @tc.desc: NotifySizeChange test
|
||||
* @tc.type: FUNC
|
||||
@ -224,7 +224,7 @@ HWTEST_F(WindowImplTest3, NotifySizeChange, Function | SmallTest | Level3)
|
||||
window->windowChangeListeners_[window->GetWindowId()].clear();
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyModeChange
|
||||
* @tc.desc: NotifyModeChange test
|
||||
* @tc.type: FUNC
|
||||
@ -243,7 +243,7 @@ HWTEST_F(WindowImplTest3, NotifyModeChange, Function | SmallTest | Level3)
|
||||
window->windowChangeListeners_[window->GetWindowId()].clear();
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyAvoidAreaChange
|
||||
* @tc.desc: NotifyAvoidAreaChange test
|
||||
* @tc.type: FUNC
|
||||
@ -263,7 +263,7 @@ HWTEST_F(WindowImplTest3, NotifyAvoidAreaChange, Function | SmallTest | Level3)
|
||||
window->avoidAreaChangeListeners_[window->GetWindowId()].clear();
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyDisplayMoveChange
|
||||
* @tc.desc: NotifyDisplayMoveChange test
|
||||
* @tc.type: FUNC
|
||||
@ -281,7 +281,7 @@ HWTEST_F(WindowImplTest3, NotifyDisplayMoveChange, Function | SmallTest | Level3
|
||||
window->NotifyDisplayMoveChange(DisplayId{}, DisplayId{});
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetAceAbilityHandler
|
||||
* @tc.desc: SetAceAbilityHandler test
|
||||
* @tc.type: FUNC
|
||||
@ -299,7 +299,7 @@ HWTEST_F(WindowImplTest3, SetAceAbilityHandler, Function | SmallTest | Level3)
|
||||
window->SetAceAbilityHandler(handler);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: HandleBackKeyPressedEvent
|
||||
* @tc.desc: HandleBackKeyPressedEvent test
|
||||
* @tc.type: FUNC
|
||||
@ -325,7 +325,7 @@ HWTEST_F(WindowImplTest3, HandleBackKeyPressedEvent, Function | SmallTest | Leve
|
||||
window->HandleBackKeyPressedEvent(keyEvent);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: ConsumeKeyEvent
|
||||
* @tc.desc: ConsumeKeyEvent test
|
||||
* @tc.type: FUNC
|
||||
@ -356,7 +356,7 @@ HWTEST_F(WindowImplTest3, ConsumeKeyEvent, Function | SmallTest | Level3)
|
||||
window->ConsumeKeyEvent(keyEvent);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: ConsumePointerEvent
|
||||
* @tc.desc: ConsumePointerEvent test
|
||||
* @tc.type: FUNC
|
||||
@ -387,7 +387,7 @@ HWTEST_F(WindowImplTest3, ConsumePointerEvent, Function | SmallTest | Level3)
|
||||
window->ConsumePointerEvent(pointerEvent);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: HandleModeChangeHotZones
|
||||
* @tc.desc: HandleModeChangeHotZones test
|
||||
* @tc.type: FUNC
|
||||
@ -406,7 +406,7 @@ HWTEST_F(WindowImplTest3, HandleModeChangeHotZones, Function | SmallTest | Level
|
||||
window->HandleModeChangeHotZones(0, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: UpdatePointerEventForStretchableWindow
|
||||
* @tc.desc: UpdatePointerEventForStretchableWindow test
|
||||
* @tc.type: FUNC
|
||||
@ -476,7 +476,7 @@ HWTEST_F(WindowImplTest3, MoveDrag, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: TransferPointerEvent
|
||||
* @tc.desc: TransferPointerEvent test
|
||||
* @tc.type: FUNC
|
||||
@ -503,7 +503,7 @@ HWTEST_F(WindowImplTest3, TransferPointerEvent, Function | SmallTest | Level3)
|
||||
window->TransferPointerEvent(pointerEvent);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: UpdateConfiguration
|
||||
* @tc.desc: UpdateConfiguration test
|
||||
* @tc.type: FUNC
|
||||
@ -544,7 +544,7 @@ HWTEST_F(WindowImplTest3, UpdateConfiguration, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: UpdateWindowState
|
||||
* @tc.desc: UpdateWindowState test
|
||||
* @tc.type: FUNC
|
||||
@ -572,7 +572,7 @@ HWTEST_F(WindowImplTest3, UpdateWindowState, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: RestoreSplitWindowMode
|
||||
* @tc.desc: RestoreSplitWindowMode test
|
||||
* @tc.type: FUNC
|
||||
@ -596,7 +596,7 @@ HWTEST_F(WindowImplTest3, RestoreSplitWindowMode, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: IsFocused
|
||||
* @tc.desc: IsFocused test
|
||||
* @tc.type: FUNC
|
||||
@ -622,7 +622,7 @@ HWTEST_F(WindowImplTest3, IsFocused, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: UpdateSubWindowStateAndNotify
|
||||
* @tc.desc: update subwindow state
|
||||
* @tc.type: FUNC
|
||||
@ -666,7 +666,7 @@ HWTEST_F(WindowImplTest3, UpdateSubWindowStateAndNotify, Function | SmallTest |
|
||||
ASSERT_EQ(WMError::WM_OK, mainWindow->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: UpdateWindowStateWhenHide
|
||||
* @tc.desc: UpdateWindowStateWhenHide test
|
||||
* @tc.type: FUNC
|
||||
@ -698,7 +698,7 @@ HWTEST_F(WindowImplTest3, UpdateWindowStateWhenHide, Function | SmallTest | Leve
|
||||
ASSERT_EQ(WMError::WM_OK, subWindow->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: UpdateWindowStateWhenShow
|
||||
* @tc.desc: UpdateWindowStateWhenShow test
|
||||
* @tc.type: FUNC
|
||||
@ -728,7 +728,7 @@ HWTEST_F(WindowImplTest3, UpdateWindowStateWhenShow, Function | SmallTest | Leve
|
||||
ASSERT_EQ(WMError::WM_OK, mainWindow->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: RaiseToAppTop
|
||||
* @tc.desc: RaiseToAppTop test
|
||||
* @tc.type: FUNC
|
||||
@ -759,7 +759,7 @@ HWTEST_F(WindowImplTest3, RaiseToAppTop, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: UpdateDecorEnable
|
||||
* @tc.desc: UpdateDecorEnable test
|
||||
* @tc.type: FUNC
|
||||
@ -992,7 +992,7 @@ HWTEST_F(WindowImplTest3, SetAlpha01, Function | SmallTest | Level2)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: CreateWindowImpl
|
||||
* @tc.desc: CreateSurfaceNode with different type
|
||||
* @tc.type: FUNC
|
||||
@ -1051,7 +1051,7 @@ HWTEST_F(WindowImplTest3, CreateWindowImpl, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window4->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: Create
|
||||
* @tc.desc: Create
|
||||
* @tc.type: FUNC
|
||||
@ -1079,7 +1079,7 @@ HWTEST_F(WindowImplTest3, Create, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window1->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: Create1
|
||||
* @tc.desc: Create WindowCreateCheck
|
||||
* @tc.type: FUNC
|
||||
@ -1115,7 +1115,7 @@ HWTEST_F(WindowImplTest3, Create1, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window2->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: Create2
|
||||
* @tc.desc: Create WindowCreateCheck
|
||||
* @tc.type: FUNC
|
||||
@ -1151,7 +1151,7 @@ HWTEST_F(WindowImplTest3, Create2, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window2->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetTopWindowWithId
|
||||
* @tc.desc: CreateSurfaceNode with different type
|
||||
* @tc.type: FUNC
|
||||
@ -1192,7 +1192,7 @@ HWTEST_F(WindowImplTest3, NotifyForegroundInteractiveStatus, Function | SmallTes
|
||||
ASSERT_EQ(WindowState::STATE_DESTROYED, window->GetWindowState());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetTopWindowWithContext
|
||||
* @tc.desc: GetTopWindowWithContexttest01
|
||||
* @tc.type: FUNC
|
||||
@ -1213,7 +1213,7 @@ HWTEST_F(WindowImplTest3, GetTopWindowWithContext01, Function | SmallTest | Leve
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetSubWindow
|
||||
* @tc.desc: GetSubWindowtest02
|
||||
* @tc.type: FUNC
|
||||
@ -1239,7 +1239,7 @@ HWTEST_F(WindowImplTest3, GetSubWindowtext02, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetFloatingMaximize
|
||||
* @tc.desc: SetFloatingMaximize test
|
||||
* @tc.type: FUNC
|
||||
@ -1295,7 +1295,7 @@ HWTEST_F(WindowImplTest3, SetAspectRatio02, Function | SmallTest | Level2)
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_PARAM, window->SetAspectRatio(0.0));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: MapDialogWindowToAppIfNeeded
|
||||
* @tc.desc: MapDialogWindowToAppIfNeededtest
|
||||
* @tc.type: FUNC
|
||||
@ -1318,7 +1318,7 @@ HWTEST_F(WindowImplTest3, MapDialogWindowToAppIfNeededtest, Function | SmallTest
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetConfigurationFromAbilityInfo
|
||||
* @tc.desc: GetConfigurationFromAbilityInfotest
|
||||
* @tc.type: FUNC
|
||||
|
@ -227,7 +227,7 @@ HWTEST_F(WindowManagerTest, GetSnapshotByWindowId01, Function | SmallTest | Leve
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetUnreliableWindowInfo
|
||||
* @tc.desc: GetUnreliableWindowInfo ok
|
||||
* @tc.type: FUNC
|
||||
|
@ -377,7 +377,7 @@ HWTEST_F(WindowSceneSessionImplTest, IsValidSystemWindowType01, Function | Small
|
||||
ASSERT_TRUE(!windowSceneSession->IsValidSystemWindowType(WindowType::WINDOW_TYPE_APP_LAUNCHING));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: InvalidWindow
|
||||
* @tc.desc: InvalidWindow test
|
||||
* @tc.type: FUNC
|
||||
@ -787,7 +787,7 @@ HWTEST_F(WindowSceneSessionImplTest, NotifyDrawingCompleted, Function | SmallTes
|
||||
window->NotifyDrawingCompleted();
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetTransparent
|
||||
* @tc.desc: SetTransparent test
|
||||
* @tc.type: FUNC
|
||||
@ -811,7 +811,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetTransparent, Function | SmallTest | Leve
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetTopwindowWithId
|
||||
* @tc.desc: GetTopwindowWithId test
|
||||
* @tc.type: FUNC
|
||||
@ -846,7 +846,7 @@ HWTEST_F(WindowSceneSessionImplTest, GetTopwindowWithId, Function | SmallTest |
|
||||
WindowSessionImpl::windowSessionMap_.erase(winName);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetAspectRatio01
|
||||
* @tc.desc: SetAspectRatio test
|
||||
* @tc.type: FUNC
|
||||
@ -860,7 +860,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetAspectRatio01, Function | SmallTest | Le
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_WINDOW, window->SetAspectRatio(0.1));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetAspectRatio02
|
||||
* @tc.desc: SetAspectRatio test
|
||||
* @tc.type: FUNC
|
||||
@ -886,7 +886,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetAspectRatio02, Function | SmallTest | Le
|
||||
ASSERT_EQ(ratio, session->GetAspectRatio());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: ResetAspectRatio
|
||||
* @tc.desc: ResetAspectRatio test GetAvoidAreaByType
|
||||
* @tc.type: FUNC
|
||||
@ -904,7 +904,7 @@ HWTEST_F(WindowSceneSessionImplTest, ResetAspectRatio, Function | SmallTest | Le
|
||||
ASSERT_EQ(0, session->GetAspectRatio());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetAvoidAreaByType
|
||||
* @tc.desc: GetAvoidAreaByType test
|
||||
* @tc.type: FUNC
|
||||
@ -924,7 +924,7 @@ HWTEST_F(WindowSceneSessionImplTest, GetAvoidAreaByType, Function | SmallTest |
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_WINDOW, window->GetAvoidAreaByType(AvoidAreaType::TYPE_CUTOUT, avoidarea));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: Immersive
|
||||
* @tc.desc: Immersive01 test
|
||||
* @tc.type: FUNC
|
||||
@ -949,7 +949,7 @@ HWTEST_F(WindowSceneSessionImplTest, Immersive, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(false, window->IsFullScreen());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SystemBarProperty
|
||||
* @tc.desc: SystemBarProperty01 test
|
||||
* @tc.type: FUNC
|
||||
@ -966,7 +966,7 @@ HWTEST_F(WindowSceneSessionImplTest, SystemBarProperty, Function | SmallTest | L
|
||||
window->SetSystemBarProperty(WindowType::WINDOW_TYPE_STATUS_BAR, property));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SystemBarProperty02
|
||||
* @tc.desc: SystemBarProperty02 test
|
||||
* @tc.type: FUNC
|
||||
@ -995,7 +995,7 @@ HWTEST_F(WindowSceneSessionImplTest, SystemBarProperty02, Function | SmallTest |
|
||||
ASSERT_FALSE(window->property_->GetSystemBarProperty()[WindowType::WINDOW_TYPE_STATUS_BAR].enableAnimation_);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SystemBarProperty03
|
||||
* @tc.desc: SystemBarProperty03 test
|
||||
* @tc.type: FUNC
|
||||
@ -1021,7 +1021,7 @@ HWTEST_F(WindowSceneSessionImplTest, SystemBarProperty03, Function | SmallTest |
|
||||
ASSERT_TRUE(window->property_->GetSystemBarProperty()[WindowType::WINDOW_TYPE_STATUS_BAR].enableAnimation_);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SystemBarProperty04
|
||||
* @tc.desc: SystemBarProperty04 test
|
||||
* @tc.type: FUNC
|
||||
@ -1040,7 +1040,7 @@ HWTEST_F(WindowSceneSessionImplTest, SystemBarProperty04, Function | SmallTest |
|
||||
window->SetSpecificBarProperty(WindowType::WINDOW_TYPE_STATUS_BAR, property));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SystemBarProperty05
|
||||
* @tc.desc: SystemBarProperty05 test
|
||||
* @tc.type: FUNC
|
||||
@ -1069,7 +1069,7 @@ HWTEST_F(WindowSceneSessionImplTest, SystemBarProperty05, Function | SmallTest |
|
||||
ASSERT_FALSE(window->property_->GetSystemBarProperty()[WindowType::WINDOW_TYPE_STATUS_BAR].enableAnimation_);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SystemBarProperty06
|
||||
* @tc.desc: SystemBarProperty06 test
|
||||
* @tc.type: FUNC
|
||||
@ -1095,7 +1095,7 @@ HWTEST_F(WindowSceneSessionImplTest, SystemBarProperty06, Function | SmallTest |
|
||||
ASSERT_TRUE(window->property_->GetSystemBarProperty()[WindowType::WINDOW_TYPE_STATUS_BAR].enableAnimation_);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SystemBarProperty07
|
||||
* @tc.desc: SystemBarProperty07 test
|
||||
* @tc.type: FUNC
|
||||
@ -1140,7 +1140,7 @@ HWTEST_F(WindowSceneSessionImplTest, SystemBarProperty07, Function | SmallTest |
|
||||
ASSERT_EQ(WMError::WM_OK, window->Destroy(true));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetSystemBarProperties
|
||||
* @tc.desc: SetSystemBarProperties test
|
||||
* @tc.type: FUNC
|
||||
@ -1175,7 +1175,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetSystemBarProperties, Function | SmallTes
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetSystemBarProperties
|
||||
* @tc.desc: GetSystemBarProperties test
|
||||
* @tc.type: FUNC
|
||||
@ -1192,7 +1192,7 @@ HWTEST_F(WindowSceneSessionImplTest, GetSystemBarProperties, Function | SmallTes
|
||||
ASSERT_EQ(WMError::WM_OK, window->GetSystemBarProperties(properties));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SpecificBarProperty
|
||||
* @tc.desc: SpecificBarProperty01 test
|
||||
* @tc.type: FUNC
|
||||
@ -1213,7 +1213,7 @@ HWTEST_F(WindowSceneSessionImplTest, SpecificBarProperty, Function | SmallTest |
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifySpecificWindowSessionProperty
|
||||
* @tc.desc: NotifySpecificWindowSessionProperty01 test
|
||||
* @tc.type: FUNC
|
||||
@ -1241,7 +1241,7 @@ HWTEST_F(WindowSceneSessionImplTest, NotifySpecificWindowSessionProperty, Functi
|
||||
window->NotifySpecificWindowSessionProperty(WindowType::WINDOW_TYPE_STATUS_BAR, property));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: LimitCameraFloatWindowMininumSize
|
||||
* @tc.desc: LimitCameraFloatWindowMininumSize01 test
|
||||
* @tc.type: FUNC
|
||||
@ -1258,7 +1258,7 @@ HWTEST_F(WindowSceneSessionImplTest, LimitCameraFloatWindowMininumSize, Function
|
||||
window->LimitCameraFloatWindowMininumSize(width, height, vpr);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyWindowNeedAvoid
|
||||
* @tc.desc: NotifyWindowNeedAvoid test
|
||||
* @tc.type: FUNC
|
||||
@ -1279,7 +1279,7 @@ HWTEST_F(WindowSceneSessionImplTest, NotifyWindowNeedAvoid, Function | SmallTest
|
||||
ASSERT_EQ(WMError::WM_OK, window->NotifyWindowNeedAvoid(false));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetLayoutFullScreenByApiVersion
|
||||
* @tc.desc: SetLayoutFullScreenByApiVersion test
|
||||
* @tc.type: FUNC
|
||||
@ -1299,7 +1299,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetLayoutFullScreenByApiVersion, Function |
|
||||
ASSERT_EQ(WMError::WM_OK, window->SetLayoutFullScreenByApiVersion(false));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetGlobalMaximizeMode
|
||||
* @tc.desc: SetGlobalMaximizeMode test
|
||||
* @tc.type: FUNC
|
||||
@ -1324,7 +1324,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetGlobalMaximizeMode, Function | SmallTest
|
||||
ASSERT_EQ(WMError::WM_OK, window->SetGlobalMaximizeMode(MaximizeMode::MODE_RECOVER));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: CheckParmAndPermission
|
||||
* @tc.desc: CheckParmAndPermission test
|
||||
* @tc.type: FUNC
|
||||
@ -1346,7 +1346,7 @@ HWTEST_F(WindowSceneSessionImplTest, CheckParmAndPermission, Function | SmallTes
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetBackdropBlurStyle
|
||||
* @tc.desc: SetBackdropBlurStyle test
|
||||
* @tc.type: FUNC
|
||||
@ -1367,7 +1367,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetBackdropBlurStyle, Function | SmallTest
|
||||
ASSERT_EQ(WMError::WM_ERROR_NULLPTR, window->SetBackdropBlurStyle(WindowBlurStyle::WINDOW_BLUR_OFF));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetTurnScreenOn
|
||||
* @tc.desc: SetTurnScreenOn test
|
||||
* @tc.type: FUNC
|
||||
@ -1388,7 +1388,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetTurnScreenOn, Function | SmallTest | Lev
|
||||
window->SetTurnScreenOn(false);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetBlur
|
||||
* @tc.desc: SetBlur test
|
||||
* @tc.type: FUNC
|
||||
@ -1406,7 +1406,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetBlur, Function | SmallTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_ERROR_NULLPTR, window->SetBlur(1.0));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetKeepScreenOn
|
||||
* @tc.desc: SetKeepScreenOn test
|
||||
* @tc.type: FUNC
|
||||
@ -1431,7 +1431,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetKeepScreenOn, Function | SmallTest | Lev
|
||||
ASSERT_FALSE(window->IsKeepScreenOn());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetPrivacyMode01
|
||||
* @tc.desc: SetPrivacyMode as true
|
||||
* @tc.type: FUNC
|
||||
@ -1453,7 +1453,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetPrivacyMode01, Function | SmallTest | Le
|
||||
ASSERT_EQ(true, window->IsPrivacyMode());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetPrivacyMode02
|
||||
* @tc.desc: SetPrivacyMode as false
|
||||
* @tc.type: FUNC
|
||||
@ -1475,7 +1475,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetPrivacyMode02, Function | SmallTest | Le
|
||||
ASSERT_EQ(false, window->IsPrivacyMode());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetPrivacyMode03
|
||||
* @tc.desc: Window is invalid
|
||||
* @tc.type: FUNC
|
||||
@ -1491,7 +1491,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetPrivacyMode03, Function | SmallTest | Le
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_WINDOW, window->SetPrivacyMode(false));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: IsPrivacyMode
|
||||
* @tc.desc: Set window privacy mode as true and false
|
||||
* @tc.type: FUNC
|
||||
@ -1515,7 +1515,7 @@ HWTEST_F(WindowSceneSessionImplTest, IsPrivacyModec, Function | SmallTest | Leve
|
||||
ASSERT_EQ(false, window->IsPrivacyMode());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetSystemPrivacyMode
|
||||
* @tc.desc: Set Ststemwindow privacy mode as true and false
|
||||
* @tc.type: FUNC
|
||||
@ -1538,7 +1538,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetSystemPrivacyMode, Function | SmallTest
|
||||
ASSERT_EQ(false, window->property_->GetSystemPrivacyMode());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetSnapshotSkip
|
||||
* @tc.desc: SetSnapshotSkip test
|
||||
* @tc.type: FUNC
|
||||
@ -1565,7 +1565,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetSnapshotSkip, Function | SmallTest | Lev
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetImmersiveModeEnabledState
|
||||
* @tc.desc: SetImmersiveModeEnabledState test
|
||||
* @tc.type: FUNC
|
||||
@ -1610,7 +1610,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetImmersiveModeEnabledState, Function | Sm
|
||||
ASSERT_EQ(true, window->IsLayoutFullScreen());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetLayoutFullScreen01
|
||||
* @tc.desc: SetLayoutFullScreen test
|
||||
* @tc.type: FUNC
|
||||
@ -1631,7 +1631,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetLayoutFullScreen01, Function | SmallTest
|
||||
ASSERT_EQ(false, window->IsLayoutFullScreen());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetLayoutFullScreen02
|
||||
* @tc.desc: SetLayoutFullScreen test
|
||||
* @tc.type: FUNC
|
||||
@ -1649,7 +1649,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetLayoutFullScreen02, Function | SmallTest
|
||||
ASSERT_EQ(WMError::WM_ERROR_INVALID_WINDOW, res);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetTitleAndDockHoverShown
|
||||
* @tc.desc: SetTitleAndDockHoverShown test
|
||||
* @tc.type: FUNC
|
||||
@ -1680,7 +1680,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetTitleAndDockHoverShown, Function | Small
|
||||
EXPECT_EQ(WMError::WM_OK, window->SetTitleAndDockHoverShown(true, true));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetFullScreen
|
||||
* @tc.desc: SetFullScreen test
|
||||
* @tc.type: FUNC
|
||||
@ -1702,7 +1702,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetFullScreen, Function | SmallTest | Level
|
||||
ASSERT_EQ(false, window->IsFullScreen());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetShadowOffsetX
|
||||
* @tc.desc: SetShadowOffsetX test
|
||||
* @tc.type: FUNC
|
||||
@ -1719,7 +1719,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetShadowOffsetX, Function | SmallTest | Le
|
||||
ASSERT_EQ(WMError::WM_ERROR_NULLPTR, window->SetShadowOffsetX(1.0));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetShadowOffsetY
|
||||
* @tc.desc: SetShadowOffsetY test
|
||||
* @tc.type: FUNC
|
||||
@ -1736,7 +1736,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetShadowOffsetY, Function | SmallTest | Le
|
||||
ASSERT_EQ(WMError::WM_ERROR_NULLPTR, window->SetShadowOffsetY(1.0));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetStatusBarHeight
|
||||
* @tc.desc: GetStatusBarHeight test
|
||||
* @tc.type: FUNC
|
||||
@ -1750,7 +1750,7 @@ HWTEST_F(WindowSceneSessionImplTest, GetStatusBarHeight, Function | SmallTest |
|
||||
ASSERT_EQ(0, window->GetStatusBarHeight());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetGestureBackEnabled
|
||||
* @tc.desc: SetGestureBackEnabled test
|
||||
* @tc.type: FUNC
|
||||
@ -1784,7 +1784,7 @@ HWTEST_F(WindowSceneSessionImplTest, SetGestureBackEnabled, Function | SmallTest
|
||||
ASSERT_EQ(true, enable);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: CompatibleFullScreenRecover
|
||||
* @tc.desc: CompatibleFullScreenRecover test
|
||||
* @tc.type: FUNC
|
||||
@ -1809,7 +1809,7 @@ HWTEST_F(WindowSceneSessionImplTest, CompatibleFullScreenRecover, Function | Sma
|
||||
ASSERT_EQ(WSError::WS_OK, window->CompatibleFullScreenRecover());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: CompatibleFullScreenMinimize
|
||||
* @tc.desc: CompatibleFullScreenMinimize test
|
||||
* @tc.type: FUNC
|
||||
@ -1834,7 +1834,7 @@ HWTEST_F(WindowSceneSessionImplTest, CompatibleFullScreenMinimize, Function | Sm
|
||||
ASSERT_EQ(WSError::WS_OK, window->CompatibleFullScreenMinimize());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: CompatibleFullScreenClose
|
||||
* @tc.desc: CompatibleFullScreenClose test
|
||||
* @tc.type: FUNC
|
||||
|
@ -72,7 +72,7 @@ RSSurfaceNode::SharedPtr WindowSceneSessionImplTest2::CreateRSSurfaceNode()
|
||||
}
|
||||
|
||||
namespace {
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetBackdropBlur
|
||||
* @tc.desc: SetBackdropBlur test
|
||||
* @tc.type: FUNC
|
||||
@ -91,7 +91,7 @@ HWTEST_F(WindowSceneSessionImplTest2, SetBackdropBlur, Function | SmallTest | Le
|
||||
ASSERT_EQ(WMError::WM_ERROR_NULLPTR, window->SetBackdropBlur(1.0));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetShadowColor
|
||||
* @tc.desc: SetShadowColor test
|
||||
* @tc.type: FUNC
|
||||
@ -110,7 +110,7 @@ HWTEST_F(WindowSceneSessionImplTest2, SetShadowColor, Function | SmallTest | Lev
|
||||
ASSERT_EQ(WMError::WM_ERROR_NULLPTR, window->SetShadowColor("#ff22ee44"));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetCornerRadius
|
||||
* @tc.desc: SetCornerRadius test
|
||||
* @tc.type: FUNC
|
||||
@ -127,7 +127,7 @@ HWTEST_F(WindowSceneSessionImplTest2, SetCornerRadius, Function | SmallTest | Le
|
||||
ASSERT_EQ(WMError::WM_ERROR_NULLPTR, window->SetCornerRadius(1.0));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetShadowRadius
|
||||
* @tc.desc: SetShadowRadius test
|
||||
* @tc.type: FUNC
|
||||
|
@ -1938,7 +1938,7 @@ HWTEST_F(WindowSessionImplTest2, SetUiDvsyncSwitchErr, Function | SmallTest | Le
|
||||
window->SetUiDvsyncSwitch(false);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: SetRestoredRouterStack_0100
|
||||
* @tc.desc: basic function test of set or get restored router stack.
|
||||
* @tc.type: FUNC
|
||||
|
@ -120,9 +120,9 @@ void WindowLayoutPolicyCascade::LayoutSplitNodes(DisplayId displayId, WindowUpda
|
||||
for (const auto& childNode : appWindowNodeVec) {
|
||||
if (type == WindowUpdateType::WINDOW_UPDATE_REMOVED) {
|
||||
/*
|
||||
* If updateType is remove we need to layout all appNodes, cause remove split node or
|
||||
* divider means exit split mode, split node may change to other mode
|
||||
*/
|
||||
* If updateType is remove we need to layout all appNodes, cause remove split node or
|
||||
* divider means exit split mode, split node may change to other mode
|
||||
*/
|
||||
LayoutWindowNode(childNode);
|
||||
} else if (childNode->IsSplitMode()) { // add or update type, layout split node
|
||||
if (layoutByDivider && type == WindowUpdateType::WINDOW_UPDATE_ACTIVE) {
|
||||
|
@ -863,7 +863,7 @@ HWTEST_F(RemoteAnimationTest, NotifyAnimationByHome01, Function | SmallTest | Le
|
||||
EXPECT_EQ(WMError::WM_OK, ret); // create animationTarget failed, and no callback
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyAnimationByHome02
|
||||
* @tc.desc: NotifyAnimationByHome with animationFirst false and create animationTarget success
|
||||
* @tc.type: FUNC
|
||||
@ -885,7 +885,7 @@ HWTEST_F(RemoteAnimationTest, NotifyAnimationByHome02, Function | SmallTest | Le
|
||||
EXPECT_EQ(WindowNodeState::HIDE_ANIMATION_DONE, srcNode->stateMachine_.currState_);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyAnimationByHome03
|
||||
* @tc.desc: NotifyAnimationByHome with animationFirst true and create animationTarget success
|
||||
* @tc.type: FUNC
|
||||
@ -908,7 +908,7 @@ HWTEST_F(RemoteAnimationTest, NotifyAnimationByHome03, Function | SmallTest | Le
|
||||
EXPECT_EQ(WindowNodeState::HIDE_ANIMATION_DONE, srcNode->stateMachine_.currState_);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyAnimationTargetsUpdate01
|
||||
* @tc.desc: NotifyAnimationTargetsUpdate failed
|
||||
* @tc.type: FUNC
|
||||
@ -950,7 +950,7 @@ HWTEST_F(RemoteAnimationTest, NotifyAnimationTargetsUpdate01, Function | SmallTe
|
||||
EXPECT_EQ(0, testController->floatingWindowTargets_.size());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyAnimationTargetsUpdate02
|
||||
* @tc.desc: NotifyAnimationTargetsUpdate success
|
||||
* @tc.type: FUNC
|
||||
@ -978,7 +978,7 @@ HWTEST_F(RemoteAnimationTest, NotifyAnimationTargetsUpdate02, Function | SmallTe
|
||||
EXPECT_EQ(1, testController->floatingWindowTargets_.size());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyAnimationScreenUnlock01
|
||||
* @tc.desc: NotifyAnimationScreenUnlock success
|
||||
* @tc.type: FUNC
|
||||
@ -998,7 +998,7 @@ HWTEST_F(RemoteAnimationTest, NotifyAnimationScreenUnlock01, Function | SmallTes
|
||||
EXPECT_EQ(WMError::WM_ERROR_NO_REMOTE_ANIMATION, ret);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyAnimationUpdateWallpaper01
|
||||
* @tc.desc: NotifyAnimationUpdateWallpaper success
|
||||
* @tc.type: FUNC
|
||||
@ -1016,7 +1016,7 @@ HWTEST_F(RemoteAnimationTest, NotifyAnimationUpdateWallpaper01, Function | Small
|
||||
EXPECT_EQ(nullptr, testController->animationTarget_);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: CreateAnimationFinishedCallback01
|
||||
* @tc.desc: CreateAnimationFinishedCallback
|
||||
* @tc.type: FUNC
|
||||
@ -1044,7 +1044,7 @@ HWTEST_F(RemoteAnimationTest, CreateAnimationFinishedCallback01, Function | Smal
|
||||
EXPECT_EQ(true, testFlag);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetWindowAnimationTargets01
|
||||
* @tc.desc: GetWindowAnimationTargets for null window root
|
||||
* @tc.type: FUNC
|
||||
@ -1057,7 +1057,7 @@ HWTEST_F(RemoteAnimationTest, GetWindowAnimationTargets01, Function | SmallTest
|
||||
EXPECT_EQ(WMError::WM_ERROR_NO_MEM, RemoteAnimation::GetWindowAnimationTargets(missionIds, targets));
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetWindowAnimationTargets02
|
||||
* @tc.desc: GetWindowAnimationTargets for not exit mission
|
||||
* @tc.type: FUNC
|
||||
@ -1072,7 +1072,7 @@ HWTEST_F(RemoteAnimationTest, GetWindowAnimationTargets02, Function | SmallTest
|
||||
EXPECT_EQ(true, targets.empty());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetWindowAnimationTargets03
|
||||
* @tc.desc: GetWindowAnimationTargets successful
|
||||
* @tc.type: FUNC
|
||||
@ -1094,7 +1094,7 @@ HWTEST_F(RemoteAnimationTest, GetWindowAnimationTargets03, Function | SmallTest
|
||||
usleep(SLEEP_TIME_IN_US);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetAndDrawSnapShot
|
||||
* @tc.desc: GetWindowAnimationTargets successful
|
||||
* @tc.type: FUNC
|
||||
@ -1107,7 +1107,7 @@ HWTEST_F(RemoteAnimationTest, GetAndDrawSnapShot, Function | SmallTest | Level2)
|
||||
ASSERT_FALSE(snapSucc);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetExpectRect
|
||||
* @tc.desc: GetWindowAnimationTargets successful
|
||||
* @tc.type: FUNC
|
||||
@ -1124,7 +1124,7 @@ HWTEST_F(RemoteAnimationTest, GetExpectRect, Function | SmallTest | Level2)
|
||||
RemoteAnimation::GetExpectRect(dstNode, dstTarget);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyAnimationAbilityDied
|
||||
* @tc.desc: NotifyAnimationAbilityDied for null window root
|
||||
* @tc.type: FUNC
|
||||
@ -1137,7 +1137,7 @@ HWTEST_F(RemoteAnimationTest, NotifyAnimationAbilityDied, Function | SmallTest |
|
||||
EXPECT_EQ(true, targets.empty());
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: NotifyAnimationMinimize
|
||||
* @tc.desc: NotifyAnimationMinimize
|
||||
* @tc.type: FUNC
|
||||
@ -1154,7 +1154,7 @@ HWTEST_F(RemoteAnimationTest, NotifyAnimationMinimize, Function | SmallTest | Le
|
||||
ASSERT_EQ(result, WMError::WM_ERROR_NO_MEM);
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @tc.name: CreateAnimationFinishedCallback02
|
||||
* @tc.desc: CreateAnimationFinishedCallback
|
||||
* @tc.type: FUNC
|
||||
|
@ -446,7 +446,7 @@ HWTEST_F(WindowManagerServiceTest, SetWindowGravity01, Function | SmallTest | Le
|
||||
ASSERT_NE(WMError::WM_ERROR_NULLPTR, wms->SetWindowGravity(id, WindowGravity::WINDOW_GRAVITY_BOTTOM, 0));
|
||||
}
|
||||
}
|
||||
/*
|
||||
/**
|
||||
* @tc.name: GetWindowAnimationTargets01
|
||||
* @tc.desc: get window animation targets
|
||||
* @tc.type: FUNC
|
||||
|
Loading…
Reference in New Issue
Block a user