/hardware/libhardware/modules/sensors/dynamic_sensor/ |
H A D | HidRawDevice.cpp | 166 std::vector<HidItem> tokens = HidItem::tokenize(mDeviceInfo.descriptor); local 168 if (!parser.parse(tokens)) {
|
H A D | HidRawSensor.cpp | 608 std::vector<std::string> tokens; local 612 tokens.push_back(text.substr(start, end - start)); 617 tokens.push_back(text.substr(start)); 619 return tokens;
|
/hardware/qcom/display/msm8996/libqdutils/ |
H A D | qd_utils.cpp | 34 int parseLine(char *input, char *tokens[], const uint32_t maxToken, uint32_t *count) { argument 44 tokens[index++] = tmpToken; 58 char *tokens[maxCount] = { NULL }; local 85 if (parseLine(line, tokens, maxCount, &tokenCount)) { 89 if (strncmp(tokens[0], "features", strlen("features"))) { 94 if (!strncmp(tokens[i], featureName, strlen(featureName))) {
|
/hardware/qcom/display/msm8084/libqdutils/ |
H A D | mdp_version.cpp | 169 char *tokens[10]; local 170 memset(tokens, 0, sizeof(tokens)); 172 if(!tokenizeParams(readLine, TOKEN_PARAMS_DELIM, tokens, 174 if(!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { 175 mPanelInfo.mPartialUpdateEnable = atoi(tokens[1]); 180 if(!strncmp(tokens[0], "xstart", strlen("xstart"))) { 181 mPanelInfo.mLeftAlign = atoi(tokens[1]); 184 if(!strncmp(tokens[0], "walign", strlen("walign"))) { 185 mPanelInfo.mWidthAlign = atoi(tokens[ 246 char *tokens[10]; local [all...] |
/hardware/qcom/display/msm8909/libqdutils/ |
H A D | qd_utils.cpp | 36 static int parseLine(char *input, char *tokens[], const uint32_t maxToken, uint32_t *count) { argument 46 tokens[index++] = tmpToken; 116 char *tokens[maxCount] = { NULL }; local 141 if (parseLine(line, tokens, maxCount, &tokenCount)) { 145 if (strncmp(tokens[0], "features", strlen("features"))) { 150 if (!strncmp(tokens[i], featureName, strlen(featureName))) { 244 char *tokens[maxCount] = { NULL }; local 265 if (!parseLine(line, tokens, maxCount, &tokenCount)) { 266 if (!strncmp(tokens[0], "bpp", strlen("bpp"))) { 267 *panelBpp = static_cast<uint32_t>(atoi(tokens[ [all...] |
/hardware/qcom/display/msm8909/sdm/libs/core/fb/ |
H A D | hw_info.cpp | 71 int HWInfo::ParseString(const char *input, char *tokens[], const uint32_t max_token, argument 81 tokens[index++] = tmp_token; 104 char *tokens[max_count] = { NULL }; local 107 if (!ParseString(line.c_str(), tokens, max_count, ":, =\n", &token_count)) { 108 if (!strncmp(tokens[0], "default_pipe", strlen("default_pipe"))) { 109 bw_info->pipe_bw_limit[kBwDefault] = UINT32(atoi(tokens[1])); 110 } else if (!strncmp(tokens[0], "camera_pipe", strlen("camera_pipe"))) { 111 bw_info->pipe_bw_limit[kBwCamera] = UINT32(atoi(tokens[1])); 112 } else if (!strncmp(tokens[0], "vflip_pipe", strlen("vflip_pipe"))) { 113 bw_info->pipe_bw_limit[kBwVFlip] = UINT32(atoi(tokens[ 152 char *tokens[max_count] = { NULL }; local 369 char *tokens[max_count] = { NULL }; local 417 char *tokens[max_count] = { NULL }; local 497 ParseFormats(char *tokens[], uint32_t token_count, HWSubBlockType sub_blk_type, HWResourceInfo *hw_resource) argument [all...] |
H A D | hw_device.cpp | 818 char *tokens[max_count] = { NULL }; local 819 if (!ParseLine(line.c_str(), "=\n", tokens, max_count, &token_count)) { 820 if (!strncmp(tokens[0], "panel_name", strlen("panel_name"))) { 821 snprintf(panel_info->panel_name, sizeof(panel_info->panel_name), "%s", tokens[1]); 841 char *tokens[max_count] = { NULL }; local 842 if (!ParseLine(line.c_str(), tokens, max_count, &token_count)) { 843 if (!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { 844 panel_info->partial_update = atoi(tokens[1]); 845 } else if (!strncmp(tokens[0], "xstart", strlen("xstart"))) { 846 panel_info->left_align = atoi(tokens[ 974 char *tokens[max_count] = { NULL }; local 1008 ParseLine(const char *input, char *tokens[], const uint32_t max_token, uint32_t *count) argument 1027 ParseLine(const char *input, const char *delim, char *tokens[], const uint32_t max_token, uint32_t *count) argument [all...] |
H A D | hw_hdmi.cpp | 297 char *tokens[edid_count_max] = { NULL }; local 300 ParseLine(ptr, tokens, edid_count_max, &hdmi_mode_count); 306 hdmi_modes_[i] = UINT32(atoi(tokens[i])); 558 char *tokens[scan_info_max_count] = { NULL }; local 559 ParseLine(data, tokens, scan_info_max_count, &scan_info_count); 565 hw_scan_info_.pt_scan_support = MapHWScanSupport(UINT32(atoi(tokens[0]))); 566 hw_scan_info_.it_scan_support = MapHWScanSupport(UINT32(atoi(tokens[1]))); 567 hw_scan_info_.cea_scan_support = MapHWScanSupport(UINT32(atoi(tokens[2])));
|
/hardware/qcom/display/msm8909w_3100/libqdutils/ |
H A D | qd_utils.cpp | 36 static int parseLine(char *input, char *tokens[], const uint32_t maxToken, uint32_t *count) { argument 46 tokens[index++] = tmpToken; 116 char *tokens[maxCount] = { NULL }; local 141 if (parseLine(line, tokens, maxCount, &tokenCount)) { 145 if (strncmp(tokens[0], "features", strlen("features"))) { 150 if (!strncmp(tokens[i], featureName, strlen(featureName))) { 244 char *tokens[maxCount] = { NULL }; local 265 if (!parseLine(line, tokens, maxCount, &tokenCount)) { 266 if (!strncmp(tokens[0], "bpp", strlen("bpp"))) { 267 *panelBpp = static_cast<uint32_t>(atoi(tokens[ [all...] |
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/fb/ |
H A D | hw_info.cpp | 71 int HWInfo::ParseString(const char *input, char *tokens[], const uint32_t max_token, argument 81 tokens[index++] = tmp_token; 104 char *tokens[max_count] = { NULL }; local 107 if (!ParseString(line.c_str(), tokens, max_count, ":, =\n", &token_count)) { 108 if (!strncmp(tokens[0], "default_pipe", strlen("default_pipe"))) { 109 bw_info->pipe_bw_limit[kBwDefault] = UINT32(atoi(tokens[1])); 110 } else if (!strncmp(tokens[0], "camera_pipe", strlen("camera_pipe"))) { 111 bw_info->pipe_bw_limit[kBwCamera] = UINT32(atoi(tokens[1])); 112 } else if (!strncmp(tokens[0], "vflip_pipe", strlen("vflip_pipe"))) { 113 bw_info->pipe_bw_limit[kBwVFlip] = UINT32(atoi(tokens[ 152 char *tokens[max_count] = { NULL }; local 365 char *tokens[max_count] = { NULL }; local 413 char *tokens[max_count] = { NULL }; local 493 ParseFormats(char *tokens[], uint32_t token_count, HWSubBlockType sub_blk_type, HWResourceInfo *hw_resource) argument [all...] |
H A D | hw_device.cpp | 814 char *tokens[max_count] = { NULL }; local 815 if (!ParseLine(line.c_str(), "=\n", tokens, max_count, &token_count)) { 816 if (!strncmp(tokens[0], "panel_name", strlen("panel_name"))) { 817 snprintf(panel_info->panel_name, sizeof(panel_info->panel_name), "%s", tokens[1]); 837 char *tokens[max_count] = { NULL }; local 838 if (!ParseLine(line.c_str(), tokens, max_count, &token_count)) { 839 if (!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { 840 panel_info->partial_update = atoi(tokens[1]); 841 } else if (!strncmp(tokens[0], "xstart", strlen("xstart"))) { 842 panel_info->left_align = atoi(tokens[ 970 char *tokens[max_count] = { NULL }; local 1004 ParseLine(const char *input, char *tokens[], const uint32_t max_token, uint32_t *count) argument 1023 ParseLine(const char *input, const char *delim, char *tokens[], const uint32_t max_token, uint32_t *count) argument [all...] |
H A D | hw_hdmi.cpp | 291 char *tokens[edid_count_max] = { NULL }; local 294 ParseLine(ptr, tokens, edid_count_max, &hdmi_mode_count); 300 hdmi_modes_[i] = UINT32(atoi(tokens[i])); 541 char *tokens[scan_info_max_count] = { NULL }; local 542 ParseLine(data, tokens, scan_info_max_count, &scan_info_count); 548 hw_scan_info_.pt_scan_support = MapHWScanSupport(UINT32(atoi(tokens[0]))); 549 hw_scan_info_.it_scan_support = MapHWScanSupport(UINT32(atoi(tokens[1]))); 550 hw_scan_info_.cea_scan_support = MapHWScanSupport(UINT32(atoi(tokens[2])));
|
/hardware/qcom/display/msm8996/sdm/libs/core/fb/ |
H A D | hw_info.cpp | 71 int HWInfo::ParseString(const char *input, char *tokens[], const uint32_t max_token, argument 81 tokens[index++] = tmp_token; 125 char *tokens[max_count] = { NULL }; local 128 if (!ParseString(line.c_str(), tokens, max_count, ":, =\n", &token_count)) { 129 if (!strncmp(tokens[0], "default_pipe", strlen("default_pipe"))) { 130 bw_info->pipe_bw_limit[kBwDefault] = UINT32(atoi(tokens[1])); 131 } else if (!strncmp(tokens[0], "camera_pipe", strlen("camera_pipe"))) { 132 bw_info->pipe_bw_limit[kBwCamera] = UINT32(atoi(tokens[1])); 133 } else if (!strncmp(tokens[0], "vflip_pipe", strlen("vflip_pipe"))) { 134 bw_info->pipe_bw_limit[kBwVFlip] = UINT32(atoi(tokens[ 167 char *tokens[max_count] = { NULL }; local 370 char *tokens[max_count] = { NULL }; local 475 ParseFormats(char *tokens[], uint32_t token_count, HWSubBlockType sub_blk_type, HWResourceInfo *hw_resource) argument [all...] |
H A D | hw_hdmi.cpp | 204 char *tokens[edid_count_max] = { NULL }; local 207 ParseLine(ptr, tokens, edid_count_max, &hdmi_mode_count); 213 hdmi_modes_[i] = UINT32(atoi(tokens[i])); 445 char *tokens[scan_info_max_count] = { NULL }; local 446 ParseLine(data, tokens, scan_info_max_count, &scan_info_count); 452 hw_scan_info_.pt_scan_support = MapHWScanSupport(UINT32(atoi(tokens[0]))); 453 hw_scan_info_.it_scan_support = MapHWScanSupport(UINT32(atoi(tokens[1]))); 454 hw_scan_info_.cea_scan_support = MapHWScanSupport(UINT32(atoi(tokens[2])));
|
H A D | hw_device.cpp | 751 char *tokens[max_count] = { NULL }; local 752 if (!ParseLine(line.c_str(), "=\n", tokens, max_count, &token_count)) { 753 if (!strncmp(tokens[0], "panel_name", strlen("panel_name"))) { 754 snprintf(panel_info->panel_name, sizeof(panel_info->panel_name), "%s", tokens[1]); 774 char *tokens[max_count] = { NULL }; local 775 if (!ParseLine(line.c_str(), tokens, max_count, &token_count)) { 776 if (!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { 777 panel_info->partial_update = atoi(tokens[1]); 778 } else if (!strncmp(tokens[0], "xstart", strlen("xstart"))) { 779 panel_info->left_align = atoi(tokens[ 865 char *tokens[max_count] = { NULL }; local 899 ParseLine(const char *input, char *tokens[], const uint32_t max_token, uint32_t *count) argument 918 ParseLine(const char *input, const char *delim, char *tokens[], const uint32_t max_token, uint32_t *count) argument [all...] |
/hardware/qcom/display/msm8998/libqdutils/ |
H A D | qd_utils.cpp | 36 static int parseLine(char *input, char *tokens[], const uint32_t maxToken, uint32_t *count) { argument 46 tokens[index++] = tmpToken; 116 char *tokens[maxCount] = { NULL }; local 141 if (parseLine(line, tokens, maxCount, &tokenCount)) { 145 if (strncmp(tokens[0], "features", strlen("features"))) { 150 if (!strncmp(tokens[i], featureName, strlen(featureName))) { 244 char *tokens[maxCount] = { NULL }; local 265 if (!parseLine(line, tokens, maxCount, &tokenCount)) { 266 if (!strncmp(tokens[0], "bpp", strlen("bpp"))) { 267 *panelBpp = static_cast<uint32_t>(atoi(tokens[ [all...] |
/hardware/qcom/display/msm8998/sdm/libs/core/fb/ |
H A D | hw_info.cpp | 71 int HWInfo::ParseString(const char *input, char *tokens[], const uint32_t max_token, argument 81 tokens[index++] = tmp_token; 104 char *tokens[max_count] = { NULL }; local 107 if (!ParseString(line.c_str(), tokens, max_count, ":, =\n", &token_count)) { 108 if (!strncmp(tokens[0], "default_pipe", strlen("default_pipe"))) { 109 bw_info->pipe_bw_limit[kBwDefault] = UINT32(atoi(tokens[1])); 110 } else if (!strncmp(tokens[0], "camera_pipe", strlen("camera_pipe"))) { 111 bw_info->pipe_bw_limit[kBwCamera] = UINT32(atoi(tokens[1])); 112 } else if (!strncmp(tokens[0], "vflip_pipe", strlen("vflip_pipe"))) { 113 bw_info->pipe_bw_limit[kBwVFlip] = UINT32(atoi(tokens[ 152 char *tokens[max_count] = { NULL }; local 364 char *tokens[max_count] = { NULL }; local 412 char *tokens[max_count] = { NULL }; local 492 ParseFormats(char *tokens[], uint32_t token_count, HWSubBlockType sub_blk_type, HWResourceInfo *hw_resource) argument [all...] |
H A D | hw_hdmi.cpp | 279 char *tokens[edid_count_max] = { NULL }; local 282 ParseLine(ptr, tokens, edid_count_max, &hdmi_mode_count); 288 hdmi_modes_[i] = UINT32(atoi(tokens[i])); 529 char *tokens[scan_info_max_count] = { NULL }; local 530 ParseLine(data, tokens, scan_info_max_count, &scan_info_count); 536 hw_scan_info_.pt_scan_support = MapHWScanSupport(UINT32(atoi(tokens[0]))); 537 hw_scan_info_.it_scan_support = MapHWScanSupport(UINT32(atoi(tokens[1]))); 538 hw_scan_info_.cea_scan_support = MapHWScanSupport(UINT32(atoi(tokens[2])));
|
H A D | hw_device.cpp | 810 char *tokens[max_count] = { NULL }; local 811 if (!ParseLine(line.c_str(), "=\n", tokens, max_count, &token_count)) { 812 if (!strncmp(tokens[0], "panel_name", strlen("panel_name"))) { 813 snprintf(panel_info->panel_name, sizeof(panel_info->panel_name), "%s", tokens[1]); 833 char *tokens[max_count] = { NULL }; local 834 if (!ParseLine(line.c_str(), tokens, max_count, &token_count)) { 835 if (!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { 836 panel_info->partial_update = atoi(tokens[1]); 837 } else if (!strncmp(tokens[0], "xstart", strlen("xstart"))) { 838 panel_info->left_align = atoi(tokens[ 966 char *tokens[max_count] = { NULL }; local 1000 ParseLine(const char *input, char *tokens[], const uint32_t max_token, uint32_t *count) argument 1019 ParseLine(const char *input, const char *delim, char *tokens[], const uint32_t max_token, uint32_t *count) argument [all...] |
/hardware/qcom/display/msm8226/libqdutils/ |
H A D | mdp_version.cpp | 175 char *tokens[10]; local 176 memset(tokens, 0, sizeof(tokens)); 178 if(!tokenizeParams(readLine, TOKEN_PARAMS_DELIM, tokens, 180 if(!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { 181 mPanelInfo.mPartialUpdateEnable = atoi(tokens[1]); 186 if(!strncmp(tokens[0], "xstart", strlen("xstart"))) { 187 mPanelInfo.mLeftAlign = atoi(tokens[1]); 190 if(!strncmp(tokens[0], "walign", strlen("walign"))) { 191 mPanelInfo.mWidthAlign = atoi(tokens[ 252 char *tokens[10]; local [all...] |
/hardware/qcom/display/msm8994/libqdutils/ |
H A D | mdp_version.cpp | 198 char *tokens[10]; local 199 memset(tokens, 0, sizeof(tokens)); 201 if(!tokenizeParams(readLine, TOKEN_PARAMS_DELIM, tokens, 203 if(!strncmp(tokens[0], "pu_en", strlen("pu_en"))) { 204 mPanelInfo.mPartialUpdateEnable = atoi(tokens[1]); 209 if(!strncmp(tokens[0], "xstart", strlen("xstart"))) { 210 mPanelInfo.mLeftAlign = atoi(tokens[1]); 213 if(!strncmp(tokens[0], "walign", strlen("walign"))) { 214 mPanelInfo.mWidthAlign = atoi(tokens[ 295 char *tokens[10]; local [all...] |