/frameworks/base/core/tests/coretests/src/android/os/ |
D | PatternMatcherTest.java | 34 PatternMatcher matcher = new PatternMatcher(".", PatternMatcher.PATTERN_ADVANCED_GLOB); in testAdvancedPatternMatchesAnyToken() local 35 assertMatches("a", matcher); in testAdvancedPatternMatchesAnyToken() 36 assertMatches("b", matcher); in testAdvancedPatternMatchesAnyToken() 37 assertNotMatches("", matcher); in testAdvancedPatternMatchesAnyToken() 42 PatternMatcher matcher = new PatternMatcher("[a]", PatternMatcher.PATTERN_ADVANCED_GLOB); in testAdvancedPatternMatchesSetToken() local 43 assertMatches("a", matcher); in testAdvancedPatternMatchesSetToken() 44 assertNotMatches("b", matcher); in testAdvancedPatternMatchesSetToken() 46 matcher = new PatternMatcher("[.*+{}\\]\\\\[]", PatternMatcher.PATTERN_ADVANCED_GLOB); in testAdvancedPatternMatchesSetToken() 47 assertMatches(".", matcher); in testAdvancedPatternMatchesSetToken() 48 assertMatches("*", matcher); in testAdvancedPatternMatchesSetToken() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | UriMatcherTest.java | 48 UriMatcher matcher = new UriMatcher(ROOT); in testContentUris() local 49 matcher.addURI("people", null, PEOPLE); in testContentUris() 50 matcher.addURI("people", "#", PEOPLE_ID); in testContentUris() 51 matcher.addURI("people", "#/phones", PEOPLE_PHONES); in testContentUris() 52 matcher.addURI("people", "#/phones/blah", PEOPLE_PHONES_ID); in testContentUris() 53 matcher.addURI("people", "#/phones/#", PEOPLE_PHONES_ID); in testContentUris() 54 matcher.addURI("people", "#/addresses", PEOPLE_ADDRESSES); in testContentUris() 55 matcher.addURI("people", "#/addresses/#", PEOPLE_ADDRESSES_ID); in testContentUris() 56 matcher.addURI("people", "#/contact-methods", PEOPLE_CONTACTMETH); in testContentUris() 57 matcher.addURI("people", "#/contact-methods/#", PEOPLE_CONTACTMETH_ID); in testContentUris() [all …]
|
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/ |
D | BytesMatcherTest.java | 34 BytesMatcher matcher = BytesMatcher.decode(""); in testEmpty() local 35 assertFalse(matcher.test(HexEncoding.decode("cafe"))); in testEmpty() 36 assertFalse(matcher.test(HexEncoding.decode(""))); in testEmpty() 41 BytesMatcher matcher = BytesMatcher.decode("+cafe"); in testExact() local 42 assertTrue(matcher.test(HexEncoding.decode("cafe"))); in testExact() 43 assertFalse(matcher.test(HexEncoding.decode("beef"))); in testExact() 44 assertFalse(matcher.test(HexEncoding.decode("ca"))); in testExact() 45 assertFalse(matcher.test(HexEncoding.decode("cafe00"))); in testExact() 50 BytesMatcher matcher = BytesMatcher.decode("+cafe/ff00"); in testMask() local 51 assertTrue(matcher.test(HexEncoding.decode("cafe"))); in testMask() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | PatternsTest.java | 42 t = Patterns.TOP_LEVEL_DOMAIN.matcher("com").matches(); in testTldPattern() 46 t = Patterns.TOP_LEVEL_DOMAIN.matcher("me").matches(); in testTldPattern() 50 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn--0zwm56d").matches(); in testTldPattern() 54 t = Patterns.TOP_LEVEL_DOMAIN.matcher("\uD55C\uAD6D").matches(); in testTldPattern() 57 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches(); in testTldPattern() 60 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches(); in testTldPattern() 63 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches(); in testTldPattern() 73 assertTrue("Should match 'com'", pattern.matcher("com").matches()); in testIanaTopLevelDomains_matchesValidTld() 80 assertTrue("Should match 'me'", pattern.matcher("me").matches()); in testIanaTopLevelDomains_matchesValidNewTld() 87 assertTrue("Should match Punycode TLD", pattern.matcher("xn--qxam").matches()); in testIanaTopLevelDomains_matchesPunycodeTld() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/ |
D | PatternScanner.java | 51 Matcher matcher = pattern.matcher(mInput); in tryEat() local 52 matcher.region(mOffset, mInput.length()); in tryEat() 56 if (matcher.lookingAt()) { in tryEat() 57 updateLineCount(mOffset, matcher.end()); in tryEat() 58 mOffset = matcher.end(); in tryEat() 59 result = mInput.substring(matcher.start(), matcher.end()); in tryEat() 85 Matcher matcher = pattern.matcher(mInput); in peek() local 86 matcher.region(mOffset, mInput.length()); in peek() 89 return matcher.lookingAt(); in peek() 93 Matcher matcher = pattern.matcher(mInput); in skip() local [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
D | GestureLogParser.java | 53 Matcher matcher = p.matcher(line); in getMotionEventFromLogLine() local 54 if (matcher.find()) { in getMotionEventFromLogLine() 55 actionIndex = Integer.decode(matcher.group(2)); in getMotionEventFromLogLine() 75 final Matcher matcher = p.matcher(eventText); in findInt() local 76 matcher.find(); in findInt() 77 return Integer.decode(matcher.group(1)); in findInt() 82 final Matcher matcher = p.matcher(eventText); in findFloat() local 83 matcher.find(); in findFloat() 84 return Float.parseFloat(matcher.group(1)); in findFloat() 89 final Matcher matcher = p.matcher(eventText); in findString() local [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | FindAddress.java | 270 Matcher suffixMatcher = sSuffixedNumberRe.matcher(houseNumber); in checkHouseNumber() 301 Matcher matcher = sHouseNumberRe.matcher(content).region(offset, content.length()); in matchHouseNumber() 302 if (matcher.lookingAt()) { in matchHouseNumber() 303 MatchResult matchResult = matcher.toMatchResult(); in matchHouseNumber() 320 Matcher stateMatcher = sStateRe.matcher(content).region(offset, content.length()); in matchState() 340 return sZipCodeRe.matcher(zipCode).matches() in isValidZipCode() 351 return sLocationNameRe.matcher(location).matches(); in isValidLocationName() 373 Matcher matcher = sWordRe.matcher(content); in attemptMatch() local 375 for (; it < content.length(); lastWord = matcher.group(0), it = matcher.end()) { in attemptMatch() 376 if (!matcher.find(it)) { in attemptMatch() [all …]
|
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/ |
D | TransitionDslImpl.kt | 153 override fun fade(matcher: ElementMatcher) { in fade() 154 transformation(Fade(matcher)) in fade() 157 override fun translate(matcher: ElementMatcher, x: Dp, y: Dp) { in translate() 158 transformation(Translate(matcher, x, y)) in translate() 162 matcher: ElementMatcher, in translate() 166 transformation(EdgeTranslate(matcher, edge, startsOutsideLayoutBounds)) in translate() 169 override fun anchoredTranslate(matcher: ElementMatcher, anchor: ElementKey) { in anchoredTranslate() 170 transformation(AnchoredTranslate(matcher, anchor)) in anchoredTranslate() 173 override fun scaleSize(matcher: ElementMatcher, width: Float, height: Float) { in scaleSize() 174 transformation(ScaleSize(matcher, width, height)) in scaleSize() [all …]
|
D | TransitionDsl.kt | 176 fun sharedElement(matcher: ElementMatcher, enabled: Boolean = true) in fractionRange() 190 matcher: ElementMatcher, in translate() 334 fun fade(matcher: ElementMatcher) 337 fun translate(matcher: ElementMatcher, x: Dp = 0.dp, y: Dp = 0.dp) 348 fun translate(matcher: ElementMatcher, edge: Edge, startsOutsideLayoutBounds: Boolean = true) 359 fun anchoredTranslate(matcher: ElementMatcher, anchor: ElementKey) 365 fun scaleSize(matcher: ElementMatcher, width: Float = 1f, height: Float = 1f) 373 matcher: ElementMatcher, 386 matcher: ElementMatcher,
|
/frameworks/native/include/ftl/ |
D | match.h | 47 const auto matcher = details::Matcher{std::forward<Ms>(matchers)...}; in decltype() 48 static_assert(details::is_exhaustive_match_v<decltype(matcher), Ts&...>, "Non-exhaustive match"); in decltype() 50 return details::Match<Ts...>::match(variant, matcher); in decltype() 55 const auto matcher = details::Matcher{std::forward<Ms>(matchers)...}; in decltype() 56 static_assert(details::is_exhaustive_match_v<decltype(matcher), const Ts&...>, in decltype() 59 return details::Match<Ts...>::match(variant, matcher); in decltype()
|
/frameworks/native/include/android/ |
D | font_matcher.h | 146 void AFontMatcher_destroy(AFontMatcher* _Nonnull matcher) __INTRODUCED_IN(29); 161 AFontMatcher* _Nonnull matcher, 177 AFontMatcher* _Nonnull matcher, 192 AFontMatcher* _Nonnull matcher, 214 const AFontMatcher* _Nonnull matcher,
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | DragHandleUtils.java | 21 import static androidx.test.espresso.matcher.RootMatchers.isPlatformPopup; 22 import static androidx.test.espresso.matcher.RootMatchers.withDecorView; 23 import static androidx.test.espresso.matcher.ViewMatchers.hasDescendant; 24 import static androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom; 25 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 26 import static androidx.test.espresso.matcher.ViewMatchers.withId;
|
D | ContextMenuUtils.java | 22 import static androidx.test.espresso.matcher.RootMatchers.withDecorView; 23 import static androidx.test.espresso.matcher.ViewMatchers.hasDescendant; 24 import static androidx.test.espresso.matcher.ViewMatchers.hasFocus; 25 import static androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom; 26 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 27 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayingAtLeast; 28 import static androidx.test.espresso.matcher.ViewMatchers.isEnabled; 29 import static androidx.test.espresso.matcher.ViewMatchers.withText; 40 import androidx.test.espresso.matcher.ViewMatchers;
|
D | SuggestionsPopupwindowUtils.java | 21 import static androidx.test.espresso.matcher.RootMatchers.withDecorView; 22 import static androidx.test.espresso.matcher.ViewMatchers.hasDescendant; 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.withText; 51 private static ViewInteraction onSuggestionsPopupItem(Matcher<View> matcher) { in onSuggestionsPopupItem() argument 53 return onView(matcher).inRoot(withDecorView(hasDescendant(withId(id)))); in onSuggestionsPopupItem()
|
/frameworks/libs/modules-utils/java/com/android/modules/utils/ |
D | BytesMatcher.java | 224 public static @NonNull String encode(@NonNull BytesMatcher matcher) { in encode() argument 226 final int size = matcher.mRules.size(); in encode() 228 final Rule rule = matcher.mRules.get(i); in encode() 251 final BytesMatcher matcher = new BytesMatcher(); in decode() local 252 if (TextUtils.isEmpty(value)) return matcher; in decode() 276 matcher.addExactAcceptRule(ruleValue, ruleMask); in decode() 279 matcher.addExactRejectRule(ruleValue, ruleMask); in decode() 282 matcher.addPrefixAcceptRule(ruleValue, ruleMask); in decode() 285 matcher.addPrefixRejectRule(ruleValue, ruleMask); in decode() 294 return matcher; in decode()
|
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/ |
D | ImeShownOnAppStartHelper.kt | 92 val matcher = in getInsetsVisibleFromDialog() constant 95 Pattern.compile("IME\\: (VISIBLE|INVISIBLE)").matcher(visibility) in getInsetsVisibleFromDialog() 98 Pattern.compile("StatusBar\\: (VISIBLE|INVISIBLE)").matcher(visibility) in getInsetsVisibleFromDialog() 101 Pattern.compile("NavBar\\: (VISIBLE|INVISIBLE)").matcher(visibility) in getInsetsVisibleFromDialog() 105 if (matcher != null && matcher.find()) { in getInsetsVisibleFromDialog() 106 return matcher.group(1) == "VISIBLE" in getInsetsVisibleFromDialog()
|
/frameworks/native/include/ftl/details/ |
D | match.h | 42 static decltype(auto) match(Variant& variant, const Matcher& matcher) { 44 return matcher(*ptr); 46 return Match<U, Ts...>::match(variant, matcher); 54 static decltype(auto) match(Variant& variant, const Matcher& matcher) { 55 return matcher(std::get<T>(variant));
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | GesturesObserver.java | 101 final GestureMatcher matcher = mGestureMatchers.get(i); in onMotionEvent() local 102 matcher.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent() 103 if (matcher.getState() == GestureMatcher.STATE_GESTURE_COMPLETED) { in onMotionEvent() 118 for (GestureMatcher matcher : mGestureMatchers) { in clear() 119 matcher.clear(); in clear()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | MissedIncomingCallSmsFilter.java | 180 Matcher matcher = pattern.matcher(parsedMsg); in processSms() local 182 if (matcher.find()) { in processSms() 184 month = matcher.group(SMS_MONTH_TAG); in processSms() 185 day = matcher.group(SMS_DAY_TAG); in processSms() 186 hour = matcher.group(SMS_HOUR_TAG); in processSms() 187 minute = matcher.group(SMS_MINUTE_TAG); in processSms() 202 year = matcher.group(SMS_YEAR_TAG); in processSms() 222 callerId = matcher.group(SMS_CALLER_ID_TAG); in processSms()
|
/frameworks/base/services/core/java/com/android/server/selinux/ |
D | SelinuxAuditLogBuilder.java | 41 private static final Matcher NO_OP_MATCHER = Pattern.compile("no-op^").matcher(""); 66 .matcher(""); in SelinuxAuditLogBuilder() 67 tcontextMatcher = Pattern.compile(TCONTEXT_PATTERN).matcher(""); in SelinuxAuditLogBuilder() 68 pathMatcher = Pattern.compile(PATH_PATTERN).matcher(""); in SelinuxAuditLogBuilder() 153 boolean nextTokenMatches(Matcher matcher) { in nextTokenMatches() argument 154 return mTokens.hasNext() && matcher.reset(mTokens.next()).matches(); in nextTokenMatches()
|
/frameworks/base/core/java/android/util/ |
D | Patterns.java | 523 public static final String concatGroups(Matcher matcher) { in concatGroups() argument 525 final int numGroups = matcher.groupCount(); in concatGroups() 528 String s = matcher.group(i); in concatGroups() 548 public static final String digitsAndPlusOnly(Matcher matcher) { in digitsAndPlusOnly() argument 550 String matchingRegion = matcher.group(); in digitsAndPlusOnly()
|
/frameworks/base/tests/ManagedProfileLifecycleStressTest/src/com/android/test/stress/ |
D | ManagedProfileLifecycleStressTest.java | 125 final Matcher matcher = CREATE_USER_OUTPUT_REGEX.matcher(output.trim()); in createManagedProfile() local 126 if (!matcher.matches() || matcher.groupCount() != 1) { in createManagedProfile() 129 return Integer.parseInt(matcher.group(1)); in createManagedProfile()
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | SchemePrefixPerfTest.java | 78 Matcher matcher = mPattern.matcher(spec); in REGEX() local 79 if (matcher.find()) { in REGEX() 80 return matcher.group(1).toLowerCase(Locale.US); in REGEX()
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | IonMemoryUtil.java | 69 final Matcher matcher = ION_HEAP_SIZE_IN_BYTES.matcher(contents); in parseIonHeapSizeFromDebugfs() local 71 return matcher.find() ? Long.parseLong(matcher.group(1)) : 0; in parseIonHeapSizeFromDebugfs() 98 final Matcher m = PROCESS_ION_HEAP_SIZE_IN_BYTES.matcher(contents); in parseProcessIonHeapSizesFromDebugfs()
|
/frameworks/base/core/java/android/app/time/ |
D | LocationTimeZoneAlgorithmStatus.java | 232 Matcher matcher = pattern.matcher(arg); in parseCommandlineArg() local 233 if (!matcher.matches()) { in parseCommandlineArg() 237 detectionAlgorithmStatusFromString(matcher.group(1)); in parseCommandlineArg() 238 @ProviderStatus int primaryProviderStatus = providerStatusFromString(matcher.group(2)); in parseCommandlineArg() 240 parseTimeZoneProviderStatusOrNull(matcher.group(3)); in parseCommandlineArg() 241 @ProviderStatus int secondaryProviderStatus = providerStatusFromString(matcher.group(4)); in parseCommandlineArg() 243 parseTimeZoneProviderStatusOrNull(matcher.group(5)); in parseCommandlineArg()
|