Home
last modified time | relevance | path

Searched refs:Matcher (Results 1 – 25 of 275) sorted by relevance

1234567891011

/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/matchers/
H A DViewMatchers.java35 import org.hamcrest.Matcher;
38 public static Matcher<View> withDrawable( in withDrawable()
43 public static Matcher<View> withDrawable( in withDrawable()
48 public static Matcher<View> nthChildOfView(Matcher<View> parentMatcher, int n) { in nthChildOfView()
52 public static Matcher<View> withIndex(Matcher<View> matcher, int index) { in withIndex()
56 public static Matcher<View> withPadding(Side side, int exactly) { in withPadding()
60 public static Matcher<View> withPaddingAtLeast(Side side, int min) { in withPaddingAtLeast()
64 public static Matcher<View> isActivated() { in isActivated()
76 public static Matcher<View> isDisplayedAnd(Matcher<View> another) {
81 public static Matcher<View> hasIndeterminateProgress() {
/aosp12/art/compiler/dex/
H A Dinline_method_analyser.cc41 class Matcher { class
83 bool Matcher::Mark(Matcher* matcher) { in Mark()
90 bool Matcher::Required(Matcher* matcher) { in Required()
100 bool Matcher::Repeated(Matcher* matcher) { in Repeated()
283 &Matcher::Mark, in DoAnalyseConstructor()
284 &Matcher::Repeated<&Matcher::Const0>, in DoAnalyseConstructor()
285 &Matcher::Required<&Matcher::Opcode<Instruction::INVOKE_DIRECT>>, in DoAnalyseConstructor()
286 &Matcher::Mark, in DoAnalyseConstructor()
287 &Matcher::Repeated<&Matcher::Const0>, in DoAnalyseConstructor()
288 &Matcher::Repeated<&Matcher::IPutOnThis>, in DoAnalyseConstructor()
[all …]
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/tests/
H A DContactsMatchers.java27 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,
/aosp12/packages/modules/StatsD/statsd/src/
H A DFieldValue.h26 struct Matcher;
184 bool matches(const Matcher& that) const;
218 struct Matcher { struct
252 inline bool operator!=(const Matcher& that) const { argument
256 inline bool operator==(const Matcher& that) const {
261 inline Matcher getSimpleMatcher(int32_t tag, size_t field) { in getSimpleMatcher()
265 inline Matcher getFirstUidMatcher(int32_t atomId) { in getFirstUidMatcher()
267 return Matcher(Field(atomId, pos, 2), 0xff7f7f7f); in getFirstUidMatcher()
454 bool equalDimensions(const std::vector<Matcher>& dimension_a,
455 const std::vector<Matcher>& dimension_b);
[all …]
H A DHashableDimensionKey.h43 std::vector<Matcher> metricFields;
44 std::vector<Matcher> conditionFields;
49 std::vector<Matcher> metricFields;
50 std::vector<Matcher> stateFields;
149 bool filterValues(const Matcher& matcherField, const std::vector<FieldValue>& values,
162 bool filterValues(const std::vector<Matcher>& matcherFields, const std::vector<FieldValue>& values,
183 void filterGaugeValues(const std::vector<Matcher>& matchers, const std::vector<FieldValue>& values,
/aosp12/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/
H A DEfficientParcelableChecker.java34 import com.google.errorprone.matchers.Matcher;
51 private static final Matcher<Tree> INSIDE_WRITE_TO_PARCEL = allOf(
55 private static final Matcher<ExpressionTree> WRITE_STRING = methodInvocation(
57 private static final Matcher<ExpressionTree> WRITE_STRING_ARRAY = methodInvocation(
60 private static final Matcher<ExpressionTree> WRITE_VALUE = methodInvocation(
62 private static final Matcher<ExpressionTree> WRITE_PARCELABLE = methodInvocation(
65 private static final Matcher<ExpressionTree> WRITE_LIST = methodInvocation(
67 private static final Matcher<ExpressionTree> WRITE_PARCELABLE_LIST = methodInvocation(
69 private static final Matcher<ExpressionTree> WRITE_PARCELABLE_ARRAY = methodInvocation(
H A DTargetSdkChecker.java31 import com.google.errorprone.matchers.Matcher;
64 private static final Matcher<ExpressionTree> VERSION_CODE = FieldMatchers
67 private static final Matcher<BinaryTree> INVALID_OLD_BEHAVIOR = anyOf(
71 private static final Matcher<BinaryTree> INVALID_NEW_BEHAVIOR = anyOf(
92 static Matcher<BinaryTree> binaryTreeExact(Matcher<ExpressionTree> left, in binaryTreeExact()
93 Matcher<ExpressionTree> right) { in binaryTreeExact()
94 return new Matcher<BinaryTree>() { in binaryTreeExact()
H A DCompatChangeChecker.java35 import com.google.errorprone.matchers.Matcher;
56 private static final Matcher<ExpressionTree> VERSION_CODE =
60 private static final Matcher<ExpressionTree> LEGACY_VERSION_CODE = anyOf(
93 private static final Matcher<ExpressionTree> R_VERSION_CODE =
96 private static final Matcher<ExpressionTree> CUR_DEVELOPMENT_VERSION_CODE =
99 private static final Matcher<ExpressionTree> MODERN_VERSION_CODE =
102 private static final Matcher<ExpressionTree> BOOLEAN_OPERATOR = anyOf(
107 private static final Matcher<BinaryTree> INVALID = anyOf(
H A DEfficientXmlChecker.java35 import com.google.errorprone.matchers.Matcher;
77 private static final Matcher<ExpressionTree> PRIMITIVE_TO_STRING = anyOf(
91 private static final Matcher<ExpressionTree> VALUE_OF_PRIMITIVE = anyOf(
101 private static final Matcher<ExpressionTree> PRIMITIVE_PARSE = anyOf(
122 private static final Matcher<Tree> IS_FAST_XML_SERIALIZER =
136 private static final Matcher<ExpressionTree> BYTES_TO_STRING = anyOf(
146 private static final Matcher<ExpressionTree> BYTES_FROM_STRING = anyOf(
167 private static final Matcher<ExpressionTree> CONVERT_PRIMITIVE_TO_STRING =
168 new Matcher<ExpressionTree>() {
204 private static final Matcher<ExpressionTree> CONVERT_STRING_TO_PRIMITIVE =
[all …]
H A DEfficientStringsChecker.java39 import com.google.errorprone.matchers.Matcher;
70 private static final Matcher<ExpressionTree> FORMAT_CALL = methodInvocation(
72 private static final Matcher<ExpressionTree> PRECONDITIONS_CALL = methodInvocation(
74 private static final Matcher<ExpressionTree> OBJECTS_CALL = methodInvocation(
76 private static final Matcher<ExpressionTree> APPEND_CALL = methodInvocation(
84 private static final Matcher<ExpressionTree> DYNAMIC_VALUE = anyOf(
95 private static final Matcher<Tree> PLUS = anyOf(kindIs(Kind.PLUS),
103 private static final Matcher<Tree> PLUS_DYNAMIC_VALUE = allOf(
106 private static final Matcher<Tree> IS_STRING_BUFFER = isSubtypeOf("java.lang.StringBuffer");
H A DContextUserIdChecker.java34 import com.google.errorprone.matchers.Matcher;
59 private static final Matcher<Tree> INSIDE_MANAGER =
62 private static final Matcher<ExpressionTree> BINDER_CALL = methodInvocation(
64 private static final Matcher<ExpressionTree> GET_USER_ID_CALL = methodInvocation(anyOf(
72 private static final Matcher<ExpressionTree> USER_ID_FIELD = new Matcher<ExpressionTree>() {
H A DBluetoothPermissionChecker.java42 import com.google.errorprone.matchers.Matcher;
65 private static final Matcher<MethodTree> BLUETOOTH_API = allOf(
75 private static final Matcher<ClassTree> PARCELABLE_CLASS =
77 private static final Matcher<MethodTree> BINDER_METHOD = enclosingClass(
80 private static final Matcher<MethodTree> BINDER_INTERNALS = allOf(
87 private static final Matcher<MethodTree> GENERIC_INTERNALS = anyOf(
198 private static Matcher<ClassTree> isInsideParcelable() { in isInsideParcelable()
199 return new Matcher<ClassTree>() { in isInsideParcelable()
/aosp12/packages/apps/Car/Dialer/testing/src/com/android/car/dialer/testing/
H A DTestViewActions.java29 import org.hamcrest.Matcher;
39 public Matcher<View> getConstraints() { in selfClick()
60 public Matcher<View> getConstraints() {
81 public Matcher<View> getConstraints() {
105 public Matcher<View> getConstraints() {
126 public Matcher<View> getConstraints() {
146 public Matcher<View> getConstraints() {
H A DTestViewMatchers.java26 import org.hamcrest.Matcher;
33 public static Matcher<View> isActivated(boolean isActivated) { in isActivated()
48 public static Matcher<View> atPosition(int position, @NonNull Matcher<View> itemMatcher) {
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/actions/
H A DViewActions.java23 import org.hamcrest.Matcher;
27 public static ViewAction waitForView(Matcher<View> matcher, long waitTimeMillis) { in waitForView()
31 public static ViewAction waitForView(Matcher<View> matcher) { in waitForView()
35 public static ViewAction waitForNoMatchingView(Matcher<View> matcher, long waitTimeMillis) { in waitForNoMatchingView()
39 public static ViewAction waitForNoMatchingView(Matcher<View> matcher) { in waitForNoMatchingView()
H A DCarUiRecyclerViewActions.java31 import org.hamcrest.Matcher;
44 final Matcher<View> itemViewMatcher) { in scrollTo()
45 Matcher<VH> viewHolderMatcher = viewHolderMatcher(itemViewMatcher); in scrollTo()
51 final Matcher<View> itemViewMatcher, final ViewAction viewAction) { in actionOnItem()
52 Matcher<VH> viewHolderMatcher = new ViewHolderMatcher(itemViewMatcher); in actionOnItem()
63 final Matcher<VH> viewHolderMatcher, int max) { in itemsMatching()
123 private static <VH extends RecyclerView.ViewHolder> Matcher<VH> viewHolderMatcher( in viewHolderMatcher()
124 final Matcher<View> itemViewMatcher) { in viewHolderMatcher()
H A DScrollToViewAction.java35 import org.hamcrest.Matcher;
47 private final Matcher<VH> mViewHolderMatcher;
50 public ScrollToViewAction(Matcher<VH> viewHolderMatcher) { in ScrollToViewAction()
54 public ScrollToViewAction(Matcher<VH> viewHolderMatcher, int atPosition) { in ScrollToViewAction()
66 public Matcher<View> getConstraints() { in getConstraints()
H A DActionOnItemViewAction.java37 import org.hamcrest.Matcher;
49 private final Matcher<VH> mViewHolderMatcher;
54 public ActionOnItemViewAction(Matcher<VH> viewHolderMatcher, ViewAction viewAction) { in ActionOnItemViewAction()
59 Matcher<VH> viewHolderMatcher, ViewAction viewAction, int atPosition) { in ActionOnItemViewAction()
68 public Matcher<View> getConstraints() { in getConstraints()
H A DWaitForViewAction.java30 import org.hamcrest.Matcher;
37 private Matcher<View> mMatcher;
40 public WaitForViewAction(Matcher<View> matcher, long waitTimeMillis) { in WaitForViewAction()
46 public Matcher<View> getConstraints() { in getConstraints()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
H A DBluetoothNameUtils.java21 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()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DMockUtils.java32 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()
112 final Matcher<Bundle> m = new BaseMatcher<Bundle>() { in checkUserRestrictions()
132 final Matcher<RestrictionsSet> m = new BaseMatcher<RestrictionsSet>() { in checkUserRestrictions()
150 final Matcher<Set<String>> m = new BaseMatcher<Set<String>>() { in checkApps()
/aosp12/packages/providers/MediaProvider/errorprone/src/com/android/providers/media/
H A DMimeTypeChecker.java28 import com.google.errorprone.matchers.Matcher;
45 private static final Matcher<ExpressionTree> STRING_EQUALS =
47 private static final Matcher<ExpressionTree> STRING_STARTS_WITH =
49 private static final Matcher<ExpressionTree> STRING_REGION_MATCHES =
51 private static final Matcher<ExpressionTree> OBJECTS_EQUALS =
83 implements Matcher<ExpressionTree>, Predicate<ExpressionTree> {
H A DLocaleRootChecker.java29 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(
/aosp12/frameworks/base/errorprone/java/com/google/errorprone/matchers/android/
H A DFieldMatchers.java20 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> {
/aosp12/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/androidTest/java/com/android/car/ui/actions/
H A DWaitForViewAction.java30 import org.hamcrest.Matcher;
37 private Matcher<View> mMatcher;
40 public WaitForViewAction(Matcher<View> matcher, long waitTimeMillis) { in WaitForViewAction()
46 public Matcher<View> getConstraints() { in getConstraints()

1234567891011