/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/ |
D | UnattributedNoteOpCallChecker.java | 29 import com.google.errorprone.matchers.Matcher; 41 private static final Matcher<ExpressionTree> UNATTRIBUTED_NOTEOP_CALL_1 = methodInvocation( 44 private static final Matcher<ExpressionTree> UNATTRIBUTED_NOTEOP_CALL_2 = methodInvocation( 47 private static final Matcher<ExpressionTree> UNATTRIBUTED_NOTEOP_CALL_3 = methodInvocation( 50 … private static final Matcher<ExpressionTree> UNATTRIBUTED_NOTEOPNOTHROW_CALL_1 = methodInvocation( 53 … private static final Matcher<ExpressionTree> UNATTRIBUTED_NOTEOPNOTHROW_CALL_2 = methodInvocation( 56 private static final Matcher<ExpressionTree> UNATTRIBUTED_STARTOP_CALL_1 = methodInvocation( 59 private static final Matcher<ExpressionTree> UNATTRIBUTED_STARTOP_CALL_2 = methodInvocation( 62 private static final Matcher<ExpressionTree> UNATTRIBUTED_STARTOP_CALL_3 = methodInvocation( 65 private static final Matcher<ExpressionTree> UNATTRIBUTED_STARTOP_CALL_4 = methodInvocation( [all …]
|
D | EfficientParcelableChecker.java | 35 import com.google.errorprone.matchers.Matcher; 53 private static final Matcher<Tree> INSIDE_WRITE_TO_PARCEL = allOf( 57 private static final Matcher<ExpressionTree> WRITE_STRING = methodInvocation( 59 private static final Matcher<ExpressionTree> WRITE_STRING_ARRAY = methodInvocation( 62 private static final Matcher<ExpressionTree> WRITE_VALUE = methodInvocation( 64 private static final Matcher<ExpressionTree> WRITE_PARCELABLE = methodInvocation( 67 private static final Matcher<ExpressionTree> WRITE_LIST = methodInvocation( 69 private static final Matcher<ExpressionTree> WRITE_PARCELABLE_LIST = methodInvocation( 71 private static final Matcher<ExpressionTree> WRITE_PARCELABLE_ARRAY = methodInvocation(
|
D | TargetSdkChecker.java | 32 import com.google.errorprone.matchers.Matcher; 66 private static final Matcher<ExpressionTree> VERSION_CODE = FieldMatchers 69 private static final Matcher<BinaryTree> INVALID_OLD_BEHAVIOR = anyOf( 73 private static final Matcher<BinaryTree> INVALID_NEW_BEHAVIOR = anyOf( 94 static Matcher<BinaryTree> binaryTreeExact(Matcher<ExpressionTree> left, in binaryTreeExact() 95 Matcher<ExpressionTree> right) { in binaryTreeExact() 96 return new Matcher<BinaryTree>() { in binaryTreeExact()
|
D | CompatChangeChecker.java | 36 import com.google.errorprone.matchers.Matcher; 58 private static final Matcher<ExpressionTree> VERSION_CODE = 62 private static final Matcher<ExpressionTree> LEGACY_VERSION_CODE = anyOf( 95 private static final Matcher<ExpressionTree> R_VERSION_CODE = 98 private static final Matcher<ExpressionTree> CUR_DEVELOPMENT_VERSION_CODE = 101 private static final Matcher<ExpressionTree> MODERN_VERSION_CODE = 104 private static final Matcher<ExpressionTree> BOOLEAN_OPERATOR = anyOf( 109 private static final Matcher<BinaryTree> INVALID = anyOf(
|
D | EfficientXmlChecker.java | 36 import com.google.errorprone.matchers.Matcher; 76 private static final Matcher<ExpressionTree> BOOLEAN_STRING_LITERAL = stringLiteral( 79 private static final Matcher<ExpressionTree> PRIMITIVE_TO_STRING = anyOf( 93 private static final Matcher<ExpressionTree> VALUE_OF_PRIMITIVE = anyOf( 100 private static final Matcher<ExpressionTree> VALUE_OF_OBJECT = methodInvocation( 103 private static final Matcher<ExpressionTree> PRIMITIVE_PARSE = anyOf( 124 private static final Matcher<Tree> IS_FAST_XML_SERIALIZER = 127 private static final Matcher<ExpressionTree> WRITE_ATTRIBUTE = methodInvocation( 131 private static final Matcher<ExpressionTree> READ_ATTRIBUTE = methodInvocation( 135 private static final Matcher<ExpressionTree> XML_FACTORY = methodInvocation(staticMethod() [all …]
|
D | ContextUserIdChecker.java | 35 import com.google.errorprone.matchers.Matcher; 61 private static final Matcher<Tree> INSIDE_MANAGER = 64 private static final Matcher<ExpressionTree> BINDER_CALL = methodInvocation( 66 private static final Matcher<ExpressionTree> GET_USER_ID_CALL = methodInvocation(anyOf( 76 private static final Matcher<ExpressionTree> USER_ID_FIELD = new Matcher<ExpressionTree>() {
|
D | EfficientStringsChecker.java | 40 import com.google.errorprone.matchers.Matcher; 72 private static final Matcher<ExpressionTree> FORMAT_CALL = methodInvocation( 74 private static final Matcher<ExpressionTree> PRECONDITIONS_CALL = methodInvocation( 76 private static final Matcher<ExpressionTree> OBJECTS_CALL = methodInvocation( 78 private static final Matcher<ExpressionTree> APPEND_CALL = methodInvocation( 86 private static final Matcher<ExpressionTree> DYNAMIC_VALUE = anyOf( 97 private static final Matcher<Tree> PLUS = anyOf(kindIs(Kind.PLUS), 105 private static final Matcher<Tree> PLUS_DYNAMIC_VALUE = allOf( 108 private static final Matcher<Tree> IS_STRING_BUFFER = isSubtypeOf("java.lang.StringBuffer");
|
D | PendingIntentMutabilityChecker.java | 33 import com.google.errorprone.matchers.Matcher; 54 private static final Matcher<ExpressionTree> PENDING_INTENT_METHOD = methodInvocation( 61 private static final Matcher<ExpressionTree> VALID_FLAGS = anyOf( 65 private static final Matcher<ExpressionTree> CONTAINS_VALID_FLAGS = contains(
|
D | BluetoothPermissionChecker.java | 43 import com.google.errorprone.matchers.Matcher; 67 private static final Matcher<MethodTree> BLUETOOTH_API = allOf( 77 private static final Matcher<ClassTree> PARCELABLE_CLASS = 79 private static final Matcher<MethodTree> BINDER_METHOD = enclosingClass( 82 private static final Matcher<MethodTree> BINDER_INTERNALS = allOf( 89 private static final Matcher<MethodTree> GENERIC_INTERNALS = anyOf( 200 private static Matcher<ClassTree> isInsideParcelable() { in isInsideParcelable() 201 return new Matcher<ClassTree>() { in isInsideParcelable()
|
D | RethrowFromSystemChecker.java | 38 import com.google.errorprone.matchers.Matcher; 67 private static final Matcher<Tree> INSIDE_MANAGER = 72 private static final Matcher<ExpressionTree> SYSTEM_BINDER_CALL = methodInvocation(allOf( 77 private static final Matcher<VariableTree> REMOTE_EXCEPTION = variableType( 79 private static final Matcher<StatementTree> RETHROW_FROM_SYSTEM = throwStatement(
|
D | RequiresPermissionChecker.java | 42 import com.google.errorprone.matchers.Matcher; 88 private static final Matcher<ExpressionTree> ENFORCE_VIA_CONTEXT = methodInvocation( 93 private static final Matcher<ExpressionTree> ENFORCE_VIA_CHECKER = methodInvocation( 98 private static final Matcher<MethodTree> BINDER_INTERNALS = allOf( 104 private static final Matcher<MethodTree> LOCAL_INTERNALS = anyOf( 119 private static final Matcher<ExpressionTree> CLEAR_CALL = methodInvocation(staticMethod() 121 private static final Matcher<ExpressionTree> RESTORE_CALL = methodInvocation(staticMethod() 124 private static final Matcher<ExpressionTree> SEND_BROADCAST = methodInvocation( 128 private static final Matcher<ExpressionTree> SEND_PENDING_INTENT = methodInvocation( 133 private static final Matcher<ExpressionTree> INTENT_SET_ACTION = methodInvocation( [all …]
|
D | ClientSidePermissionCheckChecker.java | 33 import com.google.errorprone.matchers.Matcher; 50 private static final Matcher<Tree> INSIDE_MANAGER = 52 private static final Matcher<ExpressionTree> PERMISSION_CHECK_METHOD =
|
/frameworks/native/include/ftl/details/ |
D | match.h | 25 struct Matcher : Ms... { struct 31 Matcher(Ms...) -> Matcher<Ms...>; 33 template <typename Matcher, typename... Ts> 34 constexpr bool is_exhaustive_match_v = (std::is_invocable_v<Matcher, Ts> && ...); 41 template <typename Variant, typename Matcher> 42 static decltype(auto) match(Variant& variant, const Matcher& matcher) { 53 template <typename Variant, typename Matcher> 54 static decltype(auto) match(Variant& variant, const Matcher& matcher) {
|
/frameworks/base/services/core/java/com/android/server/selinux/ |
D | SelinuxAuditLogBuilder.java | 27 import java.util.regex.Matcher; 41 private static final Matcher NO_OP_MATCHER = Pattern.compile("no-op^").matcher(""); 46 @VisibleForTesting final Matcher mScontextMatcher; 47 @VisibleForTesting final Matcher mTcontextMatcher; 48 @VisibleForTesting final Matcher mPathMatcher; 54 Matcher scontextMatcher = NO_OP_MATCHER; in SelinuxAuditLogBuilder() 55 Matcher tcontextMatcher = NO_OP_MATCHER; in SelinuxAuditLogBuilder() 56 Matcher pathMatcher = NO_OP_MATCHER; in SelinuxAuditLogBuilder() 153 boolean nextTokenMatches(Matcher matcher) { in nextTokenMatches()
|
/frameworks/base/errorprone/java/com/google/errorprone/matchers/android/ |
D | FieldMatchers.java | 20 import com.google.errorprone.matchers.Matcher; 36 public static Matcher<ExpressionTree> anyFieldInClass(String className) { in anyFieldInClass() 51 public static Matcher<ExpressionTree> staticField(String className, String fieldName) { 67 public static Matcher<ExpressionTree> instanceField(String className, String fieldName) { 83 private abstract static class FieldReferenceMatcher implements Matcher<ExpressionTree> {
|
/frameworks/av/media/liberror/include/error/ |
D | ExpectedMatchers.h | 68 ::testing::Matcher<const ValueT&> inner_matcher_; 77 operator ::testing::Matcher<T>() const { 78 return ::testing::Matcher<T>{new IsOkAndImpl<const T&>(inner_matcher_)}; 119 ::testing::Matcher<const ErrorT&> inner_matcher_; 128 operator ::testing::Matcher<T>() const { 129 return ::testing::Matcher<T>{new IsErrorAndImpl<const T&>(inner_matcher_)};
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | MatcherUtils.java | 21 import org.hamcrest.Matcher; 32 static <T> Matcher<T> first(final Matcher<T> matcher) { in first()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | MockUtils.java | 32 import org.hamcrest.Matcher; 43 final Matcher<UserHandle> m = new BaseMatcher<UserHandle>() { in checkUserHandle() 59 final Matcher<Intent> m = new BaseMatcher<Intent>() { in checkIntentComponent() 75 final Matcher<Intent> m = new BaseMatcher<Intent>() { in checkIntentAction() 91 final Matcher<Intent> m = new BaseMatcher<Intent>() { in checkIntent() 120 final Matcher<Bundle> m = new BaseMatcher<Bundle>() { in createUserRestrictionsBundleMatcher() 149 final Matcher<RestrictionsSet> m = new BaseMatcher<RestrictionsSet>() { in createUserRestrictionsSetMatcher() 167 final Matcher<Set<String>> m = new BaseMatcher<Set<String>>() { in checkApps()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/ |
D | PatternScanner.java | 20 import java.util.regex.Matcher; 51 Matcher matcher = pattern.matcher(mInput); in tryEat() 85 Matcher matcher = pattern.matcher(mInput); in peek() 93 Matcher matcher = pattern.matcher(mInput); in skip()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | TextViewAssertions.java | 40 import org.hamcrest.Matcher; 78 public static ViewAssertion hasSelection(Matcher<String> selection) { in hasSelection() 108 public static ViewAssertion hasInsertionPointerAtIndex(final Matcher<Integer> index) { in hasInsertionPointerAtIndex() 160 private final Matcher<String> mSelection; 162 public TextSelectionAssertion(Matcher<String> selection) {
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | InMatcher.java | 21 import org.hamcrest.Matcher; 66 public static <T> Matcher<T> in(T... operand) { in in() 71 public static <T> Matcher<T> in(Collection<T> operand) { in in()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
D | GestureLogParser.java | 21 import java.util.regex.Matcher; 53 Matcher matcher = p.matcher(line); in getMotionEventFromLogLine() 75 final Matcher matcher = p.matcher(eventText); in findInt() 82 final Matcher matcher = p.matcher(eventText); in findFloat() 89 final Matcher matcher = p.matcher(eventText); in findString()
|
/frameworks/base/core/java/android/webkit/ |
D | FindAddress.java | 21 import java.util.regex.Matcher; 270 Matcher suffixMatcher = sSuffixedNumberRe.matcher(houseNumber); in checkHouseNumber() 301 Matcher matcher = sHouseNumberRe.matcher(content).region(offset, content.length()); in matchHouseNumber() 320 Matcher stateMatcher = sStateRe.matcher(content).region(offset, content.length()); in matchState() 373 Matcher matcher = sWordRe.matcher(content); in attemptMatch() 431 Matcher zipMatcher = sWordRe.matcher(content); in attemptMatch() 463 Matcher houseNumberMatcher = sHouseNumberRe.matcher(content); in findAddress()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | PhoneUtil.java | 22 import java.util.regex.Matcher; 49 Matcher match = PHONE_PATTERN.matcher(number); in isPhoneNumber()
|
/frameworks/native/include/ftl/ |
D | match.h | 47 const auto matcher = details::Matcher{std::forward<Ms>(matchers)...}; in decltype() 55 const auto matcher = details::Matcher{std::forward<Ms>(matchers)...}; in decltype()
|