/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/ |
H A D | DataBinderWriter.kt | 24 tab("final static int TARGET_MIN_SDK = $minSdk;") 26 tab("public $className() {") { 28 tab("}") 30 tab("public android.databinding.ViewDataBinding getDataBinder(android.databinding.DataBindingComponent bindingComponent, android.view.View view, int layoutId) {") { 31 tab("switch(layoutId) {") { 34 tab("case ${firstVal.modulePackage}.R.layout.${firstVal.layoutname}:") { 37 tab("return new ${firstVal.`package`}.${firstVal.implementationName}(bindingComponent, new android.view.View[]{view});") 39 tab("return ${firstVal.`package`}.${firstVal.implementationName}.bind(view, bindingComponent);") 43 tab("{") { 44 tab("fina [all...] |
H A D | LayoutBinderWriter.kt | 307 tab(declareIncludeViews()) 308 tab(declareViews()) 309 tab(declareVariables()) 310 tab(declareBoundValues()) 311 tab(declareListeners()) 312 tab(declareInverseBindingImpls()); 313 tab(declareConstructor(minSdk)) 314 tab(declareInvalidateAll()) 315 tab(declareHasPendingBindings()) 316 tab(declareSetVariabl [all...] |
H A D | BRWriter.kt | 28 tab("public static ${prefix}int _all = 0;") 30 tab ("public static ${prefix}int ${it.value} = ${it.index + 1};")
|
H A D | KCode.kt | 48 fun tab(vararg codes : KCode?) : KCode { 49 codes.forEach { tab(it) } 53 fun tab(codes : Collection<KCode?> ) : KCode { 54 codes.forEach { tab(it) } 58 infix fun tab(s : String?, init : (KCode.() -> Unit)? = null) : KCode { 63 return tab(c) 66 fun tab(c : KCode?) : KCode {
|
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
H A D | MediaDump.java | 39 TabHost tab = getTabHost(); 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);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | 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 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...] |
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | TabLayoutTest.java | 55 TabLayout.Tab tab = tabLayout.getTabAt(0); 57 tab.getText()); 58 assertNull(tab.getIcon()); 59 assertNull(tab.getCustomView()); 62 tab = tabLayout.getTabAt(1); 63 assertNull(tab.getText()); 64 assertNotNull(tab.getIcon()); 65 assertNull(tab.getCustomView()); 68 tab = tabLayout.getTabAt(2); 69 assertNull(tab [all...] |
/frameworks/support/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
H A D | TabLayoutCustomItemsUsage.java | 43 TabLayout.Tab tab = tabLayout.newTab(); 45 tabLayout.addTab(tab); 46 tab.setCustomView(R.layout.design_tab_custom);
|
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
H A D | TabLayoutCustomItemsUsage.java | 43 TabLayout.Tab tab = tabLayout.newTab(); 45 tabLayout.addTab(tab); 46 tab.setCustomView(R.layout.design_tab_custom);
|
/frameworks/support/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/app/ |
H A D | ActionBarTabsPager.java | 62 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 69 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 75 * trick. Normally a tab host has a simple API for supplying a View or 76 * Intent that each tab will show. This is not sufficient for switching 77 * between pages. So instead we make the content part of the tab host 79 * view to show as the tab content. It listens to changes in tabs, and takes 81 * tab changes. 109 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument 111 tab.setTag(info); 112 tab 143 onTabSelected(Tab tab, FragmentTransaction ft) argument 153 onTabUnselected(Tab tab, FragmentTransaction ft) argument 157 onTabReselected(Tab tab, FragmentTransaction ft) argument [all...] |
H A D | FragmentNestingPagerSupport.java | 60 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 67 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 73 * trick. Normally a tab host has a simple API for supplying a View or 74 * Intent that each tab will show. This is not sufficient for switching 75 * between pages. So instead we make the content part of the tab host 77 * view to show as the tab content. It listens to changes in tabs, and takes 79 * tab changes. 107 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument 109 tab.setTag(info); 110 tab 141 onTabSelected(Tab tab, FragmentTransaction ft) argument 151 onTabUnselected(Tab tab, FragmentTransaction ft) argument 155 onTabReselected(Tab tab, FragmentTransaction ft) argument [all...] |
H A D | FragmentNestingStatePagerSupport.java | 60 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 67 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 73 * trick. Normally a tab host has a simple API for supplying a View or 74 * Intent that each tab will show. This is not sufficient for switching 75 * between pages. So instead we make the content part of the tab host 77 * view to show as the tab content. It listens to changes in tabs, and takes 79 * tab changes. 107 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument 109 tab.setTag(info); 110 tab 141 onTabSelected(Tab tab, FragmentTransaction ft) argument 151 onTabUnselected(Tab tab, FragmentTransaction ft) argument 155 onTabReselected(Tab tab, FragmentTransaction ft) argument [all...] |
/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/app/ |
H A D | ActionBarTabsPager.java | 62 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 69 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 75 * trick. Normally a tab host has a simple API for supplying a View or 76 * Intent that each tab will show. This is not sufficient for switching 77 * between pages. So instead we make the content part of the tab host 79 * view to show as the tab content. It listens to changes in tabs, and takes 81 * tab changes. 109 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument 111 tab.setTag(info); 112 tab 143 onTabSelected(Tab tab, FragmentTransaction ft) argument 153 onTabUnselected(Tab tab, FragmentTransaction ft) argument 157 onTabReselected(Tab tab, FragmentTransaction ft) argument [all...] |
H A D | FragmentNestingPagerSupport.java | 60 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 67 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 73 * trick. Normally a tab host has a simple API for supplying a View or 74 * Intent that each tab will show. This is not sufficient for switching 75 * between pages. So instead we make the content part of the tab host 77 * view to show as the tab content. It listens to changes in tabs, and takes 79 * tab changes. 107 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument 109 tab.setTag(info); 110 tab 141 onTabSelected(Tab tab, FragmentTransaction ft) argument 151 onTabUnselected(Tab tab, FragmentTransaction ft) argument 155 onTabReselected(Tab tab, FragmentTransaction ft) argument [all...] |
H A D | FragmentNestingStatePagerSupport.java | 60 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 67 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 73 * trick. Normally a tab host has a simple API for supplying a View or 74 * Intent that each tab will show. This is not sufficient for switching 75 * between pages. So instead we make the content part of the tab host 77 * view to show as the tab content. It listens to changes in tabs, and takes 79 * tab changes. 107 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument 109 tab.setTag(info); 110 tab 141 onTabSelected(Tab tab, FragmentTransaction ft) argument 151 onTabUnselected(Tab tab, FragmentTransaction ft) argument 155 onTabReselected(Tab tab, FragmentTransaction ft) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | SlidingTab.java | 49 * Equivalently, selecting a tab will result in a call to 51 * the tab will result in whichHandle being {@link OnTriggerListener#NO_HANDLE}. 113 * Interface definition for a callback to be invoked when a tab is triggered 159 * {@link #tab} is the tab shown on the screen in the default state. 160 * {@link #text} is the view revealed as the user slides the tab out. 166 * Tab alignment - determines which side the tab should be drawn on 181 private final ImageView tab; field in class:SlidingTab.Slider 192 * @param tabId drawable for the tab 197 // Create tab [all...] |
H A D | ScrollingTabContainerView.java | 46 * This widget implements the dynamic action bar tab behavior that can change 124 // Recenter the tab display if we're at a new (scrollable) size. 280 private TabView createTabView(Context context, ActionBar.Tab tab, boolean forAdapter) { argument 281 final TabView tabView = new TabView(context, tab, forAdapter); 297 public void addTab(ActionBar.Tab tab, boolean setSelected) { argument 298 TabView tabView = createTabView(mContext, tab, false); 312 public void addTab(ActionBar.Tab tab, int position, boolean setSelected) { argument 313 final TabView tabView = createTabView(mContext, tab, false); 369 public TabView(Context context, ActionBar.Tab tab, boolean forList) { argument 371 mTab = tab; 380 bindTab(ActionBar.Tab tab) argument [all...] |
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | TabHostBindingAdapter.java | 37 public static void setCurrentTab(TabHost view, int tab) { argument 38 if (view.getCurrentTab() != tab) { 39 view.setCurrentTab(tab);
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | TabLayout.java | 81 * change the tab's label or icon via {@link Tab#setText(int)} and {@link Tab#setIcon(int)} 82 * respectively. To display the tab, you need to add it to the layout via one of the 91 * notified when any tab's selection state has been changed. 162 * Scrollable tabs display a subset of tabs at any given moment, and can contain longer tab 164 * interfaces when users don’t need to directly compare the tab labels. 174 * Fixed tabs have equal width, based on the widest tab label. 215 * Callback interface invoked when a tab's selection state changes. 220 * Called when a tab enters the selected state. 222 * @param tab The tab tha 224 onTabSelected(Tab tab) argument 231 onTabUnselected(Tab tab) argument 239 onTabReselected(Tab tab) argument 441 addTab(@onNull Tab tab) argument 452 addTab(@onNull Tab tab, int position) argument 462 addTab(@onNull Tab tab, boolean setSelected) argument 473 addTab(@onNull Tab tab, int position, boolean setSelected) argument 603 removeTab(Tab tab) argument 927 createTabView(@onNull final Tab tab) argument 938 configureTab(Tab tab, int position) argument 948 addTabView(Tab tab) argument 1116 selectTab(Tab tab) argument 1120 selectTab(final Tab tab, boolean updateIndicator) argument 1152 dispatchTabSelected(@onNull final Tab tab) argument 1158 dispatchTabUnselected(@onNull final Tab tab) argument 1164 dispatchTabReselected(@onNull final Tab tab) argument 1633 setTab(@ullable final Tab tab) argument 2174 onTabSelected(TabLayout.Tab tab) argument 2179 onTabUnselected(TabLayout.Tab tab) argument 2184 onTabReselected(TabLayout.Tab tab) argument [all...] |
/frameworks/support/fragment/java/android/support/v4/app/ |
H A D | FragmentTabHost.java | 38 * its tab content. When placing this in a view hierarchy, after inflating 40 * to complete the initialization of the tab host. 221 "No tab content FrameLayout found for id " + mContainerId); 240 // sure this tab's fragment is inactive if it exists. This shouldn't 264 final TabInfo tab = mTabs.get(i); 265 tab.fragment = mFragmentManager.findFragmentByTag(tab.tag); 266 if (tab.fragment != null && !tab.fragment.isDetached()) { 267 if (tab [all...] |
/frameworks/support/v13/java/android/support/v13/app/ |
H A D | FragmentTabHost.java | 210 "No tab content FrameLayout found for id " + mContainerId); 228 // sure this tab's fragment is inactive if it exists. This shouldn't 252 TabInfo tab = mTabs.get(i); 253 tab.fragment = mFragmentManager.findFragmentByTag(tab.tag); 254 if (tab.fragment != null && !tab.fragment.isDetached()) { 255 if (tab.tag.equals(currentTab)) { 256 // The fragment for this tab is already there and 258 // as the current tab [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | ActionBar.java | 609 * This tab will not be included in the action bar until it is added. 624 * Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list. 625 * If this is the first tab to be added it will become the selected tab. 627 * @param tab Tab to add 635 public abstract void addTab(Tab tab); argument 638 * Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list. 640 * @param tab Ta 649 addTab(Tab tab, boolean setSelected) argument 665 addTab(Tab tab, int position) argument 681 addTab(Tab tab, int position, boolean setSelected) argument 695 removeTab(Tab tab) argument 735 selectTab(Tab tab) argument 1331 onTabSelected(Tab tab, FragmentTransaction ft) argument 1342 onTabUnselected(Tab tab, FragmentTransaction ft) argument 1353 onTabReselected(Tab tab, FragmentTransaction ft) argument [all...] |
H A D | WindowDecorActionBar.java | 266 // Switch tab layout configuration if needed 525 private void configureTab(Tab tab, int position) { argument 526 final TabImpl tabi = (TabImpl) tab; 543 public void addTab(Tab tab) { argument 544 addTab(tab, mTabs.isEmpty()); 548 public void addTab(Tab tab, int position) { argument 549 addTab(tab, position, mTabs.isEmpty()); 553 public void addTab(Tab tab, boolean setSelected) { argument 555 mTabScrollView.addTab(tab, setSelected); 556 configureTab(tab, mTab 563 addTab(Tab tab, int position, boolean setSelected) argument 578 removeTab(Tab tab) argument 608 selectTab(Tab tab) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ScrollingTabContainerView.java | 52 * This widget implements the dynamic action bar tab behavior that can change across different 135 // Recenter the tab display if we're at a new (scrollable) size. 292 TabView createTabView(ActionBar.Tab tab, boolean forAdapter) { argument 293 final TabView tabView = new TabView(getContext(), tab, forAdapter); 309 public void addTab(ActionBar.Tab tab, boolean setSelected) { argument 310 TabView tabView = createTabView(tab, false); 324 public void addTab(ActionBar.Tab tab, int position, boolean setSelected) { argument 325 final TabView tabView = createTabView(tab, false); 390 public TabView(Context context, ActionBar.Tab tab, boolean forList) { argument 392 mTab = tab; 408 bindTab(ActionBar.Tab tab) argument [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | WindowDecorActionBar.java | 269 // Switch tab layout configuration if needed 529 private void configureTab(Tab tab, int position) { argument 530 final TabImpl tabi = (TabImpl) tab; 547 public void addTab(Tab tab) { argument 548 addTab(tab, mTabs.isEmpty()); 552 public void addTab(Tab tab, int position) { argument 553 addTab(tab, position, mTabs.isEmpty()); 557 public void addTab(Tab tab, boolean setSelected) { argument 559 mTabScrollView.addTab(tab, setSelected); 560 configureTab(tab, mTab 567 addTab(Tab tab, int position, boolean setSelected) argument 582 removeTab(Tab tab) argument 612 selectTab(Tab tab) argument [all...] |