Home
last modified time | relevance | path

Searched refs:viewHolder (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DCallLogFragmentTest.java179 CallLogListItemViewHolder viewHolder = (CallLogListItemViewHolder) in testCallAndGroupviewHolder_GroupView() local
181 mAdapter.onBindViewHolder(viewHolder, /* position */ 0); in testCallAndGroupviewHolder_GroupView()
188 CallLogListItemViewHolder viewHolder = (CallLogListItemViewHolder) in testCallAndGroupviewHolder_StandAloneView() local
190 bindViewForTest(viewHolder); in testCallAndGroupviewHolder_StandAloneView()
197 CallLogListItemViewHolder viewHolder = (CallLogListItemViewHolder) in testCallAndGroupviewHolder_ChildView() local
199 mAdapter.onBindViewHolder(viewHolder, /* position */ 0); in testCallAndGroupviewHolder_ChildView()
206 CallLogListItemViewHolder viewHolder = (CallLogListItemViewHolder) in testBindView_NumberOnlyNoCache() local
208 bindViewForTest(viewHolder); in testBindView_NumberOnlyNoCache()
210 assertNameIs(viewHolder, TEST_NUMBER); in testBindView_NumberOnlyNoCache()
220 CallLogListItemViewHolder viewHolder = (CallLogListItemViewHolder) in testBindView_NumberOnlyDbCachedFormattedNumber() local
[all …]
DGroupingListAdapterTests.java90 public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) {
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogAdapter.java149 CallLogListItemViewHolder viewHolder = (CallLogListItemViewHolder) v.getTag();
150 if (viewHolder == null) {
159 if (viewHolder.getAdapterPosition() == mCurrentlyExpandedPosition) {
161 viewHolder.showActions(false);
166 expandViewHolderActions(viewHolder);
258 private void expandViewHolderActions(CallLogListItemViewHolder viewHolder) { in expandViewHolderActions() argument
265 viewHolder.showActions(true); in expandViewHolderActions()
266 mCurrentlyExpandedPosition = viewHolder.getAdapterPosition(); in expandViewHolderActions()
267 mCurrentlyExpandedRowId = viewHolder.rowId; in expandViewHolderActions()
280 CallLogListItemViewHolder viewHolder = (CallLogListItemViewHolder) host.getTag();
[all …]
DCallLogListItemViewHolder.java483 CallLogListItemViewHolder viewHolder = new CallLogListItemViewHolder( in createForTest() local
496 viewHolder.detailsButtonView = new TextView(context); in createForTest()
497 viewHolder.actionsView = new View(context); in createForTest()
498 viewHolder.voicemailPlaybackView = new VoicemailPlaybackLayout(context); in createForTest()
500 return viewHolder; in createForTest()
/packages/apps/FMRadio/src/com/android/fmradio/
DFmFavoriteActivity.java303 ViewHolder viewHolder = null; in getView() local
305 viewHolder = new ViewHolder(); in getView()
307 viewHolder.mStationTypeView = (ImageView) convertView in getView()
309 viewHolder.mStationFreqView = (TextView) convertView in getView()
311 viewHolder.mStationNameView = (TextView) convertView in getView()
313 viewHolder.mStationRdsView = (TextView) convertView in getView()
315 viewHolder.mImgLayout = (RelativeLayout) convertView in getView()
317 convertView.setTag(viewHolder); in getView()
319 viewHolder = (ViewHolder) convertView.getTag(); in getView()
339 viewHolder.mStationRdsView.setVisibility(View.GONE); in getView()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
DUserPresetsAdapter.java94 UserPresetViewHolder viewHolder; in getView() local
97 viewHolder = new UserPresetViewHolder(); in getView()
98 viewHolder.imageView = (ImageView) convertView.findViewById(R.id.imageView); in getView()
99 viewHolder.editText = (EditText) convertView.findViewById(R.id.editView); in getView()
100 viewHolder.deleteButton = (ImageButton) convertView.findViewById(R.id.deleteUserPreset); in getView()
101 viewHolder.editText.setOnClickListener(this); in getView()
102 viewHolder.editText.setOnFocusChangeListener(this); in getView()
103 viewHolder.deleteButton.setOnClickListener(this); in getView()
104 convertView.setTag(viewHolder); in getView()
106 viewHolder = (UserPresetViewHolder) convertView.getTag(); in getView()
[all …]
/packages/apps/FMRadio/src/com/android/fmradio/views/
DFmScroller.java809 ViewHolder viewHolder = null; in getView() local
811 viewHolder = new ViewHolder(); in getView()
813 viewHolder.mStationFreq = (TextView) convertView.findViewById(R.id.station_freq); in getView()
814 viewHolder.mPlayIndicator = (FmVisualizerView) convertView in getView()
816 viewHolder.mStationName = (TextView) convertView.findViewById(R.id.station_name); in getView()
817 viewHolder.mMoreButton = (ImageView) convertView.findViewById(R.id.station_more); in getView()
818 viewHolder.mPopupMenuAnchor = convertView.findViewById(R.id.popupmenu_anchor); in getView()
819 convertView.setTag(viewHolder); in getView()
821 viewHolder = (ViewHolder) convertView.getTag(); in getView()
842 viewHolder.mStationFreq.setText(FmUtils.formatStation(stationFreq)); in getView()
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DVideoItem.java152 VideoViewHolder viewHolder; in getView() local
156 viewHolder = getViewHolder(view); in getView()
163 viewHolder = new VideoViewHolder(videoView, playButton); in getView()
164 view.setTag(R.id.mediadata_tag_target, viewHolder); in getView()
167 if (viewHolder != null) { in getView()
169 viewHolder.mPlayButton.setOnClickListener(new View.OnClickListener() { in getView()
180 renderTiny(viewHolder); in getView()
228 private void renderTiny(@Nonnull VideoViewHolder viewHolder) { in renderTiny() argument
230 .into(viewHolder.mVideoView); in renderTiny()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMenuItemPresenter.java67 public void onBindViewHolder(ViewHolder viewHolder, Object item) { in onBindViewHolder() argument
68 if (item instanceof MenuItem && viewHolder instanceof MenuItemViewHolder) { in onBindViewHolder()
70 MenuItemViewHolder menuItemViewHolder = (MenuItemViewHolder) viewHolder; in onBindViewHolder()
91 viewHolder.view.setOnClickListener(new View.OnClickListener() { in onBindViewHolder()
109 public void onUnbindViewHolder(ViewHolder viewHolder) { in onUnbindViewHolder() argument
110 if (viewHolder instanceof MenuItemViewHolder) { in onUnbindViewHolder()
111 MenuItemViewHolder menuItemViewHolder = (MenuItemViewHolder) viewHolder; in onUnbindViewHolder()
113 BitmapDownloader.getInstance(viewHolder.view.getContext()).cancelDownload( in onUnbindViewHolder()
/packages/apps/Messaging/src/com/android/messaging/ui/
DFixedViewPagerAdapter.java44 final PagerViewHolder viewHolder = getViewHolder(position); in instantiateItem() local
45 final View view = viewHolder.getView(container); in instantiateItem()
49 view.setTag(viewHolder); in instantiateItem()
51 return viewHolder; in instantiateItem()
56 final PagerViewHolder viewHolder = getViewHolder(position); in destroyItem() local
57 final View destroyedView = viewHolder.destroyView(); in destroyItem()
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaListView.java395 ViewHolder viewHolder = (AgendaAdapter.ViewHolder) firstVisibleItem.getTag(); in shiftPosition() local
397 + viewHolder.title.getText()); in shiftPosition()
399 AgendaByDayAdapter.ViewHolder viewHolder = in shiftPosition() local
402 + viewHolder.dateView.getText()); in shiftPosition()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/
DSettingsLayoutAdapter.java142 LayoutRowViewHolder viewHolder = new LayoutRowViewHolder(v, mActionOnKeyPressAnimator, in onCreateViewHolder() local
144 viewHolder.init(viewType); in onCreateViewHolder()
145 return viewHolder; in onCreateViewHolder()