1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.internal.backends.chrome.android_browser_finder</title> 4<meta charset="utf-8"> 5</head><body bgcolor="#f0f0f8"> 6 7<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 8<tr bgcolor="#7799ee"> 9<td valign=bottom> <br> 10<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.backends.html"><font color="#ffffff">backends</font></a>.<a href="telemetry.internal.backends.chrome.html"><font color="#ffffff">chrome</font></a>.android_browser_finder</strong></big></big></font></td 11><td align=right valign=bottom 12><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/backends/chrome/android_browser_finder.py">telemetry/internal/backends/chrome/android_browser_finder.py</a></font></td></tr></table> 13 <p><tt>Finds android browsers that can be controlled by telemetry.</tt></p> 14<p> 15<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 16<tr bgcolor="#aa55cc"> 17<td colspan=3 valign=bottom> <br> 18<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 19 20<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 21<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.internal.backends.chrome.android_browser_backend.html">telemetry.internal.backends.chrome.android_browser_backend</a><br> 22<a href="telemetry.internal.backends.android_browser_backend_settings.html">telemetry.internal.backends.android_browser_backend_settings</a><br> 23<a href="telemetry.internal.platform.android_device.html">telemetry.internal.platform.android_device</a><br> 24<a href="devil.android.apk_helper.html">devil.android.apk_helper</a><br> 25</td><td width="25%" valign=top><a href="telemetry.internal.browser.browser.html">telemetry.internal.browser.browser</a><br> 26<a href="telemetry.decorators.html">telemetry.decorators</a><br> 27<a href="telemetry.core.exceptions.html">telemetry.core.exceptions</a><br> 28<a href="logging.html">logging</a><br> 29</td><td width="25%" valign=top><a href="os.html">os</a><br> 30<a href="telemetry.core.platform.html">telemetry.core.platform</a><br> 31<a href="telemetry.internal.browser.possible_browser.html">telemetry.internal.browser.possible_browser</a><br> 32<a href="sys.html">sys</a><br> 33</td><td width="25%" valign=top><a href="telemetry.core.util.html">telemetry.core.util</a><br> 34</td></tr></table></td></tr></table><p> 35<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 36<tr bgcolor="#ee77aa"> 37<td colspan=3 valign=bottom> <br> 38<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 39 40<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 41<td width="100%"><dl> 42<dt><font face="helvetica, arial"><a href="telemetry.internal.browser.possible_browser.html#PossibleBrowser">telemetry.internal.browser.possible_browser.PossibleBrowser</a>(<a href="telemetry.internal.app.possible_app.html#PossibleApp">telemetry.internal.app.possible_app.PossibleApp</a>) 43</font></dt><dd> 44<dl> 45<dt><font face="helvetica, arial"><a href="telemetry.internal.backends.chrome.android_browser_finder.html#PossibleAndroidBrowser">PossibleAndroidBrowser</a> 46</font></dt></dl> 47</dd> 48</dl> 49 <p> 50<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 51<tr bgcolor="#ffc8d8"> 52<td colspan=3 valign=bottom> <br> 53<font color="#000000" face="helvetica, arial"><a name="PossibleAndroidBrowser">class <strong>PossibleAndroidBrowser</strong></a>(<a href="telemetry.internal.browser.possible_browser.html#PossibleBrowser">telemetry.internal.browser.possible_browser.PossibleBrowser</a>)</font></td></tr> 54 55<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 56<td colspan=2><tt>A launchable android browser instance.<br> </tt></td></tr> 57<tr><td> </td> 58<td width="100%"><dl><dt>Method resolution order:</dt> 59<dd><a href="telemetry.internal.backends.chrome.android_browser_finder.html#PossibleAndroidBrowser">PossibleAndroidBrowser</a></dd> 60<dd><a href="telemetry.internal.browser.possible_browser.html#PossibleBrowser">telemetry.internal.browser.possible_browser.PossibleBrowser</a></dd> 61<dd><a href="telemetry.internal.app.possible_app.html#PossibleApp">telemetry.internal.app.possible_app.PossibleApp</a></dd> 62<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 63</dl> 64<hr> 65Methods defined here:<br> 66<dl><dt><a name="PossibleAndroidBrowser-Create"><strong>Create</strong></a>(self, finder_options)</dt></dl> 67 68<dl><dt><a name="PossibleAndroidBrowser-HaveLocalAPK"><strong>HaveLocalAPK</strong></a>(self)</dt></dl> 69 70<dl><dt><a name="PossibleAndroidBrowser-SupportsOptions"><strong>SupportsOptions</strong></a>(self, finder_options)</dt></dl> 71 72<dl><dt><a name="PossibleAndroidBrowser-UpdateExecutableIfNeeded"><strong>UpdateExecutableIfNeeded</strong></a>(*args, **kwargs)</dt></dl> 73 74<dl><dt><a name="PossibleAndroidBrowser-__init__"><strong>__init__</strong></a>(self, browser_type, finder_options, android_platform, backend_settings, apk_name)</dt></dl> 75 76<dl><dt><a name="PossibleAndroidBrowser-__repr__"><strong>__repr__</strong></a>(self)</dt></dl> 77 78<dl><dt><a name="PossibleAndroidBrowser-last_modification_time"><strong>last_modification_time</strong></a>(self)</dt></dl> 79 80<hr> 81Methods inherited from <a href="telemetry.internal.browser.possible_browser.html#PossibleBrowser">telemetry.internal.browser.possible_browser.PossibleBrowser</a>:<br> 82<dl><dt><a name="PossibleAndroidBrowser-IsRemote"><strong>IsRemote</strong></a>(self)</dt></dl> 83 84<dl><dt><a name="PossibleAndroidBrowser-RunRemote"><strong>RunRemote</strong></a>(self)</dt></dl> 85 86<dl><dt><a name="PossibleAndroidBrowser-SetCredentialsPath"><strong>SetCredentialsPath</strong></a>(self, credentials_path)</dt></dl> 87 88<hr> 89Data descriptors inherited from <a href="telemetry.internal.browser.possible_browser.html#PossibleBrowser">telemetry.internal.browser.possible_browser.PossibleBrowser</a>:<br> 90<dl><dt><strong>browser_type</strong></dt> 91</dl> 92<dl><dt><strong>supports_tab_control</strong></dt> 93</dl> 94<hr> 95Data descriptors inherited from <a href="telemetry.internal.app.possible_app.html#PossibleApp">telemetry.internal.app.possible_app.PossibleApp</a>:<br> 96<dl><dt><strong>__dict__</strong></dt> 97<dd><tt>dictionary for instance variables (if defined)</tt></dd> 98</dl> 99<dl><dt><strong>__weakref__</strong></dt> 100<dd><tt>list of weak references to the object (if defined)</tt></dd> 101</dl> 102<dl><dt><strong>app_type</strong></dt> 103</dl> 104<dl><dt><strong>platform</strong></dt> 105</dl> 106<dl><dt><strong>target_os</strong></dt> 107<dd><tt>Target OS, the app will run on.</tt></dd> 108</dl> 109</td></tr></table></td></tr></table><p> 110<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 111<tr bgcolor="#eeaa77"> 112<td colspan=3 valign=bottom> <br> 113<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> 114 115<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> 116<td width="100%"><dl><dt><a name="-CanFindAvailableBrowsers"><strong>CanFindAvailableBrowsers</strong></a>()</dt></dl> 117 <dl><dt><a name="-CanPossiblyHandlePath"><strong>CanPossiblyHandlePath</strong></a>(target_path)</dt></dl> 118 <dl><dt><a name="-FindAllAvailableBrowsers"><strong>FindAllAvailableBrowsers</strong></a>(finder_options, device)</dt><dd><tt>Finds all the possible browsers on one device.<br> 119 <br> 120The device is either the only device on the host platform,<br> 121or |finder_options| specifies a particular device.</tt></dd></dl> 122 <dl><dt><a name="-FindAllBrowserTypes"><strong>FindAllBrowserTypes</strong></a>(_options)</dt></dl> 123 <dl><dt><a name="-SelectDefaultBrowser"><strong>SelectDefaultBrowser</strong></a>(possible_browsers)</dt><dd><tt>Return the newest possible browser.</tt></dd></dl> 124</td></tr></table><p> 125<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 126<tr bgcolor="#55aa55"> 127<td colspan=3 valign=bottom> <br> 128<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> 129 130<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> 131<td width="100%"><strong>CHROME_PACKAGE_NAMES</strong> = {'android-chrome': ['com.google.android.apps.chrome', <class 'telemetry.internal.backends.android_browser_backend_settings.ChromeBackendSettings'>, 'Chrome.apk'], 'android-chrome-beta': ['com.chrome.beta', <class 'telemetry.internal.backends.android_browser_backend_settings.ChromeBackendSettings'>, None], 'android-chrome-canary': ['com.chrome.canary', <class 'telemetry.internal.backends.android_browser_backend_settings.ChromeBackendSettings'>, None], 'android-chrome-dev': ['com.chrome.dev', <class 'telemetry.internal.backends.android_browser_backend_settings.ChromeBackendSettings'>, None], 'android-chrome-work': ['com.chrome.work', <class 'telemetry.internal.backends.android_browser_backend_settings.ChromeBackendSettings'>, None], 'android-chromium': ['org.chromium.chrome', <class 'telemetry.internal.backends.android_browser_backend_settings.ChromeBackendSettings'>, 'ChromePublic.apk'], 'android-content-shell': ['org.chromium.content_shell_apk', <class 'telemetry.internal.backends.android_browser_backend_settings.ContentShellBackendSettings'>, 'ContentShell.apk'], 'android-jb-system-chrome': ['com.android.chrome', <class 'telemetry.internal.backends.android_browser_backend_settings.ChromeBackendSettings'>, None], 'android-webview': ['org.chromium.webview_shell', <class 'telemetry.internal.backends.android_browser_backend_settings.WebviewBackendSettings'>, None], 'android-webview-shell': ['org.chromium.android_webview.shell', <class 'telemetry.internal.backends.android_browser_backend_settings.WebviewShellBackendSettings'>, 'AndroidWebView.apk']}</td></tr></table> 132</body></html>