• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 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 #ifndef GRAPHICS_EFFECT_GE_SYSTEM_PROPERTIES_H
16 #define GRAPHICS_EFFECT_GE_SYSTEM_PROPERTIES_H
17 
18 #include "ge_common.h"
19 
20 #include <atomic>
21 #include <cstdlib>
22 #include <string>
23 #include <vector>
24 
25 #ifdef GE_OHOS
26 #include <parameter.h>
27 #include <parameters.h>
28 #include "param/sys_param.h"
29 #include "utils/system_properties.h"
30 #endif
31 
32 namespace OHOS {
33 namespace Rosen {
34 
35 class GESystemProperties final {
36 public:
37     ~GESystemProperties() = default;
38 
39     static std::string GetEventProperty(const std::string& paraName);
40     static GE_EXPORT bool GetBoolSystemProperty(const char* name, bool defaultValue);
41     static int ConvertToInt(const char* originValue, int defaultValue);
42 
43 private:
44     GESystemProperties() = default;
45 };
46 
47 } // namespace Rosen
48 } // namespace OHOS
49 
50 #endif // GRAPHICS_EFFECT_GE_SYSTEM_PROPERTIES_H
51