Home
last modified time | relevance | path

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

/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java69 public FlagReceiver(int expectedFlags) { in FlagReceiver() argument
70 mExpectedFlags = expectedFlags; in FlagReceiver()
108 public BluetoothReceiver(int expectedFlags) { in BluetoothReceiver() argument
109 super(expectedFlags); in BluetoothReceiver()
162 public PairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) { in PairReceiver() argument
163 super(expectedFlags); in PairReceiver()
221 public ConnectProfileReceiver(BluetoothDevice device, int profile, int expectedFlags) { in ConnectProfileReceiver() argument
222 super(expectedFlags); in ConnectProfileReceiver()
278 public ConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) { in ConnectPanReceiver() argument
279 super(device, BluetoothProfile.PAN, expectedFlags); in ConnectPanReceiver()
[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/native/services/inputflinger/tests/
DInputDispatcher_test.cpp767 std::optional<int32_t> expectedFlags) { in consumeEvent() argument
784 if (expectedFlags.has_value()) { in consumeEvent()
785 EXPECT_EQ(expectedFlags.value(), keyEvent.getFlags()); in consumeEvent()
792 if (expectedFlags.has_value()) { in consumeEvent()
793 EXPECT_EQ(expectedFlags.value(), motionEvent.getFlags()); in consumeEvent()
981 void consumeKeyDown(int32_t expectedDisplayId, int32_t expectedFlags = 0) { in consumeKeyDown() argument
983 expectedFlags); in consumeKeyDown()
986 void consumeKeyUp(int32_t expectedDisplayId, int32_t expectedFlags = 0) { in consumeKeyUp() argument
987 consumeEvent(AINPUT_EVENT_TYPE_KEY, AKEY_EVENT_ACTION_UP, expectedDisplayId, expectedFlags); in consumeKeyUp()
991 int32_t expectedFlags = 0) { in consumeMotionCancel() argument
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLockTaskControllerTest.java594 int expectedFlags = STATUS_BAR_MASK_LOCKED in testUpdateLockTaskFeatures() local
597 verify(mStatusBarService).disable(eq(expectedFlags), any(IBinder.class), in testUpdateLockTaskFeatures()
609 expectedFlags = STATUS_BAR_MASK_LOCKED in testUpdateLockTaskFeatures()
614 verify(mStatusBarService).disable(eq(expectedFlags), any(IBinder.class), in testUpdateLockTaskFeatures()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMotionEventInjectorTest.java202 final int expectedFlags = FLAG_PASS_TO_USER | FLAG_INJECTED_FROM_ACCESSIBILITY; in testInjectEvents_shouldEmergeInOrderWithCorrectTiming() local
203 verify(next).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), eq(expectedFlags)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
204 verify(next).onMotionEvent(argThat(mIsLineStart), argThat(mIsLineStart), eq(expectedFlags)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
212 argThat(allOf(mIsLineMiddle, hasRightDownTime)), eq(expectedFlags)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
220 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.java178 int expectedFlags = Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE in testBindService() local
180 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java6302 private void assertAttestationFlags(int attestationFlags, int[] expectedFlags) { in assertAttestationFlags() argument
6305 Arrays.sort(expectedFlags); in assertAttestationFlags()
6306 assertThat(Arrays.equals(expectedFlags, gotFlags)).isTrue(); in assertAttestationFlags()