Home
last modified time | relevance | path

Searched refs:matcher (Results 1 – 25 of 155) sorted by relevance

1234567

/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator.java97 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 …]
DContactAggregator2.java113 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/
DBluetoothNameUtils.java46 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/
DDialerVvmConfigManager.java42 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/
DQuery.java122 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/
DLegacyApiSupport.java265 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 …]
DContactsProvider2.java1150 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/
DMatchers.java21 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()
DSortBot.java21 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;
DUiBot.java22 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/
DGoogleSuggestionProvider.java120 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/
DItemInfoMatcher.java72 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/services/Telephony/tests/src/com/android/phone/
DRoamingDialogFragmentTest.java23 import static androidx.test.espresso.matcher.ViewMatchers.hasDescendant;
24 import static androidx.test.espresso.matcher.ViewMatchers.isChecked;
25 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;
26 import static androidx.test.espresso.matcher.ViewMatchers.withId;
27 import static androidx.test.espresso.matcher.ViewMatchers.withText;
36 import androidx.test.espresso.matcher.PreferenceMatchers;
/packages/apps/Dialer/java/com/android/dialer/i18n/
DDialerBidiFormatter.java62 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/
DSetupChooseLockPasswordAppTest.java23 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;
DChooseLockPasswordTest.java22 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/Messaging/src/com/android/messaging/sms/
DSmsReleaseStorage.java70 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/
DAppNotificationSettingsTest.java26 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/UnifiedEmail/src/com/google/android/mail/common/base/
DSplitter.java204 checkArgument(!separatorPattern.matcher("").matches(),
210 final Matcher matcher = separatorPattern.matcher(toSplit);
213 return matcher.find(start) ? matcher.start() : -1;
217 return matcher.end();
/packages/apps/CarrierConfig/src/com/android/carrierconfig/
DDefaultCarrierConfigService.java297 Matcher matcher = imsiPattern.matcher(currentImsi); in matchOnImsi() local
298 matchFound = matcher.matches(); in matchOnImsi()
321 Matcher matcher = spPattern.matcher(currentSP); in matchOnSP() local
322 matchFound = matcher.matches(); in matchOnSP()
/packages/apps/Settings/tests/unit/src/com/android/settings/accessibility/
DAccessibilityShortcutPreferenceFragmentTest.java21 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSpannableStringUtils.java160 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/
DManagedProfileTest.java20 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/
DMigrateSystemAppsSnapshotTask.java68 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/providers/MediaProvider/src/com/android/providers/media/scan/
DPlaylistResolver.java125 final Matcher matcher = PATTERN_PLS.matcher(line); in resolvePlaylistPls() local
126 if (matcher.matches()) { in resolvePlaylistPls()
127 final int itemIndex = Integer.parseInt(matcher.group(1)); in resolvePlaylistPls()
128 final File itemFile = parentPath.resolve(matcher.group(2)).toFile(); in resolvePlaylistPls()

1234567