Searched refs:mMockPolicy (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | KeyboardInterceptorTest.java | 60 @Mock WindowManagerPolicy mMockPolicy; field in KeyboardInterceptorTest 66 mInterceptor = new KeyboardInterceptor(mMockAms, mMockPolicy, mHandler); in setUp() 85 when(mMockPolicy.interceptKeyBeforeDispatching((IBinder) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysUseIt_eventGoesToAms() 94 when(mMockPolicy.interceptKeyBeforeDispatching((IBinder) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDropIt_eventDropped() 104 when(mMockPolicy.interceptKeyBeforeDispatching((IBinder) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms() 111 when(mMockPolicy.interceptKeyBeforeDispatching((IBinder) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms() 121 when(mMockPolicy.interceptKeyBeforeDispatching((IBinder) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped() 128 when(mMockPolicy.interceptKeyBeforeDispatching((IBinder) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped() 143 when(mMockPolicy.interceptKeyBeforeDispatching((IBinder) argThat(nullValue()), in whenSomeEventsGetDelayed_allEventsStillInOrder() 145 when(mMockPolicy.interceptKeyBeforeDispatching((IBinder) argThat(nullValue()), in whenSomeEventsGetDelayed_allEventsStillInOrder() [all …]
|
/frameworks/native/services/inputflinger/tests/ |
D | PointerChoreographer_test.cpp | 121 testing::NiceMock<MockPointerChoreographerPolicyInterface> mMockPolicy; member in android::PointerChoreographerTest 122 TestPointerChoreographer mChoreographer{mTestListener, mMockPolicy, 130 ON_CALL(mMockPolicy, createPointerController).WillByDefault([this](ControllerType type) { in SetUp() 137 ON_CALL(mMockPolicy, notifyPointerDisplayIdChanged) in SetUp() 2386 EXPECT_CALL(mMockPolicy, isInputMethodConnectionActive).WillRepeatedly(testing::Return(true)); in TEST_F() 2407 EXPECT_CALL(mMockPolicy, isInputMethodConnectionActive).WillRepeatedly(testing::Return(true)); in TEST_F() 2437 EXPECT_CALL(mMockPolicy, isInputMethodConnectionActive).WillRepeatedly(testing::Return(true)); in TEST_F() 2456 EXPECT_CALL(mMockPolicy, isInputMethodConnectionActive).WillRepeatedly(testing::Return(true)); in TEST_F()
|