/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, String referer, long contentLength) argument 78 showCustomView(Tab tab, View view, int requestedOrientation, WebChromeClient.CustomViewCallback callback) argument 90 onUserCanceledSsl(Tab tab) argument 94 onUpdatedSecurityState(Tab tab) argument 100 attachSubWindow(Tab tab) argument 102 dismissSubWindow(Tab tab) argument 110 switchToTab(Tab tab) argument 112 closeTab(Tab tab) argument 116 bookmarkedStatusHasChanged(Tab tab) argument 118 showAutoLogin(Tab tab) argument 120 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 updateMenuState(Tab tab, Menu menu) argument 118 setShouldShowErrorConsole(Tab tab, boolean show) argument 129 bookmarkedStatusHasChanged(Tab tab) argument 139 showAutoLogin(Tab tab) argument 141 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 80 void attachSubWindow(Tab tab); argument 82 void removeSubWindow(Tab tab); argument 90 void updateMenuState(Tab tab, Menu menu); argument 96 void loadUrl(Tab tab, String url); argument
|
H A D | PreloadController.java | 70 public void onSetWebView(Tab tab, WebView view) { argument 75 public void createSubWindow(Tab tab) { argument 80 public void onPageStarted(Tab tab, WebView view, Bitmap favicon) { argument 84 // user visits a preloaded tab, the only item in the history 91 public void onPageFinished(Tab tab) { argument 93 if (tab != null) { 94 final WebView view = tab.getWebView(); 97 // user visits a preloaded tab. 104 public void onProgressChanged(Tab tab) { argument 109 public void onReceivedTitle(Tab tab, Strin argument 114 onFavicon(Tab tab, WebView view, Bitmap icon) argument 119 shouldOverrideUrlLoading(Tab tab, WebView view, String url) argument 137 doUpdateVisitedHistory(Tab tab, boolean isReload) argument 147 onReceivedHttpAuthRequest(Tab tab, WebView view, HttpAuthHandler handler, String host, String realm) argument 154 onDownloadStart(Tab tab, String url, String useragent, String contentDisposition, String mimeType, String referer, long contentLength) argument 161 showCustomView(Tab tab, View view, int requestedOrientation, CustomViewCallback callback) argument 190 onUserCanceledSsl(Tab tab) argument 201 onUpdatedSecurityState(Tab tab) argument 216 attachSubWindow(Tab tab) argument 221 dismissSubWindow(Tab tab) argument 238 switchToTab(Tab tab) argument 244 closeTab(Tab tab) argument 254 bookmarkedStatusHasChanged(Tab tab) argument 259 showAutoLogin(Tab tab) argument 264 hideAutoLogin(Tab tab) argument [all...] |
H A D | XLargeUi.java | 138 public void addTab(Tab tab) { argument 139 mTabBar.onNewTab(tab); 142 protected void onAddTabCompleted(Tab tab) { argument 147 public void setActiveTab(final Tab tab) { argument 150 super.setActiveTab(tab); 151 BrowserWebView view = (BrowserWebView) tab.getWebView(); 153 // so the tab is guaranteed to have a webview 155 Log.e(LOGTAG, "active tab with no webview detected"); 158 mTabBar.onSetActiveTab(tab); 159 updateLockIconToLatest(tab); 170 removeTab(Tab tab) argument 178 onRemoveTabCompleted(Tab tab) argument 221 updateNavigationState(Tab tab) argument 226 setUrlTitle(Tab tab) argument 233 setFavicon(Tab tab) argument [all...] |
H A D | BaseUi.java | 168 // check if we exited without setting active tab 221 public void onTabDataChanged(Tab tab) { argument 222 setUrlTitle(tab); 223 setFavicon(tab); 224 updateLockIconToLatest(tab); 225 updateNavigationState(tab); 226 mTitleBar.onTabDataChanged(tab); 227 mNavigationBar.onTabDataChanged(tab); 228 onProgressChanged(tab); 232 public void onProgressChanged(Tab tab) { argument 240 bookmarkedStatusHasChanged(Tab tab) argument 248 onPageStopped(Tab tab) argument 263 addTab(Tab tab) argument 267 setActiveTab(final Tab tab) argument 322 removeTab(Tab tab) argument 330 detachTab(Tab tab) argument 335 attachTab(Tab tab) argument 339 attachTabToContentView(Tab tab) argument 366 removeTabFromContentView(Tab tab) argument 390 onSetWebView(Tab tab, WebView webView) argument 415 createSubWindow(Tab tab, WebView subView) argument 576 showAutoLogin(Tab tab) argument 581 hideAutoLogin(Tab tab) argument 587 updateNavigationState(Tab tab) argument 590 updateAutoLogin(Tab tab, boolean animate) argument 619 setUrlTitle(Tab tab) argument 631 setFavicon(Tab tab) argument 661 updateMenuState(Tab tab, Menu menu) argument 696 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 | Controller.java | 282 // Find out if we will restore any state and remember the tab. 312 // Create an initial tab. 315 // the tab will be close when exit. 348 // TabControl.restoreState() will create a new tab even if 406 public void onSetWebView(Tab tab, WebView view) { argument 407 mUi.onSetWebView(tab, view); 411 public void createSubWindow(Tab tab) { argument 413 WebView mainView = tab.getWebView(); 417 mUi.createSubWindow(tab, subView); 543 Tab tab 564 shareCurrentPage(Tab tab) argument 726 resumeWebViewTimers(Tab tab) argument 740 pauseWebViewTimers(Tab tab) argument 820 onPageStarted(Tab tab, WebView view, Bitmap favicon) argument 862 onPageFinished(Tab tab) argument 875 onProgressChanged(Tab tab) argument 923 onUpdatedSecurityState(Tab tab) argument 928 onReceivedTitle(Tab tab, final String title) argument 942 onFavicon(Tab tab, WebView view, Bitmap icon) argument 948 shouldOverrideUrlLoading(Tab tab, WebView view, String url) argument 976 doUpdateVisitedHistory(Tab tab, boolean isReload) argument 1006 onReceivedHttpAuthRequest(Tab tab, WebView view, final HttpAuthHandler handler, final String host, final String realm) argument 1035 onDownloadStart(Tab tab, String url, String userAgent, String contentDisposition, String mimetype, String referer, long contentLength) argument 1071 showAutoLogin(Tab tab) argument 1078 hideAutoLogin(Tab tab) argument 1089 maybeUpdateFavicon(Tab tab, final String originalUrl, final String url, Bitmap favicon) argument 1101 bookmarkedStatusHasChanged(Tab tab) argument 1124 showCustomView(Tab tab, View view, int requestedOrientation, WebChromeClient.CustomViewCallback callback) argument 1464 updateInLoadMenuItems(Menu menu, Tab tab) argument 1509 updateMenuState(Tab tab, Menu menu) argument 1729 SaveSnapshotTask(Tab tab) argument 2096 updateScreenshot(Tab tab) argument 2281 addTab(Tab tab) argument 2285 removeTab(Tab tab) argument 2292 setActiveTab(Tab tab) argument 2333 dismissSubWindow(Tab tab) argument 2351 attachSubWindow(Tab tab) argument 2482 switchToTab(Tab tab) argument 2526 closeTab(Tab tab) argument 2570 loadUrl(Tab tab, String url) argument 2574 loadUrl(Tab tab, String url, Map<String, String> headers) argument 2602 onUserCanceledSsl(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 | 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 224 handleMenuClick(Tab tab, String url) argument 243 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 | 110 // tab dimensions 132 // force update of tab bar 149 for (Tab tab : tabs) { 150 TabView tv = buildTabView(tab); 160 // adjust for new tab overlap 209 final Tab tab = ((TabView) view).mTab; 213 mUiController.switchToTab(tab); 223 private TabView buildTabView(Tab tab) { argument 224 TabView tabview = new TabView(mActivity, tab); 225 mTabMap.put(tab, tabvie 260 TabView(Context context, Tab tab) argument 427 animateTabOut(final Tab tab, final TabView tv) argument 459 animateTabIn(final Tab tab, final TabView tv) argument 488 onSetActiveTab(Tab tab) argument 492 onFavicon(Tab tab, Bitmap favicon) argument 499 onNewTab(Tab tab) argument 504 onRemoveTab(Tab tab) argument 513 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 | 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 139 if (tab == null) return; 144 final WebView view = tab.getWebView(); 146 String url = fromShowSSLCertificateOnError ? urlCertificateOnError : tab.getUrl(); 147 String title = tab.getTitle(); 159 mPageInfoView = tab; 240 showSSLCertificate(final 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 | 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 | ComboViewActivity.java | 37 private static final String STATE_SELECTED_TAB = "tab"; 160 * trick. Normally a tab host has a simple API for supplying a View or 161 * Intent that each tab will show. This is not sufficient for switching 162 * between pages. So instead we make the content part of the tab host 164 * view to show as the tab content. It listens to changes in tabs, and takes 166 * tab changes. 194 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument 196 tab.setTag(info); 197 tab.setTabListener(this); 199 mActionBar.addTab(tab); 228 onTabSelected(android.app.ActionBar.Tab tab, FragmentTransaction ft) argument 239 onTabUnselected(android.app.ActionBar.Tab tab, FragmentTransaction ft) argument 244 onTabReselected(android.app.ActionBar.Tab tab, FragmentTransaction ft) argument [all...] |
H A D | PieControl.java | 117 Tab tab = mUiController.getCurrentTab(); 118 if (tab != null) { 119 mForward.setEnabled(tab.canGoForward()); 198 Tab tab = mUiController.getTabControl().getCurrentTab(); 199 WebView web = tab.getWebView(); 201 tab.goBack(); 203 tab.goForward(); 205 if (tab.inPageLoad()) { 312 final Tab tab = mTabs.get(position); 318 Bitmap b = tab [all...] |
H A D | PhoneUi.java | 108 public void onProgressChanged(Tab tab) { argument 109 super.onProgressChanged(tab); 133 public void setActiveTab(final Tab tab) { argument 136 super.setActiveTab(tab); 138 //if at Nav screen show, detach tab like what showNavScreen() do. 143 BrowserWebView view = (BrowserWebView) tab.getWebView(); 145 // so the tab is guaranteed to have a webview 147 Log.e(LOGTAG, "active tab with no webview detected"); 160 updateLockIconToLatest(tab); 173 public void updateMenuState(Tab tab, Men argument [all...] |
/packages/apps/Gallery2/src/com/android/photos/ |
H A D | GalleryActivity.java | 63 ab.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 70 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 120 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument 122 tab.setTag(info); 123 tab.setTabListener(this); 125 mActionBar.addTab(tab); 162 public void onTabSelected(Tab tab, FragmentTransaction ft) { argument 163 Object tag = tab.getTag(); 172 public void onTabUnselected(Tab tab, FragmentTransaction ft) { argument 176 public void onTabReselected(Tab tab, FragmentTransactio argument [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/Contacts/src/com/android/contacts/activities/ |
H A D | ActionBarAdapter.java | 57 * Called when the user selects a tab. The new tab can be obtained using 196 * Because the navigation list items are in a different order than tab items, this returns 197 * the appropriate tab from the navigation item position. 257 final Tab tab = mActionBar.newTab(); 258 tab.setTabListener(mTabListener); 260 tab.setText(description); 262 tab.setIcon(icon); 263 tab.setContentDescription(description); 265 mActionBar.addTab(tab); 279 onTabReselected(Tab tab, FragmentTransaction ft) argument 280 onTabUnselected(Tab tab, FragmentTransaction ft) argument 282 onTabSelected(Tab tab, FragmentTransaction ft) argument 303 setCurrentTab(int tab) argument 310 setCurrentTab(int tab, boolean notifyListener) argument 533 saveLastTabPreference(int tab) argument [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
H A D | TabsAdapter.java | 34 * trick. Normally a tab host has a simple API for supplying a View or 35 * Intent that each tab will show. This is not sufficient for switching 36 * between pages. So instead we make the content part of the tab host 38 * view to show as the tab content. It listens to changes in tabs, and takes 40 * tab changes. 129 // Unfortunately when TabHost changes the current tab, it kindly 140 // Scroll the current tab into visibility if needed. 141 View tab = widget.getChildTabViewAt(position); 142 mTempRect.set(tab.getLeft(), tab [all...] |
/packages/apps/Dialer/src/com/android/dialer/ |
H A D | DialtactsActivity.java | 77 * The dialer activity that has one tab with the virtual 12key 78 * dialer, a tab with recent calls in it, a tab with the contacts and 79 * a tab with the favorite. This is the container and the tabs are 81 * The dialer tab's title is 'phone', a more common name (see strings.xml). 111 /** Last manually selected tab index */ 156 * During user's drag or tab click, we shouldn't show fake buttons but just show real 161 * True when the app detects user's tab click (at the top of the screen). This variable should 164 * During user's drag or tab click, we shouldn't show fake buttons but just show real 221 // settle down the exact same tab afte [all...] |