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 17 package com.android.dialer.app.legacybindings; 18 19 import android.app.Activity; 20 import android.support.annotation.NonNull; 21 import android.view.ViewGroup; 22 import com.android.dialer.app.calllog.CallLogAdapter; 23 import com.android.dialer.app.calllog.calllogcache.CallLogCache; 24 import com.android.dialer.app.contactinfo.ContactInfoCache; 25 import com.android.dialer.app.list.RegularSearchFragment; 26 import com.android.dialer.app.voicemail.VoicemailPlaybackPresenter; 27 import 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 */ 33 public interface DialerLegacyBindings { 34 35 /** 36 * activityType must be one of following constants: CallLogAdapter.ACTIVITY_TYPE_CALL_LOG, or 37 * CallLogAdapter.ACTIVITY_TYPE_DIALTACTS. 38 */ newCallLogAdapter( Activity activity, ViewGroup alertContainer, CallLogAdapter.CallFetcher callFetcher, CallLogCache callLogCache, ContactInfoCache contactInfoCache, VoicemailPlaybackPresenter voicemailPlaybackPresenter, @NonNull FilteredNumberAsyncQueryHandler filteredNumberAsyncQueryHandler, int activityType)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 newRegularSearchFragment()49 RegularSearchFragment newRegularSearchFragment(); 50 } 51