Home
last modified time | relevance | path

Searched refs:mMockListener (Results 1 – 15 of 15) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/
DImsCallSessionListenerTests.java46 IImsCallSessionListener mMockListener; field in ImsCallSessionListenerTests
55 ImsCallSessionListener mTestListener = new ImsCallSessionListener(mMockListener); in testListenerMayHandoverDeprecated()
59 verify(mMockListener).callSessionMayHandover(TelephonyManager.NETWORK_TYPE_LTE, in testListenerMayHandoverDeprecated()
66 ImsCallSessionListener mTestListener = new ImsCallSessionListener(mMockListener); in testListenerHandoverDeprecated()
70 verify(mMockListener).callSessionHandover(eq(TelephonyManager.NETWORK_TYPE_LTE), in testListenerHandoverDeprecated()
78 ImsCallSessionListener mTestListener = new ImsCallSessionListener(mMockListener); in testListenerHandoverFailedDeprecated()
82 verify(mMockListener).callSessionHandoverFailed(eq(TelephonyManager.NETWORK_TYPE_LTE), in testListenerHandoverFailedDeprecated()
88 ImsCallSessionListener mTestListener = new ImsCallSessionListener(mMockListener); in testCallSessionDtmfReceived()
91 verify(mMockListener, times(2)).callSessionDtmfReceived(eq('A')); in testCallSessionDtmfReceived()
95 verify(mMockListener, times(2)).callSessionDtmfReceived(eq('B')); in testCallSessionDtmfReceived()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/tv/
DTvPipActionProviderTest.java68 private TvPipActionsProvider.Listener mMockListener; field in TvPipActionProviderTest
130 mActionsProvider.addListener(mMockListener); in expandedPip_enableExpansion_enable()
136 verify(mMockListener).onActionsChanged(/* added= */ 1, /* updated= */ 0, /* index= */ 3); in expandedPip_enableExpansion_enable()
143 mActionsProvider.addListener(mMockListener); in expandedPip_enableExpansion_disable()
149 verify(mMockListener).onActionsChanged(/* added= */ -1, /* updated= */ 0, /* index= */ 3); in expandedPip_enableExpansion_disable()
154 mActionsProvider.addListener(mMockListener); in expandedPip_enableExpansion_AlreadyEnabled()
168 mActionsProvider.addListener(mMockListener); in check_expandedPip_updateExpansionState()
176 verify(mMockListener).onActionsChanged(0, 1, 3); in check_expandedPip_updateExpansionState()
178 verify(mMockListener, times(0)) in check_expandedPip_updateExpansionState()
219 mActionsProvider.addListener(mMockListener); in regularPiP_updateExpansionState_setCollapsed()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/
DPluginManagerTest.java65 @Mock PluginListener<TestPlugin> mMockListener; field in PluginManagerTest
91 mPluginManager.addPluginListener("myAction", mMockListener, TestPlugin.class); in testAddListener()
98 mPluginManager.addPluginListener("myAction", mMockListener, TestPlugin.class); in testRemoveListener()
100 mPluginManager.removePluginListener(mMockListener); in testRemoveListener()
117 mPluginManager.addPluginListener("myAction", mMockListener, TestPlugin.class); in testNonDebuggable_nonPrivileged()
118 verify(mMockFactory).create(eq("myAction"), eq(mMockListener), eq(TestPlugin.class), in testNonDebuggable_nonPrivileged()
139 mPluginManager.addPluginListener("myAction", mMockListener, TestPlugin.class); in testNonDebuggable_privilegedPackage()
140 verify(mMockFactory).create(eq("myAction"), eq(mMockListener), eq(TestPlugin.class), in testNonDebuggable_privilegedPackage()
147 mPluginManager.addPluginListener("myAction", mMockListener, TestPlugin.class); in testExceptionHandler_foundPlugin()
159 mPluginManager.addPluginListener("myAction", mMockListener, TestPlugin.class); in testExceptionHandler_noFoundPlugin()
DPluginActionManagerTest.java71 private PluginListener<TestPlugin> mMockListener; field in PluginActionManagerTest
97 mMockListener = mock(PluginListener.class); in setup()
109 mPluginActionManager = mActionManagerFactory.create("myAction", mMockListener, in setup()
122 verify(mMockListener, never()).onPluginConnected(any(), any()); in testNoPlugins()
163 mPluginActionManager = mActionManagerFactory.create("myAction", mMockListener, in testNonDebuggable()
172 verify(mMockListener, never()).onPluginConnected(any(), any()); in testNonDebuggable()
182 mPluginActionManager = factory.create("myAction", mMockListener, in testNonDebuggable_privileged()
226 mPluginActionManager = factory.create("myAction", mMockListener, in testDisablePrivileged()
/frameworks/base/core/tests/coretests/src/android/view/
DInsetsAnimationControlImplTest.java83 @Mock WindowInsetsAnimationControlListener mMockListener; field in InsetsAnimationControlImplTest
121 new Rect(0, 0, 500, 500), mInsetsState, mMockListener, systemBars(), in setup()
190 verify(mMockListener).onFinished(mController); in testFinishing()
204 verify(mMockListener).onCancelled(mController); in testCancelled()
206 verify(mMockListener, never()).onFinished(any()); in testCancelled()
216 verify(mMockListener).onCancelled(null); in testCancelled_beforeReadyDispatched()
217 verify(mMockListener, never()).onFinished(any()); in testCancelled_beforeReadyDispatched()
233 verify(mMockListener).onFinished(mController); in testFinish_immediately()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowProcessControllerTests.java82 WindowProcessListener mMockListener; field in WindowProcessControllerTests
86 mMockListener = mock(WindowProcessListener.class); in setUp()
92 mAtm, info, null, 0, -1, null, mMockListener); in setUp()
183 InOrder orderVerifier = Mockito.inOrder(mMockListener); in testSetAnimatingReason()
184 orderVerifier.verify(mMockListener).setRunningRemoteAnimation(eq(true)); in testSetAnimatingReason()
185 orderVerifier.verify(mMockListener).setRunningRemoteAnimation(eq(false)); in testSetAnimatingReason()
194 InOrder orderVerifier = Mockito.inOrder(mMockListener); in testSetRunningRemoteAnimation()
195 orderVerifier.verify(mMockListener).setRunningRemoteAnimation(eq(true)); in testSetRunningRemoteAnimation()
196 orderVerifier.verify(mMockListener).setRunningRemoteAnimation(eq(false)); in testSetRunningRemoteAnimation()
208 InOrder orderVerifier = Mockito.inOrder(mMockListener); in testSetRunningBothAnimations()
[all …]
DActivityTaskManagerServiceTests.java1045 WindowProcessListener mMockListener = Mockito.mock(WindowProcessListener.class); in createWindowProcessController() local
1049 mAtm, info, packageName, 0, userId, null, mMockListener); in createWindowProcessController()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DHotspotNetworkEntryTest.java69 @Mock private WifiEntry.WifiEntryCallback mMockListener; field in HotspotNetworkEntryTest
370 entry.setListener(mMockListener); in testGetSummary_connectionStatusEnabling_returnsConnectingString()
386 entry.setListener(mMockListener); in testGetSummary_connectionStatusFailure_resetsConnectingString()
405 entry.setListener(mMockListener); in testGetSummary_connectionSuccess_resetsConnectingString()
725 entry.setListener(mMockListener); in testConnect_nullManager_failureCallback()
738 entry.setListener(mMockListener); in testConnect_onConnectionStatusChanged_failureCallback()
808 entry.setListener(mMockListener); in testDisconnect_nullManager_failureCallback()
821 entry.setListener(mMockListener); in testOnConnectionStatusChanged_withoutConnect_updatesString()
840 entry.setListener(mMockListener); in testOnConnectionStatusChanged_connectedStatus_updatesString()
857 entry.setListener(mMockListener); in testOnConnectionStatusChanged_connectedStatus_callsCallback()
[all …]
DKnownNetworkEntryTest.java47 @Mock private WifiEntry.WifiEntryCallback mMockListener; field in KnownNetworkEntryTest
112 entry.setListener(mMockListener); in testConnect_nullManager_failureCallback()
126 entry.setListener(mMockListener); in testConnect_onConnectionStatusChanged_failureCallback()
DStandardWifiEntryTest.java96 @Mock private WifiEntry.WifiEntryCallback mMockListener; field in StandardWifiEntryTest
242 entry.setListener(mMockListener); in testUpdateScanResultInfo_notifiesListener()
247 verify(mMockListener).onUpdated(); in testUpdateScanResultInfo_notifiesListener()
524 entry.setListener(mMockListener); in testConnect_savedNetwork_usesSavedConfig_withOutSim()
555 entry.setListener(mMockListener); in testConnect_unsavedSecureNetwork_returnsNoConfigFailure()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DVirtualDisplayAdapterTest.java53 DisplayAdapter.Listener mMockListener; field in VirtualDisplayAdapterTest
74 mContextMock, mHandler, mMockListener, mMockSufaceControlDisplayFactory, in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityUserStateTest.java109 @Mock private AccessibilityUserState.ServiceInfoChangeListener mMockListener; field in AccessibilityUserStateTest
141 mUserState = new AccessibilityUserState(USER_ID, mMockContext, mMockListener); in setUp()
207 verify(mMockListener, never()).onServiceInfoChangedLocked(any()); in addService_connectionAlreadyAdded_notAddAgain()
218 verify(mMockListener).onServiceInfoChangedLocked(eq(mUserState)); in addService_connectionNotYetAddedToBoundService_addAndNotifyServices()
265 verify(mMockListener).onServiceInfoChangedLocked(eq(mUserState)); in removeService_serviceChangingSoftKeyboardMode_removeAndSetSoftKbModeAuto()
DSystemActionPerformerTest.java110 @Mock private SystemActionPerformer.SystemActionsChangedListener mMockListener; field in SystemActionPerformerTest
129 mMockListener, mMockCallback); in setupWithMockContext()
137 mMockListener, mMockCallback); in setupWithRealContext()
DAbstractAccessibilityServiceConnectionTest.java184 @Mock private RemoteCallback.OnResultListener mMockListener; field in AbstractAccessibilityServiceConnectionTest
743 new RemoteCallback(mMockListener)); in takeScreenshot_NoA11yAccess_returnErrorCode()
746 verify(mMockListener).onResult(Mockito.argThat( in takeScreenshot_NoA11yAccess_returnErrorCode()
760 new RemoteCallback(mMockListener)); in takeScreenshot_invalidDisplay_returnErrorCode()
763 verify(mMockListener).onResult(Mockito.argThat( in takeScreenshot_invalidDisplay_returnErrorCode()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DHdrClamperTest.java73 private BrightnessClamperController.ClamperChangeListener mMockListener; field in HdrClamperTest
95 mHdrClamper = new HdrClamper(mMockListener, mTestHandler, mMockInjector); in setUp()