• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021-2022 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 FRAMEWORKS_DM_TEST_UT_SCREEN_MANAGER_UTILS_H
17 #define FRAMEWORKS_DM_TEST_UT_SCREEN_MANAGER_UTILS_H
18 
19 #include <securec.h>
20 
21 #include "display.h"
22 #include "display_manager.h"
23 #include "dm_common.h"
24 #include "screen.h"
25 #include "screen_manager.h"
26 #include "window_manager_hilog.h"
27 #include "unique_fd.h"
28 #include "core/ui/rs_surface_node.h"
29 #include "core/ui/rs_display_node.h"
30 
31 namespace OHOS {
32 namespace Rosen {
33 class ScreenManagerUtils {
34 public:
35     bool CreateSurface();
36 
37     const std::string defaultName_ = "virtualScreen01";
38     sptr<Surface> csurface_ = nullptr; // cosumer surface
39     sptr<Surface> psurface_ = nullptr; // producer surface
40     const float defaultDensity_ = 2.0;
41     const int32_t defaultFlags_ = 0;
42 };
43 } // namespace Rosen
44 } // namespace OHOS
45 
46 #endif // FRAMEWORKS_DM_TEST_UT_SCREEN_MANAGER_UTILS_H