Lines Matching refs:records

2289     private void executePostponedTransaction(ArrayList<BackStackRecord> records,
2294 if (records != null && !listener.mIsBack) {
2295 int index = records.indexOf(listener.mRecord);
2301 if (listener.isReady() || (records != null
2302 && listener.mRecord.interactsWith(records, 0, records.size()))) {
2307 if (records != null && !listener.mIsBack
2308 && (index = records.indexOf(listener.mRecord)) != -1
2321 * of proximate records that allow reordering. See
2330 * @param records The records pending execution
2331 * @param isRecordPop The direction that these records are being run.
2333 private void removeRedundantOperationsAndExecute(ArrayList<BackStackRecord> records,
2335 if (records == null || records.isEmpty()) {
2339 if (isRecordPop == null || records.size() != isRecordPop.size()) {
2340 throw new IllegalStateException("Internal error with the back stack records");
2344 executePostponedTransaction(records, isRecordPop);
2346 final int numRecords = records.size();
2349 final boolean canReorder = records.get(recordNum).mReorderingAllowed;
2353 executeOpsTogether(records, isRecordPop, startIndex, recordNum);
2361 && !records.get(reorderingEnd).mReorderingAllowed) {
2365 executeOpsTogether(records, isRecordPop, recordNum, reorderingEnd);
2371 executeOpsTogether(records, isRecordPop, startIndex, numRecords);
2378 * @param records A list of BackStackRecords that are to be executed
2379 * @param isRecordPop The direction that these records are being run.
2380 * @param startIndex The index of the first record in <code>records</code> to be executed
2381 * @param endIndex One more than the final record index in <code>records</code> to executed.
2383 private void executeOpsTogether(ArrayList<BackStackRecord> records,
2385 final boolean allowReordering = records.get(startIndex).mReorderingAllowed;
2395 final BackStackRecord record = records.get(recordNum);
2407 FragmentTransition.startTransitions(this, records, isRecordPop, startIndex, endIndex,
2410 executeOps(records, isRecordPop, startIndex, endIndex);
2416 postponeIndex = postponePostponableTransactions(records, isRecordPop,
2423 FragmentTransition.startTransitions(this, records, isRecordPop, startIndex,
2429 final BackStackRecord record = records.get(recordNum);
2466 * @param records A list of BackStackRecords that should be checked.
2467 * @param isRecordPop The direction that these records are being run.
2468 * @param startIndex The index of the first record in <code>records</code> to be checked
2469 * @param endIndex One more than the final record index in <code>records</code> to be checked.
2473 private int postponePostponableTransactions(ArrayList<BackStackRecord> records,
2478 final BackStackRecord record = records.get(i);
2481 && !record.interactsWith(records, i + 1, endIndex);
2501 records.remove(i);
2502 records.add(postponeIndex, record);
2534 ArrayList<BackStackRecord> records = new ArrayList<>(1);
2536 records.add(record);
2539 FragmentTransition.startTransitions(this, records, isRecordPop, 0, 1, true);
2605 * @param records The list of records whose operations should be run.
2606 * @param isRecordPop The direction that these records are being run.
2607 * @param startIndex The index of the first entry in records to run.
2608 * @param endIndex One past the index of the final entry in records to run.
2610 private static void executeOps(ArrayList<BackStackRecord> records,
2613 final BackStackRecord record = records.get(i);
2694 * Adds all records in the pending actions to records and whether they are add or pop
2697 * @param records All pending actions will generate BackStackRecords added to this.
2700 * an entry for each entry in records to indicate whether or not it is a
2703 private boolean generateOpsForPendingActions(ArrayList<BackStackRecord> records,
2713 didSomething |= mPendingActions.get(i).generateOps(records, isPop);
2744 boolean popBackStackState(ArrayList<BackStackRecord> records, ArrayList<Boolean> isRecordPop,
2754 records.add(mBackStack.remove(last));
2793 records.add(mBackStack.remove(i));
3814 * Generate transactions to add to {@code records} and whether or not the transaction is
3817 * records and isRecordPop must be added equally so that each transaction in records
3820 * @param records A list to add transactions to.
3821 * @param isRecordPop A list to add whether or not the transactions added to records is
3825 boolean generateOps(ArrayList<BackStackRecord> records, ArrayList<Boolean> isRecordPop);
3844 public boolean generateOps(ArrayList<BackStackRecord> records,
3856 return popBackStackState(records, isRecordPop, mName, mId, mFlags);