/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/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/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/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/providers/MediaProvider/src/com/android/providers/media/util/ |
D | FileUtils.java | 592 final Matcher dcfStrict = PATTERN_DCF_STRICT.matcher(name); in buildUniqueNameIterator() 611 final Matcher dcfRelaxed = PATTERN_DCF_RELAXED.matcher(name); in buildUniqueNameIterator() 943 return PATTERN_DOWNLOADS_FILE.matcher(path).matches(); 947 return PATTERN_DOWNLOADS_DIRECTORY.matcher(path).matches(); 1057 final Matcher matcher = PATTERN_USER_ID.matcher(data); 1058 if (matcher.find()) { 1059 return Integer.parseInt(matcher.group(1)); 1067 final Matcher matcher = PATTERN_RELATIVE_PATH.matcher(data); 1068 if (matcher.find()) { 1069 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/apps/Launcher3/robolectric_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/ |
D | LogEntryMatcher_test.cpp | 116 AtomMatcher matcher; in TEST() local 117 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() 141 AtomMatcher matcher; in TEST() local 142 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() 370 AtomMatcher matcher; in TEST() local 371 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() 413 AtomMatcher matcher; in TEST() local 414 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() 474 AtomMatcher matcher; in TEST() local 475 auto 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()
|
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;
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 222 Matcher m = CONTENT_DISPOSITION_PATTERN.matcher(contentDisposition); in parseContentDisposition() 517 return PATTERN_ANDROID_DIRS.matcher(filePath).matches(); in isFileInExternalAndroidDirs() 581 final Matcher matcher = PATTERN_PUBLIC_DIRS.matcher(filePath); in isFilenameValidInKnownPublicDir() local 582 if (matcher.matches()) { in isFilenameValidInKnownPublicDir() 583 final String publicDir = matcher.group(1); in isFilenameValidInKnownPublicDir() 646 final Matcher matcher = PATTERN_VOLUME_NAME.matcher(data); in extractVolumeName() 647 if (matcher.find()) { in extractVolumeName() 648 final String volumeName = matcher.group(1); in extractVolumeName() 665 final Matcher matcher = PATTERN_RELATIVE_PATH.matcher(data); in extractRelativePath() 666 if (matcher.find()) { in extractRelativePath() [all …]
|
/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/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/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/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 …]
|
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/ |
D | EspressoPreferenceUtils.kt | 27 import androidx.test.espresso.matcher.ViewMatchers.hasDescendant 28 import androidx.test.espresso.matcher.ViewMatchers.hasSibling 29 import androidx.test.espresso.matcher.ViewMatchers.withId 30 import androidx.test.espresso.matcher.ViewMatchers.withResourceName 31 import androidx.test.espresso.matcher.ViewMatchers.withText
|
/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()
|
/packages/apps/Settings/tests/legacy_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; 41 import androidx.test.espresso.matcher.ViewMatchers;
|
/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/ui/activecall/ |
D | OnGoingCallControllerBarFragmentTest.java | 21 import static androidx.test.espresso.matcher.ViewMatchers.isClickable; 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.isNotClickable; 25 import static androidx.test.espresso.matcher.ViewMatchers.isNotEnabled; 26 import static androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility; 27 import static androidx.test.espresso.matcher.ViewMatchers.withId; 48 import androidx.test.espresso.matcher.ViewMatchers;
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/actions/ |
D | ViewActions.java | 27 public static ViewAction waitForView(Matcher<View> matcher, long waitTimeMillis) { in waitForView() argument 28 return new WaitForViewAction(matcher, waitTimeMillis); in waitForView() 31 public static ViewAction waitForView(Matcher<View> matcher) { in waitForView() argument 32 return new WaitForViewAction(matcher, 500); in waitForView()
|
/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()
|