Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/view/textclassifier/
DExtrasUtils.java88 public static Bundle getForeignLanguageExtra(@Nullable TextClassification classification) { in getForeignLanguageExtra() argument
89 if (classification == null) { in getForeignLanguageExtra()
92 return classification.getExtras().getBundle(FOREIGN_LANGUAGE); in getForeignLanguageExtra()
215 public static ArrayList<Intent> getActionsIntents(@Nullable TextClassification classification) { in getActionsIntents() argument
216 if (classification == null) { in getActionsIntents()
219 return classification.getExtras().getParcelableArrayList(ACTIONS_INTENTS); in getActionsIntents()
228 @Nullable TextClassification classification, @Nullable String intentAction) { in findAction()
229 if (classification == null || intentAction == null) { in findAction()
232 final ArrayList<Intent> actionIntents = getActionsIntents(classification); in findAction()
238 return classification.getActions().get(i); in findAction()
[all …]
DSelectionEvent.java258 int start, int end, @NonNull TextClassification classification) { in createSelectionModifiedEvent() argument
260 Preconditions.checkNotNull(classification); in createSelectionModifiedEvent()
261 final String entityType = classification.getEntityCount() > 0 in createSelectionModifiedEvent()
262 ? classification.getEntity(0) in createSelectionModifiedEvent()
266 entityType, INVOCATION_UNKNOWN, classification.getId()); in createSelectionModifiedEvent()
330 @NonNull TextClassification classification) { in createSelectionActionEvent() argument
332 Preconditions.checkNotNull(classification); in createSelectionActionEvent()
334 final String entityType = classification.getEntityCount() > 0 in createSelectionActionEvent()
335 ? classification.getEntity(0) in createSelectionActionEvent()
338 classification.getId()); in createSelectionActionEvent()
DSystemTextClassifier.java109 final TextClassification classification = callback.get(); in classifyText() local
110 if (classification != null) { in classifyText()
111 return classification; in classifyText()
/frameworks/base/core/java/android/widget/
DSelectionActionModeHelper.java558 @Nullable TextClassification classification) { in onSelectionUpdated() argument
563 mLogger.logSelectionModified(selectionStart, selectionEnd, classification, null); in onSelectionUpdated()
583 @Nullable TextClassification classification) { in onSelectionAction() argument
587 selectionStart, selectionEnd, action, actionLabel, classification); in onSelectionAction()
618 public void onTextChanged(int start, int end, TextClassification classification) { in onTextChanged() argument
622 /* actionLabel= */ null, classification); in onTextChanged()
737 @Nullable TextClassification classification, @Nullable TextSelection selection) { in logSelectionModified() argument
747 } else if (classification != null) { in logSelectionModified()
750 wordIndices[0], wordIndices[1], classification)); in logSelectionModified()
756 maybeGenerateTranslateViewEvent(classification); in logSelectionModified()
[all …]
/frameworks/native/libs/input/tests/
DInputChannel_test.cpp178 for (MotionClassification classification : classifications) { in TEST_F() local
180 serverMsg.body.motion.classification = classification; in TEST_F()
187 EXPECT_EQ(classification, clientMsg.body.motion.classification) << in TEST_F()
188 "Expected to receive " << motionClassificationToString(classification); in TEST_F()
DInputPublisherAndConsumer_test.cpp144 constexpr MotionClassification classification = MotionClassification::AMBIGUOUS_GESTURE; in PublishAndConsumeMotionEvent() local
172 flags, edgeFlags, metaState, buttonState, classification, in PublishAndConsumeMotionEvent()
199 EXPECT_EQ(classification, motionEvent->getClassification()); in PublishAndConsumeMotionEvent()
DStructLayout_test.cpp60 CHECK_OFFSET(InputMessage::Body::Motion, classification, 48); in TestInputMessageAlignment()
DInputEvent_test.cpp627 for (MotionClassification classification : classifications) { in TEST_F() local
630 classification, 0, 0, 0, 0, 0 /*downTime*/, 0 /*eventTime*/, in TEST_F()
632 ASSERT_EQ(classification, event.getClassification()); in TEST_F()
/frameworks/base/core/java/android/view/textclassifier/intent/
DTemplateClassificationIntentFactory.java62 @Nullable AnnotatorModel.ClassificationResult classification) { in create() argument
63 if (classification == null) { in create()
66 RemoteActionTemplate[] remoteActionTemplates = classification.getRemoteActionTemplates(); in create()
71 return mFallback.create(context, text, foreignText, referenceTime, classification); in create()
DLegacyClassificationIntentFactory.java60 AnnotatorModel.ClassificationResult classification) { in create() argument
61 final String type = classification != null in create()
62 ? classification.getCollection().trim().toLowerCase(Locale.ENGLISH) in create()
81 if (classification.getDatetimeResult() != null) { in create()
83 classification.getDatetimeResult().getTimeMsUtc()); in create()
DClassificationIntentFactory.java40 @Nullable AnnotatorModel.ClassificationResult classification); in create() argument
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassifierTest.java151 TextClassification classification = mClassifier.classifyText(request); in testClassifyText() local
152 assertThat(classification, isTextClassification(classifiedText, TextClassifier.TYPE_EMAIL)); in testClassifyText()
168 TextClassification classification = mClassifier.classifyText(request); in testClassifyText_url() local
169 assertThat(classification, isTextClassification(classifiedText, TextClassifier.TYPE_URL)); in testClassifyText_url()
170 assertThat(classification, containsIntentWithAction(Intent.ACTION_VIEW)); in testClassifyText_url()
183 TextClassification classification = mClassifier.classifyText(request); in testClassifyText_address() local
184 assertThat(classification, isTextClassification(text, TextClassifier.TYPE_ADDRESS)); in testClassifyText_address()
200 TextClassification classification = mClassifier.classifyText(request); in testClassifyText_url_inCaps() local
201 assertThat(classification, isTextClassification(classifiedText, TextClassifier.TYPE_URL)); in testClassifyText_url_inCaps()
202 assertThat(classification, containsIntentWithAction(Intent.ACTION_VIEW)); in testClassifyText_url_inCaps()
[all …]
/frameworks/native/services/inputflinger/
DInputClassifier.cpp68 static MotionClassification getMotionClassification(common::V1_0::Classification classification) { in getMotionClassification() argument
75 return static_cast<MotionClassification>(classification); in getMotionClassification()
290 MotionClassification classification) { in updateClassification() argument
300 mClassifications[deviceId] = classification; in updateClassification()
303 void MotionClassifier::setClassification(int32_t deviceId, MotionClassification classification) { in setClassification() argument
305 mClassifications[deviceId] = classification; in setClassification()
378 const MotionClassification classification = in dump() local
382 deviceId, motionClassificationToString(classification), downTime); in dump()
426 newArgs.classification = mMotionClassifier->classify(newArgs); in notifyMotion()
DInputListener.cpp93 int32_t buttonState, MotionClassification classification, in NotifyMotionArgs() argument
102 classification(classification), edgeFlags(edgeFlags), deviceTimestamp(deviceTimestamp), in NotifyMotionArgs()
117 classification(other.classification), edgeFlags(other.edgeFlags), in NotifyMotionArgs()
140 && classification == rhs.classification in operator ==()
DInputClassifier.h194 void setClassification(int32_t deviceId, MotionClassification classification);
200 MotionClassification classification);
/frameworks/base/core/java/android/view/textclassifier/logging/
DSmartSelectionEventTracker.java478 int start, int end, @NonNull TextClassification classification) { in selectionModified() argument
479 final String entityType = classification.getEntityCount() > 0 in selectionModified()
480 ? classification.getEntity(0) in selectionModified()
482 final String versionTag = getVersionInfo(classification.getId()); in selectionModified()
546 @NonNull TextClassification classification) { in selectionAction() argument
547 final String entityType = classification.getEntityCount() > 0 in selectionAction()
548 ? classification.getEntity(0) in selectionAction()
550 final String versionTag = getVersionInfo(classification.getId()); in selectionAction()
/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp248 constexpr MotionClassification classification = MotionClassification::NONE; in TEST_F() local
252 /*action*/ -1, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
262 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
271 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
281 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
290 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
299 AMOTION_EVENT_ACTION_DOWN, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
307 AMOTION_EVENT_ACTION_DOWN, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
318 AMOTION_EVENT_ACTION_DOWN, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
327 AMOTION_EVENT_ACTION_DOWN, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
[all …]
/frameworks/native/services/inputflinger/include/
DInputListener.h108 MotionClassification classification; member
130 int32_t metaState, int32_t buttonState, MotionClassification classification,
/frameworks/native/libs/input/
DInput.cpp32 const char* motionClassificationToString(MotionClassification classification) { in motionClassificationToString() argument
33 switch (classification) { in motionClassificationToString()
248 MotionClassification classification, in initialize() argument
265 mClassification = classification; in initialize()
DInputTransport.cpp181 msg->body.motion.classification = body.motion.classification; in getSanitizedCopy()
478 MotionClassification classification, in publishMotionEvent() argument
503 buttonState, motionClassificationToString(classification), in publishMotionEvent()
530 msg.body.motion.classification = classification; in publishMotionEvent()
1148 msg->body.motion.classification, in initializeMotionEvent()
/frameworks/base/core/java/android/view/
DGestureDetector.java871 private void recordGestureClassification(int classification) { in recordGestureClassification() argument
873 || classification in recordGestureClassification()
886 classification, in recordGestureClassification()
DMotionEvent.java1524 int metaState, int buttonState, @Classification int classification, in nativeInitialize() argument
3617 public static String classificationToString(@Classification int classification) { in classificationToString() argument
3618 switch (classification) { in classificationToString()
/frameworks/native/include/input/
DInputTransport.h108 MotionClassification classification; // base type: uint8_t member
275 MotionClassification classification,
DInput.h247 const char* motionClassificationToString(MotionClassification classification);
613 MotionClassification classification,
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp337 jint metaState, jint buttonState, jint classification, in android_view_MotionEvent_nativeInitialize() argument
376 buttonState, static_cast<MotionClassification>(classification), in android_view_MotionEvent_nativeInitialize()

12