/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | CharMatcher.java | 132 @Override public boolean matches(char c) { 144 @Override public boolean matches(char c) { 154 @Override public boolean matches(char c) { 164 @Override public boolean matches(char c) { 174 @Override public boolean matches(char c) { 243 @Override public boolean matches(char c) { 310 @Override public boolean matches(char c) { 381 @Override public boolean matches(char c) { in is() 390 return other.matches(match) ? this : NONE; in is() 393 return other.matches(match) ? other : super.or(other); in is() [all …]
|
D | Splitter.java | 204 checkArgument(!separatorPattern.matcher("").matches(), 386 while (start < end && trimmer.matches(toSplit.charAt(start))) { 389 while (end > start && trimmer.matches(toSplit.charAt(end - 1))) {
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
D | RawContactMatcher.java | 310 final List<MatchScore> matches = new ArrayList<>(); in pickBestMatches() local 318 matches.add(score); in pickBestMatches() 325 matches.add(score); in pickBestMatches() 328 return matches; in pickBestMatches() 336 List<MatchScore> matches = mScoreList.subList(0, mScoreCount); in pickBestMatches() local 337 Collections.sort(matches); in pickBestMatches() 340 MatchScore matchScore = matches.get(i); in pickBestMatches() 348 return matches.subList(0, count); in pickBestMatches()
|
D | NameDistance.java | 110 int matches = 0; in getDistance() local 127 matches++; in getDistance() 133 if (matches == 0) { in getDistance() 151 float m = matches; in getDistance()
|
D | ContactMatcher.java | 349 List<MatchScore> matches = mScoreList.subList(0, mScoreCount); in pickBestMatches() local 350 Collections.sort(matches); in pickBestMatches() 353 MatchScore matchScore = matches.get(i); in pickBestMatches() 361 return matches.subList(0, count); in pickBestMatches()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | ResolveCache.java | 134 final List<ResolveInfo> matches = mPackageManager.queryIntentActivities(intent, in getEntry() local 139 final int size = matches.size(); in getEntry() 141 bestResolve = matches.get(0); in getEntry() 143 bestResolve = getBestResolve(intent, matches); in getEntry() 167 protected ResolveInfo getBestResolve(Intent intent, List<ResolveInfo> matches) { in getBestResolve() argument 181 for (ResolveInfo info : matches) { in getBestResolve() 192 return firstSystem != null ? firstSystem : matches.get(0); in getBestResolve()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AllAppsList.java | 90 final List<LauncherActivityInfo> matches = launcherApps.getActivityList(packageName, in addPackage() local 93 for (LauncherActivityInfo info : matches) { in addPackage() 121 final List<LauncherActivityInfo> matches = launcherApps.getActivityList(packageName, in updatePackage() local 123 if (matches.size() > 0) { in updatePackage() 131 if (!findActivity(matches, component, user)) { in updatePackage() 141 int count = matches.size(); in updatePackage() 143 final LauncherActivityInfo info = matches.get(i); in updatePackage()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | AllAppsList.java | 98 final List<LauncherActivityInfoCompat> matches = launcherApps.getActivityList(packageName, in addPackage() local 101 for (LauncherActivityInfoCompat info : matches) { in addPackage() 136 final List<LauncherActivityInfoCompat> matches = launcherApps.getActivityList(packageName, in updatePackage() local 138 if (matches.size() > 0) { in updatePackage() 146 if (!findActivity(matches, component)) { in updatePackage() 155 for (final LauncherActivityInfoCompat info : matches) { in updatePackage()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcDispatcher.java | 533 ArrayList<ResolveInfo> matches = new ArrayList<ResolveInfo>(); in tryTech() local 551 if (!matches.contains(info.resolveInfo)) { in tryTech() 552 matches.add(info.resolveInfo); in tryTech() 557 if (matches.size() == 1) { in tryTech() 559 ResolveInfo info = matches.get(0); in tryTech() 566 } else if (matches.size() > 1) { in tryTech() 571 matches); in tryTech()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 389 private static void findPhoneNumber(String text, String[] matches) { in findPhoneNumber() argument 394 if (results.length / 2 != matches.length) { in findPhoneNumber() 395 fail("Text '" + text + "': expected " + matches.length in findPhoneNumber() 401 assertEquals(matches[i], seq); in findPhoneNumber() 475 private static void findLinks(String text, URLSpan[] matches, boolean lastDitchGeo) { in findLinks() argument 478 assertEquals(matches.length, spansFound.length); in findLinks() 481 ArrayList<URLSpan> matchesArrayList = new ArrayList<URLSpan>(Arrays.asList(matches)); in findLinks()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/ |
D | BluetoothNameUtils.java | 47 if (!matcher.matches()) { in getSetupType() 71 if (!matcher.matches()) { in getColorConfiguration() 80 if (!cm.matches()) { in getColorConfiguration() 99 return matcher.matches(); in isValidName()
|
/packages/apps/Browser/src/com/android/browser/ |
D | UrlUtils.java | 65 if (m.matches()) { in stripUrl() 110 if (matcher.matches()) { in smartUrlFilter() 117 if (hasSpace && Patterns.WEB_URL.matcher(inUrl).matches()) { in smartUrlFilter() 123 if (Patterns.WEB_URL.matcher(inUrl).matches()) { in smartUrlFilter()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | LevenshteinSuggestionFormatter.java | 45 final int[] matches = findMatches(queryTokens, suggestionTokens); in formatSuggestion() local 49 Log.d(TAG, "matches = " + matches); in formatSuggestion() 53 final int matchesLen = matches.length; in formatSuggestion() 57 int thisMatch = matches[i]; in formatSuggestion()
|
/packages/apps/Dialer/tests/src/com/android/dialer/dialpad/ |
D | SmartDialNameMatcherTest.java | 256 final boolean matches = matcher.matchesCombination( in checkMatches() 263 + " matches=" + matches); in checkMatches() 264 assertEquals("matches", expectedMatches, matches); in checkMatches() 267 if (matches) { in checkMatches()
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | CombinedInputOutput.java | 61 return firstLine.matches( in isCombinedDictionary() 107 if (args[0].matches(CombinedFormatUtils.WORD_TAG + "=.*")) { in readDictionaryCombined() 151 } else if (args[0].matches(CombinedFormatUtils.SHORTCUT_TAG + "=.*")) { in readDictionaryCombined() 170 } else if (args[0].matches(CombinedFormatUtils.BIGRAM_TAG + "=.*")) { in readDictionaryCombined()
|
/packages/apps/Settings/src/com/android/settings/ |
D | TetherSettings.java | 366 if (s.matches(regex)) { in updateUsbState() 376 if (s.matches(regex)) usbTethered = true; in updateUsbState() 382 if (s.matches(regex)) usbErrored = true; in updateUsbState() 418 if (s.matches(regex)) bluetoothErrored = true; in updateBluetoothState() 615 if (iface.matches(regex)) { in findIface()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | MmsSmsUtils.java | 81 if (match.matches()) { in extractAddrSpec() 100 return match.matches(); in isEmailAddress() 115 return match.matches(); in isPhoneNumber()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | LevenshteinFormatterTest.java | 97 int[] matches = mFormatter.findMatches(sourceTokens, targetTokens); in verifyFindMatches() local 98 assertEquals(targetTokens.length, matches.length); in verifyFindMatches() 103 int sourceIdx = matches[i]; in verifyFindMatches()
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduComposer.java | 1243 if (address.matches(REGEXP_IPV4_ADDRESS_TYPE)) { in checkAddressType() 1246 } else if (address.matches(REGEXP_PHONE_NUMBER_ADDRESS_TYPE)) { in checkAddressType() 1249 } else if (address.matches(REGEXP_EMAIL_ADDRESS_TYPE)) { in checkAddressType() 1252 } else if (address.matches(REGEXP_IPV6_ADDRESS_TYPE)) { in checkAddressType()
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
D | SmtpSender.java | 141 boolean authLoginSupported = result.matches(".*AUTH.*LOGIN.*$"); in open() 142 boolean authPlainSupported = result.matches(".*AUTH.*PLAIN.*$"); in open() 143 boolean authOAuthSupported = result.matches(".*AUTH.*XOAUTH2.*$"); in open()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | WifiConfigHelper.java | 66 if (!Pattern.matches(REGEX_HEX_BSSID, ssid)) { in setConfigSsid() 143 if (!match.matches()) return R.string.proxy_error_invalid_host; in validate() 147 if (!m.matches()) return R.string.proxy_error_invalid_exclusion_list; in validate()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppLauncherActivity.java | 284 if (Patterns.WEB_URL.matcher(matchStr).matches()) { in creatFileForSharedContent() 298 } else if (Patterns.EMAIL_ADDRESS.matcher(matchStr).matches()) { in creatFileForSharedContent() 302 } else if (Patterns.PHONE.matcher(matchStr).matches()) { in creatFileForSharedContent()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapContent.java | 1019 Boolean alpha = PhoneNumberUtils.stripSeparators(tempAddress).matches( in setSenderAddressing() 1417 if (phone.matches(recip)) { in matchRecipientMms() 1422 if (name != null && name.length() > 0 && name.matches(recip)) { in matchRecipientMms() 1441 if (phone != null && phone.length() > 0 && phone.matches(recip)) { in matchRecipientSms() 1444 } else if (name != null && name.length() > 0 && name.matches(recip)) { in matchRecipientSms() 1453 if (phone.matches(recip)) { in matchRecipientSms() 1458 if (name != null && name.length() > 0 && name.matches(recip)) { in matchRecipientSms() 1497 if (phone.matches(orig)) { in matchOriginatorMms() 1502 if (name != null && name.length() > 0 && name.matches(orig)) { in matchOriginatorMms() 1521 if (phone.matches(orig)) { in matchOriginatorSms() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | DefaultAppSearchAlgorithm.java | 68 if (matches(info, queryWords)) { in getTitleMatchResult() 75 protected boolean matches(AppInfo info, String[] queryWords) { in matches() method in DefaultAppSearchAlgorithm
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | ExternalSource.java | 98 final List<ResolveInfo> matches = pm.queryIntentServices(syncAdapter, in inflate() local 100 for (ResolveInfo info : matches) { in inflate()
|