diff options
author | Tyler Gunn <tgunn@google.com> | 2016-04-01 10:23:42 -0700 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2016-04-01 10:23:42 -0700 |
commit | d8eb77f116ba21a4f40fd59d608b2e8bbdf2e09b (patch) | |
tree | f8084505a2bd97468525db3c1739998ed64bded7 /InCallUI/tests/src/com/android | |
parent | 4af1acfc1e76c65578feb0e985b5e201f4239444 (diff) |
Add support for multi-endpoint.
- Add new "ExternalCallNotifier" which tracks external calls that Telecom
informs Incall about.
- Refactored some common code from StatusBarNotifier that is used in
ExternalCallNotifier into NotificationUtil so it can be used in both
places.
- Modified CallList to track and store external calls seperately from
regular ones.
- Added support for triggering a call pull in the
NotificationBroadcastReceiver.
Bug: 27458894
Change-Id: I505c8b5f7aad273ebdaaeae2431564d10b23770b
Diffstat (limited to 'InCallUI/tests/src/com/android')
-rw-r--r-- | InCallUI/tests/src/com/android/incallui/InCallPresenterTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/InCallUI/tests/src/com/android/incallui/InCallPresenterTest.java b/InCallUI/tests/src/com/android/incallui/InCallPresenterTest.java index ed8d6223c..f0f08ab68 100644 --- a/InCallUI/tests/src/com/android/incallui/InCallPresenterTest.java +++ b/InCallUI/tests/src/com/android/incallui/InCallPresenterTest.java @@ -39,6 +39,7 @@ public class InCallPresenterTest extends InstrumentationTestCase { @Mock private InCallActivity mInCallActivity; @Mock private AudioModeProvider mAudioModeProvider; @Mock private StatusBarNotifier mStatusBarNotifier; + @Mock private ExternalCallNotifier mExternalCallNotifier; @Mock private ContactInfoCache mContactInfoCache; @Mock private ProximitySensor mProximitySensor; @@ -57,8 +58,9 @@ public class InCallPresenterTest extends InstrumentationTestCase { when(mContext.getSystemService(Context.TELEPHONY_SERVICE)).thenReturn(mTelephonyManager); mInCallPresenter = InCallPresenter.getInstance(); - mInCallPresenter.setUp(mContext, mCallList.getCallList(), mAudioModeProvider, - mStatusBarNotifier, mContactInfoCache, mProximitySensor); + mInCallPresenter.setUp(mContext, mCallList.getCallList(), new ExternalCallList(), + mAudioModeProvider, mStatusBarNotifier, mExternalCallNotifier, mContactInfoCache, + mProximitySensor); } @Override |