Searched refs:ExtrasUtils (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | TextClassifierTest.java | 221 List<Bundle> entities = ExtrasUtils.getEntities(extras); in testClassifyText_date() 224 Truth.assertThat(ExtrasUtils.getEntityType(entity)).isEqualTo(TextClassifier.TYPE_DATE); in testClassifyText_date() 267 assertEquals(translateAction, ExtrasUtils.findTranslateAction(classification)); in testClassifyText_foreignText() 268 Intent intent = ExtrasUtils.getActionsIntents(classification).get(0); in testClassifyText_foreignText() 270 Bundle foreignLanguageInfo = ExtrasUtils.getForeignLanguageExtra(classification); in testClassifyText_foreignText() 271 assertEquals("ja", ExtrasUtils.getEntityType(foreignLanguageInfo)); in testClassifyText_foreignText() 272 assertTrue(ExtrasUtils.getScore(foreignLanguageInfo) >= 0); in testClassifyText_foreignText() 273 assertTrue(ExtrasUtils.getScore(foreignLanguageInfo) <= 1); in testClassifyText_foreignText() 275 assertEquals("ja", ExtrasUtils.getTopLanguage(intent).getLanguage()); in testClassifyText_foreignText() 370 ExtrasUtils.putIsSerializedEntityDataEnabled(extras, true); in testGenerateLinks_entityData() [all …]
|
D | ActionsSuggestionsHelperTest.java | 149 ExtrasUtils.putActionIntent(phoneExtras, phoneIntent); in testDeduplicateActions() 154 ExtrasUtils.putActionIntent(anotherPhoneExtras, anotherPhoneIntent); in testDeduplicateActions() 159 ExtrasUtils.putActionIntent(urlExtras, urlIntent); in testDeduplicateActions() 215 ExtrasUtils.putActionIntent(phoneExtras, phoneIntent); in testDeduplicateActions_nullComponent()
|
D | TextClassificationTest.java | 135 assertNull(ExtrasUtils.getActionsIntents(result)); in testParcel()
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | TextClassifierImpl.java | 311 ExtrasUtils.isSerializedEntityDataEnabled(request); in generateLinks() 336 ExtrasUtils.putEntities(extras, results); in generateLinks() 480 ExtrasUtils.putActionIntent(extras, labeledIntentResult.resolvedIntent); in createConversationActionResult() 482 ExtrasUtils.putSerializedEntityData(extras, nativeSuggestion.getSerializedEntityData()); in createConversationActionResult() 483 ExtrasUtils.putEntitiesExtras( in createConversationActionResult() 734 ExtrasUtils.putTopLanguageScores(textLanguagesBundle, languageScores); in generateLanguageBundles() 753 final Bundle foreignLanguageBundle = ExtrasUtils.createForeignLanguageExtra( in generateLanguageBundles()
|
D | ExtrasUtils.java | 37 public final class ExtrasUtils { class 56 private ExtrasUtils() {} in ExtrasUtils() method in ExtrasUtils
|
D | TextClassification.java | 528 ExtrasUtils.putActionsIntents(extras, mActionIntents); 531 ExtrasUtils.putForeignLanguageExtra(extras, mForeignLanguageExtra); 538 ExtrasUtils.putEntities(
|
D | ActionsSuggestionsHelper.java | 205 Intent actionIntent = ExtrasUtils.getActionIntent(conversationAction.getExtras());
|
/frameworks/base/core/java/android/view/textclassifier/intent/ |
D | LabeledIntent.java | 29 import android.view.textclassifier.ExtrasUtils; 186 ExtrasUtils.putTextLanguagesExtra(bundle, textLanguagesBundle); in getFromTextClassifierExtra()
|
/frameworks/base/core/java/android/widget/ |
D | SelectionActionModeHelper.java | 39 import android.view.textclassifier.ExtrasUtils; 956 final RemoteAction translateAction = ExtrasUtils.findTranslateAction(classification); in generateTranslateEvent() 969 final Bundle foreignLanguageExtra = ExtrasUtils.getForeignLanguageExtra(classification); in generateTranslateEvent() 970 final String language = ExtrasUtils.getEntityType(foreignLanguageExtra); in generateTranslateEvent() 971 final float score = ExtrasUtils.getScore(foreignLanguageExtra); in generateTranslateEvent() 972 final String model = ExtrasUtils.getModelName(foreignLanguageExtra); in generateTranslateEvent()
|