/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityInputFilterInputTest.kt | 50 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 …]
|
D | GestureDescriptionTest.java | 19 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 …]
|
D | MotionEventInjectorTest.java | 26 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/ |
D | RequiresPermissionChecker.java | 21 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 …]
|
D | CompatChangeChecker.java | 22 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())));
|
D | TargetSdkChecker.java | 21 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())));
|
D | EfficientStringsChecker.java | 21 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(
|
D | BluetoothPermissionChecker.java | 22 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()
|
D | EfficientParcelableChecker.java | 21 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/ |
D | IPlatformCompat.aidl | 96 @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/ |
D | ServiceInfo.java | 202 allOf = { 225 allOf = { 257 allOf = { 315 allOf = { 342 allOf = { 366 allOf = {
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/util/kotlin/ |
D | BooleanFlowOperatorsTest.kt | 26 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/ |
D | DragHandleUtils.java | 28 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/ |
D | IJobScheduler.aidl | 46 @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"})
|
D | JobScheduler.java | 514 @RequiresPermission(allOf = { 523 @RequiresPermission(allOf = { 534 @RequiresPermission(allOf = {
|
/frameworks/base/core/java/android/provider/ |
D | BlockedNumbersManager.java | 143 @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/ |
D | IProtected.aidl | 44 @EnforcePermission(allOf={"INTERNET", "VIBRATE"}) 47 @EnforcePermission(allOf={"INTERNET", "READ_SYNC_SETTINGS"})
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/ |
D | BooleanFlowOperators.kt | 34 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/ |
D | RequiresPermissionCheckerTest.java | 47 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/ |
D | JobSchedulerImpl.java | 211 @RequiresPermission(allOf = { 222 @RequiresPermission(allOf = { 233 @RequiresPermission(allOf = {
|
/frameworks/base/errorprone/tests/res/android/foo/ |
D | IColorService.java | 28 @RequiresPermission(allOf = { RED, BLUE })
|
/frameworks/base/tools/lint/global/checks/src/main/java/com/google/android/lint/aidl/ |
D | EnforcePermissionFix.kt | 91 if (anyOf) "anyOf" else "allOf" 385 override val message: String = "anyOf/allOf permission methods cannot be mixed"
|
/frameworks/base/errorprone/tests/res/android/annotation/ |
D | EnforcePermission.java | 28 String[] allOf() default {}; in allOf() method
|
/frameworks/base/core/java/android/app/compat/ |
D | CompatChanges.java | 74 @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/ |
D | EnforcePermission.java | 80 String[] allOf() default {}; in allOf() method
|