Home
last modified time | relevance | path

Searched refs:mCallList (Results 1 – 4 of 4) sorted by relevance

/packages/apps/InCallUI/tests/src/com/android/incallui/
DInCallPresenterTest.java35 private MockCallListWrapper mCallList; field in InCallPresenterTest
51 mCallList = new MockCallListWrapper(); in setUp()
54 mInCallPresenter.setUp(mContext, mCallList.getCallList(), mAudioModeProvider, in setUp()
79 mCallList.setHasCall(Call.State.INCOMING, true); in testOnCallListChange_sendsNotificationWhenInCall()
81 mInCallPresenter.onCallListChange(mCallList.getCallList()); in testOnCallListChange_sendsNotificationWhenInCall()
84 mCallList.getCallList()); in testOnCallListChange_sendsNotificationWhenInCall()
93 mCallList.setHasCall(Call.State.ACTIVE, true); in testOnCallListChange_handlesCallWaitingWhenScreenOffShouldRestartActivity()
95 mInCallPresenter.onCallListChange(mCallList.getCallList()); in testOnCallListChange_handlesCallWaitingWhenScreenOffShouldRestartActivity()
102 mCallList.setHasCall(Call.State.INCOMING, true); in testOnCallListChange_handlesCallWaitingWhenScreenOffShouldRestartActivity()
104 mInCallPresenter.onCallListChange(mCallList.getCallList()); in testOnCallListChange_handlesCallWaitingWhenScreenOffShouldRestartActivity()
[all …]
DMockCallListWrapper.java36 private CallList mCallList; field in MockCallListWrapper
40 mCallList = Mockito.mock(CallList.class); in MockCallListWrapper()
41 mCallList = spy(new CallList()); in MockCallListWrapper()
42 when(mCallList.getFirstCallWithState(anyInt())).thenAnswer(new Answer<Call>() { in MockCallListWrapper()
57 return mCallList; in getCallList()
DProximitySensorTest.java34 private MockCallListWrapper mCallList; field in ProximitySensorTest
42 mCallList = new MockCallListWrapper(); in setUp()
52 proximitySensor.onStateChange(null, InCallState.OUTGOING, mCallList.getCallList()); in testAccelerometerBehaviorOnDisplayChange()
/packages/apps/InCallUI/src/com/android/incallui/
DInCallPresenter.java95 private CallList mCallList; field in InCallPresenter
125 final Call call = mCallList.getCallByTelecommCall(telecomCall);
136 final Call call = mCallList.getCallByTelecommCall(telecomCall);
197 return mCallList; in getCallList()
210 Preconditions.checkState(callList == mCallList); in setUp()
231 mCallList = callList; in setUp()
238 mCallList.addListener(this); in setUp()
333 if (mCallList != null && mCallList.getDisconnectedCall() != null) { in updateActivity()
334 maybeShowErrorDialogOnDisconnect(mCallList.getDisconnectedCall()); in updateActivity()
375 onCallListChange(mCallList); in updateActivity()
[all …]