Home
last modified time | relevance | path

Searched refs:SelectionEvent (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DSelectionEventTest.java35 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 …]
DTextClassifierEventTest.java49 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 …]
/frameworks/base/core/java/android/view/textclassifier/
DSelectionEvent.java39 public final class SelectionEvent implements Parcelable { class
142 SelectionEvent( in SelectionEvent() method in SelectionEvent
155 private SelectionEvent(Parcel in) { in SelectionEvent() method in SelectionEvent
219 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 …]
DTextClassificationSession.java21 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 …]
DTextClassifierEvent.java408 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 …]
DSelectionEvent.aidl19 parcelable SelectionEvent;
DSystemTextClassifier.java158 public void onSelectionEvent(SelectionEvent event) { in onSelectionEvent()
DTextClassifier.java392 default void onSelectionEvent(@NonNull SelectionEvent event) { in onSelectionEvent()
/frameworks/base/core/java/android/widget/
DSelectionActionModeHelper.java42 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 …]
/frameworks/base/core/java/android/service/textclassifier/
DITextClassifierService.aidl21 import android.view.textclassifier.SelectionEvent;
55 in SelectionEvent event); in onSelectionEvent()
DTextClassifierService.java41 import android.view.textclassifier.SelectionEvent;
159 SelectionEvent event) {
348 @Nullable TextClassificationSessionId sessionId, @NonNull SelectionEvent event) {} in onSelectionEvent()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityTest.java80 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 …]
/frameworks/base/services/core/java/com/android/server/textclassifier/
DTextClassificationManagerService.java50 import android.view.textclassifier.SelectionEvent;
293 @Nullable TextClassificationSessionId sessionId, SelectionEvent event) in onSelectionEvent()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt49665 …roid/view/textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/SelectionEvent;)V
49680 …roid/view/textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/SelectionEvent;)V
61625 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->ABANDON…
61626 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->COPY:I
61627 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->CUT:I
61628 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->DRAG:I
61629 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->OTHER:I
61630 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->OVERTYP…
61631 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->PASTE:I
61632 Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent$ActionType;->RESET:I
[all …]
/frameworks/base/boot/
Dpreloaded-classes9570 android.view.textclassifier.SelectionEvent$1
9571 android.view.textclassifier.SelectionEvent
Dboot-image-profile.txt13711 …roid/view/textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/SelectionEvent;)V
19176 HSPLandroid/view/textclassifier/SelectionEvent;->writeToParcel(Landroid/os/Parcel;I)V
31988 Landroid/view/textclassifier/SelectionEvent$1;
31989 Landroid/view/textclassifier/SelectionEvent;
/frameworks/base/config/
Dpreloaded-classes9601 android.view.textclassifier.SelectionEvent$1
9602 android.view.textclassifier.SelectionEvent
Dboot-image-profile.txt13714 …roid/view/textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/SelectionEvent;)V
19240 HSPLandroid/view/textclassifier/SelectionEvent;->writeToParcel(Landroid/os/Parcel;I)V
42149 Landroid/view/textclassifier/SelectionEvent$1;
42150 Landroid/view/textclassifier/SelectionEvent;
/frameworks/base/core/api/
Dcurrent.txt56879 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);
Dsystem-current.txt13234 …w.textclassifier.TextClassificationSessionId, @NonNull android.view.textclassifier.SelectionEvent);
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...