Home
last modified time | relevance | path

Searched refs:getLabel (Results 1 – 25 of 201) sorted by relevance

123456789

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactLocaleUtilsTest.java117 private String getLabel(String name) { in getLabel() method in ContactLocaleUtilsTest
132 assertEquals("#", getLabel(PHONE_NUMBER_1)); in testEnglishContactLocaleUtils()
133 assertEquals("#", getLabel(PHONE_NUMBER_2)); in testEnglishContactLocaleUtils()
134 assertEquals("J", getLabel(LATIN_NAME)); in testEnglishContactLocaleUtils()
135 assertEquals("\u2026", getLabel(CHINESE_NAME)); in testEnglishContactLocaleUtils()
136 assertEquals("D", getLabel(CHINESE_LATIN_MIX_NAME_1)); in testEnglishContactLocaleUtils()
137 assertEquals("B", getLabel("Bob Smith")); in testEnglishContactLocaleUtils()
139 assertEquals("\u0646", getLabel(ARABIC_NAME)); in testEnglishContactLocaleUtils()
140 assertEquals("\u0408", getLabel(SERBIAN_NAME)); in testEnglishContactLocaleUtils()
143 assertEquals("\u0406", getLabel(UKRAINIAN_NAME)); in testEnglishContactLocaleUtils()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/
DTargetPresentationGetterTest.kt68 assertThat(presentationGetter.getLabel()).isEqualTo("app_label") in testActivityInfoLabels_noSubstitutePermission_distinctRequestedLabelAndSublabel()
75 assertThat(presentationGetter.getLabel()).isEqualTo("app_label") in testActivityInfoLabels_noSubstitutePermission_sameRequestedLabelAndSublabel()
86 assertThat(presentationGetter.getLabel()).isNull() in testActivityInfoLabels_noSubstitutePermission_nullRequestedLabel()
93 assertThat(presentationGetter.getLabel()).isEqualTo("") in testActivityInfoLabels_noSubstitutePermission_emptyRequestedLabel()
100 assertThat(presentationGetter.getLabel()).isEqualTo("app_label") in testActivityInfoLabels_noSubstitutePermission_emptyRequestedSublabel()
109 assertThat(presentationGetter.getLabel()).isEqualTo("activity_label") in testActivityInfoLabels_withSubstitutePermission_distinctRequestedLabelAndSublabel()
121 assertThat(presentationGetter.getLabel()).isEqualTo("app_label") in testActivityInfoLabels_withSubstitutePermission_sameRequestedLabelAndSublabel()
129 assertThat(presentationGetter.getLabel()).isEqualTo("app_label") in testActivityInfoLabels_withSubstitutePermission_nullRequestedLabel()
142 assertThat(presentationGetter.getLabel()).isEqualTo("") in testActivityInfoLabels_withSubstitutePermission_emptyRequestedLabel()
149 assertThat(presentationGetter.getLabel()).isEqualTo("activity_label") in testActivityInfoLabels_withSubstitutePermission_emptyRequestedSublabel()
[all …]
/packages/apps/Settings/src/com/android/settings/print/
DPrintJobPreferenceController.java53 R.string.print_configuring_state_title_template, info.getLabel())); in updateUi()
60 R.string.print_printing_state_title_template, info.getLabel())); in updateUi()
63 R.string.print_cancelling_state_title_template, info.getLabel())); in updateUi()
70 R.string.print_failed_state_title_template, info.getLabel())); in updateUi()
77 R.string.print_blocked_state_title_template, info.getLabel())); in updateUi()
80 R.string.print_cancelling_state_title_template, info.getLabel())); in updateUi()
/packages/apps/Settings/src/com/android/settings/notification/app/
DConversationListPreferenceController.java136 ? BidiFormatter.getInstance().unicodeWrap(si.getLabel()) in getTitle()
175 if (o1.getShortcutInfo().getLabel() == null
176 && o2.getShortcutInfo().getLabel() != null) {
179 if (o1.getShortcutInfo().getLabel() != null
180 && o2.getShortcutInfo().getLabel() == null) {
183 return sCollator.compare(o1.getShortcutInfo().getLabel().toString(),
184 o2.getShortcutInfo().getLabel().toString());
DRecentConversationsPreferenceController.java218 return si.getLabel(); in getTitle()
249 if (o1.getShortcutInfo().getLabel() != null
250 && o2.getShortcutInfo().getLabel() != null) {
252 o1.getShortcutInfo().getLabel().toString(),
253 o2.getShortcutInfo().getLabel().toString());
DConversationHeaderPreferenceController.java85 .setLabel(getLabel()) in updateState()
127 CharSequence getLabel() { in getLabel() method in ConversationHeaderPreferenceController
130 label = mConversationInfo.getLabel(); in getLabel()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DExpectedKeyVisual.java41 public abstract String getLabel(); in getLabel() method in ExpectedKeyVisual
66 public String getLabel() { in getLabel() method in ExpectedKeyVisual.Icon
89 return mIconId == key.getIconId() && key.getLabel() == null; in hasSameKeyVisual()
132 public String getLabel() { in getLabel() method in ExpectedKeyVisual.Label
155 return mLabel.equals(key.getLabel()) in hasSameKeyVisual()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DRecentTasksListTest.java84 assertNull(taskList.get(0).task1.taskDescription.getLabel()); in loadTasksInBackground_onlyKeys_noValidTaskDescription()
85 assertNull(taskList.get(0).task2.taskDescription.getLabel()); in loadTasksInBackground_onlyKeys_noValidTaskDescription()
104 assertEquals(taskDescription, taskList.get(0).task1.taskDescription.getLabel()); in loadTasksInBackground_moreThanKeys_hasValidTaskDescription()
105 assertNull(taskList.get(0).task2.taskDescription.getLabel()); in loadTasksInBackground_moreThanKeys_hasValidTaskDescription()
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DEventDataItem.java38 public String getLabel() { in getLabel() method in EventDataItem
56 && !TextUtils.equals(getLabel(), that.getLabel())) { in shouldCollapseWith()
DRelationDataItem.java38 public String getLabel() { in getLabel() method in RelationDataItem
56 && !TextUtils.equals(getLabel(), that.getLabel())) { in shouldCollapseWith()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DRelationDataItem.java39 public String getLabel() { in getLabel() method in RelationDataItem
57 !TextUtils.equals(getLabel(), that.getLabel())) { in shouldCollapseWith()
DEventDataItem.java39 public String getLabel() { in getLabel() method in EventDataItem
57 !TextUtils.equals(getLabel(), that.getLabel())) { in shouldCollapseWith()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DComponentWithLabel.java33 CharSequence getLabel(PackageManager pm); in getLabel() method
60 public CharSequence getLabel(@NonNull T object) { in getLabel() method in ComponentWithLabel.ComponentCachingLogic
61 return object.getLabel(mPackageManager); in getLabel()
DLauncherActivityCachingLogic.java59 public CharSequence getLabel(@NonNull LauncherActivityInfo object) { in getLabel() method in LauncherActivityCachingLogic
60 return object.getLabel(); in getLabel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DConversationHeaderPreferenceControllerTest.java121 when(si.getLabel()).thenReturn("hello"); in testGetLabel()
124 assertEquals(si.getLabel(), mController.getLabel()); in testGetLabel()
128 assertEquals(channel.getName(), mController.getLabel()); in testGetLabel()
131 assertNull(mController.getLabel()); in testGetLabel()
DRecentConversationsPreferenceControllerTest.java146 when(si.getLabel()).thenReturn("person"); in getSummary_withGroup()
161 when(si.getLabel()).thenReturn("person"); in getSummary_noGroup()
174 when(si.getLabel()).thenReturn("person"); in getTitle_withShortcut()
180 assertThat(mController.getTitle(ccw).toString()).isEqualTo(si.getLabel()); in getTitle_withShortcut()
319 when(si.getLabel()).thenReturn(new SpannedString("hello")); in testSpans()
325 when(si2.getLabel()).thenReturn("hello"); in testSpans()
DHeaderPreferenceControllerTest.java121 assertEquals(appRow.label, mController.getLabel()); in testGetLabel()
125 assertEquals(appRow.label, mController.getLabel()); in testGetLabel()
129 assertEquals(channel.getName(), mController.getLabel()); in testGetLabel()
134 assertEquals(appRow.label, mController.getLabel()); in testGetLabel()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/action/
DActionTestsBase.java69 public String getLabel() { return mVisual.getLabel(); } in getLabel() method in ActionTestsBase.ExpectedActionKey
85 assertEquals(tag + " label " + expectedKey, expectedKey.getLabel(), actualKey.getLabel()); in assertActionKey()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DContactDataHandlerTest.java133 assertThat(contactPoints[0].getLabel()).isEqualTo(label); in testConvertCurrentRowToPerson_labelCustom_typeCustom()
168 assertThat(contactPoints[0].getLabel()).isEqualTo(expectedLabel); in testConvertCurrentRowToPerson_labelIsNull_typeCustom()
201 assertThat(contactPoints[0].getLabel()).isEqualTo(label); in testConvertCurrentRowToPerson_labelIsNull_typeHome()
233 assertThat(contactPoints[0].getLabel()).isEqualTo(label); in testConvertCurrentRowToPerson_email()
312 assertThat(contactPoints[0].getLabel()).isEqualTo(label); in testPhoneNumber_generatesAllVariants_withE164FormatInCP2_oneDigitUS()
345 assertThat(contactPoints[0].getLabel()).isEqualTo(label); in testPhoneNumber_generatesAllVariants_withE164FormatInCP2_oneDigitDO()
381 assertThat(contactPoints[0].getLabel()).isEqualTo(label); in testPhoneNumber_generatesAllVariants_withE164FormatInCP2_twoDigitCN()
415 assertThat(contactPoints[0].getLabel()).isEqualTo(label); in testPhoneNumber_generatesAllVariants_withE164FormatInCP2_twoDigitES()
449 assertThat(contactPoints[0].getLabel()).isEqualTo(label); in testPhoneNumber_generatesAllVariants_withE164FormatInCP2_threeDigitBG()
481 assertThat(contactPoints[0].getLabel()).isEqualTo(label); in testPhone_generatesAllVariants_withoutE164FormatInCP2_withoutFallback()
[all …]
/packages/services/Car/tests/MultiDisplaySecondaryHomeTestLauncher/src/com/android/car/multidisplay/launcher/
DAppEntry.java33 .comparing(AppEntry::getLabel, String::compareToIgnoreCase);
47 String getLabel() { in getLabel() method in AppEntry
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
DListViewService.java58 views.setTextViewText(android.R.id.text1, getLabel(i)); in getViewAt()
62 public String getLabel(int i) { in getLabel() method in ListViewService.SimpleViewsFactory
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DPhoneAccountUtils.java33 if (account != null && account.getLabel() != null) { in getAccountLabel()
34 return account.getLabel().toString(); in getAccountLabel()
/packages/apps/Settings/src/com/android/settings/
DAppWidgetLoader.java42 CharSequence getLabel(); in getLabel() method
164 return mCollator.compare(lhs.getLabel(), rhs.getLabel()); in getItems()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DMoreSuggestions.java73 word = suggestedWords.getLabel(SuggestedWords.INDEX_OF_TYPED_WORD); in layout()
75 word = suggestedWords.getLabel(index); in layout()
216 word = mSuggestedWords.getLabel(SuggestedWords.INDEX_OF_TYPED_WORD); in build()
219 word = mSuggestedWords.getLabel(index); in build()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DPunctuationSuggestions.java86 public String getLabel(final int index) { in getLabel() method in PunctuationSuggestions
88 return KeySpecParser.getLabel(keySpec); in getLabel()

123456789