/packages/apps/Browser/src/com/android/browser/ |
H A D | WebViewController.java | 49 void onSetWebView(Tab tab, WebView view); argument 51 void createSubWindow(Tab tab); argument 53 void onPageStarted(Tab tab, WebView view, Bitmap favicon); argument 55 void onPageFinished(Tab tab); argument 57 void onProgressChanged(Tab tab); argument 59 void onReceivedTitle(Tab tab, final String title); argument 61 void onFavicon(Tab tab, WebView view, Bitmap icon); argument 63 boolean shouldOverrideUrlLoading(Tab tab, WebView view, String url); argument 69 void doUpdateVisitedHistory(Tab tab, boolean isReload); argument 73 void onReceivedHttpAuthRequest(Tab tab, WebVie argument 76 onDownloadStart(Tab tab, String url, String useragent, String contentDisposition, String mimeType, String referer, long contentLength) argument 79 showCustomView(Tab tab, View view, int requestedOrientation, WebChromeClient.CustomViewCallback callback) argument 91 onUserCanceledSsl(Tab tab) argument 95 onUpdatedSecurityState(Tab tab) argument 101 attachSubWindow(Tab tab) argument 103 dismissSubWindow(Tab tab) argument 111 switchToTab(Tab tab) argument 113 closeTab(Tab tab) argument 115 bookmarkedStatusHasChanged(Tab tab) argument 117 showAutoLogin(Tab tab) argument 119 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 94 void loadUrl(Tab tab, String url); argument
|
H A D | PreloadController.java | 71 public void onSetWebView(Tab tab, WebView view) { argument 76 public void createSubWindow(Tab tab) { argument 81 public void onPageStarted(Tab tab, WebView view, Bitmap favicon) { argument 85 // user visits a preloaded tab, the only item in the history 92 public void onPageFinished(Tab tab) { argument 94 if (tab != null) { 95 final WebView view = tab.getWebView(); 98 // user visits a preloaded tab. 105 public void onProgressChanged(Tab tab) { argument 110 public void onReceivedTitle(Tab tab, Strin argument 115 onFavicon(Tab tab, WebView view, Bitmap icon) argument 120 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, String referer, long contentLength) argument 162 showCustomView(Tab tab, View view, int requestedOrientation, CustomViewCallback callback) argument 191 onUserCanceledSsl(Tab tab) argument 202 onUpdatedSecurityState(Tab tab) argument 217 attachSubWindow(Tab tab) argument 222 dismissSubWindow(Tab tab) argument 239 switchToTab(Tab tab) argument 245 closeTab(Tab tab) argument 250 bookmarkedStatusHasChanged(Tab tab) argument 255 showAutoLogin(Tab tab) argument 260 hideAutoLogin(Tab tab) argument [all...] |
H A D | XLargeUi.java | 134 public void addTab(Tab tab) { argument 135 mTabBar.onNewTab(tab); 138 protected void onAddTabCompleted(Tab tab) { argument 143 public void setActiveTab(final Tab tab) { argument 146 super.setActiveTab(tab); 147 BrowserWebView view = (BrowserWebView) tab.getWebView(); 149 // so the tab is guaranteed to have a webview 151 Log.e(LOGTAG, "active tab with no webview detected"); 154 mTabBar.onSetActiveTab(tab); 155 updateLockIconToLatest(tab); 166 removeTab(Tab tab) argument 174 onRemoveTabCompleted(Tab tab) argument 217 updateNavigationState(Tab tab) argument 222 setUrlTitle(Tab tab) argument 229 setFavicon(Tab tab) argument [all...] |
H A D | BaseUi.java | 167 // check if we exited without setting active tab 220 public void onTabDataChanged(Tab tab) { argument 221 setUrlTitle(tab); 222 setFavicon(tab); 223 updateLockIconToLatest(tab); 224 updateNavigationState(tab); 225 mTitleBar.onTabDataChanged(tab); 226 mNavigationBar.onTabDataChanged(tab); 227 onProgressChanged(tab); 231 public void onProgressChanged(Tab tab) { argument 239 bookmarkedStatusHasChanged(Tab tab) argument 247 onPageStopped(Tab tab) argument 262 addTab(Tab tab) argument 266 setActiveTab(final Tab tab) argument 321 removeTab(Tab tab) argument 329 detachTab(Tab tab) argument 334 attachTab(Tab tab) argument 338 attachTabToContentView(Tab tab) argument 365 removeTabFromContentView(Tab tab) argument 389 onSetWebView(Tab tab, WebView webView) argument 414 createSubWindow(Tab tab, WebView subView) argument 575 showAutoLogin(Tab tab) argument 580 hideAutoLogin(Tab tab) argument 586 updateNavigationState(Tab tab) argument 589 updateAutoLogin(Tab tab, boolean animate) argument 618 setUrlTitle(Tab tab) argument 630 setFavicon(Tab tab) argument 660 updateMenuState(Tab tab, Menu menu) argument 695 setShouldShowErrorConsole(Tab tab, boolean flag) 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 | 280 // Find out if we will restore any state and remember the tab. 310 // Create an initial tab. 313 // the tab will be close when exit. 346 // TabControl.restoreState() will create a new tab even if 401 public void onSetWebView(Tab tab, WebView view) { argument 402 mUi.onSetWebView(tab, view); 406 public void createSubWindow(Tab tab) { argument 408 WebView mainView = tab.getWebView(); 412 mUi.createSubWindow(tab, subView); 538 Tab tab 559 shareCurrentPage(Tab tab) argument 721 resumeWebViewTimers(Tab tab) argument 735 pauseWebViewTimers(Tab tab) argument 815 onPageStarted(Tab tab, WebView view, Bitmap favicon) argument 857 onPageFinished(Tab tab) argument 870 onProgressChanged(Tab tab) argument 918 onUpdatedSecurityState(Tab tab) argument 923 onReceivedTitle(Tab tab, final String title) argument 937 onFavicon(Tab tab, WebView view, Bitmap icon) argument 943 shouldOverrideUrlLoading(Tab tab, WebView view, String url) argument 971 doUpdateVisitedHistory(Tab tab, boolean isReload) argument 1001 onReceivedHttpAuthRequest(Tab tab, WebView view, final HttpAuthHandler handler, final String host, final String realm) argument 1030 onDownloadStart(Tab tab, String url, String userAgent, String contentDisposition, String mimetype, String referer, long contentLength) argument 1066 showAutoLogin(Tab tab) argument 1073 hideAutoLogin(Tab tab) argument 1084 maybeUpdateFavicon(Tab tab, final String originalUrl, final String url, Bitmap favicon) argument 1096 bookmarkedStatusHasChanged(Tab tab) argument 1119 showCustomView(Tab tab, View view, int requestedOrientation, WebChromeClient.CustomViewCallback callback) argument 1437 updateInLoadMenuItems(Menu menu, Tab tab) argument 1482 updateMenuState(Tab tab, Menu menu) argument 1996 updateScreenshot(Tab tab) argument 2162 addTab(Tab tab) argument 2166 removeTab(Tab tab) argument 2173 setActiveTab(Tab tab) argument 2214 dismissSubWindow(Tab tab) argument 2232 attachSubWindow(Tab tab) argument 2348 switchToTab(Tab tab) argument 2392 closeTab(Tab tab) argument 2436 loadUrl(Tab tab, String url) argument 2440 loadUrl(Tab tab, String url, Map<String, String> headers) argument 2468 onUserCanceledSsl(Tab tab) 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); 165 mTabViews.remove(tab); 171 final Tab tab = mUiController.openTab(BrowserSettings.getInstance().getHomePage(), 173 if (tab ! 190 switchToTab(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 168 // Re-use the existing tab i 229 handleMenuClick(Tab tab, String url) argument 248 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 429 animateTabOut(final Tab tab, final TabView tv) argument 461 animateTabIn(final Tab tab, final TabView tv) argument 490 onSetActiveTab(Tab tab) argument 494 onFavicon(Tab tab, Bitmap favicon) argument 501 onNewTab(Tab tab) argument 506 onRemoveTab(Tab tab) argument 515 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"; 152 * trick. Normally a tab host has a simple API for supplying a View or 153 * Intent that each tab will show. This is not sufficient for switching 154 * between pages. So instead we make the content part of the tab host 156 * view to show as the tab content. It listens to changes in tabs, and takes 158 * tab changes. 186 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument 188 tab.setTag(info); 189 tab.setTabListener(this); 191 mActionBar.addTab(tab); 220 onTabSelected(android.app.ActionBar.Tab tab, FragmentTransaction ft) argument 231 onTabUnselected(android.app.ActionBar.Tab tab, FragmentTransaction ft) argument 236 onTabReselected(android.app.ActionBar.Tab tab, FragmentTransaction ft) argument [all...] |
H A D | PieControl.java | 118 Tab tab = mUiController.getCurrentTab(); 119 if (tab != null) { 120 mForward.setEnabled(tab.canGoForward()); 204 Tab tab = mUiController.getTabControl().getCurrentTab(); 205 WebView web = tab.getWebView(); 207 tab.goBack(); 209 tab.goForward(); 211 if (tab.inPageLoad()) { 318 final Tab tab = mTabs.get(position); 324 Bitmap b = tab [all...] |
H A D | PhoneUi.java | 109 public void onProgressChanged(Tab tab) { argument 110 super.onProgressChanged(tab); 134 public void setActiveTab(final Tab tab) { argument 137 super.setActiveTab(tab); 139 //if at Nav screen show, detach tab like what showNavScreen() do. 144 BrowserWebView view = (BrowserWebView) tab.getWebView(); 146 // so the tab is guaranteed to have a webview 148 Log.e(LOGTAG, "active tab with no webview detected"); 161 updateLockIconToLatest(tab); 174 public void updateMenuState(Tab tab, Men argument [all...] |
/packages/apps/Gallery2/src/com/android/photos/ |
H A D | GalleryActivity.java | 62 ab.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 69 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 121 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument 123 tab.setTag(info); 124 tab.setTabListener(this); 126 mActionBar.addTab(tab); 163 public void onTabSelected(Tab tab, FragmentTransaction ft) { argument 164 Object tag = tab.getTag(); 173 public void onTabUnselected(Tab tab, FragmentTransaction ft) { argument 177 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/Launcher3/src/com/android/launcher3/ |
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/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. 137 // Unfortunately when TabHost changes the current tab, it kindly 148 // Scroll the current tab into visibility if needed. 149 View tab = widget.getChildTabViewAt(position); 150 mTempRect.set(tab.getLeft(), tab [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
H A D | ManageApplications.java | 127 void onItemClick(ManageApplications.TabInfo tab, AdapterView<?> parent, argument 501 TabInfo tab = mTabs.get(position); 502 View root = tab.build(mInflater, mContentContainer, mRootView); 504 root.setTag(R.id.name, tab); 591 public ApplicationsAdapter(ApplicationsState state, TabInfo tab, int filterMode) { argument 594 mTab = tab; 595 mContext = tab.mOwner.getActivity(); 895 TabInfo tab = new TabInfo(this, mApplicationsState, 898 mTabs.add(tab); 901 tab 1270 onItemClick(TabInfo tab, AdapterView<?> parent, View view, int position, long id) argument [all...] |