/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregator.java | 97 final ContactMatcher matcher = new ContactMatcher(); in aggregateContact() local 102 matcher.clear(); in aggregateContact() 104 contactId = pickBestMatchBasedOnExceptions(db, rawContactId, matcher); in aggregateContact() 111 contactId = pickBestMatchBasedOnData(db, rawContactId, candidates, matcher); in aggregateContact() 551 ContactMatcher matcher) { in pickBestMatchBasedOnExceptions() argument 586 matcher.keepIn(contactId); in pickBestMatchBasedOnExceptions() 588 matcher.keepOut(contactId); in pickBestMatchBasedOnExceptions() 596 return matcher.pickBestMatch(MatchScore.MAX_SCORE, true); in pickBestMatchBasedOnExceptions() 614 MatchCandidateList candidates, ContactMatcher matcher) { in pickBestMatchBasedOnData() argument 617 long bestMatch = updateMatchScoresBasedOnDataMatches(db, rawContactId, matcher); in pickBestMatchBasedOnData() [all …]
|
D | ContactAggregator2.java | 113 RawContactMatcher matcher = new RawContactMatcher(); in aggregateContact() local 122 matcher); in aggregateContact() 211 rawContactId, MatchCandidateList candidates, RawContactMatcher matcher) { in findRawContactMatchingCandidates() argument 212 updateMatchScores(db, rawContactId, candidates, matcher); in findRawContactMatchingCandidates() 214 matcher.pickBestMatches()); in findRawContactMatchingCandidates() 502 RawContactMatcher matcher) { in updateMatchScoresBasedOnExceptions() argument 541 matcher.keepIn(rId, contactId, accountId); in updateMatchScoresBasedOnExceptions() 543 matcher.keepOut(rId, contactId, accountId); in updateMatchScoresBasedOnExceptions() 556 RawContactMatcher matcher) { in updateMatchScoresBasedOnIdentityMatch() argument 570 matcher.matchIdentity(rId, contactId, accountId); in updateMatchScoresBasedOnIdentityMatch() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/ |
D | BluetoothNameUtils.java | 46 Matcher matcher = NAME_PATTERN.matcher(bluetoothName); in getSetupType() local 47 if (!matcher.matches()) { in getSetupType() 51 String typeStr = matcher.group(1); in getSetupType() 70 Matcher matcher = NAME_PATTERN.matcher(bluetoothName); in getColorConfiguration() local 71 if (!matcher.matches()) { in getColorConfiguration() 75 final String cs = matcher.group(3); in getColorConfiguration() 79 final Matcher cm = COLOR_PATTERN.matcher(cs); in getColorConfiguration() 98 Matcher matcher = NAME_PATTERN.matcher(name); in isValidName() local 99 return matcher.matches(); in isValidName()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | DialerVvmConfigManager.java | 42 final CarrierIdentifierMatcher matcher; field in DialerVvmConfigManager.ConfigEntry 45 ConfigEntry(CarrierIdentifierMatcher matcher, PersistableBundle config) { in ConfigEntry() argument 46 this.matcher = matcher; in ConfigEntry() 57 if (!(matcher.gid1().isPresent() && other.matcher.gid1().isPresent())) { in compareTo() 58 if (matcher.gid1().isPresent()) { in compareTo() 60 } else if (other.matcher.gid1().isPresent()) { in compareTo() 66 comparisonChain = comparisonChain.compare(matcher.gid1().get(), other.matcher.gid1().get()); in compareTo() 69 return comparisonChain.compare(matcher.mccMnc(), other.matcher.mccMnc()).result(); in compareTo() 117 if (configEntry.matcher.matches(carrierIdentifier)) { in getConfig()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/provider/ |
D | Query.java | 122 Matcher matcher = PATTERN_EPISODE.matcher(filePath); in parseEpisode() local 123 if (matcher.find()) { in parseEpisode() 124 MatchResult matchResult = matcher.toMatchResult(); in parseEpisode() 148 Matcher matcher = PATTERN_MOVIE.matcher(filePath); in parseMovie() local 149 if (matcher.find()) { in parseMovie() 150 MatchResult matchResult = matcher.toMatchResult(); in parseMovie() 163 return PATTERN_CLEANUP.matcher(string).replaceAll(" ").trim(); in cleanup()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | LegacyApiSupport.java | 265 UriMatcher matcher = sUriMatcher; 268 matcher.addURI(authority, "extensions", EXTENSIONS); in matcher.addURI() 269 matcher.addURI(authority, "extensions/#", EXTENSIONS_ID); in matcher.addURI() 270 matcher.addURI(authority, "groups", GROUPS); in matcher.addURI() 271 matcher.addURI(authority, "groups/#", GROUPS_ID); in matcher.addURI() 272 matcher.addURI(authority, "groups/name/*/members", GROUP_NAME_MEMBERS); in matcher.addURI() 275 matcher.addURI(authority, "groups/system_id/*/members", GROUP_SYSTEM_ID_MEMBERS); in matcher.addURI() 278 matcher.addURI(authority, "groupmembership", GROUPMEMBERSHIP); in matcher.addURI() 279 matcher.addURI(authority, "groupmembership/#", GROUPMEMBERSHIP_ID); in matcher.addURI() 281 matcher.addURI(authority, "people", PEOPLE); in matcher.addURI() [all …]
|
D | ContactsProvider2.java | 1150 final UriMatcher matcher = sUriMatcher; 1155 matcher.addURI(ContactsContract.AUTHORITY, "contacts", CONTACTS); in matcher.addURI() 1156 matcher.addURI(ContactsContract.AUTHORITY, "contacts/#", CONTACTS_ID); in matcher.addURI() 1157 matcher.addURI(ContactsContract.AUTHORITY, "contacts/#/data", CONTACTS_ID_DATA); in matcher.addURI() 1158 matcher.addURI(ContactsContract.AUTHORITY, "contacts/#/entities", CONTACTS_ID_ENTITIES); in matcher.addURI() 1159 matcher.addURI(ContactsContract.AUTHORITY, "contacts/#/suggestions", in matcher.addURI() 1161 matcher.addURI(ContactsContract.AUTHORITY, "contacts/#/suggestions/*", in matcher.addURI() 1163 matcher.addURI(ContactsContract.AUTHORITY, "contacts/#/photo", CONTACTS_ID_PHOTO); in matcher.addURI() 1164 matcher.addURI(ContactsContract.AUTHORITY, "contacts/#/display_photo", in matcher.addURI() 1168 matcher.addURI(ContactsContract.AUTHORITY, "contacts_corp/#/photo", CONTACTS_ID_PHOTO_CORP); in matcher.addURI() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | Matchers.java | 21 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 38 public static boolean present(Matcher<View> matcher) { in present() argument 39 return present(onView(matcher), isDisplayed()); in present() 42 public static boolean present(ViewInteraction vi, Matcher<View> matcher) { in present() argument 44 vi.check(matches(matcher)); in present()
|
D | SortBot.java | 21 import static androidx.test.espresso.matcher.ViewMatchers.isDescendantOfA; 22 import static androidx.test.espresso.matcher.ViewMatchers.withChild; 23 import static androidx.test.espresso.matcher.ViewMatchers.withContentDescription; 24 import static androidx.test.espresso.matcher.ViewMatchers.withId; 25 import static androidx.test.espresso.matcher.ViewMatchers.withParent; 26 import static androidx.test.espresso.matcher.ViewMatchers.withText;
|
D | UiBot.java | 22 import static androidx.test.espresso.matcher.ViewMatchers.hasFocus; 23 import static androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom; 24 import static androidx.test.espresso.matcher.ViewMatchers.withClassName; 25 import static androidx.test.espresso.matcher.ViewMatchers.withId; 26 import static androidx.test.espresso.matcher.ViewMatchers.withText; 51 import androidx.test.espresso.matcher.BoundedMatcher; 52 import androidx.test.espresso.matcher.ViewMatchers;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
D | GoogleSuggestionProvider.java | 120 UriMatcher matcher = new UriMatcher(UriMatcher.NO_MATCH); in buildUriMatcher() local 121 matcher.addURI(authority, SearchManager.SUGGEST_URI_PATH_QUERY, in buildUriMatcher() 123 matcher.addURI(authority, SearchManager.SUGGEST_URI_PATH_QUERY + "/*", in buildUriMatcher() 125 matcher.addURI(authority, SearchManager.SUGGEST_URI_PATH_SHORTCUT, in buildUriMatcher() 127 matcher.addURI(authority, SearchManager.SUGGEST_URI_PATH_SHORTCUT + "/*", in buildUriMatcher() 129 return matcher; in buildUriMatcher()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ItemInfoMatcher.java | 72 default ItemInfoMatcher or(ItemInfoMatcher matcher) { in or() argument 73 return (info, cn) -> matches(info, cn) || matcher.matches(info, cn); in or() 79 default ItemInfoMatcher and(ItemInfoMatcher matcher) { in and() argument 80 return (info, cn) -> matches(info, cn) && matcher.matches(info, cn); in and() 87 static ItemInfoMatcher not(ItemInfoMatcher matcher) { in not() argument 88 return (info, cn) -> !matcher.matches(info, cn); in not()
|
/packages/apps/Dialer/java/com/android/dialer/i18n/ |
D | DialerBidiFormatter.java | 62 Matcher matcher = Patterns.PHONE.matcher(text.toString()); in format() local 65 while (matcher.find()) { in format() 66 int start = matcher.start(); in format() 67 int end = matcher.end(); in format()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/password/ |
D | SetupChooseLockPasswordAppTest.java | 23 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 24 import static androidx.test.espresso.matcher.ViewMatchers.isEnabled; 25 import static androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility; 26 import static androidx.test.espresso.matcher.ViewMatchers.withId; 27 import static androidx.test.espresso.matcher.ViewMatchers.withText; 40 import androidx.test.espresso.matcher.ViewMatchers;
|
D | ChooseLockPasswordTest.java | 22 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 23 import static androidx.test.espresso.matcher.ViewMatchers.isEnabled; 24 import static androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility; 25 import static androidx.test.espresso.matcher.ViewMatchers.withId; 40 import androidx.test.espresso.matcher.ViewMatchers;
|
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/calendarsync/ |
D | CalendarImporter.java | 152 Matcher matcher = CALENDAR_ID_PATTERN.matcher(uri.toString()); in createCalendar() local 153 return matcher.matches() in createCalendar() 154 ? Integer.valueOf(matcher.group(CALENDAR_ID_GROUP)) in createCalendar() 194 Matcher matcher = EVENT_ID_PATTERN.matcher(eventRowUri.toString()); in insertEvent() local 195 if (!matcher.matches()) { in insertEvent() 201 String eventId = matcher.group(EVENT_ID_GROUP); in insertEvent()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | SmsReleaseStorage.java | 70 final Matcher matcher = DURATION_PATTERN.matcher(smsAutoDeleteMessageRetainingDuration); in parseMessageRetainingDuration() local 72 if (matcher.matches()) { in parseMessageRetainingDuration() 74 Integer.parseInt(matcher.group(1)), in parseMessageRetainingDuration() 75 matcher.group(2).charAt(0)); in parseMessageRetainingDuration()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/ |
D | AppNotificationSettingsTest.java | 26 import static androidx.test.espresso.intent.matcher.IntentMatchers.hasExtra; 27 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 28 import static androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility; 29 import static androidx.test.espresso.matcher.ViewMatchers.withId; 30 import static androidx.test.espresso.matcher.ViewMatchers.withText; 48 import androidx.test.espresso.matcher.ViewMatchers;
|
/packages/apps/CarrierConfig/src/com/android/carrierconfig/ |
D | DefaultCarrierConfigService.java | 330 Matcher matcher = imsiPattern.matcher(currentImsi); in matchOnImsi() local 331 matchFound = matcher.matches(); in matchOnImsi() 354 Matcher matcher = spPattern.matcher(currentSP); in matchOnSP() local 355 matchFound = matcher.matches(); in matchOnSP()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/accessibility/ |
D | AccessibilityShortcutPreferenceFragmentTest.java | 21 import static androidx.test.espresso.matcher.ViewMatchers.hasDescendant; 22 import static androidx.test.espresso.matcher.ViewMatchers.isChecked; 23 import static androidx.test.espresso.matcher.ViewMatchers.isNotChecked; 24 import static androidx.test.espresso.matcher.ViewMatchers.withParent; 25 import static androidx.test.espresso.matcher.ViewMatchers.withText;
|
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/ |
D | TestableNetworkCallbackTest.kt | 107 val matcher = makeHasNetwork(101) in <lambda>() constant 111 assertFails { mCallback.expectCapabilitiesWith(NOT_METERED, matcher, SHORT_TIMEOUT_MS) } in <lambda>() 112 assertFails { mCallback.expectCapabilitiesWithout(NOT_METERED, matcher, SHORT_TIMEOUT_MS) } in <lambda>() 116 mCallback.expectCapabilitiesWith(NOT_METERED, matcher) in <lambda>() 118 assertFails { mCallback.expectCapabilitiesWithout(NOT_METERED, matcher, SHORT_TIMEOUT_MS) } in <lambda>() 122 assertFails { mCallback.expectCapabilitiesWith(NOT_METERED, matcher, SHORT_TIMEOUT_MS) } in <lambda>() 124 mCallback.expectCapabilitiesWithout(NOT_METERED, matcher) in <lambda>()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | SpannableStringUtils.java | 160 final Matcher matcher = Pattern.compile(regex).matcher(charSequence); in split() local 163 while (matcher.find()) { in split() 164 sequences.add(charSequence.subSequence(nextStart, matcher.start())); in split() 165 nextStart = matcher.end(); in split()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/ |
D | ManagedProfileTest.java | 20 import static androidx.test.espresso.matcher.ViewMatchers.withClassName; 21 import static androidx.test.espresso.matcher.ViewMatchers.withId; 22 import static androidx.test.espresso.matcher.ViewMatchers.withText; 166 private void handleFailure(Throwable e, Matcher<View> matcher) { in handleFailure() argument 171 new DefaultFailureHandler(getContext()).handle(e, matcher); in handleFailure()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | MigrateSystemAppsSnapshotTask.java | 68 Matcher matcher = XML_FILE_NAME_PATTERN.matcher(fileName); in migrateIfNecessary() local 69 if (!matcher.find()) { in migrateIfNecessary() 74 int userId = Integer.parseInt(matcher.group(1)); in migrateIfNecessary()
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/individual/ |
D | IndividualPickerActivityTest.java | 24 import static androidx.test.espresso.intent.matcher.ComponentNameMatchers.hasClassName; 25 import static androidx.test.espresso.intent.matcher.IntentMatchers.hasAction; 26 import static androidx.test.espresso.intent.matcher.IntentMatchers.hasComponent; 27 import static androidx.test.espresso.intent.matcher.IntentMatchers.hasExtra; 28 import static androidx.test.espresso.matcher.ViewMatchers.isChecked; 29 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 30 import static androidx.test.espresso.matcher.ViewMatchers.withId; 31 import static androidx.test.espresso.matcher.ViewMatchers.withText;
|