Home
last modified time | relevance | path

Searched refs:holder (Results 1 – 25 of 162) sorted by relevance

1234567

/packages/apps/Car/Dialer/src/com/android/car/dialer/
DStrequentsItemAnimator.java50 public ViewHolder holder; field in StrequentsItemAnimator.MoveInfo
53 private MoveInfo(ViewHolder holder, int fromX, int fromY, int toX, int toY) { in MoveInfo() argument
54 this.holder = holder; in MoveInfo()
103 for (ViewHolder holder : mPendingRemovals) { in runPendingAnimations()
104 animateRemoveImpl(holder); in runPendingAnimations()
117 animateMoveImpl(moveInfo.holder, moveInfo.fromX, moveInfo.fromY, in runPendingAnimations()
125 View view = moves.get(0).holder.itemView; in runPendingAnimations()
148 ViewHolder holder = changes.get(0).oldHolder; in runPendingAnimations() local
149 ViewCompat.postOnAnimationDelayed(holder.itemView, changer, getRemoveDuration()); in runPendingAnimations()
162 for (ViewHolder holder : additions) { in runPendingAnimations()
[all …]
/packages/apps/Settings/src/com/android/settings/dashboard/
DSupportItemAdapter.java118 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder() argument
120 switch (holder.getItemViewType()) { in onBindViewHolder()
122 bindSignInPromoTile(holder, (EscalationData) data); in onBindViewHolder()
125 bindEscalationOptions(holder, (EscalationData) data); in onBindViewHolder()
128 bindOfflineEscalationOptions(holder, (OfflineEscalationData) data); in onBindViewHolder()
133 bindSupportTile(holder, data); in onBindViewHolder()
331 private void bindEscalationOptions(ViewHolder holder, EscalationData data) { in bindEscalationOptions() argument
332 holder.tileTitleView.setText(data.tileTitle); in bindEscalationOptions()
333 holder.tileTitleView.setContentDescription(data.tileTitleDescription); in bindEscalationOptions()
334 holder.tileSummaryView.setText(data.tileSummary); in bindEscalationOptions()
[all …]
DDashboardAdapter.java244 public void onBindViewHolder(DashboardItemHolder holder, int position) { in onBindViewHolder() argument
249 onBindTile(holder, tile); in onBindViewHolder()
250 holder.itemView.setTag(tile); in onBindViewHolder()
251 holder.itemView.setOnClickListener(mTileClickListener); in onBindViewHolder()
255 (SuggestionAndConditionContainerHolder) holder, position); in onBindViewHolder()
258 onBindSuggestionConditionHeader((SuggestionAndConditionHeaderHolder) holder, in onBindViewHolder()
263 holder.itemView.setOnClickListener(v -> { in onBindViewHolder()
353 void onBindSuggestionConditionHeader(final SuggestionAndConditionHeaderHolder holder, in onBindSuggestionConditionHeader() argument
363 holder.icon.setImageIcon(data.conditionIcons.get(0)); in onBindSuggestionConditionHeader()
364 holder.icon.setVisibility(View.VISIBLE); in onBindSuggestionConditionHeader()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java217 private static void concatMirrorMatrix(Matrix m, GeometryHolder holder) { in concatMirrorMatrix() argument
218 Mirror type = holder.mirror; in concatMirrorMatrix()
220 if (holder.rotation.value() == 90 in concatMirrorMatrix()
221 || holder.rotation.value() == 270) { in concatMirrorMatrix()
225 if (holder.rotation.value() == 90 in concatMirrorMatrix()
226 || holder.rotation.value() == 270) { in concatMirrorMatrix()
254 GeometryHolder holder = new GeometryHolder(); in unpackGeometry() local
255 unpackGeometry(holder, geometry); in unpackGeometry()
256 return holder; in unpackGeometry()
304 GeometryHolder holder = unpackGeometry(geometry); in finalGeometryRect() local
[all …]
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaAdapter.java109 ViewHolder holder = null; in bindView() local
115 holder = (ViewHolder) view.getTag(); in bindView()
118 if (holder == null) { in bindView()
119 holder = new ViewHolder(); in bindView()
120 view.setTag(holder); in bindView()
121 holder.title = (TextView) view.findViewById(R.id.title); in bindView()
122 holder.when = (TextView) view.findViewById(R.id.when); in bindView()
123 holder.where = (TextView) view.findViewById(R.id.where); in bindView()
124 holder.textContainer = (LinearLayout) in bindView()
126 holder.selectedMarker = view.findViewById(R.id.selected_marker); in bindView()
[all …]
DAgendaByDayAdapter.java185 ViewHolder holder = null; in getView() local
193 holder = (ViewHolder) tag; in getView()
194 holder.julianDay = row.mDay; in getView()
198 if (holder == null) { in getView()
201 holder = new ViewHolder(); in getView()
203 holder.dayView = (TextView) agendaDayView.findViewById(R.id.day); in getView()
204 holder.dateView = (TextView) agendaDayView.findViewById(R.id.date); in getView()
205 holder.julianDay = row.mDay; in getView()
206 holder.grayed = false; in getView()
207 agendaDayView.setTag(holder); in getView()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DItemAnimator.java48 public boolean animateRemove(final ViewHolder holder) { in animateRemove() argument
49 endAnimation(holder); in animateRemove()
51 final float prevAlpha = holder.itemView.getAlpha(); in animateRemove()
53 final Animator removeAnimator = ObjectAnimator.ofFloat(holder.itemView, View.ALPHA, 0f); in animateRemove()
58 dispatchRemoveStarting(holder); in animateRemove()
64 mAnimators.remove(holder); in animateRemove()
65 holder.itemView.setAlpha(prevAlpha); in animateRemove()
66 dispatchRemoveFinished(holder); in animateRemove()
70 mAnimators.put(holder, removeAnimator); in animateRemove()
75 public boolean animateAdd(final ViewHolder holder) { in animateAdd() argument
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DMasterSwitchPreferenceTest.java64 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in setChecked_shouldUpdateButtonCheckedState() local
67 final Switch toggle = (Switch) holder.findViewById(R.id.switchWidget); in setChecked_shouldUpdateButtonCheckedState()
68 preference.onBindViewHolder(holder); in setChecked_shouldUpdateButtonCheckedState()
80 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in setSwitchEnabled_shouldUpdateButtonEnabledState() local
83 final Switch toggle = (Switch) holder.findViewById(R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState()
84 preference.onBindViewHolder(holder); in setSwitchEnabled_shouldUpdateButtonEnabledState()
96 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound() local
99 final Switch toggle = (Switch) holder.findViewById(R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound()
102 preference.onBindViewHolder(holder); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound()
110 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in clickWidgetView_shouldToggleButton() local
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryAddonsAdapter.java89 DocumentHolder holder = null;
92 holder = new TransparentDividerDocumentHolder(mEnv.getContext());
93 mEnv.initDocumentHolder(holder);
96 holder = new HeaderMessageDocumentHolder(mEnv.getContext(), parent);
97 mEnv.initDocumentHolder(holder);
100 holder = new InflateMessageDocumentHolder(mEnv.getContext(), parent);
101 mEnv.initDocumentHolder(holder);
104 holder = mDelegate.createViewHolder(parent, viewType);
106 return holder;
118 public void onBindViewHolder(DocumentHolder holder, int p, List<Object> payload) {
[all …]
DModelBackedDocumentsAdapter.java83 DocumentHolder holder = null; in onCreateViewHolder() local
89 holder = new GridDirectoryHolder(mEnv.getContext(), parent); in onCreateViewHolder()
92 holder = new GridDocumentHolder(mEnv.getContext(), parent, mIconHelper); in onCreateViewHolder()
99 holder = new ListDocumentHolder( in onCreateViewHolder()
106 mEnv.initDocumentHolder(holder); in onCreateViewHolder()
107 return holder; in onCreateViewHolder()
111 public void onBindViewHolder(DocumentHolder holder, int position, List<Object> payload) { in onBindViewHolder() argument
114 holder.setSelected(selected, true); in onBindViewHolder()
116 onBindViewHolder(holder, position); in onBindViewHolder()
121 public void onBindViewHolder(DocumentHolder holder, int position) { in onBindViewHolder() argument
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/
DContactPhotoManagerImpl.java227 private static void inflateBitmap(BitmapHolder holder, int requestedExtent) { in inflateBitmap() argument
229 BitmapUtil.findOptimalSampleSize(holder.originalSmallerExtent, requestedExtent); in inflateBitmap()
230 byte[] bytes = holder.bytes; in inflateBitmap()
235 if (sampleSize == holder.decodedSampleSize) { in inflateBitmap()
238 if (holder.bitmapRef != null) { in inflateBitmap()
239 holder.bitmap = holder.bitmapRef.get(); in inflateBitmap()
240 if (holder.bitmap != null) { in inflateBitmap()
279 holder.decodedSampleSize = sampleSize; in inflateBitmap()
280 holder.bitmap = bitmap; in inflateBitmap()
281 holder.bitmapRef = new SoftReference<Bitmap>(bitmap); in inflateBitmap()
[all …]
/packages/apps/ExactCalculator/src/com/android/calculator2/
DHistoryAdapter.java68 public void onBindViewHolder(final HistoryAdapter.ViewHolder holder, int position) { in onBindViewHolder() argument
75 holder.mFormula.setText(item.getFormula()); in onBindViewHolder()
77 holder.mResult.setEvaluator(mEvaluator, item.getEvaluatorIndex()); in onBindViewHolder()
79 holder.mDate.setText(R.string.title_current_expression); in onBindViewHolder()
80 holder.mResult.setVisibility(mIsOneLine ? View.GONE : View.VISIBLE); in onBindViewHolder()
85 holder.mDate.setText(item.getDateString()); in onBindViewHolder()
87 holder.mDivider.setVisibility(position == getItemCount() - 1 in onBindViewHolder()
90 holder.mDate.setVisibility(View.GONE); in onBindViewHolder()
91 holder.mDivider.setVisibility(View.INVISIBLE); in onBindViewHolder()
97 public void onViewRecycled(ViewHolder holder) { in onViewRecycled() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/
DContactPhotoManager.java920 for (BitmapHolder holder : mBitmapHolderCache.snapshot().values()) { in refreshCache()
921 if (holder != BITMAP_UNAVAILABLE) { in refreshCache()
922 holder.fresh = false; in refreshCache()
933 BitmapHolder holder = mBitmapHolderCache.get(request.getKey()); in loadCachedPhoto() local
934 if (holder == null) { in loadCachedPhoto()
940 if (holder.bytes == null || holder.bytes.length == 0) { in loadCachedPhoto()
942 return holder.fresh; in loadCachedPhoto()
945 Bitmap cachedBitmap = holder.bitmapRef == null ? null : holder.bitmapRef.get(); in loadCachedPhoto()
947 if (holder.bytes.length < 8 * 1024) { in loadCachedPhoto()
949 inflateBitmap(holder, request.getRequestedExtent()); in loadCachedPhoto()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSettingsAdapter.java109 final ChildHolder holder; in getChildView() local
112 holder = new ChildHolder(); in getChildView()
113 holder.cb = (CheckBox) convertView.findViewById(R.id.bluetooth_map_settings_item_check); in getChildView()
114 holder.title = in getChildView()
116 convertView.setTag(holder); in getChildView()
118 holder = (ChildHolder) convertView.getTag(); in getChildView()
121 holder.cb.setOnCheckedChangeListener(new OnCheckedChangeListener() { in getChildView()
184 holder.cb.setChecked(child.mIsChecked); in getChildView()
185 holder.title.setText(child.getName()); in getChildView()
228 final GroupHolder holder; in getGroupView() local
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DAsyncResultHolderTests.java32 private static <T> void setAfterGivenTime(final AsyncResultHolder<T> holder, final T value, in setAfterGivenTime() argument
42 holder.set(value); in setAfterGivenTime()
48 final AsyncResultHolder<Integer> holder = new AsyncResultHolder<>("Test"); in testGetWithoutSet() local
49 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS); in testGetWithoutSet()
54 final AsyncResultHolder<Integer> holder = new AsyncResultHolder<>("Test"); in testGetBeforeSet() local
55 setAfterGivenTime(holder, SET_VALUE, TIMEOUT_IN_MILLISECONDS + MARGIN_IN_MILLISECONDS); in testGetBeforeSet()
56 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS); in testGetBeforeSet()
61 final AsyncResultHolder<Integer> holder = new AsyncResultHolder<>("Test"); in testGetAfterSet() local
62 holder.set(SET_VALUE); in testGetAfterSet()
63 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS); in testGetAfterSet()
[all …]
/packages/apps/TV/src/com/android/tv/guide/
DProgramTableAdapter.java215 public void onBindViewHolder(ProgramRowViewHolder holder, int position) { in onBindViewHolder() argument
216 holder.onBind(position); in onBindViewHolder()
220 public void onBindViewHolder(ProgramRowViewHolder holder, int position, List<Object> payloads) { in onBindViewHolder() argument
222 holder.updateDetailView(); in onBindViewHolder()
224 super.onBindViewHolder(holder, position, payloads); in onBindViewHolder()
738 private void updateCriticScoreView(ProgramRowViewHolder holder, final long programId,
755 createCriticScoreLogoCallback(holder, programId, criticScoreLogo));
767 ProgramRowViewHolder holder, final long programId, ImageView logoView) {
768 return new ImageLoaderCallback<ProgramRowViewHolder>(holder) {
770 public void onBitmapLoaded(ProgramRowViewHolder holder, @Nullable Bitmap logoImage) {
[all …]
/packages/apps/Settings/src/com/android/settings/nfc/
DNfcPaymentPreference.java166 ViewHolder holder; in getView() local
171 holder = new ViewHolder(); in getView()
172 holder.imageView = (ImageView) convertView.findViewById(R.id.banner); in getView()
173 holder.radioButton = (RadioButton) convertView.findViewById(R.id.button); in getView()
174 convertView.setTag(holder); in getView()
176 holder = (ViewHolder) convertView.getTag(); in getView()
178 holder.imageView.setImageDrawable(appInfo.banner); in getView()
179 holder.imageView.setTag(appInfo); in getView()
180 holder.imageView.setContentDescription(appInfo.label); in getView()
181 holder.imageView.setOnClickListener(this); in getView()
[all …]
/packages/apps/Settings/src/com/android/settings/sim/
DSimPreferenceDialog.java207 final ViewHolder holder; in getView() local
215 holder = new ViewHolder(); in getView()
220 holder.label = (TextView) rowView.findViewById(R.id.color_text); in getView()
221 holder.icon = (ImageView) rowView.findViewById(R.id.color_icon); in getView()
222 holder.swatch = drawable; in getView()
223 rowView.setTag(holder); in getView()
226 holder = (ViewHolder) rowView.getTag(); in getView()
229 holder.label.setText(getItem(position)); in getView()
230 holder.swatch.getPaint().setColor(mTintArr[position]); in getView()
231 holder.swatch.getPaint().setStyle(Paint.Style.FILL_AND_STROKE); in getView()
[all …]
DSimDialogActivity.java295 final ViewHolder holder; in getView() local
300 holder = new ViewHolder(); in getView()
301 holder.title = (TextView) rowView.findViewById(R.id.title); in getView()
302 holder.summary = (TextView) rowView.findViewById(R.id.summary); in getView()
303 holder.icon = (ImageView) rowView.findViewById(R.id.icon); in getView()
304 rowView.setTag(holder); in getView()
307 holder = (ViewHolder) rowView.getTag(); in getView()
312 holder.title.setText(getItem(position)); in getView()
313 holder.summary.setText(""); in getView()
314 holder.icon.setImageDrawable(getResources() in getView()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DManageApplications.java1260 AppViewHolder holder = (AppViewHolder) mActive.get(i).getTag(); in onPackageSizeChanged() local
1261 if (holder == null || holder.entry == null) { in onPackageSizeChanged()
1264 ApplicationInfo info = holder.entry.info; in onPackageSizeChanged()
1268 if (holder.entry.info.packageName.equals(packageName)) { in onPackageSizeChanged()
1269 synchronized (holder.entry) { in onPackageSizeChanged()
1270 updateSummary(holder); in onPackageSizeChanged()
1272 if (holder.entry.info.packageName.equals(mManageApplications.mCurrentPkgName) in onPackageSizeChanged()
1305 AppViewHolder holder = (AppViewHolder) mActive.get(size - 1).getTag(); in onExtraViewCompleted() local
1309 if (holder == null || holder.entry != null) { in onExtraViewCompleted()
1313 mExtraViewController.setupView(holder); in onExtraViewCompleted()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsGridAdapter.java89 void onBindView(ViewHolder holder); in onBindView() argument
333 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder() argument
334 switch (holder.getItemViewType()) { in onBindViewHolder()
338 BubbleTextView icon = (BubbleTextView) holder.itemView; in onBindViewHolder()
344 AppDiscoveryItemView view = (AppDiscoveryItemView) holder.itemView; in onBindViewHolder()
348 TextView emptyViewText = (TextView) holder.itemView; in onBindViewHolder()
354 TextView searchView = (TextView) holder.itemView; in onBindViewHolder()
364 holder.itemView.findViewById(R.id.loadingProgressBar).setVisibility(visLoading); in onBindViewHolder()
365 holder.itemView.findViewById(R.id.loadedDivider).setVisibility(visLoaded); in onBindViewHolder()
372 mBindViewCallback.onBindView(holder); in onBindViewHolder()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DNestedFolderTeaserView.java227 final FolderHolder holder = new FolderHolder(itemView, sendersTextView, countTextView, in createFolderHolder() local
230 attachOnClickListener(itemView, holder); in createFolderHolder()
232 return holder; in createFolderHolder()
235 private void attachOnClickListener(final View view, final FolderHolder holder) { in attachOnClickListener() argument
239 mListener.onFolderSelected(holder.getFolder()); in attachOnClickListener()
316 final FolderHolder holder = mFolderHolders.valueAt(i); in updateShowMoreView() local
319 unreadCount += holder.getFolder().unreadCount; in updateShowMoreView()
442 FolderHolder holder = mFolderHolders.get(folder.id);
444 if (holder != null) {
445 final Folder oldFolder = holder.getFolder();
[all …]
/packages/apps/TV/src/com/android/tv/ui/
DSelectInputView.java326 public void onBindViewHolder(ViewHolder holder, final int position) { in onBindViewHolder() argument
330 holder.itemView.setFocusable(true); in onBindViewHolder()
331 holder.inputLabelView.setTextColor(mTextColorPrimary); in onBindViewHolder()
332 holder.secondaryInputLabelView.setTextColor(mTextColorSecondary); in onBindViewHolder()
334 holder.itemView.setFocusable(false); in onBindViewHolder()
335 holder.inputLabelView.setTextColor(mTextColorDisabled); in onBindViewHolder()
336 holder.secondaryInputLabelView.setTextColor(mTextColorDisabled); in onBindViewHolder()
338 setItemViewText(holder.itemView, input); in onBindViewHolder()
340 holder.itemView.setFocusable(true); in onBindViewHolder()
341 holder.inputLabelView.setTextColor(mTextColorPrimary); in onBindViewHolder()
[all …]
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperListAdapter.java99 ViewHolder holder; in getView() local
103 holder = new ViewHolder(); in getView()
104 holder.title = (TextView) convertView.findViewById(R.id.title); in getView()
105 holder.thumbnail = (ImageView) convertView.findViewById(R.id.thumbnail); in getView()
106 convertView.setTag(holder); in getView()
108 holder = (ViewHolder) convertView.getTag(); in getView()
112 if (holder.thumbnail != null) { in getView()
113 holder.thumbnail.setImageDrawable(wallpaperInfo.thumbnail); in getView()
116 if (holder.title != null && wallpaperInfo.info != null) { in getView()
117 holder.title.setText(wallpaperInfo.info.loadLabel(mPackageManager)); in getView()
[all …]
/packages/apps/Contacts/src/com/android/contacts/widget/
DSelectPhoneAccountDialogFragment.java230 final ViewHolder holder; in getView() local
235 holder = new ViewHolder(); in getView()
236 holder.labelTextView = (TextView) rowView.findViewById(R.id.label); in getView()
237 holder.numberTextView = (TextView) rowView.findViewById(R.id.number); in getView()
238 holder.imageView = (ImageView) rowView.findViewById(R.id.icon); in getView()
239 rowView.setTag(holder); in getView()
243 holder = (ViewHolder) rowView.getTag(); in getView()
251 holder.labelTextView.setText(account.getLabel()); in getView()
254 holder.numberTextView.setVisibility(View.GONE); in getView()
256 holder.numberTextView.setVisibility(View.VISIBLE); in getView()
[all …]

1234567