/external/chromium_org/tools/perf/benchmarks/ |
speedometer.py | 28 def MeasurePage(self, _, tab, results): 29 tab.WaitForDocumentReadyStateToBeComplete() 30 tab.ExecuteJavaScript('benchmarkClient.iterationCount = 10; startTest();') 31 tab.WaitForJavaScriptExpression( 34 'Total', 'ms', tab.EvaluateJavaScript('benchmarkClient._timeValues'))
|
octane.py | 34 def WillNavigateToPage(self, page, tab): 35 if tab.browser.memory_stats['SystemTotalPhysicalMemory'] < 1 * _GB: 49 def DidNavigateToPage(self, page, tab): 50 self._power_metric.Start(page, tab) 52 def MeasurePage(self, page, tab, results): 53 tab.WaitForJavaScriptExpression( 56 self._power_metric.Stop(page, tab) 57 self._power_metric.AddResults(tab, results) 59 results_log = tab.EvaluateJavaScript('__results')
|
service_worker.py | 17 def MeasurePage(self, _, tab, results): 18 tab.WaitForJavaScriptExpression('window.done', 40) 19 json = tab.EvaluateJavaScript('window.results')
|
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
MediaDump.java | 39 TabHost tab = getTabHost(); local 41 // Setup video dumping tab 42 TabHost.TabSpec videoDumpTab = tab.newTabSpec("VideoDump"); 48 tab.addTab(videoDumpTab); 50 // Setup rgb player tab 51 TabHost.TabSpec rgbPlayerTab = tab.newTabSpec("RgbPlayer"); 57 tab.addTab(rgbPlayerTab);
|
/external/chromium_org/tools/telemetry/telemetry/page/actions/ |
scroll_bounce.py | 13 def WillRunAction(self, tab): 17 tab.ExecuteJavaScript(js) 20 if not tab.EvaluateJavaScript( 27 if not GestureAction.IsGestureSourceTypeSupported(tab, 'touch'): 31 if (GestureAction.GetGestureSourceTypeFromOptions(tab) == 37 tab.ExecuteJavaScript(""" 42 def RunGesture(self, tab): 74 tab.ExecuteJavaScript(""" 93 tab.ExecuteJavaScript(""" 111 tab.WaitForJavaScriptExpression('window.__scrollBounceActionDone', 60 [all...] |
play.py | 24 def WillRunAction(self, tab): 26 super(PlayAction, self).WillRunAction(tab) 27 self.LoadJS(tab, 'play.js') 29 def RunAction(self, tab): 32 tab.ExecuteJavaScript('window.__playMedia("%s");' % selector) 36 self.WaitForEvent(tab, selector, 'playing', timeout) 39 self.WaitForEvent(tab, selector, 'ended', timeout)
|
repaint_continuously.py | 17 def RunAction(self, tab): 20 tab.ExecuteJavaScript( 34 raf_count = tab.EvaluateJavaScript('window.__rafCount;')
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/ |
ContextMenuTest.java | 18 import org.chromium.chrome.browser.Tab; 48 Tab tab = getActivity().getActiveTab(); local 49 ContextMenuUtils.selectContextMenuItem(this, tab, 50 TabUtils.getTestCallbackHelperContainer(tab), "testLink", 61 Tab tab = getActivity().getActiveTab(); local 62 ContextMenuUtils.selectContextMenuItem(this, tab, 63 TabUtils.getTestCallbackHelperContainer(tab), "testImageLink", 74 Tab tab = getActivity().getActiveTab() local 88 Tab tab = getActivity().getActiveTab(); local 120 final Tab tab = getActivity().getActiveTab(); local 152 final Tab tab = getActivity().getActiveTab(); local 181 Tab tab = getActivity().getActiveTab(); local 203 Tab tab = getActivity().getActiveTab(); local [all...] |
/external/chromium_org/chrome/browser/sync/glue/ |
session_sync_test_helper.cc | 76 SessionTab* tab = win_ptr->tabs[j]; local 77 ASSERT_EQ(*tab_iter, tab->tab_id.id()); 78 ASSERT_EQ(1U, tab->navigations.size()); 79 ASSERT_EQ(1, tab->tab_visual_index); 80 ASSERT_EQ(0, tab->current_navigation_index); 81 ASSERT_TRUE(tab->pinned); 82 ASSERT_EQ(kAppId, tab->extension_app_id); 83 ASSERT_EQ(1U, tab->navigations.size()); 84 ASSERT_EQ(tab->navigations[0].virtual_url(), GURL(kVirtualUrl)); 85 ASSERT_EQ(tab->navigations[0].referrer().url, GURL(kReferrer)) 101 sync_pb::SessionTab* tab = tab_base->mutable_tab(); local [all...] |
synced_window_delegate_android.cc | 75 const SyncedTabDelegate* tab) const { 80 // After a restart, it is possible for the Tab to be null during startup. 81 TabAndroid* tab = tab_model_->GetTabAt(index); local 82 return tab ? tab->GetSyncedTabDelegate() : NULL; 86 SyncedTabDelegate* tab = GetTabAt(index); local 87 return tab ? tab->GetSessionId() : -1;
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/widget/accessibility/ |
AccessibilityTabModelAdapter.java | 14 import org.chromium.chrome.browser.Tab; 32 * An interface used to notify that the {@link Tab} specified by {@code tabId} should be 37 * Show the {@link Tab} specified by {@code tabId}. 38 * @param tabId The id of the {@link Tab} that should be shown. 46 public void tabSelected(int tab) { 48 TabModelUtils.getTabIndexById(mActualTabModel, tab)); 49 if (mListener != null) mListener.showTab(tab); 54 public void tabClosed(int tab) { 55 if (mActualTabModel.isClosurePending(tab)) { 56 mActualTabModel.commitTabClosure(tab); [all...] |
/external/chromium_org/chrome/android/shell/java/src/org/chromium/chrome/shell/ |
TabManager.java | 15 import org.chromium.chrome.browser.Tab; 54 * Initialize the components required for Tab creation. 79 * @param startupUrl The URL that the first tab should navigate to. 114 ChromeShellTab tab = new ChromeShellTab(getContext(), url, mWindow, client); local 115 setCurrentTab(tab); 122 private void setCurrentTab(ChromeShellTab tab) { 128 mCurrentTab = tab; 129 mCurrentView = tab.getView(); 133 public void onContentChanged(Tab tab) { [all...] |
/external/chromium_org/tools/perf/measurements/ |
chrome_proxy.py | 21 def WillNavigateToPage(self, page, tab): 22 tab.ClearCache(force=True) 24 def MeasurePage(self, page, tab, results): 26 tab.WaitForJavaScriptExpression('performance.timing.loadEventStart', 300) 27 loading.LoadingMetric().AddResults(tab, results) 36 def WillNavigateToPage(self, page, tab): 37 tab.ClearCache(force=True) 38 self._metrics.Start(page, tab) 40 def MeasurePage(self, page, tab, results): 42 tab.WaitForJavaScriptExpression('performance.timing.loadEventStart', 300 [all...] |
smoothness_controller.py | 28 def Start(self, page, tab): 33 tab.browser.StartTracing(','.join(custom_categories), 60) 34 if tab.browser.platform.IsRawDisplayFrameRateSupported(): 35 tab.browser.platform.StartRawDisplayFrameRateMeasurement() 37 runner = action_runner.ActionRunner(tab) 41 def Stop(self, tab): 45 if tab.browser.platform.IsRawDisplayFrameRateSupported(): 46 tab.browser.platform.StopRawDisplayFrameRateMeasurement() 47 self._tracing_timeline_data = tab.browser.StopTracing() 51 def AddResults(self, tab, results) [all...] |
tab_switching.py | 5 """The tab switching measurement. 8 it cycles through each tab in sequence, and records a histogram of the time 9 between when a tab was first requested to be shown, and when it was painted. 40 # The initial browser window contains a single tab, navigate that tab 51 def MeasurePage(self, page, tab, results): 52 """On the last tab, cycle through each tab that was opened and then record 53 a single histogram for the tab switching metric.""" 54 if len(tab.browser.tabs) != len(page.page_set.pages) [all...] |
page_cycler.py | 91 def DidStartHTTPServer(self, tab): 94 tab.Navigate(tab.browser.http_server.UrlOf('nonexistent.html')) 96 def WillNavigateToPage(self, page, tab): 99 tab.ClearCache(force=True) 101 self._speedindex_metric.Start(page, tab) 102 self._cpu_metric.Start(page, tab) 103 self._power_metric.Start(page, tab) 105 def DidNavigateToPage(self, page, tab): 106 self._memory_metric.Start(page, tab) [all...] |
/external/chromium_org/chrome/browser/sync/sessions/ |
notification_service_sessions_router.cc | 87 SyncedTabDelegate* tab = local 89 if (!tab || tab->profile() != profile_) 92 handler_->OnLocalTabModified(tab); 93 if (!sessions_util::ShouldSyncTab(*tab)) 101 SyncedTabDelegate* tab = SyncedTabDelegate::ImplFromWebContents( local 104 if (!tab || tab->profile() != profile_) 107 handler_->OnLocalTabModified(tab); 108 if (!sessions_util::ShouldSyncTab(*tab)) 120 SyncedTabDelegate* tab = SyncedTabDelegate::ImplFromWebContents( local 143 SyncedTabDelegate* tab = local [all...] |
/external/chromium_org/content/test/gpu/gpu_tests/ |
gpu_rasterization.py | 27 def _DidTestSucceed(tab): 28 return tab.EvaluateJavaScript('domAutomationController._succeeded') 38 def ValidatePage(self, page, tab, results): 39 if not _DidTestSucceed(tab): 45 if not tab.screenshot_supported: 48 screenshot = tab.Screenshot() 52 device_pixel_ratio = tab.EvaluateJavaScript('window.devicePixelRatio')
|
/packages/apps/Browser/src/com/android/browser/ |
UiController.java | 41 Tab getCurrentTab(); 45 List<Tab> getTabs(); 47 Tab openTabToHomePage(); 49 Tab openIncognitoTab(); 51 Tab openTab(String url, boolean incognito, boolean setActive, 54 void setActiveTab(Tab tab); 56 boolean switchToTab(Tab tab); 60 void closeTab(Tab tab) [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/ |
browser_credentials_unittest.py | 25 def LoginNeeded(self, config, tab): 26 self.login_needed_called = (config, tab) 29 def LoginNoLongerNeeded(self, tab): 30 self.login_no_longer_needed_called = (tab, ) 57 tab = {} 58 ret = browser_cred.LoginNeeded(tab, 'google') 61 self.assertEqual(tab, google_backend.login_needed_called[0]) 67 browser_cred.LoginNoLongerNeeded(tab, 'google') 69 self.assertEqual(tab, google_backend.login_no_longer_needed_called[0])
|
/external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ |
TabUtils.java | 11 import org.chromium.chrome.browser.Tab; 26 private static TestContentViewClient createTestContentViewClientForTab(Tab tab) { 27 ContentViewClient client = tab.getContentViewCore().getContentViewClient(); 31 tab.getContentViewCore().setContentViewClient(testClient); 36 * Provides some callback helpers when waiting for certain tab-based events to occur. 42 private TestCallbackHelperContainerForTab(Tab tab) { 43 super(createTestContentViewClientForTab(tab), 44 new TestWebContentsObserver(tab.getContentViewCore())) [all...] |
/external/chromium_org/chrome/browser/supervised_user/ |
supervised_user_browsertest.cc | 62 void CheckShownPageIsInterstitial(WebContents* tab) { 63 CheckShownPage(tab, content::PAGE_TYPE_INTERSTITIAL); 66 void CheckShownPageIsNotInterstitial(WebContents* tab) { 67 CheckShownPage(tab, content::PAGE_TYPE_NORMAL); 71 void CheckShownPage(WebContents* tab, content::PageType page_type) { 72 ASSERT_FALSE(tab->IsCrashed()); 73 NavigationEntry* entry = tab->GetController().GetActiveEntry(); 78 void SendAccessRequest(WebContents* tab) { 79 InterstitialPage* interstitial_page = tab->GetInterstitialPage(); 90 void GoBack(WebContents* tab) { 186 WebContents* tab = browser()->tab_strip_model()->GetActiveWebContents(); local 215 WebContents* tab = tab_strip->GetActiveWebContents(); local 248 WebContents* tab = browser()->tab_strip_model()->GetActiveWebContents(); local [all...] |
/external/chromium_org/chrome/browser/sessions/ |
tab_restore_service_helper.cc | 38 void RecordAppLaunch(Profile* profile, const TabRestoreService::Tab& tab) { 40 GURL url = tab.navigations.at(tab.current_navigation_index).virtual_url(); 110 scoped_ptr<Tab> local_tab(new Tab()); 127 // Don't use std::vector::resize() because it will push copies of an empty tab 130 window->tabs.push_back(Tab()); 146 // Short-circuit creating a Window if only 1 tab was present. This fixes 147 // http://crbug.com/56744. Copy the Tab because it's owned by an object o 229 Tab* tab = static_cast<Tab*>(entry); local 246 const Tab& tab = window->tabs[tab_i]; local 273 const Tab& tab = *tab_i; local 587 Tab* tab = static_cast<Tab*>(entry); local [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/genperf/ |
genperf.c | 73 /* make the c output for the perfect hash tab array */ 77 bstuff *tab, /* table indexed by b */ 85 /* A way to make the 1-byte values in tab bigger */ 109 fprintf(f, "tab[] = {\n"); 113 fprintf(f, "%3ld,", scramble[tab[i].val_b]); 117 scramble[tab[i+0].val_b], scramble[tab[i+1].val_b], 118 scramble[tab[i+2].val_b], scramble[tab[i+3].val_b], 119 scramble[tab[i+4].val_b], scramble[tab[i+5].val_b], 157 bstuff *tab; \/* table indexed by b *\/ local [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
vlc_decode.cpp | 842 const VLCtab2 *tab; local 847 /* if(GetTcoeffIntra(code,pTcoef,&tab,stream)!=PV_SUCCESS) return status;*/ 850 tab = &PV_DCT3Dtab3[(code >> 6) - 16]; 856 tab = &PV_DCT3Dtab4[(code >> 3) - 32]; 862 tab = &PV_DCT3Dtab5[(code>>1) - 8]; 871 PV_BitstreamFlushBits(stream, tab->len + 1); 872 pTcoef->sign = (code >> (12 - tab->len)) & 1; 873 pTcoef->run = (uint) tab->run; //(tab->val >> 8) & 255; 874 pTcoef->level = (int) tab->level; //tab->val & 255 1025 const VLCtab2 *tab; local 1204 const VLCtab2 *tab; local 1264 const VLCtab2 *tab; local 1319 const VLCtab2 *tab; local 1392 const VLCtab2 *tab; local [all...] |