Home
last modified time | relevance | path

Searched refs:expectedFlags (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/
DViewInvalidateTest.java100 int expectedFlags = 0; in validateInvalFlags() local
102 expectedFlags |= expectedFlag; in validateInvalFlags()
106 assertEquals(String.format("expect %x, observed %x", expectedFlags, observedFlags), in validateInvalFlags()
107 expectedFlags, observedFlags); in validateInvalFlags()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DActionIntentCreatorTest.kt120 val expectedFlags = in testCreateEditIntent() constant
125 assertFlagsSet(expectedFlags, output.flags) in testCreateEditIntent()
/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp837 std::optional<int32_t> expectedFlags) { in consumeEvent() argument
854 if (expectedFlags.has_value()) { in consumeEvent()
855 EXPECT_EQ(expectedFlags.value(), keyEvent.getFlags()); in consumeEvent()
863 if (expectedFlags.has_value()) { in consumeEvent()
864 EXPECT_EQ(expectedFlags.value(), motionEvent.getFlags()); in consumeEvent()
1127 void consumeKeyDown(int32_t expectedDisplayId, int32_t expectedFlags = 0) { in consumeKeyDown() argument
1129 expectedFlags); in consumeKeyDown()
1132 void consumeKeyUp(int32_t expectedDisplayId, int32_t expectedFlags = 0) { in consumeKeyUp() argument
1133 consumeEvent(AINPUT_EVENT_TYPE_KEY, AKEY_EVENT_ACTION_UP, expectedDisplayId, expectedFlags); in consumeKeyUp()
1137 int32_t expectedFlags = 0) { in consumeMotionCancel() argument
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLockTaskControllerTest.java611 int expectedFlags = STATUS_BAR_MASK_LOCKED in testUpdateLockTaskFeatures() local
614 verify(mStatusBarService).disable(eq(expectedFlags), any(IBinder.class), in testUpdateLockTaskFeatures()
626 expectedFlags = STATUS_BAR_MASK_LOCKED in testUpdateLockTaskFeatures()
631 verify(mStatusBarService).disable(eq(expectedFlags), any(IBinder.class), in testUpdateLockTaskFeatures()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMotionEventInjectorTest.java204 final int expectedFlags = FLAG_PASS_TO_USER | FLAG_INJECTED_FROM_ACCESSIBILITY; in testInjectEvents_shouldEmergeInOrderWithCorrectTiming() local
205 verify(next).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), eq(expectedFlags)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
206 verify(next).onMotionEvent(argThat(mIsLineStart), argThat(mIsLineStart), eq(expectedFlags)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
214 argThat(allOf(mIsLineMiddle, hasRightDownTime)), eq(expectedFlags)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
222 argThat(allOf(mIsLineEnd, hasRightDownTime)), eq(expectedFlags)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
/frameworks/base/core/java/android/util/proto/
DProtoOutputStream.java2208 public static int checkFieldId(long fieldId, long expectedFlags) { in checkFieldId() argument
2211 final long expectedCount = expectedFlags & FIELD_COUNT_MASK; in checkFieldId()
2212 final long expectedType = expectedFlags & FIELD_TYPE_MASK; in checkFieldId()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsServiceControllerTest.java200 int expectedFlags = Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE in testBindService() local
202 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java6535 private void assertAttestationFlags(int attestationFlags, int[] expectedFlags) { in assertAttestationFlags() argument
6538 Arrays.sort(expectedFlags); in assertAttestationFlags()
6539 assertThat(Arrays.equals(expectedFlags, gotFlags)).isTrue(); in assertAttestationFlags()