Home
last modified time | relevance | path

Searched refs:mTabs (Results 1 – 3 of 3) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/
DProfileTabs.java53 private final TabLayout mTabs; field in ProfileTabs
84 mTabs = tabLayoutContainer.findViewById(R.id.tabs); in ProfileTabs()
96 mTabs.removeAllTabs(); in ProfileTabs()
117 mTabs.addOnTabSelectedListener(mOnTabSelectedListener); in ProfileTabs()
126 if (mTabs.getSelectedTabPosition() == -1 in updateView()
130 mTabs.removeOnTabSelectedListener(mOnTabSelectedListener); in updateView()
131 mTabs.selectTab(mTabs.getTabAt(mUserIds.indexOf(currentRoot.userId))); in updateView()
132 mTabs.addOnTabSelectedListener(mOnTabSelectedListener); in updateView()
148 for (int i = 0; i < mTabs.getTabCount(); i++) { in updateView()
151 View tab = ((ViewGroup) mTabs.getChildAt(0)).getChildAt(i); in updateView()
[all …]
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/toolbar/
DTabLayout.java61 private List<com.android.car.ui.toolbar.Tab> mTabs = Collections.emptyList(); field in TabLayout
82 mTabs = Collections.emptyList(); in setTabs()
84 mTabs = Collections.unmodifiableList(new ArrayList<>(tabs)); in setTabs()
91 return mTabs; in getTabs()
96 if (mTabs.isEmpty() && mSelectedTab != -1) { in getSelectedTab()
107 return !mTabs.isEmpty(); in hasTabs()
112 if (position < 0 || position >= mTabs.size()) { in selectTab()
124 com.android.car.ui.toolbar.Tab tab = mTabs.get(position); in selectTab()
133 for (int i = 0; i < mTabs.size(); i++) { in recreateViews()
142 if (position < 0 || position >= mTabs.size()) { in presentTabView()
[all …]
/packages/apps/Gallery2/src/com/android/photos/
DGalleryActivity.java99 private final ArrayList<TabInfo> mTabs = new ArrayList<TabInfo>(); field in GalleryActivity.TabsAdapter
125 mTabs.add(info); in addTab()
132 return mTabs.size(); in getCount()
137 TabInfo info = mTabs.get(position); in getItem()
165 for (int i = 0; i < mTabs.size(); i++) { in onTabSelected()
166 if (mTabs.get(i) == tag) { in onTabSelected()