/packages/apps/Browser/src/com/android/browser/ |
H A D | WebViewController.java | 48 void onSetWebView(Tab tab, WebView view); argument 50 void createSubWindow(Tab tab); argument 52 void onPageStarted(Tab tab, WebView view, Bitmap favicon); argument 54 void onPageFinished(Tab tab); argument 56 void onProgressChanged(Tab tab); argument 58 void onReceivedTitle(Tab tab, final String title); argument 60 void onFavicon(Tab tab, WebView view, Bitmap icon); argument 62 boolean shouldOverrideUrlLoading(Tab tab, WebView view, String url); argument 68 void doUpdateVisitedHistory(Tab tab, boolean isReload); argument 72 void onReceivedHttpAuthRequest(Tab tab, WebVie argument 75 onDownloadStart(Tab tab, String url, String useragent, String contentDisposition, String mimeType, long contentLength) argument 78 showCustomView(Tab tab, View view, int requestedOrientation, WebChromeClient.CustomViewCallback callback) argument 90 onUserCanceledSsl(Tab tab) argument 94 revertVoiceSearchMode(Tab tab) argument 98 onUpdatedSecurityState(Tab tab) argument 104 attachSubWindow(Tab tab) argument 106 dismissSubWindow(Tab tab) argument 114 switchToTab(Tab tab) argument 116 closeTab(Tab tab) argument 120 bookmarkedStatusHasChanged(Tab tab) argument 122 showAutoLogin(Tab tab) argument 124 hideAutoLogin(Tab tab) argument [all...] |
H A D | UI.java | 57 public void addTab(Tab tab); argument 59 public void removeTab(Tab tab); argument 61 public void setActiveTab(Tab tab); argument 65 public void detachTab(Tab tab); argument 67 public void attachTab(Tab tab); argument 69 public void onSetWebView(Tab tab, WebView view); argument 71 public void createSubWindow(Tab tab, WebView subWebView); argument 77 public void onTabDataChanged(Tab tab); argument 79 public void onPageStopped(Tab tab); argument 81 public void onProgressChanged(Tab tab); argument 98 revertVoiceTitleBar(Tab tab) argument 102 updateMenuState(Tab tab, Menu menu) argument 122 setShouldShowErrorConsole(Tab tab, boolean show) argument 133 bookmarkedStatusHasChanged(Tab tab) argument 143 showAutoLogin(Tab tab) argument 145 hideAutoLogin(Tab tab) argument [all...] |
H A D | UiController.java | 54 void setActiveTab(Tab tab); argument 56 boolean switchToTab(Tab tab); argument 60 void closeTab(Tab tab); argument 82 void attachSubWindow(Tab tab); argument 84 void removeSubWindow(Tab tab); argument 92 void updateMenuState(Tab tab, Menu menu); argument 98 void loadUrl(Tab tab, String url); argument
|
H A D | XLargeUi.java | 163 public void onProgressChanged(Tab tab) { argument 164 int progress = tab.getLoadProgress(); 165 mTabBar.onProgress(tab, progress); 166 if (tab.inForeground()) { 172 public void addTab(Tab tab) { argument 173 mTabBar.onNewTab(tab); 176 protected void onAddTabCompleted(Tab tab) { argument 181 public void setActiveTab(final Tab tab) { argument 184 super.setActiveTab(tab); 185 BrowserWebView view = (BrowserWebView) tab 219 removeTab(Tab tab) argument 227 onRemoveTabCompleted(Tab tab) argument 295 updateNavigationState(Tab tab) argument 300 setUrlTitle(Tab tab) argument 307 setFavicon(Tab tab) argument [all...] |
H A D | PreloadController.java | 72 public void onSetWebView(Tab tab, WebView view) { argument 77 public void createSubWindow(Tab tab) { argument 82 public void onPageStarted(Tab tab, WebView view, Bitmap favicon) { argument 86 // user visits a preloaded tab, the only item in the history 93 public void onPageFinished(Tab tab) { argument 95 if (tab != null) { 96 final WebView view = tab.getWebView(); 99 // user visits a preloaded tab. 106 public void onProgressChanged(Tab tab) { argument 111 public void onReceivedTitle(Tab tab, Strin argument 116 onFavicon(Tab tab, WebView view, Bitmap icon) argument 121 shouldOverrideUrlLoading(Tab tab, WebView view, String url) argument 138 doUpdateVisitedHistory(Tab tab, boolean isReload) argument 148 onReceivedHttpAuthRequest(Tab tab, WebView view, HttpAuthHandler handler, String host, String realm) argument 155 onDownloadStart(Tab tab, String url, String useragent, String contentDisposition, String mimeType, long contentLength) argument 162 showCustomView(Tab tab, View view, int requestedOrientation, CustomViewCallback callback) argument 191 onUserCanceledSsl(Tab tab) argument 201 revertVoiceSearchMode(Tab tab) argument 212 onUpdatedSecurityState(Tab tab) argument 227 attachSubWindow(Tab tab) argument 232 dismissSubWindow(Tab tab) argument 249 switchToTab(Tab tab) argument 255 closeTab(Tab tab) argument 265 bookmarkedStatusHasChanged(Tab tab) argument 270 showAutoLogin(Tab tab) argument 275 hideAutoLogin(Tab tab) argument [all...] |
H A D | BaseUi.java | 163 // check if we exited without setting active tab 200 public void onTabDataChanged(Tab tab) { argument 201 setUrlTitle(tab); 202 setFavicon(tab); 203 updateLockIconToLatest(tab); 204 updateNavigationState(tab); 205 mTitleBar.onTabDataChanged(tab); 206 mNavigationBar.onTabDataChanged(tab); 207 onProgressChanged(tab); 211 public void bookmarkedStatusHasChanged(Tab tab) { argument 219 onPageStopped(Tab tab) argument 234 addTab(Tab tab) argument 238 setActiveTab(final Tab tab) argument 281 removeTab(Tab tab) argument 289 detachTab(Tab tab) argument 294 attachTab(Tab tab) argument 298 attachTabToContentView(Tab tab) argument 335 removeTabFromContentView(Tab tab) argument 360 onSetWebView(Tab tab, WebView webView) argument 385 createSubWindow(Tab tab, WebView subView) argument 489 revertVoiceTitleBar(Tab tab) argument 559 showAutoLogin(Tab tab) argument 564 hideAutoLogin(Tab tab) argument 570 updateNavigationState(Tab tab) argument 573 updateAutoLogin(Tab tab, boolean animate) argument 602 setUrlTitle(Tab tab) argument 615 setFavicon(Tab tab) argument 645 updateMenuState(Tab tab, Menu menu) argument 680 setShouldShowErrorConsole(Tab tab, boolean flag) argument [all...] |
H A D | NavScreen.java | 132 // update state for active tab 137 Tab tab = mAdapter.getItem(pos); 138 onCloseTab(tab); 158 private void onCloseTab(Tab tab) { argument 159 if (tab != null) { 160 if (tab == mUiController.getCurrentTab()) { 163 mUiController.closeTab(tab); 170 final Tab tab = mUiController.openTab(BrowserSettings.getInstance().getHomePage(), 172 if (tab != null) { 174 final int tix = mUi.mTabControl.getTabPosition(tab); 188 switchToTab(Tab tab) argument [all...] |
H A D | TabControl.java | 70 * Return the current tab's main WebView. This will always return the main 71 * WebView for a given tab and not a subwindow. 72 * @return The current tab's WebView. 83 * Return the current tab's top-level WebView. This can return a subwindow 85 * @return The top-level WebView of the current tab. 96 * Return the current tab's subwindow if it exists. 97 * @return The subwindow of the current tab or null if it doesn't exist. 115 * Return the tab at the specified position. 116 * @return The Tab for the specified position or null if the tab does not 127 * Return the current tab 147 getTabPosition(Tab tab) argument 172 addPreloadedTab(Tab tab) argument [all...] |
H A D | Controller.java | 282 // Find out if we will restore any state and remember the tab. 307 // Create an initial tab. 310 // the tab will be close when exit. 342 // TabControl.restoreState() will create a new tab even if 399 public void onSetWebView(Tab tab, WebView view) { argument 400 mUi.onSetWebView(tab, view); 404 public void createSubWindow(Tab tab) { argument 406 WebView mainView = tab.getWebView(); 410 mUi.createSubWindow(tab, subView); 535 Tab tab 556 shareCurrentPage(Tab tab) argument 698 resumeWebViewTimers(Tab tab) argument 712 pauseWebViewTimers(Tab tab) argument 788 onPageStarted(Tab tab, WebView view, Bitmap favicon) argument 830 onPageFinished(Tab tab) argument 862 onProgressChanged(Tab tab) argument 891 onUpdatedSecurityState(Tab tab) argument 896 onReceivedTitle(Tab tab, final String title) argument 910 onFavicon(Tab tab, WebView view, Bitmap icon) argument 916 shouldOverrideUrlLoading(Tab tab, WebView view, String url) argument 943 doUpdateVisitedHistory(Tab tab, boolean isReload) argument 973 onReceivedHttpAuthRequest(Tab tab, WebView view, final HttpAuthHandler handler, final String host, final String realm) argument 1002 onDownloadStart(Tab tab, String url, String userAgent, String contentDisposition, String mimetype, long contentLength) argument 1037 showAutoLogin(Tab tab) argument 1044 hideAutoLogin(Tab tab) argument 1055 maybeUpdateFavicon(Tab tab, final String originalUrl, final String url, Bitmap favicon) argument 1067 bookmarkedStatusHasChanged(Tab tab) argument 1104 revertVoiceSearchMode(Tab tab) argument 1113 showCustomView(Tab tab, View view, int requestedOrientation, WebChromeClient.CustomViewCallback callback) argument 1423 updateInLoadMenuItems(Menu menu, Tab tab) argument 1467 updateMenuState(Tab tab, Menu menu) argument 1996 updateScreenshot(Tab tab) argument 2170 addTab(Tab tab) argument 2174 removeTab(Tab tab) argument 2181 setActiveTab(Tab tab) argument 2221 dismissSubWindow(Tab tab) argument 2239 attachSubWindow(Tab tab) argument 2370 switchToTab(Tab tab) argument 2414 closeTab(Tab tab) argument 2443 loadUrl(Tab tab, String url) argument 2447 loadUrl(Tab tab, String url, Map<String, String> headers) argument 2474 onUserCanceledSsl(Tab tab) argument [all...] |
H A D | UrlHandler.java | 61 boolean shouldOverrideUrlLoading(Tab tab, WebView view, String url) { argument 76 // before leaving BrowserActivity, close the empty child tab. 77 // If a new tab is created through JavaScript open to load this 113 new RLZTask(tab, siteUri, view).execute(); 118 if (startActivityForUrl(tab, url)) { 122 if (handleMenuClick(tab, url)) { 129 boolean startActivityForUrl(Tab tab, String url) { argument 148 // before leaving BrowserActivity, close the empty child tab. 149 // If a new tab is created through JavaScript open to load this 163 // Re-use the existing tab i 223 handleMenuClick(Tab tab, String url) argument 242 RLZTask(Tab tab, Uri uri, WebView webView) argument [all...] |
H A D | TabScrollView.java | 90 // in case of a configuration change, adjust tab width 129 void addTab(View tab) { argument 130 mContentView.addView(tab); 131 tab.setActivated(false); 134 void removeTab(View tab) { argument 135 int ix = mContentView.indexOfChild(tab); 141 mContentView.removeView(tab); 162 // private void animateIn(View tab) { 163 // ObjectAnimator animator = ObjectAnimator.ofInt(tab, "TranslationX", 500, 0); 168 // private void animateOut(final View tab) { [all...] |
H A D | TabBar.java | 113 // tab dimensions 135 // force update of tab bar 152 for (Tab tab : tabs) { 153 TabView tv = buildTabView(tab); 163 // adjust for new tab overlap 212 final Tab tab = ((TabView) view).mTab; 216 mUiController.switchToTab(tab); 226 private TabView buildTabView(Tab tab) { argument 227 TabView tabview = new TabView(mActivity, tab); 228 mTabMap.put(tab, tabvie 264 TabView(Context context, Tab tab) argument 443 animateTabOut(final Tab tab, final TabView tv) argument 475 animateTabIn(final Tab tab, final TabView tv) argument 504 onSetActiveTab(Tab tab) argument 512 onFavicon(Tab tab, Bitmap favicon) argument 519 onNewTab(Tab tab) argument 524 onProgress(Tab tab, int progress) argument 531 onRemoveTab(Tab tab) argument 540 onUrlAndTitle(Tab tab, String url, String title) argument [all...] |
H A D | DataController.java | 119 public void loadThumbnail(Tab tab) { argument 120 mDataHandler.sendMessage(TAB_LOAD_THUMBNAIL, tab); 123 public void deleteThumbnail(Tab tab) { argument 124 mDataHandler.sendMessage(TAB_DELETE_THUMBNAIL, tab.getId()); 127 public void saveThumbnail(Tab tab) { argument 128 mDataHandler.sendMessage(TAB_SAVE_THUMBNAIL, tab); 196 private byte[] getCaptureBlob(Tab tab) { argument 197 synchronized (tab) { 198 Bitmap capture = tab.getScreenshot(); 211 private void doSaveThumbnail(Tab tab) { argument 223 doLoadThumbnail(Tab tab) argument [all...] |
H A D | NavTabView.java | 110 protected void setWebView(Tab tab) { argument 111 mTab = tab; 113 Bitmap image = tab.getScreenshot(); 116 if (tab != null) { 117 mImage.setContentDescription(tab.getTitle());
|
H A D | PageDialogsHandler.java | 89 void showHttpAuthentication(final Tab tab, final HttpAuthHandler handler, String host, String realm) { argument 101 mController.onUpdatedSecurityState(tab); 128 * @param tab The tab to show info about 136 void showPageInfo(final Tab tab, argument 143 final WebView view = tab.getWebView(); 145 String url = fromShowSSLCertificateOnError ? urlCertificateOnError : tab.getUrl(); 146 String title = tab.getTitle(); 158 mPageInfoView = tab; 225 showSSLCertificate(tab); 239 showSSLCertificate(final Tab tab) argument [all...] |
H A D | Preloader.java | 100 PreloadedTabControl tab = s.getTabControl(); 102 tab.loadUrlIfChanged(url, headers); 103 tab.setQuery(searchBoxQuery); 105 tab.loadUrl(url, headers); 113 PreloadedTabControl tab = s.getTabControl(); 114 tab.searchBoxCancel(); 131 * Return a preloaded tab, and remove it from the preloader. This is used when the
|
H A D | PhoneUi.java | 111 public void onProgressChanged(Tab tab) { argument 112 if (tab.inForeground()) { 113 int progress = tab.getLoadProgress(); 155 public void setActiveTab(final Tab tab) { argument 158 super.setActiveTab(tab); 159 BrowserWebView view = (BrowserWebView) tab.getWebView(); 161 // so the tab is guaranteed to have a webview 163 Log.e(LOGTAG, "active tab with no webview detected"); 175 if (tab.isInVoiceSearchMode()) { 176 showVoiceTitleBar(tab 196 updateMenuState(Tab tab, Menu menu) argument [all...] |
H A D | ComboViewActivity.java | 37 private static final String STATE_SELECTED_TAB = "tab"; 156 * trick. Normally a tab host has a simple API for supplying a View or 157 * Intent that each tab will show. This is not sufficient for switching 158 * between pages. So instead we make the content part of the tab host 160 * view to show as the tab content. It listens to changes in tabs, and takes 162 * tab changes. 190 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument 192 tab.setTag(info); 193 tab.setTabListener(this); 195 mActionBar.addTab(tab); 224 onTabSelected(android.app.ActionBar.Tab tab, FragmentTransaction ft) argument 235 onTabUnselected(android.app.ActionBar.Tab tab, FragmentTransaction ft) argument 240 onTabReselected(android.app.ActionBar.Tab tab, FragmentTransaction ft) argument [all...] |
H A D | TitleBar.java | 216 Tab tab = mBaseUi.getActiveTab(); 217 WebView webview = tab != null ? tab.getWebView() : null; 262 public void updateAutoLogin(Tab tab, boolean animate) { argument 264 if (tab.getDeviceAccountLogin() == null) { 269 mAutoLogin.updateAutoLogin(tab, animate); 376 public void onTabDataChanged(Tab tab) { argument 378 mSnapshotBar.onTabDataChanged(tab); 381 if (tab.isSnapshot()) {
|
H A D | NavigationBarTablet.java | 143 void updateNavigationState(Tab tab) { argument 144 if (tab != null) { 145 mBackButton.setImageResource(tab.canGoBack() 148 mForwardButton.setImageResource(tab.canGoForward() 156 public void onTabDataChanged(Tab tab) { argument 157 super.onTabDataChanged(tab); 158 showHideStar(tab); 332 private void showHideStar(Tab tab) { argument 334 if (tab != null && tab [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
H A D | ActionBarAdapter.java | 52 * Called when the user selects a tab. The new tab can be obtained using 162 final Tab tab = mActionBar.newTab(); 163 tab.setTag(tabState); 164 tab.setTabListener(mTabListener); 166 tab.setText(description); 168 tab.setIcon(icon); 169 tab.setContentDescription(description); 171 mActionBar.addTab(tab); 177 * This flag is used when we want to programmatically update the current tab withou 182 onTabReselected(Tab tab, FragmentTransaction ft) argument 183 onTabUnselected(Tab tab, FragmentTransaction ft) argument 185 onTabSelected(Tab tab, FragmentTransaction ft) argument 195 setCurrentTab(TabState tab) argument 202 setCurrentTab(TabState tab, boolean notifyListener) argument 394 saveLastTabPreference(TabState tab) argument [all...] |
H A D | DialtactsActivity.java | 72 * The dialer activity that has one tab with the virtual 12key 73 * dialer, a tab with recent calls in it, a tab with the contacts and 74 * a tab with the favorite. This is the container and the tabs are 76 * The dialer tab's title is 'phone', a more common name (see strings.xml). 109 /** Last manually selected tab index */ 152 * During user's drag or tab click, we shouldn't show fake buttons but just show real 157 * True when the app detects user's tab click (at the top of the screen). This variable should 160 * During user's drag or tab click, we shouldn't show fake buttons but just show real 208 // Interpret IDLE as the end of migration (both swipe and tab clic [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | FocusOnlyTabWidget.java | 59 View tab = null; 65 tab = v; 72 super.onFocusChange(tab, true);
|
/packages/apps/Browser/tests/src/com/android/browser/ |
H A D | IntentHandlerTests.java | 43 assertNotNull("Current tab (google.com", tabGoogle); 50 assertNotNull("Current tab (maps.google.com)", tabMaps); 90 assertNotNull("Current tab (google.com", tabGoogle); 112 private void directlyLoadUrl(final Tab tab, final String url) throws Throwable { argument 116 WebView web = tab.getWebView(); 120 waitForLoadStart(tab, url); 123 void waitForLoadStart(final Tab tab, final String url) throws InterruptedException { argument 125 while (!TextUtils.equals(tab.getOriginalUrl(), url)) { 154 Tab tab = getActivity().getController().getCurrentTab(); 155 waitForLoadStart(tab, ur [all...] |
/packages/apps/Settings/src/com/android/settings/ |
H A D | TrustedCredentialsSettings.java | 154 private void addTab(Tab tab) { argument 155 TabHost.TabSpec systemSpec = mTabHost.newTabSpec(tab.mTag) 156 .setIndicator(getActivity().getString(tab.mLabel)) 157 .setContent(tab.mView); 160 ListView lv = (ListView) mTabHost.findViewById(tab.mList); 161 final TrustedCertificateAdapter adapter = new TrustedCertificateAdapter(tab); 173 private TrustedCertificateAdapter(Tab tab) { argument 174 mTab = tab; 275 Tab tab, 280 mTab = tab; 273 CertHolder(TrustedCertificateStore store, TrustedCertificateAdapter adapter, Tab tab, String alias, X509Certificate x509Cert) argument [all...] |