• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "uifirst_param.h"
17 
18 #include "platform/common/rs_log.h"
19 
20 namespace OHOS::Rosen {
21 
IsUIFirstEnable()22 bool UIFirstParam::IsUIFirstEnable()
23 {
24     return isUIFirstEnable_;
25 }
26 
SetUIFirstEnable(bool isEnable)27 void UIFirstParam::SetUIFirstEnable(bool isEnable)
28 {
29     isUIFirstEnable_ = isEnable;
30 }
31 
IsCardUIFirstEnable()32 bool UIFirstParam::IsCardUIFirstEnable()
33 {
34     return isCardUIFirstEnable_;
35 }
36 
SetCardUIFirstEnable(bool isCardUIFirstEnable)37 void UIFirstParam::SetCardUIFirstEnable(bool isCardUIFirstEnable)
38 {
39     isCardUIFirstEnable_ = isCardUIFirstEnable;
40 }
41 
IsCacheOptimizeRotateEnable()42 bool UIFirstParam::IsCacheOptimizeRotateEnable()
43 {
44     return isCacheOptimizeRotateEnable_;
45 }
46 
SetCacheOptimizeRotateEnable(bool isCacheOptimizeRotateEnable)47 void UIFirstParam::SetCacheOptimizeRotateEnable(bool isCacheOptimizeRotateEnable)
48 {
49     isCacheOptimizeRotateEnable_ = isCacheOptimizeRotateEnable;
50 }
51 
IsFreeMultiWindowEnable()52 bool UIFirstParam::IsFreeMultiWindowEnable()
53 {
54     return isFreeMultiWindowEnable_;
55 }
56 
SetFreeMultiWindowEnable(bool isFreeMultiWindowEnable)57 void UIFirstParam::SetFreeMultiWindowEnable(bool isFreeMultiWindowEnable)
58 {
59     isFreeMultiWindowEnable_ = isFreeMultiWindowEnable;
60 }
61 
GetUIFirstEnableWindowThreshold()62 int UIFirstParam::GetUIFirstEnableWindowThreshold()
63 {
64     return uiFirstEnableWindowThreshold_;
65 }
66 
SetUIFirstEnableWindowThreshold(int uiFirstEnableWindowThreshold)67 void UIFirstParam::SetUIFirstEnableWindowThreshold(int uiFirstEnableWindowThreshold)
68 {
69     uiFirstEnableWindowThreshold_ = uiFirstEnableWindowThreshold;
70 }
71 
GetUIFirstType()72 int UIFirstParam::GetUIFirstType()
73 {
74     return uiFirstType_;
75 }
76 
SetUIFirstType(int uiFirstType)77 void UIFirstParam::SetUIFirstType(int uiFirstType)
78 {
79     uiFirstType_ = uiFirstType;
80 }
81 } // namespace OHOS::Rosen