Searched refs:labeledIntent (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/intent/ |
D | LabeledIntentTest.java | 64 LabeledIntent labeledIntent = new LabeledIntent( in resolve_preferTitleWithEntity() local 73 LabeledIntent.Result result = labeledIntent.resolve( in resolve_preferTitleWithEntity() 87 LabeledIntent labeledIntent = new LabeledIntent( in resolve_useAvailableTitle() local 96 LabeledIntent.Result result = labeledIntent.resolve( in resolve_useAvailableTitle() 109 LabeledIntent labeledIntent = new LabeledIntent( in resolve_titleChooser() local 118 LabeledIntent.Result result = labeledIntent.resolve( in resolve_titleChooser() 131 LabeledIntent labeledIntent = new LabeledIntent( in resolve_titleChooserReturnsNull() local 140 LabeledIntent.Result result = labeledIntent.resolve( in resolve_titleChooserReturnsNull() 170 LabeledIntent labeledIntent = new LabeledIntent( in resolve_noIntentHandler() local 178 LabeledIntent.Result result = labeledIntent.resolve(mContext, null, null); in resolve_noIntentHandler() [all …]
|
D | TemplateIntentFactoryTest.java | 92 LabeledIntent labeledIntent = intents.get(0); in create_full() local 93 assertThat(labeledIntent.titleWithoutEntity).isEqualTo(TITLE_WITHOUT_ENTITY); in create_full() 94 assertThat(labeledIntent.titleWithEntity).isEqualTo(TITLE_WITH_ENTITY); in create_full() 95 assertThat(labeledIntent.description).isEqualTo(DESCRIPTION); in create_full() 96 assertThat(labeledIntent.descriptionWithAppName).isEqualTo(DESCRIPTION_WITH_APP_NAME); in create_full() 97 assertThat(labeledIntent.requestCode).isEqualTo(REQUEST_CODE); in create_full() 98 Intent intent = labeledIntent.intent; in create_full() 154 LabeledIntent labeledIntent = intents.get(0); in create_minimal() local 155 assertThat(labeledIntent.titleWithoutEntity).isEqualTo(TITLE_WITHOUT_ENTITY); in create_minimal() 156 assertThat(labeledIntent.titleWithEntity).isNull(); in create_minimal() [all …]
|
D | TemplateClassificationIntentFactoryTest.java | 99 LabeledIntent labeledIntent = intents.get(0); in create_foreignText() local 100 assertThat(labeledIntent.titleWithoutEntity).isEqualTo(TITLE_WITHOUT_ENTITY); in create_foreignText() 101 Intent intent = labeledIntent.intent; in create_foreignText() 104 labeledIntent = intents.get(1); in create_foreignText() 105 intent = labeledIntent.intent; in create_foreignText() 140 LabeledIntent labeledIntent = intents.get(0); in create_notForeignText() local 141 assertThat(labeledIntent.titleWithoutEntity).isEqualTo(TITLE_WITHOUT_ENTITY); in create_notForeignText() 142 Intent intent = labeledIntent.intent; in create_notForeignText()
|
D | LegacyIntentClassificationFactoryTest.java | 79 LabeledIntent labeledIntent = intents.get(0); in create_typeDictionary() local 80 Intent intent = labeledIntent.intent; in create_typeDictionary()
|
/frameworks/base/core/java/android/view/textclassifier/intent/ |
D | LabeledIntent.java | 47 (labeledIntent, resolveInfo) -> { 48 if (!TextUtils.isEmpty(labeledIntent.titleWithEntity)) { 49 return labeledIntent.titleWithEntity; 51 return labeledIntent.titleWithoutEntity; 216 CharSequence chooseTitle(LabeledIntent labeledIntent, ResolveInfo resolveInfo); in chooseTitle() argument
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | ActionsSuggestionsHelper.java | 157 return (labeledIntent, resolveInfo) -> { in createTitleChooser() 159 return labeledIntent.titleWithEntity; in createTitleChooser() 162 return labeledIntent.titleWithEntity; in createTitleChooser() 164 return labeledIntent.titleWithoutEntity; in createTitleChooser()
|
D | TextClassifierImpl.java | 670 (labeledIntent, resolveInfo) -> labeledIntent.titleWithoutEntity; in createClassificationResult() 672 for (LabeledIntent labeledIntent : labeledIntents) { in createClassificationResult() 674 labeledIntent.resolve(mContext, titleChooser, textLanguagesBundle); in createClassificationResult() 689 mContext, intent, labeledIntent.requestCode))); in createClassificationResult()
|