Lines Matching refs:records

2079     private void executePostponedTransaction(ArrayList<BackStackRecord> records,
2084 if (records != null && !listener.mIsBack) {
2085 int index = records.indexOf(listener.mRecord);
2091 if (listener.isReady() || (records != null &&
2092 listener.mRecord.interactsWith(records, 0, records.size()))) {
2097 if (records != null && !listener.mIsBack &&
2098 (index = records.indexOf(listener.mRecord)) != -1 &&
2111 * of proximate records that allow reordering. See
2120 * @param records The records pending execution
2121 * @param isRecordPop The direction that these records are being run.
2123 private void removeRedundantOperationsAndExecute(ArrayList<BackStackRecord> records,
2125 if (records == null || records.isEmpty()) {
2129 if (isRecordPop == null || records.size() != isRecordPop.size()) {
2130 throw new IllegalStateException("Internal error with the back stack records");
2134 executePostponedTransaction(records, isRecordPop);
2136 final int numRecords = records.size();
2139 final boolean canReorder = records.get(recordNum).mReorderingAllowed;
2143 executeOpsTogether(records, isRecordPop, startIndex, recordNum);
2151 && !records.get(reorderingEnd).mReorderingAllowed) {
2155 executeOpsTogether(records, isRecordPop, recordNum, reorderingEnd);
2161 executeOpsTogether(records, isRecordPop, startIndex, numRecords);
2168 * @param records A list of BackStackRecords that are to be executed together
2169 * @param isRecordPop The direction that these records are being run.
2170 * @param startIndex The index of the first record in <code>records</code> to be executed
2171 * @param endIndex One more than the final record index in <code>records</code> to executed.
2173 private void executeOpsTogether(ArrayList<BackStackRecord> records,
2175 final boolean allowReordering = records.get(startIndex).mReorderingAllowed;
2185 final BackStackRecord record = records.get(recordNum);
2197 FragmentTransition.startTransitions(this, records, isRecordPop, startIndex, endIndex,
2200 executeOps(records, isRecordPop, startIndex, endIndex);
2206 postponeIndex = postponePostponableTransactions(records, isRecordPop,
2213 FragmentTransition.startTransitions(this, records, isRecordPop, startIndex,
2219 final BackStackRecord record = records.get(recordNum);
2256 * @param records A list of BackStackRecords that should be checked.
2257 * @param isRecordPop The direction that these records are being run.
2258 * @param startIndex The index of the first record in <code>records</code> to be checked
2259 * @param endIndex One more than the final record index in <code>records</code> to be checked.
2263 private int postponePostponableTransactions(ArrayList<BackStackRecord> records,
2268 final BackStackRecord record = records.get(i);
2271 !record.interactsWith(records, i + 1, endIndex);
2291 records.remove(i);
2292 records.add(postponeIndex, record);
2324 ArrayList<BackStackRecord> records = new ArrayList<>(1);
2326 records.add(record);
2329 FragmentTransition.startTransitions(this, records, isRecordPop, 0, 1, true);
2387 * @param records The list of records whose operations should be run.
2388 * @param isRecordPop The direction that these records are being run.
2389 * @param startIndex The index of the first entry in records to run.
2390 * @param endIndex One past the index of the final entry in records to run.
2392 private static void executeOps(ArrayList<BackStackRecord> records,
2395 final BackStackRecord record = records.get(i);
2461 * Adds all records in the pending actions to records and whether they are add or pop
2464 * @param records All pending actions will generate BackStackRecords added to this.
2467 * an entry for each entry in records to indicate whether or not it is a
2470 private boolean generateOpsForPendingActions(ArrayList<BackStackRecord> records,
2480 didSomething |= mPendingActions.get(i).generateOps(records, isPop);
2519 boolean popBackStackState(ArrayList<BackStackRecord> records, ArrayList<Boolean> isRecordPop,
2529 records.add(mBackStack.remove(last));
2568 records.add(mBackStack.remove(i));
3614 * Generate transactions to add to {@code records} and whether or not the transaction is
3617 * records and isRecordPop must be added equally so that each transaction in records
3620 * @param records A list to add transactions to.
3621 * @param isRecordPop A list to add whether or not the transactions added to records is
3625 boolean generateOps(ArrayList<BackStackRecord> records, ArrayList<Boolean> isRecordPop);
3644 public boolean generateOps(ArrayList<BackStackRecord> records,
3656 return popBackStackState(records, isRecordPop, mName, mId, mFlags);