/frameworks/base/core/java/android/view/textclassifier/ |
D | ExtrasUtils.java | 88 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 …]
|
D | SelectionEvent.java | 258 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()
|
D | SystemTextClassifier.java | 109 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/ |
D | SelectionActionModeHelper.java | 594 @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/ |
D | InputChannel_test.cpp | 178 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()
|
D | InputPublisherAndConsumer_test.cpp | 144 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()
|
D | StructLayout_test.cpp | 60 CHECK_OFFSET(InputMessage::Body::Motion, classification, 48); in TestInputMessageAlignment()
|
D | InputEvent_test.cpp | 627 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/ |
D | TemplateClassificationIntentFactory.java | 62 @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()
|
D | LegacyClassificationIntentFactory.java | 60 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()
|
D | ClassificationIntentFactory.java | 40 @Nullable AnnotatorModel.ClassificationResult classification); in create() argument
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | TextClassifierTest.java | 151 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/ |
D | InputClassifier.cpp | 60 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()
|
D | InputListener.cpp | 93 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 ==()
|
D | InputClassifier.h | 184 void setClassification(int32_t deviceId, MotionClassification classification); 190 MotionClassification classification);
|
/frameworks/base/core/java/android/view/textclassifier/logging/ |
D | SmartSelectionEventTracker.java | 478 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/ |
D | Entry.cpp | 163 int32_t buttonState, MotionClassification classification, in MotionEntry() argument 177 classification(classification), in MotionEntry() 206 motionClassificationToString(classification), edgeFlags, xPrecision, in appendDescription()
|
D | Entry.h | 127 MotionClassification classification; member 139 MotionClassification classification, int32_t edgeFlags, float xPrecision,
|
/frameworks/native/services/inputflinger/tests/ |
D | InputDispatcher_test.cpp | 250 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/ |
D | InputListener.h | 108 MotionClassification classification; member 130 int32_t metaState, int32_t buttonState, MotionClassification classification,
|
/frameworks/native/libs/input/ |
D | Input.cpp | 32 const char* motionClassificationToString(MotionClassification classification) { in motionClassificationToString() argument 33 switch (classification) { in motionClassificationToString() 248 MotionClassification classification, in initialize() argument 265 mClassification = classification; in initialize()
|
D | InputTransport.cpp | 181 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/ |
D | GestureDetector.java | 871 private void recordGestureClassification(int classification) { in recordGestureClassification() argument 873 || classification in recordGestureClassification() 886 classification, in recordGestureClassification()
|
/frameworks/native/include/input/ |
D | InputTransport.h | 108 MotionClassification classification; // base type: uint8_t member 275 MotionClassification classification,
|
D | Input.h | 247 const char* motionClassificationToString(MotionClassification classification); 613 MotionClassification classification,
|