Lines Matching refs:str
47 static bool isHDMI(const char* str) in isHDMI() argument
49 if(strcasestr("change@/devices/virtual/switch/hdmi", str)) in isHDMI()
56 const char *str = udata; in handle_uevent() local
67 if(!strcasestr("change@/devices/virtual/switch/hdmi", str) && in handle_uevent()
68 !strcasestr("change@/devices/virtual/switch/wfd", str)) { in handle_uevent()
83 int dpy = isHDMI(str) ? HWC_DISPLAY_EXTERNAL : extDpyNum; in handle_uevent()
93 while(*str) { in handle_uevent()
94 if (!strncmp(str, "SWITCH_STATE=", strlen("SWITCH_STATE="))) { in handle_uevent()
95 connected = atoi(str + strlen("SWITCH_STATE=")); in handle_uevent()
103 str += strlen(str) + 1; in handle_uevent()
104 if (str - udata >= len) in handle_uevent()