Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/
DUndoManager.java500 public UndoOperation<?> getLastOperation(int mergeMode) { in getLastOperation() argument
501 return getLastOperation(null, null, mergeMode); in getLastOperation()
513 public UndoOperation<?> getLastOperation(UndoOwner owner, int mergeMode) { in getLastOperation() argument
514 return getLastOperation(null, owner, mergeMode); in getLastOperation()
531 int mergeMode) { in getLastOperation() argument
535 if (mergeMode != MERGE_MODE_NONE && !mMerged && !mWorking.hasData()) { in getLastOperation()
538 if (state != null && (mergeMode == MERGE_MODE_ANY || !state.hasMultipleOwners()) in getLastOperation()
560 public void addOperation(UndoOperation<?> op, int mergeMode) { in addOperation() argument
569 if (mergeMode != MERGE_MODE_NONE && !mMerged && !mWorking.hasData()) { in addOperation()
571 if (state != null && (mergeMode == MERGE_MODE_ANY || !state.hasMultipleOwners()) in addOperation()
/frameworks/base/core/java/android/widget/
DEditor.java7223 final int mergeMode; in handleEdit() local
7225 mergeMode = MERGE_EDIT_MODE_FORCE_MERGE; in handleEdit()
7227 mergeMode = MERGE_EDIT_MODE_NEVER_MERGE; in handleEdit()
7229 mergeMode = MERGE_EDIT_MODE_NORMAL; in handleEdit()
7239 recordEdit(edit, mergeMode); in handleEdit()
7251 private void recordEdit(EditOperation edit, @MergeMode int mergeMode) { in recordEdit() argument
7260 } else if (mergeMode == MERGE_EDIT_MODE_FORCE_MERGE) { in recordEdit()
7271 } else if (mergeMode == MERGE_EDIT_MODE_NORMAL && lastEdit.mergeWith(edit)) { in recordEdit()