Home
last modified time | relevance | path

Searched refs:classification (Results 1 – 25 of 34) 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.java594 @Nullable TextClassification classification) { in onSelectionUpdated() argument
599 mLogger.logSelectionModified(selectionStart, selectionEnd, classification, null); in onSelectionUpdated()
619 @Nullable TextClassification classification) { in onSelectionAction() argument
623 selectionStart, selectionEnd, action, actionLabel, classification); in onSelectionAction()
655 public void onTextChanged(int start, int end, TextClassification classification) { in onTextChanged() argument
659 /* actionLabel= */ null, classification); in onTextChanged()
774 @Nullable TextClassification classification, @Nullable TextSelection selection) { in logSelectionModified() argument
784 } else if (classification != null) { in logSelectionModified()
787 wordIndices[0], wordIndices[1], classification)); in logSelectionModified()
793 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.cpp60 static MotionClassification getMotionClassification(common::V1_0::Classification classification) { in getMotionClassification() argument
67 return static_cast<MotionClassification>(classification); in getMotionClassification()
231 MotionClassification classification) { in updateClassification() argument
241 mClassifications[deviceId] = classification; in updateClassification()
244 void MotionClassifier::setClassification(int32_t deviceId, MotionClassification classification) { in setClassification() argument
246 mClassifications[deviceId] = classification; in setClassification()
319 const MotionClassification classification = in dump() local
323 deviceId, motionClassificationToString(classification), downTime); in dump()
384 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.h184 void setClassification(int32_t deviceId, MotionClassification classification);
190 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/dispatcher/
DEntry.cpp163 int32_t buttonState, MotionClassification classification, in MotionEntry() argument
177 classification(classification), in MotionEntry()
206 motionClassificationToString(classification), edgeFlags, xPrecision, in appendDescription()
DEntry.h127 MotionClassification classification; member
139 MotionClassification classification, int32_t edgeFlags, float xPrecision,
/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp250 constexpr MotionClassification classification = MotionClassification::NONE; in TEST_F() local
254 /*action*/ -1, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
264 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
273 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
283 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
292 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
301 AMOTION_EVENT_ACTION_DOWN, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
309 AMOTION_EVENT_ACTION_DOWN, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
320 AMOTION_EVENT_ACTION_DOWN, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F()
329 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()
/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,

12