• 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 #ifndef MULTISCREEN_PARAM_H
17 #define MULTISCREEN_PARAM_H
18 
19 #include "feature_param.h"
20 
21 namespace OHOS::Rosen {
22 class MultiScreenParam : public FeatureParam {
23 public:
24     MultiScreenParam() = default;
25     ~MultiScreenParam() = default;
26 
27     bool IsExternalScreenSecure() const;
28     bool IsSlrScaleEnabled() const;
29     bool IsRsReportHwcDead() const;
30     bool IsRsSetScreenPowerStatus() const;
31 
32 protected:
33     void SetExternalScreenSecure(bool isSecure);
34     void SetSlrScaleEnabled(bool isEnabled);
35     void SetRsReportHwcDead(bool isEnabled);
36     void SetRsSetScreenPowerStatus(bool isEnabled);
37 
38 private:
39     bool isExternalScreenSecure_ = false;
40     bool isSlrScaleEnabled_ = false;
41     bool isRsReportHwcDead_ = false;
42     bool isRsSetScreenPowerStatus_ = false;
43 
44     friend class MultiScreenParamParse;
45 };
46 } // namespace OHOS::Rosen
47 #endif // MULTISCREEN_PARAM_H