Searched refs:SelectionEvent (Results 1 – 20 of 20) sorted by relevance
35 SelectionEvent.createSelectionActionEvent(0, 1, SelectionEvent.ACTION_OVERTYPE); in testCreateSelectionActionEvent_valid()36 SelectionEvent.createSelectionActionEvent(0, 1, SelectionEvent.ACTION_COPY); in testCreateSelectionActionEvent_valid()37 SelectionEvent.createSelectionActionEvent(0, 1, SelectionEvent.ACTION_PASTE); in testCreateSelectionActionEvent_valid()38 SelectionEvent.createSelectionActionEvent(0, 1, SelectionEvent.ACTION_CUT); in testCreateSelectionActionEvent_valid()39 SelectionEvent.createSelectionActionEvent(0, 1, SelectionEvent.ACTION_SHARE); in testCreateSelectionActionEvent_valid()40 SelectionEvent.createSelectionActionEvent(0, 1, SelectionEvent.ACTION_SMART_SHARE); in testCreateSelectionActionEvent_valid()41 SelectionEvent.createSelectionActionEvent(0, 1, SelectionEvent.ACTION_DRAG); in testCreateSelectionActionEvent_valid()42 SelectionEvent.createSelectionActionEvent(0, 1, SelectionEvent.ACTION_ABANDON); in testCreateSelectionActionEvent_valid()43 SelectionEvent.createSelectionActionEvent(0, 1, SelectionEvent.ACTION_OTHER); in testCreateSelectionActionEvent_valid()44 SelectionEvent.createSelectionActionEvent(0, 1, SelectionEvent.ACTION_SELECT_ALL); in testCreateSelectionActionEvent_valid()[all …]
49 final SelectionEvent expected = SelectionEvent.createSelectionStartedEvent( in toSelectionEvent_selectionStarted()50 SelectionEvent.INVOCATION_MANUAL, 0); in toSelectionEvent_selectionStarted()68 final SelectionEvent expected = SelectionEvent.createSelectionModifiedEvent( in toSelectionEvent_smartSelectionMulti()70 expected.setInvocationMethod(SelectionEvent.INVOCATION_MANUAL); in toSelectionEvent_smartSelectionMulti()71 expected.setEventType(SelectionEvent.EVENT_SMART_SELECTION_MULTI); in toSelectionEvent_smartSelectionMulti()97 final SelectionEvent expected = SelectionEvent.createSelectionModifiedEvent( in toSelectionEvent_smartSelectionSingle()99 expected.setInvocationMethod(SelectionEvent.INVOCATION_MANUAL); in toSelectionEvent_smartSelectionSingle()100 expected.setEventType(SelectionEvent.EVENT_SMART_SELECTION_SINGLE); in toSelectionEvent_smartSelectionSingle()128 final SelectionEvent expected = SelectionEvent.createSelectionActionEvent( in toSelectionEvent_resetSelection()129 0, 1, SelectionEvent.ACTION_RESET, TEXT_CLASSIFICATION); in toSelectionEvent_resetSelection()[all …]
39 public final class SelectionEvent implements Parcelable { class141 SelectionEvent( in SelectionEvent() method in SelectionEvent154 private SelectionEvent(Parcel in) { in SelectionEvent() method in SelectionEvent216 public static SelectionEvent createSelectionStartedEvent( in createSelectionStartedEvent()217 @SelectionEvent.InvocationMethod int invocationMethod, int start) { in createSelectionStartedEvent()218 return new SelectionEvent( in createSelectionStartedEvent()219 start, start + 1, SelectionEvent.EVENT_SELECTION_STARTED, in createSelectionStartedEvent()233 public static SelectionEvent createSelectionModifiedEvent(int start, int end) { in createSelectionModifiedEvent()235 return new SelectionEvent( in createSelectionModifiedEvent()236 start, end, SelectionEvent.EVENT_SELECTION_MODIFIED, in createSelectionModifiedEvent()[all …]
20 import android.view.textclassifier.SelectionEvent.InvocationMethod;73 public void onSelectionEvent(SelectionEvent event) { in onSelectionEvent()127 private int mInvocationMethod = SelectionEvent.INVOCATION_UNKNOWN;128 private SelectionEvent mPrevEvent;129 private SelectionEvent mSmartEvent;130 private SelectionEvent mStartEvent;143 boolean sanitizeEvent(SelectionEvent event) { in sanitizeEvent()147 if (event.getEventType() != SelectionEvent.EVENT_SELECTION_STARTED in sanitizeEvent()155 case SelectionEvent.EVENT_SELECTION_STARTED: in sanitizeEvent()161 case SelectionEvent.EVENT_SMART_SELECTION_SINGLE: // fall through in sanitizeEvent()[all …]
72 public void writeEvent(@NonNull SelectionEvent event) { in writeEvent()100 private static int getLogType(SelectionEvent event) { in getLogType()102 case SelectionEvent.ACTION_OVERTYPE: in getLogType()104 case SelectionEvent.ACTION_COPY: in getLogType()106 case SelectionEvent.ACTION_PASTE: in getLogType()108 case SelectionEvent.ACTION_CUT: in getLogType()110 case SelectionEvent.ACTION_SHARE: in getLogType()112 case SelectionEvent.ACTION_SMART_SHARE: in getLogType()114 case SelectionEvent.ACTION_DRAG: in getLogType()116 case SelectionEvent.ACTION_ABANDON: in getLogType()[all …]
378 public final SelectionEvent toSelectionEvent() { in toSelectionEvent()382 invocationMethod = SelectionEvent.INVOCATION_MANUAL; in toSelectionEvent()385 invocationMethod = SelectionEvent.INVOCATION_LINK; in toSelectionEvent()394 final SelectionEvent out = new SelectionEvent( in toSelectionEvent()399 SelectionEvent.INVOCATION_UNKNOWN, in toSelectionEvent()400 SelectionEvent.NO_SIGNATURE); in toSelectionEvent()409 out.setResultId(resultId == null ? SelectionEvent.NO_SIGNATURE : resultId); in toSelectionEvent()416 eventType = SelectionEvent.EVENT_SELECTION_STARTED; in toSelectionEvent()419 eventType = SelectionEvent.EVENT_SELECTION_MODIFIED; in toSelectionEvent()422 eventType = SelectionEvent.EVENT_SMART_SELECTION_SINGLE; in toSelectionEvent()[all …]
19 parcelable SelectionEvent;
140 public void onSelectionEvent(SelectionEvent event) { in onSelectionEvent()
378 public void onSelectionEvent(SelectionEvent event) { in onSelectionEvent()388 final SelectionEvent selEvent = event.toSelectionEvent(); in onTextClassifierEvent()
374 default void onSelectionEvent(@NonNull SelectionEvent event) { in onSelectionEvent()
123 public void logEvent(@NonNull SelectionEvent event) { in logEvent()126 if (event.mEventType != SelectionEvent.EventType.SELECTION_STARTED && mSessionId == null in logEvent()134 case SelectionEvent.EventType.SELECTION_STARTED: in logEvent()140 case SelectionEvent.EventType.SMART_SELECTION_SINGLE: // fall through in logEvent()141 case SelectionEvent.EventType.SMART_SELECTION_MULTI: in logEvent()147 case SelectionEvent.EventType.SELECTION_MODIFIED: // fall through in logEvent()148 case SelectionEvent.EventType.AUTO_SELECTION: in logEvent()161 private void writeEvent(SelectionEvent event, long now) { in writeEvent()206 private static int getLogType(SelectionEvent event) { in getLogType()208 case SelectionEvent.ActionType.OVERTYPE: in getLogType()[all …]
40 import android.view.textclassifier.SelectionEvent;41 import android.view.textclassifier.SelectionEvent.InvocationMethod;184 SelectionEvent.ACTION_DRAG, /* actionLabel= */ null, mTextClassification); in onSelectionDrag()525 isLink ? SelectionEvent.INVOCATION_LINK : SelectionEvent.INVOCATION_MANUAL); in onOriginalSelection()581 @SelectionEvent.ActionType int action, in onSelectionAction()610 SelectionEvent.ACTION_RESET, in resetSelection()621 start, end, SelectionEvent.ACTION_OVERTYPE, in onTextChanged()661 SelectionEvent.ACTION_ABANDON, in run()728 SelectionEvent.createSelectionStartedEvent(invocationMethod, 0)); in logSelectionStarted()745 SelectionEvent.createSelectionModifiedEvent( in logSelectionModified()[all …]
21 import android.view.textclassifier.SelectionEvent;55 in SelectionEvent event); in onSelectionEvent()
41 import android.view.textclassifier.SelectionEvent;147 SelectionEvent event) {310 @Nullable TextClassificationSessionId sessionId, @NonNull SelectionEvent event) {} in onSelectionEvent()
36 import android.view.textclassifier.SelectionEvent;199 TextClassificationSessionId sessionId, SelectionEvent event) throws RemoteException { in onSelectionEvent()
74 import android.view.textclassifier.SelectionEvent;1000 final List<SelectionEvent> selectionEvents = new ArrayList<>(); in testSelectionMetricsLogger_noAbandonAfterCopy()1003 public void onSelectionEvent(SelectionEvent event) { in testSelectionMetricsLogger_noAbandonAfterCopy()1018 final SelectionEvent lastEvent = selectionEvents.get(selectionEvents.size() - 1); in testSelectionMetricsLogger_noAbandonAfterCopy()1019 assertEquals(SelectionEvent.ACTION_COPY, lastEvent.getEventType()); in testSelectionMetricsLogger_noAbandonAfterCopy()
4145 android.view.textclassifier.logging.SmartSelectionEventTracker$SelectionEvent
6766 …w.textclassifier.TextClassificationSessionId, @NonNull android.view.textclassifier.SelectionEvent);
META-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
13334 …roid/view/textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/SelectionEvent;)V