Lines Matching refs:index

280      * Return the BackStackEntry at index <var>index</var> in the back stack;
281 * entries start index 0 being the bottom of the stack.
283 public abstract BackStackEntry getBackStackEntryAt(int index);
648 public BackStackEntry getBackStackEntryAt(int index) {
649 return mBackStack.get(index);
678 int index = bundle.getInt(key, -1);
679 if (index == -1) {
682 if (index >= mActive.size()) {
684 + key + ": index " + index));
686 Fragment f = mActive.get(index);
689 + key + ": index " + index));
1331 if (DEBUG) Log.v(TAG, "Allocated fragment index " + f);
1339 if (DEBUG) Log.v(TAG, "Freeing fragment index " + f);
1568 int index = mBackStackIndices.size();
1569 if (DEBUG) Log.v(TAG, "Setting back stack index " + index + " to " + bse);
1571 return index;
1574 int index = mAvailBackStackIndices.remove(mAvailBackStackIndices.size()-1);
1575 if (DEBUG) Log.v(TAG, "Adding back stack index " + index + " with " + bse);
1576 mBackStackIndices.set(index, bse);
1577 return index;
1582 public void setBackStackIndex(int index, BackStackRecord bse) {
1588 if (index < N) {
1589 if (DEBUG) Log.v(TAG, "Setting back stack index " + index + " to " + bse);
1590 mBackStackIndices.set(index, bse);
1592 while (N < index) {
1597 if (DEBUG) Log.v(TAG, "Adding available back stack index " + N);
1601 if (DEBUG) Log.v(TAG, "Adding back stack index " + index + " with " + bse);
1607 public void freeBackStackIndex(int index) {
1609 mBackStackIndices.set(index, null);
1613 if (DEBUG) Log.v(TAG, "Freeing back stack index " + index);
1614 mAvailBackStackIndices.add(index);
1734 int index = -1;
1738 index = mBackStack.size()-1;
1739 while (index >= 0) {
1740 BackStackRecord bss = mBackStack.get(index);
1747 index--;
1749 if (index < 0) {
1753 index--;
1755 while (index >= 0) {
1756 BackStackRecord bss = mBackStack.get(index);
1759 index--;
1766 if (index == mBackStack.size()-1) {
1771 for (int i=mBackStack.size()-1; i>index; i--) {
1916 + " has cleared index: " + f.mIndex));
1972 + " has cleared index: " + added[i]));
2089 "No instantiated fragment for index #" + fms.mAdded[i]));
2109 + " (index " + bse.mIndex + "): " + bse);