Searched refs:tab (Results 1 - 25 of 34) sorted by relevance

12

/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
H A DDataBinderWriter.kt33 tab("case ${firstVal.modulePackage}.R.layout.${firstVal.layoutname}:") {
36 tab("return new ${firstVal.`package`}.${firstVal.implementationName}(bindingComponent, new android.view.View[]{view});")
38 tab("return ${firstVal.`package`}.${firstVal.implementationName}.bind(view, bindingComponent);")
43 tab("final Object tag = view.getTag();")
44 tab("if(tag == null) throw new java.lang.RuntimeException(\"view must have a tag\");")
48 tab("return new ${it.`package`}.${it.implementationName}(bindingComponent, new android.view.View[]{view});")
50 tab("return new ${it.`package`}.${it.implementationName}(bindingComponent, view);")
54 tab("throw new java.lang.IllegalArgumentException(\"The tag for ${firstVal.layoutname} is invalid. Received: \" + tag);");
69 tab("return new ${firstVal.`package`}.${firstVal.implementationName}(bindingComponent, views);")
117 tab("\"_al
[all...]
H A DLayoutBinderWriter.kt432 tab("sIncludes = null;")
435 tab("sIncludes = new android.databinding.ViewDataBinding.IncludedLayouts($numBindings);")
452 tab("sIncludes.setIncludes($index, ") {
453 tab ("new String[] {${
458 tab("new int[] {${
463 tab("new int[] {${
475 tab("sViewsWithIds = null;")
477 tab("sViewsWithIds = new android.util.SparseIntArray();")
479 tab("sViewsWithIds.put(${it.androidId}, ${indices[it]});")
510 tab("thi
[all...]
H A DBRWriter.kt28 tab("public static ${prefix}int _all = 0;")
30 tab ("public static ${prefix}int ${it.value} = ${it.index + 1};")
H A DKCode.kt48 public fun tab(vararg codes : KCode?) : KCode {
49 codes.forEach { tab(it) }
53 public fun tab(codes : Collection<KCode?> ) : KCode {
54 codes.forEach { tab(it) }
58 fun tab(s : String?, init : (KCode.() -> Unit)? = null) : KCode {
63 return tab(c)
66 fun tab(c : KCode?) : KCode {
98 tab(c)
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
H A DMediaDump.java39 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 Dvlc_decode.cpp842 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/frameworks/support/samples/SupportDesignDemos/src/main/java/com/example/android/support/design/widget/
H A DTabLayoutCustomItemsUsage.java45 TabLayout.Tab tab = tabLayout.newTab();
47 tabLayout.addTab(tab);
48 tab.setCustomView(R.layout.design_tab_custom);
/frameworks/support/samples/SupportDesignDemos/src/main/java/com/example/android/support/design/widget/
H A DTabLayoutCustomItemsUsage.java45 TabLayout.Tab tab = tabLayout.newTab();
47 tabLayout.addTab(tab);
48 tab.setCustomView(R.layout.design_tab_custom);
/frameworks/support/frameworks/support/samples/Support13Demos/src/main/java/com/example/android/supportv13/app/
H A DFragmentNestingPagerSupport.java61 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0));
68 outState.putInt("tab", getActionBar().getSelectedNavigationIndex());
74 * trick. Normally a tab host has a simple API for supplying a View or
75 * Intent that each tab will show. This is not sufficient for switching
76 * between pages. So instead we make the content part of the tab host
78 * view to show as the tab content. It listens to changes in tabs, and takes
80 * tab changes.
108 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument
110 tab.setTag(info);
111 tab
142 onTabSelected(Tab tab, FragmentTransaction ft) argument
152 onTabUnselected(Tab tab, FragmentTransaction ft) argument
156 onTabReselected(Tab tab, FragmentTransaction ft) argument
[all...]
H A DFragmentNestingStatePagerSupport.java61 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0));
68 outState.putInt("tab", getActionBar().getSelectedNavigationIndex());
74 * trick. Normally a tab host has a simple API for supplying a View or
75 * Intent that each tab will show. This is not sufficient for switching
76 * between pages. So instead we make the content part of the tab host
78 * view to show as the tab content. It listens to changes in tabs, and takes
80 * tab changes.
108 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument
110 tab.setTag(info);
111 tab
142 onTabSelected(Tab tab, FragmentTransaction ft) argument
152 onTabUnselected(Tab tab, FragmentTransaction ft) argument
156 onTabReselected(Tab tab, FragmentTransaction ft) argument
[all...]
/frameworks/support/samples/Support13Demos/src/main/java/com/example/android/supportv13/app/
H A DFragmentNestingPagerSupport.java61 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0));
68 outState.putInt("tab", getActionBar().getSelectedNavigationIndex());
74 * trick. Normally a tab host has a simple API for supplying a View or
75 * Intent that each tab will show. This is not sufficient for switching
76 * between pages. So instead we make the content part of the tab host
78 * view to show as the tab content. It listens to changes in tabs, and takes
80 * tab changes.
108 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument
110 tab.setTag(info);
111 tab
142 onTabSelected(Tab tab, FragmentTransaction ft) argument
152 onTabUnselected(Tab tab, FragmentTransaction ft) argument
156 onTabReselected(Tab tab, FragmentTransaction ft) argument
[all...]
H A DFragmentNestingStatePagerSupport.java61 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0));
68 outState.putInt("tab", getActionBar().getSelectedNavigationIndex());
74 * trick. Normally a tab host has a simple API for supplying a View or
75 * Intent that each tab will show. This is not sufficient for switching
76 * between pages. So instead we make the content part of the tab host
78 * view to show as the tab content. It listens to changes in tabs, and takes
80 * tab changes.
108 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { argument
110 tab.setTag(info);
111 tab
142 onTabSelected(Tab tab, FragmentTransaction ft) argument
152 onTabUnselected(Tab tab, FragmentTransaction ft) argument
156 onTabReselected(Tab tab, FragmentTransaction ft) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DSlidingTab.java49 * 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 DScrollingTabContainerView.java45 * This widget implements the dynamic action bar tab behavior that can change
123 // Recenter the tab display if we're at a new (scrollable) size.
279 private TabView createTabView(Context context, ActionBar.Tab tab, boolean forAdapter) { argument
280 final TabView tabView = new TabView(context, tab, forAdapter);
296 public void addTab(ActionBar.Tab tab, boolean setSelected) { argument
297 TabView tabView = createTabView(mContext, tab, false);
311 public void addTab(ActionBar.Tab tab, int position, boolean setSelected) { argument
312 final TabView tabView = createTabView(mContext, tab, false);
368 public TabView(Context context, ActionBar.Tab tab, boolean forList) { argument
370 mTab = tab;
379 bindTab(ActionBar.Tab tab) argument
[all...]
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DTabHostBindingAdapter.java37 public static void setCurrentTab(TabHost view, int tab) { argument
38 if (view.getCurrentTab() != tab) {
39 view.setCurrentTab(tab);
/frameworks/support/fragment/src/main/java/androidx/fragment/app/
H A DFragmentTabHost.java39 * its tab content. When placing this in a view hierarchy, after inflating
41 * to complete the initialization of the tab host.
222 "No tab content FrameLayout found for id " + mContainerId);
241 // sure this tab's fragment is inactive if it exists. This shouldn't
265 final TabInfo tab = mTabs.get(i);
266 tab.fragment = mFragmentManager.findFragmentByTag(tab.tag);
267 if (tab.fragment != null && !tab.fragment.isDetached()) {
268 if (tab
[all...]
/frameworks/support/legacy/v13/src/main/java/androidx/legacy/app/
H A DFragmentTabHost.java227 "No tab content FrameLayout found for id " + mContainerId);
253 // sure this tab's fragment is inactive if it exists. This shouldn't
281 TabInfo tab = mTabs.get(i);
282 tab.fragment = mFragmentManager.findFragmentByTag(tab.tag);
283 if (tab.fragment != null && !tab.fragment.isDetached()) {
284 if (tab.tag.equals(currentTab)) {
285 // The fragment for this tab is already there and
287 // as the current tab
[all...]
/frameworks/base/core/java/android/app/
H A DActionBar.java618 * This tab will not be included in the action bar until it is added.
639 * Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list.
640 * If this is the first tab to be added it will become the selected tab.
642 * @param tab Tab to add
650 public abstract void addTab(Tab tab); argument
653 * Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list.
655 * @param tab Ta
664 addTab(Tab tab, boolean setSelected) argument
680 addTab(Tab tab, int position) argument
696 addTab(Tab tab, int position, boolean setSelected) argument
710 removeTab(Tab tab) argument
750 selectTab(Tab tab) argument
1321 onTabSelected(Tab tab, FragmentTransaction ft) argument
1332 onTabUnselected(Tab tab, FragmentTransaction ft) argument
1343 onTabReselected(Tab tab, FragmentTransaction ft) argument
[all...]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/
H A DActionBar.java610 * This tab will not be included in the action bar until it is added.
625 * Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list.
626 * If this is the first tab to be added it will become the selected tab.
628 * @param tab Tab to add
636 public abstract void addTab(Tab tab); argument
639 * Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list.
641 * @param tab Ta
650 addTab(Tab tab, boolean setSelected) argument
666 addTab(Tab tab, int position) argument
682 addTab(Tab tab, int position, boolean setSelected) argument
696 removeTab(Tab tab) argument
736 selectTab(Tab tab) argument
1340 onTabSelected(Tab tab, FragmentTransaction ft) argument
1351 onTabUnselected(Tab tab, FragmentTransaction ft) argument
1362 onTabReselected(Tab tab, FragmentTransaction ft) argument
[all...]
H A DWindowDecorActionBar.java264 // Switch tab layout configuration if needed
543 private void configureTab(Tab tab, int position) { argument
544 final TabImpl tabi = (TabImpl) tab;
561 public void addTab(Tab tab) { argument
562 addTab(tab, mTabs.isEmpty());
566 public void addTab(Tab tab, int position) { argument
567 addTab(tab, position, mTabs.isEmpty());
571 public void addTab(Tab tab, boolean setSelected) { argument
573 mTabScrollView.addTab(tab, setSelected);
574 configureTab(tab, mTab
581 addTab(Tab tab, int position, boolean setSelected) argument
596 removeTab(Tab tab) argument
626 selectTab(Tab tab) argument
[all...]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DScrollingTabContainerView.java52 * 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 DWindowDecorActionBar.java266 // Switch tab layout configuration if needed
526 private void configureTab(Tab tab, int position) { argument
527 final TabImpl tabi = (TabImpl) tab;
544 public void addTab(Tab tab) { argument
545 addTab(tab, mTabs.isEmpty());
549 public void addTab(Tab tab, int position) { argument
550 addTab(tab, position, mTabs.isEmpty());
554 public void addTab(Tab tab, boolean setSelected) { argument
556 mTabScrollView.addTab(tab, setSelected);
557 configureTab(tab, mTab
564 addTab(Tab tab, int position, boolean setSelected) argument
579 removeTab(Tab tab) argument
609 selectTab(Tab tab) argument
[all...]
H A DToolbarActionBar.java328 public void addTab(Tab tab) { argument
334 public void addTab(Tab tab, boolean setSelected) { argument
340 public void addTab(Tab tab, int position) { argument
346 public void addTab(Tab tab, int position, boolean setSelected) { argument
352 public void removeTab(Tab tab) { argument
370 public void selectTab(Tab tab) { argument
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/
H A DActionBarDisplayOptions.java132 public void onTabSelected(Tab tab, FragmentTransaction ft) { argument
136 public void onTabUnselected(Tab tab, FragmentTransaction ft) { argument
140 public void onTabReselected(Tab tab, FragmentTransaction ft) { argument
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/
H A DActionBarDisplayOptions.java132 public void onTabSelected(Tab tab, FragmentTransaction ft) { argument
136 public void onTabUnselected(Tab tab, FragmentTransaction ft) { argument
140 public void onTabReselected(Tab tab, FragmentTransaction ft) { argument

Completed in 962 milliseconds

12