Home
last modified time | relevance | path

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

/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/
DInCallPresenterTest.java38 private MockCallListWrapper mCallList; field in InCallPresenterTest
55 mCallList = new MockCallListWrapper(); in setUp()
60 mInCallPresenter.setUp(mContext, mCallList.getCallList(), mAudioModeProvider, in setUp()
85 mCallList.setHasCall(Call.State.INCOMING, true); in testOnCallListChange_sendsNotificationWhenInCall()
87 mInCallPresenter.onCallListChange(mCallList.getCallList()); in testOnCallListChange_sendsNotificationWhenInCall()
90 mCallList.getCallList()); in testOnCallListChange_sendsNotificationWhenInCall()
99 mCallList.setHasCall(Call.State.ACTIVE, true); in testOnCallListChange_handlesCallWaitingWhenScreenOffShouldRestartActivity()
101 mInCallPresenter.onCallListChange(mCallList.getCallList()); in testOnCallListChange_handlesCallWaitingWhenScreenOffShouldRestartActivity()
108 mCallList.setHasCall(Call.State.INCOMING, true); in testOnCallListChange_handlesCallWaitingWhenScreenOffShouldRestartActivity()
110 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.java36 private MockCallListWrapper mCallList; field in ProximitySensorTest
44 mCallList = new MockCallListWrapper(); in setUp()
54 proximitySensor.onStateChange(null, InCallState.OUTGOING, mCallList.getCallList()); in testAccelerometerBehaviorOnDisplayChange()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DInCallPresenter.java114 private CallList mCallList; field in InCallPresenter
144 final Call call = mCallList.getCallByTelecomCall(telecomCall);
155 final Call call = mCallList.getCallByTelecomCall(telecomCall);
297 return mCallList; in getCallList()
310 Preconditions.checkState(callList == mCallList); in setUp()
331 mCallList = callList; in setUp()
338 mCallList.addListener(this); in setUp()
346 mCallList.setFilteredNumberQueryHandler(mFilteredQueryHandler); in setUp()
361 mCallList.clearOnDisconnect(); in tearDown()
443 if (mCallList != null && mCallList.getDisconnectedCall() != null) { in updateActivity()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DCallListAdapter.java42 if (mCallList.size() == 0) {
43 mCallList.removeListener(this);
49 private final TestCallList mCallList; field in CallListAdapter
55 if (mCallList.size() > 0) {
64 mCallList = TestCallList.getInstance(); in CallListAdapter()
65 mCallList.addListener(mListener); in CallListAdapter()
72 Log.i(TAG, "size reporting: " + mCallList.size()); in getCount()
73 return mCallList.size(); in getCount()
97 Call call = mCallList.getCall(position); in getView()
DTestInCallUI.java31 private TestCallList mCallList; field in TestInCallUI
44 mCallList = TestCallList.getInstance(); in onCreate()
45 mCallList.addListener(new TestCallList.Listener() { in onCreate()
48 if (mCallList.size() == 0) { in onCreate()
62 Call call = mCallList.getCall(0); in onCreate()
71 Call call = mCallList.getCall(0); in onCreate()
84 Call call = mCallList.getCall(0); in onCreate()
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/ringtone/
DDialerRingtoneManagerTest.java40 @Mock private CallList mCallList; field in DialerRingtoneManagerTest
49 mRingtoneManagerEnabled = new DialerRingtoneManager(mInCallTonePlayer, mCallList); in setUp()
51 mRingtoneManagerDisabled = new DialerRingtoneManager(mInCallTonePlayer, mCallList); in setUp()
57 new DialerRingtoneManager(null, mCallList); in testNullInCallTonePlayer()
109 Mockito.when(mCallList.getActiveCall()).thenReturn(mCall); in testShouldPlayRingtone_N_CallWaitingByActiveCall()
168 Mockito.when(mCallList.getActiveCall()).thenReturn(mCall); in testShouldPlayCallWaitingTone_N_ByActiveCall()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ringtone/
DDialerRingtoneManager.java46 private final CallList mCallList; field in DialerRingtoneManager
57 mCallList = Preconditions.checkNotNull(callList); in DialerRingtoneManager()
93 return mCallList.getActiveCall() == null ? State.INCOMING : State.CALL_WAITING; in translateCallStateForCallWaiting()