/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/le/ |
D | ScanRecordTest.java | 64 final Predicate<byte[]> matcher = (v) -> { in testMatchesAnyField_Eddystone_Parser() local 69 .matchesAnyField(matcher); in testMatchesAnyField_Eddystone_Parser() 81 final BytesMatcher matcher = BytesMatcher.decode("⊆0016AAFE/00FFFFFF"); in testMatchesAnyField_Eddystone() local 82 assertMatchesAnyField(RECORD_URL, matcher); in testMatchesAnyField_Eddystone() 83 assertMatchesAnyField(RECORD_UUID, matcher); in testMatchesAnyField_Eddystone() 84 assertMatchesAnyField(RECORD_TLM, matcher); in testMatchesAnyField_Eddystone() 85 assertMatchesAnyField(RECORD_E2EE_EID, matcher); in testMatchesAnyField_Eddystone() 86 assertNotMatchesAnyField(RECORD_IBEACON, matcher); in testMatchesAnyField_Eddystone() 91 final BytesMatcher matcher = BytesMatcher in testMatchesAnyField_Eddystone_ExceptE2eeEid() local 93 assertMatchesAnyField(RECORD_URL, matcher); in testMatchesAnyField_Eddystone_ExceptE2eeEid() [all …]
|
/packages/modules/StatsD/statsd/src/matchers/ |
D | matcher_util.cpp | 100 bool matchesSimple(const sp<UidMap>& uidMap, const FieldValueMatcher& matcher, in matchesSimple() argument 118 if (pos == matcher.field()) { in matchesSimple() 123 } else if (pos > matcher.field()) { in matchesSimple() 138 if (matcher.has_position()) { in matchesSimple() 144 switch (matcher.position()) { in matchesSimple() 198 switch (matcher.value_matcher_case()) { in matchesSimple() 204 for (const auto& subMatcher : matcher.matches_tuple().field_value_matcher()) { in matchesSimple() 221 (values[i].mValue.int_value != 0) == matcher.eq_bool()) || in matchesSimple() 223 (values[i].mValue.long_value != 0) == matcher.eq_bool())) { in matchesSimple() 231 if (tryMatchString(uidMap, values[i], matcher.eq_string())) { in matchesSimple() [all …]
|
D | CombinationAtomMatchingTracker.cpp | 50 AtomMatcher_Combination matcher = allAtomMatchers[mIndex].combination(); in init() local 53 if (!matcher.has_operation()) { in init() 57 mLogicalOperation = matcher.operation(); in init() 59 if (mLogicalOperation == LogicalOperation::NOT && matcher.matcher_size() != 1) { in init() 63 for (const auto& child : matcher.matcher()) { in init() 97 const AtomMatcher& matcher, const int index, in onConfigUpdated() argument 101 AtomMatcher_Combination combinationMatcher = matcher.combination(); in onConfigUpdated() 102 for (const int64_t child : combinationMatcher.matcher()) { in onConfigUpdated()
|
D | SimpleAtomMatchingTracker.cpp | 31 const SimpleAtomMatcher& matcher, in SimpleAtomMatchingTracker() argument 33 : AtomMatchingTracker(id, index, protoHash), mMatcher(matcher), mUidMap(uidMap) { in SimpleAtomMatchingTracker() 34 if (!matcher.has_atom_id()) { in SimpleAtomMatchingTracker() 37 mAtomIds.insert(matcher.atom_id()); in SimpleAtomMatchingTracker() 54 const AtomMatcher& matcher, const int index, in onConfigUpdated() argument
|
/packages/modules/StatsD/statsd/src/ |
D | FieldValue.cpp | 44 bool Field::matches(const Matcher& matcher) const { in matches() 45 if (mTag != matcher.mMatcher.getTag()) { in matches() 48 if ((mField & matcher.mMask) == matcher.mMatcher.getField()) { in matches() 52 if (matcher.hasAllPositionMatcher() && in matches() 53 (mField & (matcher.mMask & kClearAllPositionMatcherMask)) == matcher.mMatcher.getField()) { in matches() 60 void translateFieldMatcher(int tag, const FieldMatcher& matcher, int depth, int* pos, int* mask, in translateFieldMatcher() argument 67 pos[depth] = matcher.field(); in translateFieldMatcher() 70 if (matcher.has_position()) { in translateFieldMatcher() 75 switch (matcher.position()) { in translateFieldMatcher() 99 if (matcher.child_size() == 0) { in translateFieldMatcher() [all …]
|
/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/modules/Bluetooth/system/blueberry/tests/gd/cert/ |
D | behavior.py | 55 def begin(self, matcher): argument 56 return PersistenceStage(self, matcher, self._reply_stage_factory) 91 def wait_until_invoked(self, matcher, times, timeout): argument 96 invoked_times = sum((matcher(i) for i in self._invoked_obj)) 105 def __init__(self, behavior, matcher, reply_stage_factory): argument 107 self._matcher = matcher 121 def init(self, behavior, matcher, persistence): argument 123 self._matcher = matcher 132 def __init__(self, matcher, persistence, fn): argument 133 self._matcher = matcher [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | FileUtils.java | 591 final Matcher dcfStrict = PATTERN_DCF_STRICT.matcher(name); in buildUniqueNameIterator() 610 final Matcher dcfRelaxed = PATTERN_DCF_RELAXED.matcher(name); in buildUniqueNameIterator() 942 return PATTERN_DOWNLOADS_FILE.matcher(path).matches(); 946 return PATTERN_DOWNLOADS_DIRECTORY.matcher(path).matches(); 1079 final Matcher matcher = PATTERN_USER_ID.matcher(data); 1080 if (matcher.find()) { 1081 return Integer.parseInt(matcher.group(1)); 1089 final Matcher matcher = PATTERN_RELATIVE_PATH.matcher(data); 1090 if (matcher.find()) { 1091 return data.substring(0, matcher.end()); [all …]
|
/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/modules/StatsD/statsd/tests/ |
D | LogEntryMatcher_test.cpp | 146 AtomMatcher matcher; in TEST() local 147 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() 171 AtomMatcher matcher; in TEST() local 172 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() 402 AtomMatcher matcher; in TEST() local 403 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() 440 AtomMatcher matcher; in TEST() local 441 SimpleAtomMatcher* simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() 488 AtomMatcher matcher; in TEST() local 489 SimpleAtomMatcher* simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() [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()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/settings/ |
D | SettingsActivityTest.java | 25 import static androidx.test.espresso.intent.matcher.BundleMatchers.hasEntry; 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.hasDescendant; 29 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 30 import static androidx.test.espresso.matcher.ViewMatchers.withContentDescription; 31 import static androidx.test.espresso.matcher.ViewMatchers.withId; 32 import static androidx.test.espresso.matcher.ViewMatchers.withText;
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | metrics_test_helper.cpp | 46 void buildSimpleAtomFieldMatcher(const int tagId, FieldMatcher* matcher) { in buildSimpleAtomFieldMatcher() argument 47 matcher->set_field(tagId); in buildSimpleAtomFieldMatcher() 50 void buildSimpleAtomFieldMatcher(const int tagId, const int fieldNum, FieldMatcher* matcher) { in buildSimpleAtomFieldMatcher() argument 51 matcher->set_field(tagId); in buildSimpleAtomFieldMatcher() 52 matcher->add_child()->set_field(fieldNum); in buildSimpleAtomFieldMatcher()
|
/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/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/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/espresso/ |
D | AlbumsTabTest.java | 22 import static androidx.test.espresso.matcher.ViewMatchers.isDescendantOfA; 23 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 24 import static androidx.test.espresso.matcher.ViewMatchers.withContentDescription; 25 import static androidx.test.espresso.matcher.ViewMatchers.withId; 26 import static androidx.test.espresso.matcher.ViewMatchers.withParent; 27 import static androidx.test.espresso.matcher.ViewMatchers.withText;
|
D | ActiveProfileButtonTest.java | 23 import static androidx.test.espresso.matcher.ViewMatchers.isDescendantOfA; 24 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 25 import static androidx.test.espresso.matcher.ViewMatchers.isSelected; 26 import static androidx.test.espresso.matcher.ViewMatchers.withContentDescription; 27 import static androidx.test.espresso.matcher.ViewMatchers.withId; 28 import static androidx.test.espresso.matcher.ViewMatchers.withParent; 29 import static androidx.test.espresso.matcher.ViewMatchers.withText;
|
D | PhotosTabTest.java | 22 import static androidx.test.espresso.matcher.ViewMatchers.isDescendantOfA; 23 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 24 import static androidx.test.espresso.matcher.ViewMatchers.isSelected; 25 import static androidx.test.espresso.matcher.ViewMatchers.withContentDescription; 26 import static androidx.test.espresso.matcher.ViewMatchers.withId; 27 import static androidx.test.espresso.matcher.ViewMatchers.withParent; 28 import static androidx.test.espresso.matcher.ViewMatchers.withText;
|
D | NoItemsTest.java | 22 import static androidx.test.espresso.matcher.ViewMatchers.isDescendantOfA; 23 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 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;
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 228 Matcher m = CONTENT_DISPOSITION_PATTERN.matcher(contentDisposition); in parseContentDisposition() 523 return PATTERN_ANDROID_DIRS.matcher(filePath).matches(); in isFileInExternalAndroidDirs() 573 return PATTERN_ANDROID_PRIVATE_DIRS.matcher(file.getCanonicalPath()).matches(); in isFileInPrivateExternalAndroidDirs() 650 final Matcher matcher = PATTERN_PUBLIC_DIRS.matcher(filePath); in isFilenameValidInKnownPublicDir() local 651 if (matcher.matches()) { in isFilenameValidInKnownPublicDir() 652 final String publicDir = matcher.group(1); in isFilenameValidInKnownPublicDir() 715 final Matcher matcher = PATTERN_VOLUME_NAME.matcher(data); in extractVolumeName() 716 if (matcher.find()) { in extractVolumeName() 717 final String volumeName = matcher.group(1); in extractVolumeName() 734 final Matcher matcher = PATTERN_RELATIVE_PATH.matcher(data); in extractRelativePath() [all …]
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | CarVersionParser.java | 67 Matcher matcher = API_VERSION_REGEX.matcher(value); in parse() local 68 if (!matcher.matches()) { in parse() 76 int major = Integer.parseInt(matcher.group("major")); in parse() 77 String minorMatch = matcher.group("minor"); in parse()
|
/packages/providers/MediaProvider/src/com/android/providers/media/playlist/ |
D | PlsPlaylistPersister.java | 46 final Matcher matcher = PATTERN_PLS.matcher(line); in read() local 47 if (matcher.matches()) { in read() 48 final int index = Integer.parseInt(matcher.group(1)); in read() 49 final Path item = fs.getPath(matcher.group(2).replace('\\', '/')); in read()
|