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.voicemail.VoicemailPlaybackPresenter; 26 import com.android.dialer.blocking.FilteredNumberAsyncQueryHandler; 27 28 /** 29 * These are old bindings between Dialer and the container application. All new bindings should be 30 * added to the bindings module and not here. 31 */ 32 public interface DialerLegacyBindings { 33 34 /** 35 * activityType must be one of following constants: CallLogAdapter.ACTIVITY_TYPE_CALL_LOG, or 36 * CallLogAdapter.ACTIVITY_TYPE_DIALTACTS. 37 */ newCallLogAdapter( Activity activity, ViewGroup alertContainer, CallLogAdapter.CallFetcher callFetcher, CallLogAdapter.MultiSelectRemoveView multiSelectRemoveView, CallLogAdapter.OnActionModeStateChangedListener actionModeStateChangedListener, CallLogCache callLogCache, ContactInfoCache contactInfoCache, VoicemailPlaybackPresenter voicemailPlaybackPresenter, @NonNull FilteredNumberAsyncQueryHandler filteredNumberAsyncQueryHandler, int activityType)38 CallLogAdapter newCallLogAdapter( 39 Activity activity, 40 ViewGroup alertContainer, 41 CallLogAdapter.CallFetcher callFetcher, 42 CallLogAdapter.MultiSelectRemoveView multiSelectRemoveView, 43 CallLogAdapter.OnActionModeStateChangedListener actionModeStateChangedListener, 44 CallLogCache callLogCache, 45 ContactInfoCache contactInfoCache, 46 VoicemailPlaybackPresenter voicemailPlaybackPresenter, 47 @NonNull FilteredNumberAsyncQueryHandler filteredNumberAsyncQueryHandler, 48 int activityType); 49 } 50