/hardware/qcom/display/msm8909/sdm/libs/core/fb/ |
D | hw_info.cpp | 71 int HWInfo::ParseString(const char *input, char *tokens[], const uint32_t max_token, in ParseString() argument 81 tokens[index++] = tmp_token; in ParseString() 104 char *tokens[max_count] = { NULL }; in GetDynamicBWLimits() local 107 if (!ParseString(line.c_str(), tokens, max_count, ":, =\n", &token_count)) { in GetDynamicBWLimits() 108 if (!strncmp(tokens[0], "default_pipe", strlen("default_pipe"))) { in GetDynamicBWLimits() 109 bw_info->pipe_bw_limit[kBwDefault] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() 110 } else if (!strncmp(tokens[0], "camera_pipe", strlen("camera_pipe"))) { in GetDynamicBWLimits() 111 bw_info->pipe_bw_limit[kBwCamera] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() 112 } else if (!strncmp(tokens[0], "vflip_pipe", strlen("vflip_pipe"))) { in GetDynamicBWLimits() 113 bw_info->pipe_bw_limit[kBwVFlip] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() [all …]
|
D | hw_device.cpp | 809 char *tokens[max_count] = { NULL }; in GetHWPanelNameByNode() local 810 if (!ParseLine(line.c_str(), "=\n", tokens, max_count, &token_count)) { in GetHWPanelNameByNode() 811 if (!strncmp(tokens[0], "panel_name", strlen("panel_name"))) { in GetHWPanelNameByNode() 812 snprintf(panel_info->panel_name, sizeof(panel_info->panel_name), "%s", tokens[1]); in GetHWPanelNameByNode() 832 char *tokens[max_count] = { NULL }; in GetHWPanelInfoByNode() local 833 if (!ParseLine(line.c_str(), tokens, max_count, &token_count)) { in GetHWPanelInfoByNode() 834 if (!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { in GetHWPanelInfoByNode() 835 panel_info->partial_update = atoi(tokens[1]); in GetHWPanelInfoByNode() 836 } else if (!strncmp(tokens[0], "xstart", strlen("xstart"))) { in GetHWPanelInfoByNode() 837 panel_info->left_align = atoi(tokens[1]); in GetHWPanelInfoByNode() [all …]
|
/hardware/qcom/display/msm8998/sdm/libs/core/fb/ |
D | hw_info.cpp | 71 int HWInfo::ParseString(const char *input, char *tokens[], const uint32_t max_token, in ParseString() argument 81 tokens[index++] = tmp_token; in ParseString() 104 char *tokens[max_count] = { NULL }; in GetDynamicBWLimits() local 107 if (!ParseString(line.c_str(), tokens, max_count, ":, =\n", &token_count)) { in GetDynamicBWLimits() 108 if (!strncmp(tokens[0], "default_pipe", strlen("default_pipe"))) { in GetDynamicBWLimits() 109 bw_info->pipe_bw_limit[kBwDefault] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() 110 } else if (!strncmp(tokens[0], "camera_pipe", strlen("camera_pipe"))) { in GetDynamicBWLimits() 111 bw_info->pipe_bw_limit[kBwCamera] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() 112 } else if (!strncmp(tokens[0], "vflip_pipe", strlen("vflip_pipe"))) { in GetDynamicBWLimits() 113 bw_info->pipe_bw_limit[kBwVFlip] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() [all …]
|
D | hw_device.cpp | 815 char *tokens[max_count] = { NULL }; in GetHWPanelNameByNode() local 816 if (!ParseLine(line.c_str(), "=\n", tokens, max_count, &token_count)) { in GetHWPanelNameByNode() 817 if (!strncmp(tokens[0], "panel_name", strlen("panel_name"))) { in GetHWPanelNameByNode() 818 snprintf(panel_info->panel_name, sizeof(panel_info->panel_name), "%s", tokens[1]); in GetHWPanelNameByNode() 838 char *tokens[max_count] = { NULL }; in GetHWPanelInfoByNode() local 839 if (!ParseLine(line.c_str(), tokens, max_count, &token_count)) { in GetHWPanelInfoByNode() 840 if (!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { in GetHWPanelInfoByNode() 841 panel_info->partial_update = atoi(tokens[1]); in GetHWPanelInfoByNode() 842 } else if (!strncmp(tokens[0], "xstart", strlen("xstart"))) { in GetHWPanelInfoByNode() 843 panel_info->left_align = atoi(tokens[1]); in GetHWPanelInfoByNode() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/fb/ |
D | hw_info.cpp | 71 int HWInfo::ParseString(const char *input, char *tokens[], const uint32_t max_token, in ParseString() argument 81 tokens[index++] = tmp_token; in ParseString() 104 char *tokens[max_count] = { NULL }; in GetDynamicBWLimits() local 107 if (!ParseString(line.c_str(), tokens, max_count, ":, =\n", &token_count)) { in GetDynamicBWLimits() 108 if (!strncmp(tokens[0], "default_pipe", strlen("default_pipe"))) { in GetDynamicBWLimits() 109 bw_info->pipe_bw_limit[kBwDefault] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() 110 } else if (!strncmp(tokens[0], "camera_pipe", strlen("camera_pipe"))) { in GetDynamicBWLimits() 111 bw_info->pipe_bw_limit[kBwCamera] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() 112 } else if (!strncmp(tokens[0], "vflip_pipe", strlen("vflip_pipe"))) { in GetDynamicBWLimits() 113 bw_info->pipe_bw_limit[kBwVFlip] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() [all …]
|
D | hw_device.cpp | 814 char *tokens[max_count] = { NULL }; in GetHWPanelNameByNode() local 815 if (!ParseLine(line.c_str(), "=\n", tokens, max_count, &token_count)) { in GetHWPanelNameByNode() 816 if (!strncmp(tokens[0], "panel_name", strlen("panel_name"))) { in GetHWPanelNameByNode() 817 snprintf(panel_info->panel_name, sizeof(panel_info->panel_name), "%s", tokens[1]); in GetHWPanelNameByNode() 837 char *tokens[max_count] = { NULL }; in GetHWPanelInfoByNode() local 838 if (!ParseLine(line.c_str(), tokens, max_count, &token_count)) { in GetHWPanelInfoByNode() 839 if (!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { in GetHWPanelInfoByNode() 840 panel_info->partial_update = atoi(tokens[1]); in GetHWPanelInfoByNode() 841 } else if (!strncmp(tokens[0], "xstart", strlen("xstart"))) { in GetHWPanelInfoByNode() 842 panel_info->left_align = atoi(tokens[1]); in GetHWPanelInfoByNode() [all …]
|
/hardware/qcom/sdm845/display/sdm/libs/core/fb/ |
D | hw_info.cpp | 71 int HWInfo::ParseString(const char *input, char *tokens[], const uint32_t max_token, in ParseString() argument 81 tokens[index++] = tmp_token; in ParseString() 104 char *tokens[max_count] = { NULL }; in GetDynamicBWLimits() local 107 if (!ParseString(line.c_str(), tokens, max_count, ":, =\n", &token_count)) { in GetDynamicBWLimits() 108 if (!strncmp(tokens[0], "default_pipe", strlen("default_pipe"))) { in GetDynamicBWLimits() 109 bw_info->pipe_bw_limit[kBwDefault] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() 110 } else if (!strncmp(tokens[0], "camera_pipe", strlen("camera_pipe"))) { in GetDynamicBWLimits() 111 bw_info->pipe_bw_limit[kBwCamera] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() 112 } else if (!strncmp(tokens[0], "vflip_pipe", strlen("vflip_pipe"))) { in GetDynamicBWLimits() 113 bw_info->pipe_bw_limit[kBwVFlip] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() [all …]
|
D | hw_device.cpp | 809 char *tokens[max_count] = { NULL }; in GetHWPanelNameByNode() local 810 if (!ParseLine(line.c_str(), "=\n", tokens, max_count, &token_count)) { in GetHWPanelNameByNode() 811 if (tokens[0] != NULL) { in GetHWPanelNameByNode() 812 if (!strncmp(tokens[0], "panel_name", strlen("panel_name"))) { in GetHWPanelNameByNode() 813 snprintf(panel_info->panel_name, sizeof(panel_info->panel_name), "%s", tokens[1]); in GetHWPanelNameByNode() 834 char *tokens[max_count] = { NULL }; in GetHWPanelInfoByNode() local 835 if (!ParseLine(line.c_str(), tokens, max_count, &token_count)) { in GetHWPanelInfoByNode() 836 if (!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { in GetHWPanelInfoByNode() 837 panel_info->partial_update = atoi(tokens[1]); in GetHWPanelInfoByNode() 838 } else if (!strncmp(tokens[0], "xstart", strlen("xstart"))) { in GetHWPanelInfoByNode() [all …]
|
/hardware/qcom/sm8150/display/sdm/libs/core/fb/ |
D | hw_info.cpp | 71 int HWInfo::ParseString(const char *input, char *tokens[], const uint32_t max_token, in ParseString() argument 81 tokens[index++] = tmp_token; in ParseString() 104 char *tokens[max_count] = { NULL }; in GetDynamicBWLimits() local 107 if (!ParseString(line.c_str(), tokens, max_count, ":, =\n", &token_count)) { in GetDynamicBWLimits() 108 if (!strncmp(tokens[0], "default_pipe", strlen("default_pipe"))) { in GetDynamicBWLimits() 109 bw_info->pipe_bw_limit[kBwDefault] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() 110 } else if (!strncmp(tokens[0], "camera_pipe", strlen("camera_pipe"))) { in GetDynamicBWLimits() 111 bw_info->pipe_bw_limit[kBwCamera] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() 112 } else if (!strncmp(tokens[0], "vflip_pipe", strlen("vflip_pipe"))) { in GetDynamicBWLimits() 113 bw_info->pipe_bw_limit[kBwVFlip] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() [all …]
|
D | hw_device.cpp | 826 char *tokens[max_count] = { NULL }; in GetHWPanelNameByNode() local 827 if (!ParseLine(line.c_str(), "=\n", tokens, max_count, &token_count)) { in GetHWPanelNameByNode() 828 if (tokens[0] != NULL) { in GetHWPanelNameByNode() 829 if (!strncmp(tokens[0], "panel_name", strlen("panel_name"))) { in GetHWPanelNameByNode() 830 snprintf(panel_info->panel_name, sizeof(panel_info->panel_name), "%s", tokens[1]); in GetHWPanelNameByNode() 851 char *tokens[max_count] = { NULL }; in GetHWPanelInfoByNode() local 852 if (!ParseLine(line.c_str(), tokens, max_count, &token_count)) { in GetHWPanelInfoByNode() 853 if (!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { in GetHWPanelInfoByNode() 854 panel_info->partial_update = atoi(tokens[1]); in GetHWPanelInfoByNode() 855 } else if (!strncmp(tokens[0], "xstart", strlen("xstart"))) { in GetHWPanelInfoByNode() [all …]
|
/hardware/qcom/display/msm8996/sdm/libs/core/fb/ |
D | hw_info.cpp | 71 int HWInfo::ParseString(const char *input, char *tokens[], const uint32_t max_token, in ParseString() argument 81 tokens[index++] = tmp_token; in ParseString() 125 char *tokens[max_count] = { NULL }; in GetDynamicBWLimits() local 128 if (!ParseString(line.c_str(), tokens, max_count, ":, =\n", &token_count)) { in GetDynamicBWLimits() 129 if (!strncmp(tokens[0], "default_pipe", strlen("default_pipe"))) { in GetDynamicBWLimits() 130 bw_info->pipe_bw_limit[kBwDefault] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() 131 } else if (!strncmp(tokens[0], "camera_pipe", strlen("camera_pipe"))) { in GetDynamicBWLimits() 132 bw_info->pipe_bw_limit[kBwCamera] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() 133 } else if (!strncmp(tokens[0], "vflip_pipe", strlen("vflip_pipe"))) { in GetDynamicBWLimits() 134 bw_info->pipe_bw_limit[kBwVFlip] = UINT32(atoi(tokens[1])); in GetDynamicBWLimits() [all …]
|
D | hw_device.cpp | 751 char *tokens[max_count] = { NULL }; in GetHWPanelNameByNode() local 752 if (!ParseLine(line.c_str(), "=\n", tokens, max_count, &token_count)) { in GetHWPanelNameByNode() 753 if (!strncmp(tokens[0], "panel_name", strlen("panel_name"))) { in GetHWPanelNameByNode() 754 snprintf(panel_info->panel_name, sizeof(panel_info->panel_name), "%s", tokens[1]); in GetHWPanelNameByNode() 774 char *tokens[max_count] = { NULL }; in GetHWPanelInfoByNode() local 775 if (!ParseLine(line.c_str(), tokens, max_count, &token_count)) { in GetHWPanelInfoByNode() 776 if (!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { in GetHWPanelInfoByNode() 777 panel_info->partial_update = atoi(tokens[1]); in GetHWPanelInfoByNode() 778 } else if (!strncmp(tokens[0], "xstart", strlen("xstart"))) { in GetHWPanelInfoByNode() 779 panel_info->left_align = atoi(tokens[1]); in GetHWPanelInfoByNode() [all …]
|
D | hw_info.h | 65 static int ParseString(const char *input, char *tokens[], const uint32_t max_token, 70 void ParseFormats(char *tokens[], uint32_t token_count, HWSubBlockType sub_block_type,
|
/hardware/qcom/display/msm8994/libqdutils/ |
D | mdp_version.cpp | 198 char *tokens[10]; in updatePanelInfo() local 199 memset(tokens, 0, sizeof(tokens)); in updatePanelInfo() 201 if(!tokenizeParams(readLine, TOKEN_PARAMS_DELIM, tokens, in updatePanelInfo() 203 if(!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { in updatePanelInfo() 204 mPanelInfo.mPartialUpdateEnable = atoi(tokens[1]); in updatePanelInfo() 209 if(!strncmp(tokens[0], "xstart", strlen("xstart"))) { in updatePanelInfo() 210 mPanelInfo.mLeftAlign = atoi(tokens[1]); in updatePanelInfo() 213 if(!strncmp(tokens[0], "walign", strlen("walign"))) { in updatePanelInfo() 214 mPanelInfo.mWidthAlign = atoi(tokens[1]); in updatePanelInfo() 217 if(!strncmp(tokens[0], "ystart", strlen("ystart"))) { in updatePanelInfo() [all …]
|
/hardware/qcom/display/msm8226/libqdutils/ |
D | mdp_version.cpp | 175 char *tokens[10]; in updatePanelInfo() local 176 memset(tokens, 0, sizeof(tokens)); in updatePanelInfo() 178 if(!tokenizeParams(readLine, TOKEN_PARAMS_DELIM, tokens, in updatePanelInfo() 180 if(!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { in updatePanelInfo() 181 mPanelInfo.mPartialUpdateEnable = atoi(tokens[1]); in updatePanelInfo() 186 if(!strncmp(tokens[0], "xstart", strlen("xstart"))) { in updatePanelInfo() 187 mPanelInfo.mLeftAlign = atoi(tokens[1]); in updatePanelInfo() 190 if(!strncmp(tokens[0], "walign", strlen("walign"))) { in updatePanelInfo() 191 mPanelInfo.mWidthAlign = atoi(tokens[1]); in updatePanelInfo() 194 if(!strncmp(tokens[0], "ystart", strlen("ystart"))) { in updatePanelInfo() [all …]
|
/hardware/qcom/display/msm8084/libqdutils/ |
D | mdp_version.cpp | 169 char *tokens[10]; in updatePanelInfo() local 170 memset(tokens, 0, sizeof(tokens)); in updatePanelInfo() 172 if(!tokenizeParams(readLine, TOKEN_PARAMS_DELIM, tokens, in updatePanelInfo() 174 if(!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { in updatePanelInfo() 175 mPanelInfo.mPartialUpdateEnable = atoi(tokens[1]); in updatePanelInfo() 180 if(!strncmp(tokens[0], "xstart", strlen("xstart"))) { in updatePanelInfo() 181 mPanelInfo.mLeftAlign = atoi(tokens[1]); in updatePanelInfo() 184 if(!strncmp(tokens[0], "walign", strlen("walign"))) { in updatePanelInfo() 185 mPanelInfo.mWidthAlign = atoi(tokens[1]); in updatePanelInfo() 188 if(!strncmp(tokens[0], "ystart", strlen("ystart"))) { in updatePanelInfo() [all …]
|
/hardware/qcom/sm7250/display/sdm/libs/core/fb/ |
D | hw_info.cpp | 71 int HWInfo::ParseString(const char *input, char *tokens[], const uint32_t max_token, in ParseString() argument 81 tokens[index++] = tmp_token; in ParseString() 110 char *tokens[max_count] = { NULL }; in GetHWResourceInfo() local 114 if (!ParseString(line.c_str(), tokens, max_count, ":, =\n", &token_count)) { in GetHWResourceInfo() 115 if (!strncmp(tokens[0], "hw_rev", strlen("hw_rev"))) { in GetHWResourceInfo() 116 hw_resource_->hw_version = UINT32(atoi(tokens[1])); // HW Rev, v1/v2 in GetHWResourceInfo() 118 } else if (!strncmp(tokens[0], "pipe_count", strlen("pipe_count"))) { in GetHWResourceInfo() 119 uint32_t pipe_count = UINT8(atoi(tokens[1])); in GetHWResourceInfo() 122 if (!ParseString(line.c_str(), tokens, max_count, ": =\n", &token_count)) { in GetHWResourceInfo() 126 if (!strncmp(tokens[j], "fmts_supported", strlen("fmts_supported"))) { in GetHWResourceInfo() [all …]
|
D | hw_info.h | 61 static int ParseString(const char *input, char *tokens[], const uint32_t max_token, 65 void ParseFormats(char *tokens[], uint32_t token_count, HWSubBlockType sub_block_type,
|
/hardware/qcom/sdm845/display/libqdutils/ |
D | qd_utils.cpp | 37 static int parseLine(char *input, char *tokens[], const uint32_t maxToken, uint32_t *count) { in parseLine() argument 47 tokens[index++] = tmpToken; in parseLine() 117 char *tokens[maxCount] = { NULL }; in querySDEInfoFB() local 142 if (parseLine(line, tokens, maxCount, &tokenCount)) { in querySDEInfoFB() 146 if (strncmp(tokens[0], "features", strlen("features"))) { in querySDEInfoFB() 151 if (!strncmp(tokens[i], featureName, strlen(featureName))) { in querySDEInfoFB() 245 char *tokens[maxCount] = { NULL }; in getDPTestConfig() local 266 if (!parseLine(line, tokens, maxCount, &tokenCount)) { in getDPTestConfig() 267 if (tokens[0] != NULL) { in getDPTestConfig() 268 if (!strncmp(tokens[0], "bpp", strlen("bpp"))) { in getDPTestConfig() [all …]
|
/hardware/qcom/sm7250/display/libqdutils/ |
D | qd_utils.cpp | 37 static int parseLine(char *input, char *tokens[], const uint32_t maxToken, uint32_t *count) { in parseLine() argument 47 tokens[index++] = tmpToken; in parseLine() 128 char *tokens[maxCount] = { NULL }; in getDPTestConfig() local 149 if (!parseLine(line, tokens, maxCount, &tokenCount)) { in getDPTestConfig() 150 if (tokens[0] != NULL) { in getDPTestConfig() 151 if (!strncmp(tokens[0], "bpp", strlen("bpp"))) { in getDPTestConfig() 152 *panelBpp = static_cast<uint32_t>(atoi(tokens[1])); in getDPTestConfig() 153 } else if (!strncmp(tokens[0], "pattern", strlen("pattern"))) { in getDPTestConfig() 154 *patternType = static_cast<uint32_t>(atoi(tokens[1])); in getDPTestConfig()
|
/hardware/qcom/display/msm8909w_3100/libqdutils/ |
D | qd_utils.cpp | 36 static int parseLine(char *input, char *tokens[], const uint32_t maxToken, uint32_t *count) { in parseLine() argument 46 tokens[index++] = tmpToken; in parseLine() 116 char *tokens[maxCount] = { NULL }; in querySDEInfoFB() local 141 if (parseLine(line, tokens, maxCount, &tokenCount)) { in querySDEInfoFB() 145 if (strncmp(tokens[0], "features", strlen("features"))) { in querySDEInfoFB() 150 if (!strncmp(tokens[i], featureName, strlen(featureName))) { in querySDEInfoFB() 244 char *tokens[maxCount] = { NULL }; in getDPTestConfig() local 265 if (!parseLine(line, tokens, maxCount, &tokenCount)) { in getDPTestConfig() 266 if (!strncmp(tokens[0], "bpp", strlen("bpp"))) { in getDPTestConfig() 267 *panelBpp = static_cast<uint32_t>(atoi(tokens[1])); in getDPTestConfig() [all …]
|
/hardware/qcom/display/msm8909/libqdutils/ |
D | qd_utils.cpp | 36 static int parseLine(char *input, char *tokens[], const uint32_t maxToken, uint32_t *count) { in parseLine() argument 46 tokens[index++] = tmpToken; in parseLine() 116 char *tokens[maxCount] = { NULL }; in querySDEInfoFB() local 141 if (parseLine(line, tokens, maxCount, &tokenCount)) { in querySDEInfoFB() 145 if (strncmp(tokens[0], "features", strlen("features"))) { in querySDEInfoFB() 150 if (!strncmp(tokens[i], featureName, strlen(featureName))) { in querySDEInfoFB() 244 char *tokens[maxCount] = { NULL }; in getDPTestConfig() local 265 if (!parseLine(line, tokens, maxCount, &tokenCount)) { in getDPTestConfig() 266 if (!strncmp(tokens[0], "bpp", strlen("bpp"))) { in getDPTestConfig() 267 *panelBpp = static_cast<uint32_t>(atoi(tokens[1])); in getDPTestConfig() [all …]
|
/hardware/qcom/display/msm8998/libqdutils/ |
D | qd_utils.cpp | 36 static int parseLine(char *input, char *tokens[], const uint32_t maxToken, uint32_t *count) { in parseLine() argument 46 tokens[index++] = tmpToken; in parseLine() 116 char *tokens[maxCount] = { NULL }; in querySDEInfoFB() local 141 if (parseLine(line, tokens, maxCount, &tokenCount)) { in querySDEInfoFB() 145 if (strncmp(tokens[0], "features", strlen("features"))) { in querySDEInfoFB() 150 if (!strncmp(tokens[i], featureName, strlen(featureName))) { in querySDEInfoFB() 244 char *tokens[maxCount] = { NULL }; in getDPTestConfig() local 265 if (!parseLine(line, tokens, maxCount, &tokenCount)) { in getDPTestConfig() 266 if (!strncmp(tokens[0], "bpp", strlen("bpp"))) { in getDPTestConfig() 267 *panelBpp = static_cast<uint32_t>(atoi(tokens[1])); in getDPTestConfig() [all …]
|
/hardware/qcom/sm8150/display/libqdutils/ |
D | qd_utils.cpp | 37 static int parseLine(char *input, char *tokens[], const uint32_t maxToken, uint32_t *count) { in parseLine() argument 47 tokens[index++] = tmpToken; in parseLine() 129 char *tokens[maxCount] = { NULL }; in getDPTestConfig() local 150 if (!parseLine(line, tokens, maxCount, &tokenCount)) { in getDPTestConfig() 151 if (tokens[0] != NULL) { in getDPTestConfig() 152 if (!strncmp(tokens[0], "bpp", strlen("bpp"))) { in getDPTestConfig() 153 *panelBpp = static_cast<uint32_t>(atoi(tokens[1])); in getDPTestConfig() 154 } else if (!strncmp(tokens[0], "pattern", strlen("pattern"))) { in getDPTestConfig() 155 *patternType = static_cast<uint32_t>(atoi(tokens[1])); in getDPTestConfig()
|
/hardware/qcom/display/msm8996/libqdutils/ |
D | qd_utils.cpp | 34 int parseLine(char *input, char *tokens[], const uint32_t maxToken, uint32_t *count) { in parseLine() argument 44 tokens[index++] = tmpToken; in parseLine() 58 char *tokens[maxCount] = { NULL }; in querySDEInfo() local 85 if (parseLine(line, tokens, maxCount, &tokenCount)) { in querySDEInfo() 89 if (strncmp(tokens[0], "features", strlen("features"))) { in querySDEInfo() 94 if (!strncmp(tokens[i], featureName, strlen(featureName))) { in querySDEInfo()
|