-rw-r--r-- | hwc2/common/devices/PhysicalDevice.cpp | 85 | ||||
-rw-r--r-- | hwc2/common/devices/PrimaryDevice.cpp | 36 | ||||
-rw-r--r-- | hwc2/common/utils/Utils.cpp | 16 | ||||
-rw-r--r-- | hwc2/common/utils/Utils.h | 4 | ||||
-rw-r--r-- | hwc2/include/PhysicalDevice.h | 20 | ||||
-rw-r--r-- | hwc2/include/PrimaryDevice.h | 7 |
6 files changed, 163 insertions, 5 deletions
diff --git a/hwc2/common/utils/Utils.h b/hwc2/common/utils/Utils.h index 8e55e63..f9c782f 100644 --- a/hwc2/common/utils/Utils.h +++ b/hwc2/common/utils/Utils.h @@ -33,6 +33,8 @@ #define SYSFS_VIDEOBUFUSED "/sys/class/amstream/videobufused" #define SYSFS_WINDOW_AXIS "/sys/class/graphics/fb0/window_axis" +#define MAX_STR_LEN 4096 + namespace android { namespace amlogic { @@ -46,6 +48,7 @@ public: static bool get_str_prop(const char *key, char *value, const char *def); static int getSysfsInt(const char* syspath, int def); + static int getSysfsStr(const char *syspath, char *valstr); static int getSysfsStr(const char* syspath, char *valstr, int size, bool needOriginalData = false); static int setSysfsStr(const char *path, const char *val); @@ -60,6 +63,7 @@ public: static const char* getHotplugUeventEnvelope(); static const char* getHdcpUeventEnvelope(); + static const char* getModeChangeUeventEnvelope(); static const char* getSwitchState0(); static const char* getSwitchState1(); |