Detects if the current browser is on a Tizen smart TV.
189779
function DetectTizenTV()
   {
      if ((stripos($this->useragent, $this->deviceTizen) > -1)
			&& (stripos($this->useragent, $this->smartTV1) > -1))
         return $this->true; 
      else
         return $this->false; 
   }
556269
public boolean detectFirefoxOSTablet() {

        //First, let's make sure we're NOT on another major mobile OS.
        if (detectIos() || detectAndroid() || detectSailfish()) {
            return false;
        }

        if ((userAgent.indexOf(engineFirefox) != -1) && (userAgent.indexOf(deviceTablet) != -1)) {
            return true;
        }

        return false;
    }
331397
function DetectPalmOS()
   {
      //Most devices nowadays report as 'Palm', but some older ones reported as Blazer or Xiino.
      if (stripos($this->useragent, $this->devicePalm) > -1 ||
          stripos($this->useragent, $this->engineBlazer) > -1 ||
          stripos($this->useragent, $this->engineXiino) > -1)
      {
         //Make sure it's not WebOS first
         if ($this->DetectPalmWebOS() == $this->true)
            return $this->false;
         else
            return $this->true; 
      }
      else
         return $this->false; 
   }
45119
public static function checkBrowserAndroid()
    {
        // Navigator
        if (stripos(self::$userAgentString, 'Android') !== false) {
            if (preg_match('/Version\/([\d\.]*)/i', self::$userAgentString, $matches)) {
                if (isset($matches[1])) {
                    self::$browser->setVersion($matches[1]);
                }
            } else {
                self::$browser->setVersion(Browser::VERSION_UNKNOWN);
            }
            self::$browser->setName(Browser::NAVIGATOR);

            return true;
        }

        return false;
    }
437016
function DetectAndroidWebKit()
   {
      if (($this->DetectAndroid() == $this->true) &&
		($this->DetectWebkit() == $this->true))
         return $this->true; 
      else
         return $this->false; 
   }
360591
function DetectGoogleTV()
   {
      if (stripos($this->useragent, $this->deviceGoogleTV) > -1)
         return $this->true; 
      else
         return $this->false; 
   }
145656
private boolean isAlwaysShow(Component comp) {

        return ((comp == m_appIndicator)
            || (comp == m_contextMenu)
            || (comp == m_userDropDown)
            || (comp == m_quickLaunchDropDown)
            || comp.getStyleName().contains(OpenCmsTheme.REQUIRED_BUTTON));
    }
417837
def detect_s60_oss_browser()

      if (detect_webkit() && (user_agent.include?(DEVICE_SYMBIAN) || user_agent.include?(DEVICE_S60)))
        return true
      end
      return false
    end
1136989
protected function checkBrowserEdge()
    {
        if (stripos($this->_agent, 'edge') !== false) {
            $aresult = explode('/', stristr($this->_agent, 'Edge'));
            $aversion = explode(' ', $aresult[1]);
            $this->setVersion($aversion[0]);
            $this->setBrowser(self::BROWSER_EDGE);

            return true;

        }

        return false;
    }
1317997
protected function checkBrowserEdge()
    {
        if (stripos($this->_agent, 'Edge/') !== false) {
            $aresult = explode('/', stristr($this->_agent, 'Edge'));
            if (isset($aresult[1])) {
                $aversion = explode(' ', $aresult[1]);
                $this->setVersion($aversion[0]);
                $this->setBrowser(self::BROWSER_EDGE);
                if (stripos($this->_agent, 'Windows Phone') !== false || stripos($this->_agent, 'Android') !== false) {
                    $this->setMobile(true);
                }
                return true;
            }
        }
        return false;
    }
135540
def is_playing_tv(self):
        """"""
        response = self.avTransport.GetPositionInfo([
            ('InstanceID', 0),
            ('Channel', 'Master')
        ])
        track_uri = response['TrackURI']
        return re.match(r'^x-sonos-htastream:', track_uri) is not None
540545
public static boolean check(Context context, WebView mWebView, boolean showInstall) {
        if (context == null) return false;

        boolean flashPluginExist = isPluginExist(context);

        if (mWebView != null) {
            if (!flashPluginExist && showInstall) {
                mWebView.addJavascriptInterface(new AndroidBridge(context), "android");
                String content = "<html>\n" +
                        "<head></head>\n" +
                        "<body>\n" +
                        "<br/><br/>\n" +
                        "\n" +
                        "<h3>Sorry, We have found that you haven't installed adobe flash player's plugin!</h3>\n" +
                        "\n" +
                        "<p>\n" +
                        "<h4>\n" +
                        "    You can click <a href=\"#\" onclick=\"window.android.goMarket()\"> <b> here</b></a> to\n" +
                        "    install it.</h4>\n" +
                        "</p>\n" +
                        "</body>\n" +
                        "</html>\n";
                mWebView.loadData(content, "text/html", "UTF-8");
            }
        }

        return flashPluginExist;
    }
641111
function DetectIpad()
   {
      if (stripos($this->useragent, $this->deviceIpad) > -1 &&
          $this->DetectWebkit() == $this->true)
         return $this->true; 
      else
         return $this->false; 
   }
1253821
function DetectWebOSTablet()
   {
      if ((stripos($this->useragent, $this->deviceWebOShp) > -1)
			&& (stripos($this->useragent, $this->deviceTablet) > -1))
         return $this->true; 
      else
         return $this->false; 
   }
745099
public static function isSmartTV($userAgent) {
		if (self::$_is_smarttv !== null) return self::$_is_smarttv;
		self::$_is_smarttv = false;
		$userAgent = strtolower($userAgent);
		foreach (self::$smartTVBrowsers as $key) {
			if (strpos($userAgent, $key) !== false) {
				self::$_is_smarttv = true;
				break;
			}
		}
		return self::$_is_smarttv;
	}
971760
protected function checkBrowserAndroidThinkPadTablet()
    {
        if( stripos($this->_agent,'Android') !== false )
        {
            if( stripos($this->_agent,'ThinkPad Tablet') !== false )
            {
                $this->setVersion(self::VERSION_UNKNOWN);
                $this->setMobile(true);
                $this->setBrowser(self::BROWSER_LENOVO_THINKPAD_TABLET);
                return true;
            }
        }
        return false;
    }
933263
def is_displayed(self):
        """"""
        # Only go into this conditional for browsers that don't use the atom themselves
        if self._w3c:
            return self.parent.execute_script(
                "return (%s).apply(null, arguments);" % isDisplayed_js,
                self)
        else:
            return self._execute(Command.IS_ELEMENT_DISPLAYED)['value']