/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | ContactsMatchers.java | 27 import org.hamcrest.Matcher; 44 public static Matcher<Cursor> hasMimeType(String type) { in hasMimeType() 48 public static Matcher<Cursor> hasName(final String name) { in hasName() 55 public static Matcher<Cursor> hasPhone(final String phone) { in hasPhone() 62 public static Matcher<Cursor> hasEmail(final String email) { in hasEmail() 70 public static Matcher<Cursor> hasCount(final int count) { in hasCount() 85 public static Matcher<Cursor> hasValueForColumn(final String column, final String value) { 104 public static Matcher<Cursor> hasRowMatching(final Matcher<Cursor> rowMatcher) { 127 public static Matcher<SimContact> isSimContactWithNameAndPhone(final String name,
|
/packages/modules/StatsD/statsd/src/ |
D | FieldValue.h | 26 struct Matcher; 188 bool matches(const Matcher& that) const; 221 struct Matcher { struct 222 Matcher(const Field& matcher, int32_t mask) : mMatcher(matcher), mMask(mask){}; in Matcher() function 247 inline bool operator!=(const Matcher& that) const { argument 251 inline bool operator==(const Matcher& that) const { 256 inline Matcher getSimpleMatcher(int32_t tag, size_t field) { in getSimpleMatcher() 257 return Matcher(Field(tag, getSimpleField(field)), 0xff7f0000); in getSimpleMatcher() 260 inline Matcher getFirstUidMatcher(int32_t atomId) { in getFirstUidMatcher() 262 return Matcher(Field(atomId, pos, 2), 0xff7f7f7f); in getFirstUidMatcher() [all …]
|
D | HashableDimensionKey.h | 43 std::vector<Matcher> metricFields; 44 std::vector<Matcher> conditionFields; 49 std::vector<Matcher> metricFields; 50 std::vector<Matcher> stateFields; 171 bool filterValues(const Matcher& matcherField, const std::vector<FieldValue>& values, 184 bool filterValues(const std::vector<Matcher>& matcherFields, const std::vector<FieldValue>& values, 204 bool filterValues(const std::vector<Matcher>& dimKeyMatcherFields, 205 const std::vector<Matcher>& valueMatcherFields, 227 void filterGaugeValues(const std::vector<Matcher>& matchers, const std::vector<FieldValue>& values,
|
D | FieldValue.cpp | 44 bool Field::matches(const Matcher& matcher) const { in matches() 61 std::vector<Matcher>* output) { in translateFieldMatcher() 100 output->push_back(Matcher(Field(tag, pos, depth), encodeMatcherMask(mask, depth))); in translateFieldMatcher() 108 void translateFieldMatcher(const FieldMatcher& matcher, std::vector<Matcher>* output) { in translateFieldMatcher() 449 bool equalDimensions(const std::vector<Matcher>& dimension_a, in equalDimensions() 450 const std::vector<Matcher>& dimension_b) { in equalDimensions() 460 bool subsetDimensions(const std::vector<Matcher>& dimension_a, in subsetDimensions() 461 const std::vector<Matcher>& dimension_b) { in subsetDimensions()
|
D | HashableDimensionKey.cpp | 145 bool filterValues(const Matcher& matcherField, const vector<FieldValue>& values, in filterValues() 156 bool filterValues(const vector<Matcher>& matcherFields, const vector<FieldValue>& values, in filterValues() 174 bool filterValues(const vector<Matcher>& dimKeyMatcherFields, in filterValues() 175 const vector<Matcher>& valueMatcherFields, const vector<FieldValue>& values, in filterValues() 217 void filterGaugeValues(const std::vector<Matcher>& matcherFields, in filterGaugeValues()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/ |
D | BluetoothNameUtils.java | 21 import java.util.regex.Matcher; 46 Matcher matcher = NAME_PATTERN.matcher(bluetoothName); in getSetupType() 70 Matcher matcher = NAME_PATTERN.matcher(bluetoothName); in getColorConfiguration() 79 final Matcher cm = COLOR_PATTERN.matcher(cs); in getColorConfiguration() 98 Matcher matcher = NAME_PATTERN.matcher(name); in isValidName()
|
/packages/providers/MediaProvider/errorprone/src/com/android/providers/media/ |
D | MimeTypeChecker.java | 28 import com.google.errorprone.matchers.Matcher; 47 private static final Matcher<ExpressionTree> STRING_EQUALS = 49 private static final Matcher<ExpressionTree> STRING_STARTS_WITH = 51 private static final Matcher<ExpressionTree> STRING_REGION_MATCHES = 53 private static final Matcher<ExpressionTree> OBJECTS_EQUALS = 91 implements Matcher<ExpressionTree>, Predicate<ExpressionTree> {
|
D | LocaleRootChecker.java | 29 import com.google.errorprone.matchers.Matcher; 40 private static final Matcher<ExpressionTree> STRING_TO_UPPER_CASE = 42 private static final Matcher<ExpressionTree> STRING_TO_LOWER_CASE = 44 private static final Matcher<ExpressionTree> LOCALE_ROOT = 47 private static final Matcher<ExpressionTree> MISSING_LOCALE_ROOT = Matchers.anyOf(
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | UiBot.java | 58 import org.hamcrest.Matcher; 74 private static final Matcher<View> TOOLBAR = allOf( 79 private static final Matcher<View> ACTIONBAR = allOf( 83 private static final Matcher<View> TEXT_ENTRY = allOf( 87 private static final Matcher<View> TOOLBAR_OVERFLOW = allOf( 92 private static final Matcher<View> ACTIONBAR_OVERFLOW = allOf( 311 private static Matcher<Object> withToolbarTitle( in withToolbarTitle() 312 final Matcher<CharSequence> textMatcher) { in withToolbarTitle()
|
D | Matchers.java | 29 import org.hamcrest.Matcher; 38 public static boolean present(Matcher<View> matcher) { in present() 42 public static boolean present(ViewInteraction vi, Matcher<View> matcher) { in present()
|
D | SortBot.java | 50 import org.hamcrest.Matcher; 132 private static final Matcher<View> MATCHER = withId(R.id.table_header); 135 final Matcher<View> cellMatcher = allOf( in sortBy() 149 private @SortDirection int getDirection(Matcher<View> cellMatcher) { in getDirection()
|
D | SearchBot.java | 42 import org.hamcrest.Matcher; 54 private static final Matcher<View> SEARCH_WIDGET = allOf( 62 private static final Matcher<View> SEARCH_INPUT = allOf(
|
/packages/providers/MediaProvider/errorprone/src/com/google/errorprone/matchers/ |
D | FieldMatchers.java | 35 public static Matcher<ExpressionTree> anyFieldInClass(String className) { in anyFieldInClass() 49 public static Matcher<ExpressionTree> staticField(String className, String fieldName) { 63 public static Matcher<ExpressionTree> instanceField(String className, String fieldName) { 77 private abstract static class FieldReferenceMatcher implements Matcher<ExpressionTree> {
|
/packages/modules/StatsD/statsd/tests/ |
D | FieldValue_test.cpp | 83 vector<Matcher> output; in TEST() 104 vector<Matcher> output; in TEST() 128 vector<Matcher> matchers; in TEST() 167 vector<Matcher> matchers; in TEST() 189 vector<Matcher> matchers; in TEST() 211 vector<Matcher> matchers; in TEST() 332 vector<Matcher> matchers; in TEST() 653 vector<Matcher> matchers1; in TEST() 666 vector<Matcher> matchers2; in TEST() 687 vector<Matcher> matchers1; in TEST() [all …]
|
/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/ |
D | MatcherUtils.java | 21 import org.hamcrest.Matcher; 32 static <T> Matcher<T> first(final Matcher<T> matcher) { in first()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | MmsSmsUtils.java | 31 import java.util.regex.Matcher; 79 final Matcher match = NAME_ADDR_EMAIL_PATTERN.matcher(address); in extractAddrSpec() 99 final Matcher match = Patterns.EMAIL_ADDRESS.matcher(s); in isEmailAddress() 122 Matcher match = Patterns.PHONE.matcher(number); in isPhoneNumber()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | FileUtils.java | 94 import java.util.regex.Matcher; 591 final Matcher dcfStrict = PATTERN_DCF_STRICT.matcher(name); in buildUniqueNameIterator() 610 final Matcher dcfRelaxed = PATTERN_DCF_RELAXED.matcher(name); in buildUniqueNameIterator() 1079 final Matcher matcher = PATTERN_USER_ID.matcher(data); 1089 final Matcher matcher = PATTERN_RELATIVE_PATH.matcher(data); 1099 final Matcher matcher = PATTERN_VOLUME_NAME.matcher(data); 1116 final Matcher matcher = PATTERN_RELATIVE_PATH.matcher(data); 1152 final Matcher matcher = PATTERN_RELATIVE_PATH.matcher(path); 1165 final Matcher m = PATTERN_OWNED_PATH.matcher(path); 1174 final Matcher m = PATTERN_OWNED_RELATIVE_PATH.matcher(path); [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixel.java | 19 import java.util.regex.Matcher; 122 Matcher m1 = fixed.matcher(pixel); in BipPixel() 134 Matcher m2 = modifiedRatio.matcher(pixel); in BipPixel() 145 Matcher m3 = fixedRatio.matcher(pixel); in BipPixel()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/cpim/ |
D | SimpleCpimMessage.java | 30 import java.util.regex.Matcher; 86 Matcher namespaceMatcher = NAMESPACE_HEADER_PATTERN.matcher(line); in parse() 87 Matcher headerMatcher = HEADER_PATTERN.matcher(line); in parse() 99 Matcher headerMatcher = HEADER_PATTERN.matcher(line); in parse()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/espresso/ |
D | CustomSwipeAction.java | 36 import org.hamcrest.Matcher; 75 private static ViewAction withCustomConstraints(ViewAction action, Matcher<View> constraints) { in withCustomConstraints() 78 public Matcher<View> getConstraints() { in withCustomConstraints()
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | OveruseConfigurationTestUtils.cpp | 34 using ::testing::Matcher; 157 Matcher<const ResourceOveruseConfiguration&> ResourceOveruseConfigurationMatcher( in ResourceOveruseConfigurationMatcher() 159 std::vector<Matcher<const ResourceSpecificConfiguration&>> resourceSpecificConfigMatchers; in ResourceOveruseConfigurationMatcher() 165 std::vector<Matcher<const PackageMetadata&>> metadataMatchers; in ResourceOveruseConfigurationMatcher()
|
/packages/apps/Car/Calendar/src/com/android/car/calendar/common/ |
D | EventDescriptions.java | 34 import java.util.regex.Matcher; 86 Matcher phoneFormatMatcher = phonePinPattern.matcher(decoded); in addMatchedNumbers() 96 private NumberAndAccess validNumberAndAccess(Matcher phoneFormatMatcher) { in validNumberAndAccess()
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | TelephonyThreadsCompat.java | 32 import java.util.regex.Matcher; 153 Matcher match = Patterns.EMAIL_ADDRESS.matcher(s); in isEmailAddress() 161 Matcher match = NAME_ADDR_EMAIL_PATTERN.matcher(address); in extractAddrSpec()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/ |
D | TestStabilityRule.java | 35 import java.util.regex.Matcher; 120 final Matcher launcherBuildMatcher = LAUNCHER_BUILD.matcher(launcherVersion); 125 final Matcher platformBuildMatcher = PLATFORM_BUILD.matcher(platformVersion);
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/provider/ |
D | Query.java | 27 import java.util.regex.Matcher; 122 Matcher matcher = PATTERN_EPISODE.matcher(filePath); in parseEpisode() 148 Matcher matcher = PATTERN_MOVIE.matcher(filePath); in parseMovie()
|