Home
last modified time | relevance | path

Searched refs:curItem (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java948 ItemInfo curItem = null;
952 if (ii.position == mCurItem) curItem = ii;
957 if (curItem == null && N > 0) {
958 curItem = addNewItem(mCurItem, curIndex);
964 if (curItem != null) {
970 2.f - curItem.widthFactor + (float) getPaddingLeft() / (float) clientWidth;
999 float extraWidthRight = curItem.widthFactor;
1032 calculatePageOffsets(curItem, curIndex, oldCurInfo);
1042 mAdapter.setPrimaryItem(this, mCurItem, curItem != null ? curItem.object : null);
1106 private void calculatePageOffsets(ItemInfo curItem, int curIndex, ItemInfo oldCurInfo) {
[all …]
/frameworks/support/core-ui/java/android/support/v4/view/
DViewPager.java1140 ItemInfo curItem = null;
1144 if (ii.position == mCurItem) curItem = ii;
1149 if (curItem == null && N > 0) {
1150 curItem = addNewItem(mCurItem, curIndex);
1156 if (curItem != null) {
1162 2.f - curItem.widthFactor + (float) getPaddingLeft() / (float) clientWidth;
1191 float extraWidthRight = curItem.widthFactor;
1224 calculatePageOffsets(curItem, curIndex, oldCurInfo);
1234 mAdapter.setPrimaryItem(this, mCurItem, curItem != null ? curItem.object : null);
1289 private void calculatePageOffsets(ItemInfo curItem, int curIndex, ItemInfo oldCurInfo) {
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuBuilder.java559 MenuItemImpl curItem = mItems.get(i); in setExclusiveItemChecked() local
560 if (curItem.getGroupId() == group) { in setExclusiveItemChecked()
561 if (!curItem.isExclusiveCheckable()) continue; in setExclusiveItemChecked()
562 if (!curItem.isCheckable()) continue; in setExclusiveItemChecked()
565 curItem.setCheckedInt(curItem == item); in setExclusiveItemChecked()
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DMenuBuilder.java607 MenuItemImpl curItem = mItems.get(i); in setExclusiveItemChecked() local
608 if (curItem.getGroupId() == group) { in setExclusiveItemChecked()
609 if (!curItem.isExclusiveCheckable()) continue; in setExclusiveItemChecked()
610 if (!curItem.isCheckable()) continue; in setExclusiveItemChecked()
613 curItem.setCheckedInt(curItem == item); in setExclusiveItemChecked()
/frameworks/support/design/src/android/support/design/widget/
DTabLayout.java915 final int curItem = mViewPager.getCurrentItem(); in populateFromPagerAdapter() local
916 if (curItem != getSelectedTabPosition() && curItem < getTabCount()) { in populateFromPagerAdapter()
917 selectTab(getTabAt(curItem)); in populateFromPagerAdapter()