1/* 2 * Copyright (C) 2016 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License 15 */ 16 17package com.android.dialer.app.legacybindings; 18 19import android.app.Activity; 20import android.support.annotation.NonNull; 21import android.view.ViewGroup; 22import com.android.dialer.app.calllog.CallLogAdapter; 23import com.android.dialer.app.calllog.calllogcache.CallLogCache; 24import com.android.dialer.app.contactinfo.ContactInfoCache; 25import com.android.dialer.app.list.RegularSearchFragment; 26import com.android.dialer.app.voicemail.VoicemailPlaybackPresenter; 27import com.android.dialer.blocking.FilteredNumberAsyncQueryHandler; 28 29/** 30 * These are old bindings between Dialer and the container application. All new bindings should be 31 * added to the bindings module and not here. 32 */ 33public interface DialerLegacyBindings { 34 35 /** 36 * activityType must be one of following constants: CallLogAdapter.ACTIVITY_TYPE_CALL_LOG, or 37 * CallLogAdapter.ACTIVITY_TYPE_DIALTACTS. 38 */ 39 CallLogAdapter newCallLogAdapter( 40 Activity activity, 41 ViewGroup alertContainer, 42 CallLogAdapter.CallFetcher callFetcher, 43 CallLogCache callLogCache, 44 ContactInfoCache contactInfoCache, 45 VoicemailPlaybackPresenter voicemailPlaybackPresenter, 46 @NonNull FilteredNumberAsyncQueryHandler filteredNumberAsyncQueryHandler, 47 int activityType); 48 49 RegularSearchFragment newRegularSearchFragment(); 50} 51