Home
last modified time | relevance | path

Searched refs:mergeMode (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/content/
DUndoManager.java497 public UndoOperation<?> getLastOperation(int mergeMode) { in getLastOperation() argument
498 return getLastOperation(null, null, mergeMode); in getLastOperation()
510 public UndoOperation<?> getLastOperation(UndoOwner owner, int mergeMode) { in getLastOperation() argument
511 return getLastOperation(null, owner, mergeMode); in getLastOperation()
528 int mergeMode) { in getLastOperation() argument
532 if (mergeMode != MERGE_MODE_NONE && !mMerged && !mWorking.hasData()) { in getLastOperation()
535 if (state != null && (mergeMode == MERGE_MODE_ANY || !state.hasMultipleOwners()) in getLastOperation()
557 public void addOperation(UndoOperation<?> op, int mergeMode) { in addOperation() argument
566 if (mergeMode != MERGE_MODE_NONE && !mMerged && !mWorking.hasData()) { in addOperation()
568 if (state != null && (mergeMode == MERGE_MODE_ANY || !state.hasMultipleOwners()) in addOperation()
/frameworks/base/core/java/android/widget/
DEditor.java6571 final int mergeMode;
6573 mergeMode = MERGE_EDIT_MODE_FORCE_MERGE;
6575 mergeMode = MERGE_EDIT_MODE_NEVER_MERGE;
6577 mergeMode = MERGE_EDIT_MODE_NORMAL;
6587 recordEdit(edit, mergeMode);
6599 private void recordEdit(EditOperation edit, @MergeMode int mergeMode) {
6608 } else if (mergeMode == MERGE_EDIT_MODE_FORCE_MERGE) {
6619 } else if (mergeMode == MERGE_EDIT_MODE_NORMAL && lastEdit.mergeWith(edit)) {