Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/
DUndoManager.java499 public UndoOperation<?> getLastOperation(int mergeMode) { in getLastOperation() argument
500 return getLastOperation(null, null, mergeMode); in getLastOperation()
512 public UndoOperation<?> getLastOperation(UndoOwner owner, int mergeMode) { in getLastOperation() argument
513 return getLastOperation(null, owner, mergeMode); in getLastOperation()
530 int mergeMode) { in getLastOperation() argument
534 if (mergeMode != MERGE_MODE_NONE && !mMerged && !mWorking.hasData()) { in getLastOperation()
537 if (state != null && (mergeMode == MERGE_MODE_ANY || !state.hasMultipleOwners()) in getLastOperation()
559 public void addOperation(UndoOperation<?> op, int mergeMode) { in addOperation() argument
568 if (mergeMode != MERGE_MODE_NONE && !mMerged && !mWorking.hasData()) { in addOperation()
570 if (state != null && (mergeMode == MERGE_MODE_ANY || !state.hasMultipleOwners()) in addOperation()
/frameworks/base/core/java/android/widget/
DEditor.java7080 final int mergeMode; in handleEdit() local
7082 mergeMode = MERGE_EDIT_MODE_FORCE_MERGE; in handleEdit()
7084 mergeMode = MERGE_EDIT_MODE_NEVER_MERGE; in handleEdit()
7086 mergeMode = MERGE_EDIT_MODE_NORMAL; in handleEdit()
7096 recordEdit(edit, mergeMode); in handleEdit()
7108 private void recordEdit(EditOperation edit, @MergeMode int mergeMode) { in recordEdit() argument
7117 } else if (mergeMode == MERGE_EDIT_MODE_FORCE_MERGE) { in recordEdit()
7128 } else if (mergeMode == MERGE_EDIT_MODE_NORMAL && lastEdit.mergeWith(edit)) { in recordEdit()