Searched refs:SelectionEvent (Results 1 – 21 of 21) 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 { class142 SelectionEvent( in SelectionEvent() method in SelectionEvent155 private SelectionEvent(Parcel in) { in SelectionEvent() method in SelectionEvent219 public static SelectionEvent createSelectionStartedEvent( in createSelectionStartedEvent()220 @SelectionEvent.InvocationMethod int invocationMethod, int start) { in createSelectionStartedEvent()221 return new SelectionEvent( in createSelectionStartedEvent()222 start, start + 1, SelectionEvent.EVENT_SELECTION_STARTED, in createSelectionStartedEvent()236 public static SelectionEvent createSelectionModifiedEvent(int start, int end) { in createSelectionModifiedEvent()238 return new SelectionEvent( in createSelectionModifiedEvent()239 start, end, SelectionEvent.EVENT_SELECTION_MODIFIED, in createSelectionModifiedEvent()[all …]
21 import android.view.textclassifier.SelectionEvent.InvocationMethod;98 public void onSelectionEvent(SelectionEvent event) { in onSelectionEvent()176 private int mInvocationMethod = SelectionEvent.INVOCATION_UNKNOWN;177 private SelectionEvent mPrevEvent;178 private SelectionEvent mSmartEvent;179 private SelectionEvent mStartEvent;192 boolean sanitizeEvent(SelectionEvent event) { in sanitizeEvent()196 if (event.getEventType() != SelectionEvent.EVENT_SELECTION_STARTED in sanitizeEvent()204 case SelectionEvent.EVENT_SELECTION_STARTED: in sanitizeEvent()210 case SelectionEvent.EVENT_SMART_SELECTION_SINGLE: // fall through in sanitizeEvent()[all …]
408 public final SelectionEvent toSelectionEvent() { in toSelectionEvent()412 invocationMethod = SelectionEvent.INVOCATION_MANUAL; in toSelectionEvent()415 invocationMethod = SelectionEvent.INVOCATION_LINK; in toSelectionEvent()424 final SelectionEvent out = new SelectionEvent( in toSelectionEvent()429 SelectionEvent.INVOCATION_UNKNOWN, in toSelectionEvent()430 SelectionEvent.NO_SIGNATURE); in toSelectionEvent()439 out.setResultId(resultId == null ? SelectionEvent.NO_SIGNATURE : resultId); in toSelectionEvent()446 eventType = SelectionEvent.EVENT_SELECTION_STARTED; in toSelectionEvent()449 eventType = SelectionEvent.EVENT_SELECTION_MODIFIED; in toSelectionEvent()452 eventType = SelectionEvent.EVENT_SMART_SELECTION_SINGLE; in toSelectionEvent()[all …]
19 parcelable SelectionEvent;
158 public void onSelectionEvent(SelectionEvent event) { in onSelectionEvent()
392 default void onSelectionEvent(@NonNull SelectionEvent event) { in onSelectionEvent()
42 import android.view.textclassifier.SelectionEvent;43 import android.view.textclassifier.SelectionEvent.InvocationMethod;219 SelectionEvent.ACTION_DRAG, /* actionLabel= */ null, mTextClassification); in onSelectionDrag()570 isLink ? SelectionEvent.INVOCATION_LINK : SelectionEvent.INVOCATION_MANUAL); in onOriginalSelection()629 @SelectionEvent.ActionType int action, in onSelectionAction()659 SelectionEvent.ACTION_RESET, in resetSelection()670 start, end, SelectionEvent.ACTION_OVERTYPE, in onTextChanged()710 SelectionEvent.ACTION_ABANDON, in run()777 SelectionEvent.createSelectionStartedEvent(invocationMethod, 0)); in logSelectionStarted()794 SelectionEvent.createSelectionModifiedEvent( in logSelectionModified()[all …]
21 import android.view.textclassifier.SelectionEvent;55 in SelectionEvent event); in onSelectionEvent()
41 import android.view.textclassifier.SelectionEvent;159 SelectionEvent event) {348 @Nullable TextClassificationSessionId sessionId, @NonNull SelectionEvent event) {} in onSelectionEvent()
80 import android.view.textclassifier.SelectionEvent;1126 final List<SelectionEvent> selectionEvents = new ArrayList<>(); in testSelectionMetricsLogger_noAbandonAfterCopy()1129 public void onSelectionEvent(SelectionEvent event) { in testSelectionMetricsLogger_noAbandonAfterCopy()1143 final SelectionEvent lastEvent = selectionEvents.get(selectionEvents.size() - 1); in testSelectionMetricsLogger_noAbandonAfterCopy()1144 assertEquals(SelectionEvent.ACTION_COPY, lastEvent.getEventType()); in testSelectionMetricsLogger_noAbandonAfterCopy()1165 SelectionEvent lastEvent; in testSelectionMetricsLogger_abandonEventIncludesEntityType()1167 final List<SelectionEvent> selectionEvents = classifier.getSelectionEvents(); in testSelectionMetricsLogger_abandonEventIncludesEntityType()1169 if (lastEvent.getEventType() == SelectionEvent.ACTION_ABANDON) { in testSelectionMetricsLogger_abandonEventIncludesEntityType()1175 assertEquals(SelectionEvent.ACTION_ABANDON, lastEvent.getEventType()); in testSelectionMetricsLogger_abandonEventIncludesEntityType()1195 final List<SelectionEvent> selectionEvents = classifier.getSelectionEvents(); in testSelectionMetricsLogger_overtypeEventIncludesEntityType()[all …]
50 import android.view.textclassifier.SelectionEvent;293 @Nullable TextClassificationSessionId sessionId, SelectionEvent event) in onSelectionEvent()
49665 …roid/view/textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/SelectionEvent;)V49680 …roid/view/textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/SelectionEvent;)V61625 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->ABANDON…61626 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->COPY:I61627 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->CUT:I61628 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->DRAG:I61629 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->OTHER:I61630 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->OVERTYP…61631 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->PASTE:I61632 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->RESET:I[all …]
9570 android.view.textclassifier.SelectionEvent$19571 android.view.textclassifier.SelectionEvent
13711 …roid/view/textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/SelectionEvent;)V19176 HSPLandroid/view/textclassifier/SelectionEvent;->writeToParcel(Landroid/os/Parcel;I)V31988 Landroid/view/textclassifier/SelectionEvent$1;31989 Landroid/view/textclassifier/SelectionEvent;
9601 android.view.textclassifier.SelectionEvent$19602 android.view.textclassifier.SelectionEvent
13714 …roid/view/textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/SelectionEvent;)V19240 HSPLandroid/view/textclassifier/SelectionEvent;->writeToParcel(Landroid/os/Parcel;I)V42149 Landroid/view/textclassifier/SelectionEvent$1;42150 Landroid/view/textclassifier/SelectionEvent;
56879 public final class SelectionEvent implements android.os.Parcelable {56880 …method @NonNull public static android.view.textclassifier.SelectionEvent createSelectionActionEven…56881 …method @NonNull public static android.view.textclassifier.SelectionEvent createSelectionActionEven…56882 …method @NonNull public static android.view.textclassifier.SelectionEvent createSelectionModifiedEv…56883 …method @NonNull public static android.view.textclassifier.SelectionEvent createSelectionModifiedEv…56884 …method @NonNull public static android.view.textclassifier.SelectionEvent createSelectionModifiedEv…56885 …method @NonNull public static android.view.textclassifier.SelectionEvent createSelectionStartedEve…56916 …lic static final android.os.Parcelable.Creator<android.view.textclassifier.SelectionEvent> CREATOR;57020 … method public default void onSelectionEvent(@NonNull android.view.textclassifier.SelectionEvent);
13234 …w.textclassifier.TextClassificationSessionId, @NonNull android.view.textclassifier.SelectionEvent);
AndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...