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;
}
Aggregations