Search in sources :

Example 1 with ExternalCallList

use of com.android.incallui.call.ExternalCallList in project android_packages_apps_Dialer by LineageOS.

the class InCallServiceImpl method onBind.

@Override
public IBinder onBind(Intent intent) {
    final Context context = getApplicationContext();
    final ContactInfoCache contactInfoCache = ContactInfoCache.getInstance(context);
    InCallPresenter.getInstance().setUp(context, CallList.getInstance(), new ExternalCallList(), new StatusBarNotifier(context, contactInfoCache), new ExternalCallNotifier(context, contactInfoCache), contactInfoCache, new ProximitySensor(context, AudioModeProvider.getInstance(), new AccelerometerListener(context)), new FilteredNumberAsyncQueryHandler(context));
    InCallPresenter.getInstance().onServiceBind();
    InCallPresenter.getInstance().maybeStartRevealAnimation(intent);
    TelecomAdapter.getInstance().setInCallService(this);
    if (ReturnToCallController.isEnabled(this)) {
        returnToCallController = new ReturnToCallController(this);
    }
    return super.onBind(intent);
}
Also used : Context(android.content.Context) FilteredNumberAsyncQueryHandler(com.android.dialer.blocking.FilteredNumberAsyncQueryHandler) ExternalCallList(com.android.incallui.call.ExternalCallList)

Aggregations

Context (android.content.Context)1 FilteredNumberAsyncQueryHandler (com.android.dialer.blocking.FilteredNumberAsyncQueryHandler)1 ExternalCallList (com.android.incallui.call.ExternalCallList)1