Home
last modified time | relevance | path

Searched refs:allOf (Results 1 – 25 of 115) sorted by relevance

12345

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityInputFilterInputTest.kt50 import org.hamcrest.Matchers.allOf
131 private val fromTouchScreen = allOf(withDeviceId(touchDeviceId), withSource(SOURCE_TOUCHSCREEN))
133 private val fromStylus = allOf(withDeviceId(stylusDeviceId), withSource(STYLUS_SOURCE))
135 private val fromJoystick = allOf(withDeviceId(joystickDeviceId), withSource(SOURCE_JOYSTICK))
178 verifier.assertReceivedMotion(allOf(fromTouchScreen, withMotionAction(ACTION_DOWN))) in testSingleDeviceTouchEventsWithoutA11yFeatures()
181 verifier.assertReceivedMotion(allOf(fromTouchScreen, withMotionAction(ACTION_MOVE))) in testSingleDeviceTouchEventsWithoutA11yFeatures()
184 verifier.assertReceivedMotion(allOf(fromTouchScreen, withMotionAction(ACTION_UP))) in testSingleDeviceTouchEventsWithoutA11yFeatures()
200 verifier.assertReceivedMotion(allOf(fromTouchScreen, withMotionAction(ACTION_HOVER_ENTER))) in testSingleDeviceTouchEventsWithAllA11yFeatures()
204 verifier.assertReceivedMotion(allOf(fromTouchScreen, withMotionAction(ACTION_HOVER_MOVE))) in testSingleDeviceTouchEventsWithAllA11yFeatures()
208 verifier.assertReceivedMotion(allOf(fromTouchScreen, withMotionAction(ACTION_HOVER_EXIT))) in testSingleDeviceTouchEventsWithAllA11yFeatures()
[all …]
DGestureDescriptionTest.java19 import static org.hamcrest.CoreMatchers.allOf;
56 assertThat(clickGestureSteps.get(0), allOf(numTouchPointsIs(1), numStartsOfStroke(1), in testGestureShorterThanSampleRate_producesStartAndEnd()
58 assertThat(clickGestureSteps.get(1), allOf(numTouchPointsIs(1), numStartsOfStroke(0), in testGestureShorterThanSampleRate_producesStartAndEnd()
77 assertThat(swipeGestureSteps.get(0), allOf(numTouchPointsIs(1), numStartsOfStroke(1), in testSwipe_shouldContainEvenlySpacedPoints()
79 assertThat(swipeGestureSteps.get(numSamples), allOf(numTouchPointsIs(1), in testSwipe_shouldContainEvenlySpacedPoints()
84 assertThat(swipeGestureSteps.get(i), allOf(numTouchPointsIs(1), in testSwipe_shouldContainEvenlySpacedPoints()
151 assertThat(steps.get(0), allOf(numStartsOfStroke(1), numEndsOfStroke(0), isAtTime(start), in testPathsWithOverlappingTiming_produceCorrectSteps()
153 assertThat(steps.get(1), allOf(numTouchPointsIs(1), noStartsOrEnds(), in testPathsWithOverlappingTiming_produceCorrectSteps()
155 assertThat(steps.get(2), allOf(numTouchPointsIs(1), isAtTime(start + deltaT * 2))); in testPathsWithOverlappingTiming_produceCorrectSteps()
156 assertThat(steps.get(3), allOf(numTouchPointsIs(1), isAtTime(start + deltaT * 3))); in testPathsWithOverlappingTiming_produceCorrectSteps()
[all …]
DMotionEventInjectorTest.java26 import static org.hamcrest.CoreMatchers.allOf;
179 mIsLineStart = allOf(IS_ACTION_DOWN, isAtPoint(LINE_START), hasStandardInitialization(), in setUp()
181 mIsLineMiddle = allOf(IS_ACTION_MOVE, isAtPoint(LINE_END), hasStandardInitialization(), in setUp()
183 mIsLineEnd = allOf(IS_ACTION_UP, isAtPoint(LINE_END), hasStandardInitialization(), in setUp()
185 mIsClickDown = allOf(IS_ACTION_DOWN, isAtPoint(CLICK_POINT), hasStandardInitialization(), in setUp()
187 mIsClickUp = allOf(IS_ACTION_UP, isAtPoint(CLICK_POINT), hasStandardInitialization(), in setUp()
213 verify(next).onMotionEvent(argThat(allOf(mIsLineMiddle, hasRightDownTime)), in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
214 argThat(allOf(mIsLineMiddle, hasRightDownTime)), eq(expectedFlags)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
221 verify(next).onMotionEvent(argThat(allOf(mIsLineEnd, hasRightDownTime)), in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
222 argThat(allOf(mIsLineEnd, hasRightDownTime)), eq(expectedFlags)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
[all …]
/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/
DRequiresPermissionChecker.java21 import static com.google.errorprone.matchers.Matchers.allOf;
98 private static final Matcher<MethodTree> BINDER_INTERNALS = allOf(
106 allOf(
109 allOf(
112 allOf(
115 allOf(
225 final Set<String> allOf = new HashSet<>(); field in RequiresPermissionChecker.ParsedRequiresPermission
229 return allOf.isEmpty() && anyOf.isEmpty(); in isEmpty()
238 boolean allMet = allOf.containsAll(perm.allOf); in containsAll()
244 if (allOf.contains(anyPerm) || anyOf.contains(anyPerm)) { in containsAll()
[all …]
DCompatChangeChecker.java22 import static com.google.errorprone.matchers.Matchers.allOf;
102 allOf(VERSION_CODE, not(LEGACY_VERSION_CODE), not(CUR_DEVELOPMENT_VERSION_CODE));
110 allOf(BOOLEAN_OPERATOR, binaryTreeExact(MODERN_VERSION_CODE, anything())),
111 allOf(BOOLEAN_OPERATOR, binaryTreeExact(anything(), MODERN_VERSION_CODE)),
112 allOf(kindIs(Kind.GREATER_THAN), binaryTreeExact(anything(), R_VERSION_CODE)),
113 allOf(kindIs(Kind.LESS_THAN), binaryTreeExact(R_VERSION_CODE, anything())));
DTargetSdkChecker.java21 import static com.google.errorprone.matchers.Matchers.allOf;
70 allOf(kindIs(Kind.LESS_THAN_EQUAL), binaryTreeExact(anything(), VERSION_CODE)),
71 allOf(kindIs(Kind.GREATER_THAN_EQUAL), binaryTreeExact(VERSION_CODE, anything())));
74 allOf(kindIs(Kind.GREATER_THAN), binaryTreeExact(anything(), VERSION_CODE)),
75 allOf(kindIs(Kind.LESS_THAN), binaryTreeExact(VERSION_CODE, anything())));
DEfficientStringsChecker.java21 import static com.google.errorprone.matchers.Matchers.allOf;
87 allOf(kindIs(Kind.MEMBER_SELECT),
88 not(allOf(hasModifier(Modifier.STATIC), hasModifier(Modifier.FINAL)))),
89 allOf(kindIs(Kind.IDENTIFIER),
90 not(allOf(hasModifier(Modifier.STATIC), hasModifier(Modifier.FINAL)))),
105 private static final Matcher<Tree> PLUS_DYNAMIC_VALUE = allOf(
DBluetoothPermissionChecker.java22 import static com.google.errorprone.matchers.Matchers.allOf;
67 private static final Matcher<MethodTree> BLUETOOTH_API = allOf(
82 private static final Matcher<MethodTree> BINDER_INTERNALS = allOf(
134 && (requiresPerm.value() != null || requiresPerm.allOf() != null); in matchMethod()
174 return anno.allOf() != null && Arrays.asList(anno.allOf()).contains(perm); in isPermissionReferenced()
DEfficientParcelableChecker.java21 import static com.google.errorprone.matchers.Matchers.allOf;
53 private static final Matcher<Tree> INSIDE_WRITE_TO_PARCEL = allOf(
/frameworks/base/core/java/com/android/internal/compat/
DIPlatformCompat.aidl96 @EnforcePermission(allOf={"LOG_COMPAT_CHANGE", "READ_COMPAT_CHANGE_CONFIG"})
122 @EnforcePermission(allOf={"LOG_COMPAT_CHANGE", "READ_COMPAT_CHANGE_CONFIG"})
148 @EnforcePermission(allOf={"LOG_COMPAT_CHANGE", "READ_COMPAT_CHANGE_CONFIG"})
344 @EnforcePermission(allOf={"LOG_COMPAT_CHANGE", "READ_COMPAT_CHANGE_CONFIG"})
/frameworks/base/core/java/android/content/pm/
DServiceInfo.java202 allOf = {
225 allOf = {
257 allOf = {
315 allOf = {
342 allOf = {
366 allOf = {
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/util/kotlin/
DBooleanFlowOperatorsTest.kt26 import com.android.systemui.util.kotlin.BooleanFlowOperators.allOf
48 val result by collectLastValue(allOf(TRUE, TRUE)) in and_allTrue_returnsTrue()
55 val result by collectLastValue(allOf(TRUE, FALSE, TRUE)) in and_anyFalse_returnsFalse()
62 val result by collectLastValue(allOf(FALSE, FALSE, FALSE)) in and_allFalse_returnsFalse()
71 val values by collectValues(allOf(flow1, flow2)) in and_onlyEmitsWhenValueChanges()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DDragHandleUtils.java28 import static org.hamcrest.Matchers.allOf;
57 return onView(allOf( in onHandleView()
60 .inRoot(allOf( in onHandleView()
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DIJobScheduler.aidl46 @EnforcePermission(allOf={"MANAGE_ACTIVITY_TASKS", "INTERACT_ACROSS_USERS_FULL"})
48 @EnforcePermission(allOf={"MANAGE_ACTIVITY_TASKS", "INTERACT_ACROSS_USERS_FULL"})
50 @EnforcePermission(allOf={"MANAGE_ACTIVITY_TASKS", "INTERACT_ACROSS_USERS_FULL"})
DJobScheduler.java514 @RequiresPermission(allOf = {
523 @RequiresPermission(allOf = {
534 @RequiresPermission(allOf = {
/frameworks/base/core/java/android/provider/
DBlockedNumbersManager.java143 @RequiresPermission(allOf = {
167 @RequiresPermission(allOf = {
198 @RequiresPermission(allOf = {
232 @RequiresPermission(allOf = {
256 @RequiresPermission(allOf = {
290 @RequiresPermission(allOf = {
326 @RequiresPermission(allOf = {
/frameworks/base/tests/EnforcePermission/aidl/android/tests/enforcepermission/
DIProtected.aidl44 @EnforcePermission(allOf={"INTERNET", "VIBRATE"})
47 @EnforcePermission(allOf={"INTERNET", "READ_SYNC_SETTINGS"})
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DBooleanFlowOperators.kt34 fun allOf(vararg flows: Flow<Boolean>): Flow<Boolean> = flows.asIterable().all() in <lambda>() method
40 fun Array<Flow<Boolean>>.all(): Flow<Boolean> = allOf(*this) in <lambda>()
/frameworks/base/errorprone/tests/java/com/google/errorprone/bugpatterns/android/
DRequiresPermissionCheckerTest.java47 private static ParsedRequiresPermission build(Collection<String> allOf, in build() argument
50 res.allOf.addAll(allOf); in build()
/frameworks/base/apex/jobscheduler/framework/java/android/app/
DJobSchedulerImpl.java211 @RequiresPermission(allOf = {
222 @RequiresPermission(allOf = {
233 @RequiresPermission(allOf = {
/frameworks/base/errorprone/tests/res/android/foo/
DIColorService.java28 @RequiresPermission(allOf = { RED, BLUE })
/frameworks/base/tools/lint/global/checks/src/main/java/com/google/android/lint/aidl/
DEnforcePermissionFix.kt91 if (anyOf) "anyOf" else "allOf"
385 override val message: String = "anyOf/allOf permission methods cannot be mixed"
/frameworks/base/errorprone/tests/res/android/annotation/
DEnforcePermission.java28 String[] allOf() default {}; in allOf() method
/frameworks/base/core/java/android/app/compat/
DCompatChanges.java74 @RequiresPermission(allOf = {android.Manifest.permission.READ_COMPAT_CHANGE_CONFIG,
97 @RequiresPermission(allOf = {android.Manifest.permission.READ_COMPAT_CHANGE_CONFIG,
/frameworks/libs/modules-utils/java/android/annotation/
DEnforcePermission.java80 String[] allOf() default {}; in allOf() method

12345