Search in sources :

Example 1 with CallLogCache

use of com.android.dialer.calllog.calllogcache.CallLogCache in project android_packages_apps_Dialer by MoKee.

the class CallLogListItemViewHolder method createForTest.

@NeededForTesting
public static CallLogListItemViewHolder createForTest(Context context) {
    Resources resources = context.getResources();
    CallLogCache callLogCache = CallLogCache.getCallLogCache(context);
    PhoneCallDetailsHelper phoneCallDetailsHelper = new PhoneCallDetailsHelper(context, resources, callLogCache);
    CallLogListItemViewHolder viewHolder = new CallLogListItemViewHolder(context, null, null, /* expandCollapseListener */
    callLogCache, new CallLogListItemHelper(phoneCallDetailsHelper, resources, callLogCache), null, /* voicemailPlaybackPresenter */
    null, /* filteredNumberAsyncQueryHandler */
    null, /* filteredNumberDialogCallback */
    new View(context), new QuickContactBadge(context), new View(context), PhoneCallDetailsViews.createForTest(context), new CardView(context), new TextView(context), new ImageView(context), false);
    viewHolder.detailsButtonView = new TextView(context);
    viewHolder.actionsView = new View(context);
    viewHolder.voicemailPlaybackView = new VoicemailPlaybackLayout(context);
    viewHolder.workIconView = new ImageButton(context);
    viewHolder.userMarkButtonView = new TextView(context);
    return viewHolder;
}
Also used : CallLogCache(com.android.dialer.calllog.calllogcache.CallLogCache) ImageButton(android.widget.ImageButton) QuickContactBadge(android.widget.QuickContactBadge) VoicemailPlaybackLayout(com.android.dialer.voicemail.VoicemailPlaybackLayout) CardView(android.support.v7.widget.CardView) TextView(android.widget.TextView) Resources(android.content.res.Resources) ImageView(android.widget.ImageView) ImageView(android.widget.ImageView) View(android.view.View) CardView(android.support.v7.widget.CardView) TextView(android.widget.TextView) RecyclerView(android.support.v7.widget.RecyclerView) NeededForTesting(com.android.contacts.common.testing.NeededForTesting)

Aggregations

Resources (android.content.res.Resources)1 CardView (android.support.v7.widget.CardView)1 RecyclerView (android.support.v7.widget.RecyclerView)1 View (android.view.View)1 ImageButton (android.widget.ImageButton)1 ImageView (android.widget.ImageView)1 QuickContactBadge (android.widget.QuickContactBadge)1 TextView (android.widget.TextView)1 NeededForTesting (com.android.contacts.common.testing.NeededForTesting)1 CallLogCache (com.android.dialer.calllog.calllogcache.CallLogCache)1 VoicemailPlaybackLayout (com.android.dialer.voicemail.VoicemailPlaybackLayout)1