Home
last modified time | relevance | path

Searched refs:classification (Results 1 – 25 of 77) sorted by relevance

1234

/frameworks/base/core/java/android/view/textclassifier/
DExtrasUtils.java49 public static Bundle getForeignLanguageExtra(@Nullable TextClassification classification) { in getForeignLanguageExtra() argument
50 if (classification == null) { in getForeignLanguageExtra()
53 return classification.getExtras().getBundle(FOREIGN_LANGUAGE); in getForeignLanguageExtra()
68 public static ArrayList<Intent> getActionsIntents(@Nullable TextClassification classification) { in getActionsIntents() argument
69 if (classification == null) { in getActionsIntents()
72 …return classification.getExtras().getParcelableArrayList(ACTIONS_INTENTS, android.content.Intent.c… in getActionsIntents()
81 @Nullable TextClassification classification, @Nullable String intentAction) { in findAction()
82 if (classification == null || intentAction == null) { in findAction()
85 final ArrayList<Intent> actionIntents = getActionsIntents(classification); in findAction()
91 return classification.getActions().get(i); in findAction()
[all …]
DSelectionEvent.java256 int start, int end, @NonNull TextClassification classification) { in createSelectionModifiedEvent() argument
258 Objects.requireNonNull(classification); in createSelectionModifiedEvent()
259 final String entityType = classification.getEntityCount() > 0 in createSelectionModifiedEvent()
260 ? classification.getEntity(0) in createSelectionModifiedEvent()
264 entityType, INVOCATION_UNKNOWN, classification.getId()); in createSelectionModifiedEvent()
328 @NonNull TextClassification classification) { in createSelectionActionEvent() argument
330 Objects.requireNonNull(classification); in createSelectionActionEvent()
332 final String entityType = classification.getEntityCount() > 0 in createSelectionActionEvent()
333 ? classification.getEntity(0) in createSelectionActionEvent()
336 classification.getId()); in createSelectionActionEvent()
DSystemTextClassifier.java117 final TextClassification classification = callback.get(); in classifyText() local
118 if (classification != null) { in classifyText()
119 return classification; in classifyText()
/frameworks/base/services/tests/servicestests/res/raw-watch/
Da11y_three_finger_swipe_down_gesture.log2 … x[0]=150.0, y[0]=50.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
3 … x[1]=214.0, y[1]=70.0, toolType[1]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
4 … x[1]=214.0, y[1]=70.0, toolType[1]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
5 … x[2]=94.0, y[2]=100.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
6 … x[2]=94.0, y[2]=100.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
7 … x[2]=94.0, y[2]=110.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
8 … x[2]=94.0, y[2]=120.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
9 … x[2]=94.0, y[2]=130.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
10 … x[2]=94.0, y[2]=140.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
11 … x[2]=94.0, y[2]=150.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
[all …]
/frameworks/base/services/tests/servicestests/res/raw/
Da11y_three_finger_swipe_down_gesture.log2 …x[0]=500.0, y[0]=696.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
3 …x[1]=764.0, y[1]=801.0, toolType[1]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
4 …x[1]=764.0, y[1]=801.0, toolType[1]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
5 …x[2]=294.0, y[2]=849.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
6 …x[2]=294.0, y[2]=849.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
7 …x[2]=294.0, y[2]=849.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
8 …x[2]=305.0, y[2]=876.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
9 …x[2]=313.0, y[2]=911.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
10 …x[2]=323.0, y[2]=941.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
11 …x[2]=333.0, y[2]=976.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
[all …]
Da11y_touch_explore_gesture.log2 …[0]=825.0, y[0]=2028.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
3 …[0]=825.0, y[0]=2028.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
4 …[0]=825.0, y[0]=2028.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaStat…
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassificationTest.java238 final TextClassification classification = new TextClassification.Builder() in testToBuilder() local
253 final TextClassification fromBuilder = classification.toBuilder().build(); in testToBuilder()
255 assertEquals(classification.getId(), fromBuilder.getId()); in testToBuilder()
256 assertEquals(classification.getText(), fromBuilder.getText()); in testToBuilder()
257 assertEquals(classification.getIcon(), fromBuilder.getIcon()); in testToBuilder()
258 assertEquals(classification.getLabel(), fromBuilder.getLabel()); in testToBuilder()
259 assertEquals(classification.getIntent(), fromBuilder.getIntent()); in testToBuilder()
260 assertEquals(classification.getOnClickListener(), fromBuilder.getOnClickListener()); in testToBuilder()
261 assertEquals(classification.getExtras(), fromBuilder.getExtras()); in testToBuilder()
262 assertEquals(classification.getActions(), fromBuilder.getActions()); in testToBuilder()
[all …]
/frameworks/base/core/java/android/widget/
DSelectionActionModeHelper.java604 @Nullable TextClassification classification) { in onSelectionUpdated() argument
610 mLogger.logSelectionModified(selectionStart, selectionEnd, classification, null); in onSelectionUpdated()
631 @Nullable TextClassification classification) { in onSelectionAction() argument
635 selectionStart, selectionEnd, action, actionLabel, classification); in onSelectionAction()
667 public void onTextChanged(int start, int end, TextClassification classification) { in onTextChanged() argument
671 /* actionLabel= */ null, classification); in onTextChanged()
786 @Nullable TextClassification classification, @Nullable TextSelection selection) { in logSelectionModified() argument
796 } else if (classification != null) { in logSelectionModified()
799 wordIndices[0], wordIndices[1], classification)); in logSelectionModified()
805 maybeGenerateTranslateViewEvent(classification); in logSelectionModified()
[all …]
/frameworks/base/core/java/android/service/assist/classification/
DIFieldClassificationService.aidl18 package android.service.assist.classification;
22 import android.service.assist.classification.IFieldClassificationCallback;
23 import android.service.assist.classification.FieldClassificationRequest;
DIFieldClassificationCallback.aidl17 package android.service.assist.classification;
22 import android.service.assist.classification.FieldClassificationResponse;
DFieldClassificationResponse.aidl17 package android.service.assist.classification;
DFieldClassificationRequest.aidl17 package android.service.assist.classification;
DFieldClassification.aidl17 package android.service.assist.classification;
/frameworks/native/services/inputflinger/
DInputProcessor.cpp60 static MotionClassification getMotionClassification(common::Classification classification) { in getMotionClassification() argument
67 return static_cast<MotionClassification>(classification); in getMotionClassification()
216 common::Classification classification; in processEvents() local
217 ndk::ScopedAStatus response = mService->classify(motionEvent, &classification); in processEvents()
220 getMotionClassification(classification)); in processEvents()
264 MotionClassification classification) { in updateClassification() argument
274 mClassifications[deviceId] = classification; in updateClassification()
277 void MotionClassifier::setClassification(int32_t deviceId, MotionClassification classification) { in setClassification() argument
279 mClassifications[deviceId] = classification; in setClassification()
346 const MotionClassification classification = in dump() local
[all …]
DNotifyArgs.cpp68 int32_t flags, int32_t metaState, int32_t buttonState, MotionClassification classification, in NotifyMotionArgs() argument
84 classification(classification), in NotifyMotionArgs()
108 buttonState == rhs.buttonState && classification == rhs.classification && in operator ==()
DInputProcessor.h204 void setClassification(int32_t deviceId, MotionClassification classification);
210 MotionClassification classification);
/frameworks/native/libs/input/tests/
DInputChannel_test.cpp215 for (MotionClassification classification : classifications) { in TEST_F() local
217 serverMsg.body.motion.classification = classification; in TEST_F()
224 EXPECT_EQ(classification, clientMsg.body.motion.classification) << in TEST_F()
225 "Expected to receive " << motionClassificationToString(classification); in TEST_F()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DRemoteFieldClassificationService.java35 import android.service.assist.classification.FieldClassificationRequest;
36 import android.service.assist.classification.FieldClassificationResponse;
37 import android.service.assist.classification.FieldClassificationService;
38 import android.service.assist.classification.IFieldClassificationCallback;
39 import android.service.assist.classification.IFieldClassificationService;
/frameworks/native/services/inputflinger/tests/
DNotifyArgs_test.cpp46 MotionClassification classification = MotionClassification::DEEP_PRESS; in TEST() local
74 action, actionButton, flags, metaState, buttonState, classification, in TEST()
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayUtils.java84 TextClassification classification = mTextClassifier.classifyText( in getActions() local
86 actions.addAll(classification.getActions()); in getActions()
/frameworks/native/services/inputflinger/include/
DNotifyArgsBuilders.h98 MotionArgsBuilder& classification(MotionClassification classification) { in classification() argument
99 mClassification = classification; in classification()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewContextMenuTest.java121 TextClassification classification = new TextClassification.Builder() in testAddMenuForTextClassification() local
123 when(mMockHelper.getTextClassification()).thenReturn(classification); in testAddMenuForTextClassification()
149 TextClassification classification = new TextClassification.Builder() in testAddMenuForLegacyTextClassification() local
154 when(mMockHelper.getTextClassification()).thenReturn(classification); in testAddMenuForLegacyTextClassification()
/frameworks/native/services/inputflinger/dispatcher/
DEntry.cpp192 int32_t buttonState, MotionClassification classification, in MotionEntry() argument
206 classification(classification), in MotionEntry()
232 motionClassificationToString(classification), edgeFlags, xPrecision, in getDescription()
/frameworks/base/telephony/java/android/telephony/
DCallState.java351 public CallState.Builder setCallClassification(int classification) { in setCallClassification() argument
352 this.mCallClassification = classification; in setCallClassification()
/frameworks/proto_logging/stats/atoms/input/
Dinput_atoms.proto131 * Logs gesture classification and timing information for touch events.
138 // The source of the classification (e.g. Java class name).
149 // The classification of the gesture.
150 optional Classification classification = 2; field
153 // classification was made.
157 // location of the touch event when the classification was made.

1234