Search in sources :

Example 1 with VoicemailPlaybackLayout

use of com.android.dialer.app.voicemail.VoicemailPlaybackLayout in project android_packages_apps_Dialer by LineageOS.

the class CallLogListItemViewHolder method createForTest.

public static CallLogListItemViewHolder createForTest(Context context, View.OnClickListener expandCollapseListener, VoicemailPlaybackPresenter voicemailPlaybackPresenter) {
    Resources resources = context.getResources();
    CallLogCache callLogCache = new CallLogCache(context);
    PhoneCallDetailsHelper phoneCallDetailsHelper = new PhoneCallDetailsHelper(context, resources, callLogCache);
    CallLogListItemViewHolder viewHolder = new CallLogListItemViewHolder(context, null, expandCollapseListener, /* expandCollapseListener */
    null, null, callLogCache, new CallLogListItemHelper(phoneCallDetailsHelper, resources, callLogCache), voicemailPlaybackPresenter, LayoutInflater.from(context).inflate(R.layout.call_log_list_item, null), new DialerQuickContactBadge(context), new View(context), PhoneCallDetailsViews.createForTest(context), new CardView(context), new TextView(context), new ImageView(context));
    viewHolder.detailsButtonView = new TextView(context);
    viewHolder.actionsView = new View(context);
    viewHolder.voicemailPlaybackView = new VoicemailPlaybackLayout(context);
    viewHolder.workIconView = new ImageButton(context);
    viewHolder.checkBoxView = new ImageButton(context);
    return viewHolder;
}
Also used : CallLogCache(com.android.dialer.app.calllog.calllogcache.CallLogCache) ImageButton(android.widget.ImageButton) VoicemailPlaybackLayout(com.android.dialer.app.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)

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 TextView (android.widget.TextView)1 CallLogCache (com.android.dialer.app.calllog.calllogcache.CallLogCache)1 VoicemailPlaybackLayout (com.android.dialer.app.voicemail.VoicemailPlaybackLayout)1