Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/tests/
DFakeWindows.h83 std::optional<int32_t> expectedFlags);
253 inline void consumeKeyDown(ui::LogicalDisplayId expectedDisplayId, int32_t expectedFlags = 0) {
255 WithDisplayId(expectedDisplayId), WithFlags(expectedFlags)));
258 inline void consumeKeyUp(ui::LogicalDisplayId expectedDisplayId, int32_t expectedFlags = 0) {
260 WithDisplayId(expectedDisplayId), WithFlags(expectedFlags)));
265 int32_t expectedFlags = 0) {
268 WithFlags(expectedFlags | AMOTION_EVENT_FLAG_CANCELED)));
273 int32_t expectedFlags = 0) {
276 WithFlags(expectedFlags)));
281 int32_t expectedFlags = 0) {
[all …]
DFakeWindows.cpp85 std::optional<int32_t> expectedFlags) { in consumeEvent() argument
101 if (expectedFlags.has_value()) { in consumeEvent()
102 EXPECT_EQ(expectedFlags.value(), keyEvent.getFlags()); in consumeEvent()
109 if (expectedFlags.has_value()) { in consumeEvent()
110 EXPECT_EQ(expectedFlags.value(), motionEvent.getFlags()); in consumeEvent()
DInputDispatcher_test.cpp447 void consumeKeyDown(ui::LogicalDisplayId expectedDisplayId, int32_t expectedFlags = 0) { in consumeKeyDown() argument
449 expectedFlags); in consumeKeyDown()
459 void consumeMotionDown(ui::LogicalDisplayId expectedDisplayId, int32_t expectedFlags = 0) { in consumeMotionDown() argument
461 expectedDisplayId, expectedFlags); in consumeMotionDown()
464 void consumeMotionMove(ui::LogicalDisplayId expectedDisplayId, int32_t expectedFlags = 0) { in consumeMotionMove() argument
466 expectedDisplayId, expectedFlags); in consumeMotionMove()
469 void consumeMotionUp(ui::LogicalDisplayId expectedDisplayId, int32_t expectedFlags = 0) { in consumeMotionUp() argument
471 expectedDisplayId, expectedFlags); in consumeMotionUp()
474 void consumeMotionCancel(ui::LogicalDisplayId expectedDisplayId, int32_t expectedFlags = 0) { in consumeMotionCancel() argument
478 WithFlags(expectedFlags | AMOTION_EVENT_FLAG_CANCELED))); in consumeMotionCancel()
/frameworks/base/services/tests/servicestests/src/com/android/server/statusbar/
DStatusBarManagerServiceTest.java753 int expectedFlags = DISABLE_MASK & DISABLE_HOME; in testSetHomeDisabled() local
762 mStatusBarManagerService.disable(expectedFlags, mMockStatusBar, pkg); in testSetHomeDisabled()
764 assertEquals(expectedFlags, in testSetHomeDisabled()
770 int expectedFlags = DISABLE_MASK & DISABLE_SYSTEM_INFO; in testSetSystemInfoDisabled() local
779 mStatusBarManagerService.disable(expectedFlags, mMockStatusBar, pkg); in testSetSystemInfoDisabled()
781 assertEquals(expectedFlags, in testSetSystemInfoDisabled()
787 int expectedFlags = DISABLE_MASK & DISABLE_RECENT; in testSetRecentDisabled() local
796 mStatusBarManagerService.disable(expectedFlags, mMockStatusBar, pkg); in testSetRecentDisabled()
798 assertEquals(expectedFlags, in testSetRecentDisabled()
804 int expectedFlags = DISABLE_MASK & DISABLE_BACK; in testSetBackDisabled() local
[all …]
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/domainselection/
DDomainSelectionControllerTest.java153 int expectedFlags = Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE in testBindService() local
156 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService()
/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.java2209 public static int checkFieldId(long fieldId, long expectedFlags) { in checkFieldId() argument
2212 final long expectedCount = expectedFlags & FIELD_COUNT_MASK; in checkFieldId()
2213 final long expectedType = expectedFlags & FIELD_TYPE_MASK; in checkFieldId()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsServiceControllerTest.java203 int expectedFlags = Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE in testBindService() local
205 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java6575 private void assertAttestationFlags(int attestationFlags, int[] expectedFlags) { in assertAttestationFlags() argument
6578 Arrays.sort(expectedFlags); in assertAttestationFlags()
6579 assertThat(Arrays.equals(expectedFlags, gotFlags)).isTrue(); in assertAttestationFlags()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...