/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/ |
D | BugInfoAdapter.java | 52 void onItemClicked(int buttonType, MetaBugReport metaBugReport, BugInfoViewHolder holder); in onItemClicked() argument 109 public void onBindViewHolder(BugInfoViewHolder holder, int position) { in onBindViewHolder() argument 111 holder.mTitleView.setText(bugreport.getTitle()); in onBindViewHolder() 112 holder.mStatusView.setText(Status.toString(bugreport.getStatus())); in onBindViewHolder() 113 holder.mMessageView.setText(bugreport.getStatusMessage()); in onBindViewHolder() 115 holder.mMessageView.setVisibility(View.GONE); in onBindViewHolder() 117 holder.mMessageView.setVisibility(View.VISIBLE); in onBindViewHolder() 124 holder.mMoveButton.setEnabled(true); in onBindViewHolder() 125 holder.mMoveButton.setVisibility(View.VISIBLE); in onBindViewHolder() 126 holder.mMoveButton.setOnClickListener( in onBindViewHolder() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | NotificationAppPreferenceTest.java | 63 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in setChecked_shouldUpdateButtonCheckedState() local 65 final LinearLayout widgetView = holder.itemView.findViewById(android.R.id.widget_frame); in setChecked_shouldUpdateButtonCheckedState() 67 final Switch toggle = (Switch) holder.findViewById(R.id.switchWidget); in setChecked_shouldUpdateButtonCheckedState() 68 preference.onBindViewHolder(holder); in setChecked_shouldUpdateButtonCheckedState() 81 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in setSwitchEnabled_shouldUpdateButtonEnabledState() local 83 final LinearLayout widgetView = holder.itemView.findViewById(android.R.id.widget_frame); in setSwitchEnabled_shouldUpdateButtonEnabledState() 85 final Switch toggle = (Switch) holder.findViewById(R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState() 86 preference.onBindViewHolder(holder); in setSwitchEnabled_shouldUpdateButtonEnabledState() 99 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound() local 101 final LinearLayout widgetView = holder.itemView.findViewById(android.R.id.widget_frame); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound() [all …]
|
D | ImportancePreferenceTest.java | 70 PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in onBindViewHolder_nonConfigurable() local 79 preference.onBindViewHolder(holder); in onBindViewHolder_nonConfigurable() 81 assertThat(holder.itemView.findViewById(R.id.silence).isEnabled()).isFalse(); in onBindViewHolder_nonConfigurable() 82 assertThat(holder.itemView.findViewById(R.id.alert).isEnabled()).isFalse(); in onBindViewHolder_nonConfigurable() 84 assertThat(holder.itemView.findViewById(R.id.alert).getBackground()).isEqualTo(selected); in onBindViewHolder_nonConfigurable() 85 assertThat(holder.itemView.findViewById(R.id.silence).getBackground()) in onBindViewHolder_nonConfigurable() 90 holder = PreferenceViewHolder.createInstanceForTests( in onBindViewHolder_nonConfigurable() 92 preference.onBindViewHolder(holder); in onBindViewHolder_nonConfigurable() 94 assertThat(holder.itemView.findViewById(R.id.alert).getBackground()).isEqualTo(unselected); in onBindViewHolder_nonConfigurable() 95 assertThat(holder.itemView.findViewById(R.id.silence).getBackground()).isEqualTo(selected); in onBindViewHolder_nonConfigurable() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GeometryMathUtils.java | 217 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/Settings/tests/robotests/src/com/android/settings/widget/ |
D | MasterSwitchPreferenceTest.java | 63 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in setChecked_shouldUpdateButtonCheckedState() local 66 final Switch toggle = (Switch) holder.findViewById(R.id.switchWidget); in setChecked_shouldUpdateButtonCheckedState() 67 preference.onBindViewHolder(holder); in setChecked_shouldUpdateButtonCheckedState() 79 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in setSwitchEnabled_shouldUpdateButtonEnabledState() local 82 final Switch toggle = (Switch) holder.findViewById(R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState() 83 preference.onBindViewHolder(holder); in setSwitchEnabled_shouldUpdateButtonEnabledState() 95 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound() local 98 final Switch toggle = (Switch) holder.findViewById(R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound() 101 preference.onBindViewHolder(holder); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound() 109 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in clickWidgetView_shouldToggleButton() local [all …]
|
D | MasterCheckBoxPreferenceTest.java | 61 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in setChecked_shouldUpdateCheckBoxCheckedState() local 64 final CheckBox checkBox = (CheckBox) holder.findViewById(R.id.checkboxWidget); in setChecked_shouldUpdateCheckBoxCheckedState() 65 mPreference.onBindViewHolder(holder); in setChecked_shouldUpdateCheckBoxCheckedState() 76 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in setEnabled_shouldUpdateCheckBoxEnabledState() local 79 final CheckBox checkBox = (CheckBox) holder.findViewById(R.id.checkboxWidget); in setEnabled_shouldUpdateCheckBoxEnabledState() 80 mPreference.onBindViewHolder(holder); in setEnabled_shouldUpdateCheckBoxEnabledState() 91 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState() local 94 final CheckBox checkBox = (CheckBox) holder.findViewById(R.id.checkboxWidget); in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState() 95 mPreference.onBindViewHolder(holder); in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState() 108 final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( in onBindViewHolder_shouldSetCheckboxEnabledState() local [all …]
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | SliceContextualCardRenderer.java | 96 public void bindView(RecyclerView.ViewHolder holder, ContextualCard card) { in bindView() argument 111 final View swipeBackground = holder.itemView.findViewById(R.id.dismissal_swipe_background); in bindView() 133 if (holder.getItemViewType() == VIEW_TYPE_DEFERRED_SETUP) { in bindView() 134 mDeferredSetupCardHelper.bindView(holder, card, slice); in bindView() 135 } else if (holder.getItemViewType() == VIEW_TYPE_HALF_WIDTH) { in bindView() 136 mHalfCardHelper.bindView(holder, card, slice); in bindView() 138 mFullCardHelper.bindView(holder, card, slice); in bindView() 145 if (holder.getItemViewType() in bindView() 147 } else if (holder.getItemViewType() == VIEW_TYPE_HALF_WIDTH) { in bindView() 148 initDismissalActions(holder, card); in bindView() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | ItemAnimator.java | 48 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/ |
D | SliceContextualCardRenderer.java | 96 public void bindView(RecyclerView.ViewHolder holder, ContextualCard card) { in bindView() argument 120 switch (holder.getItemViewType()) { in bindView() 122 mDeferredSetupCardHelper.bindView(holder, card, slice); in bindView() 125 mHalfCardHelper.bindView(holder, card, slice); in bindView() 128 mFullCardHelper.bindView(holder, card, slice); in bindView() 132 switch (holder.getItemViewType()) { in bindView() 137 initDismissalActions(holder, card); in bindView() 140 initDismissalActions(holder, card); in bindView() 144 showDismissalView(holder); in bindView() 145 mFlippedCardSet.add(holder); in bindView() [all …]
|
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/ |
D | JobInfoRowArrayAdapter.java | 68 ViewHolder holder; in getView() local 73 holder = new ViewHolder(); in getView() 74 holder.mJobIDView = row.findViewById(R.id.jobId); in getView() 76 holder.mRequiredNetworkView = row.findViewById(R.id.requiredNetwork); in getView() 77 holder.mIsPeriodicView = row.findViewById(R.id.isPeriodic); in getView() 78 holder.mIsPersistedView = row.findViewById(R.id.isPersisted); in getView() 79 holder.mIsPrefetchView = row.findViewById(R.id.isPrefetch); in getView() 81 holder.mIsRequireBatteryNotLowView = row.findViewById(R.id.isRequireBatteryNotLow); in getView() 82 holder.mIsRequireChargingView = row.findViewById(R.id.isRequireCharging); in getView() 83 holder.mIsRequireDeviceIdleView = row.findViewById(R.id.isRequireDeviceIdle); in getView() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DirectoryAddonsAdapter.java | 98 DocumentHolder holder = null; 101 holder = new TransparentDividerDocumentHolder(mEnv.getContext()); 102 mEnv.initDocumentHolder(holder); 105 holder = new HeaderMessageDocumentHolder(mEnv.getContext(), parent); 106 mEnv.initDocumentHolder(holder); 109 holder = new InflateMessageDocumentHolder(mEnv.getContext(), parent); 110 mEnv.initDocumentHolder(holder); 113 holder = mDelegate.createViewHolder(parent, viewType); 115 return holder; 127 public void onBindViewHolder(DocumentHolder holder, int p, List<Object> payload) { [all …]
|
D | ModelBackedDocumentsAdapter.java | 87 DocumentHolder holder = null; in onCreateViewHolder() local 93 holder = new GridDirectoryHolder(mEnv.getContext(), parent); in onCreateViewHolder() 96 holder = state.isPhotoPicking() in onCreateViewHolder() 105 holder = new ListDocumentHolder( in onCreateViewHolder() 112 mEnv.initDocumentHolder(holder); in onCreateViewHolder() 113 return holder; in onCreateViewHolder() 117 public void onBindViewHolder(DocumentHolder holder, int position, List<Object> payload) { in onBindViewHolder() argument 120 holder.setSelected(selected, true); in onBindViewHolder() 122 onBindViewHolder(holder, position); in onBindViewHolder() 127 public void onBindViewHolder(DocumentHolder holder, int position) { in onBindViewHolder() argument [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | AsyncResultHolderTests.java | 39 private static <T> void setAfterGivenTime(final AsyncResultHolder<T> holder, final T value, in setAfterGivenTime() argument 49 holder.set(value); in setAfterGivenTime() 56 final AsyncResultHolder<Integer> holder = new AsyncResultHolder<>("Test"); in testGetWithoutSet() local 57 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS); in testGetWithoutSet() 63 final AsyncResultHolder<Integer> holder = new AsyncResultHolder<>("Test"); in testGetBeforeSet() local 64 setAfterGivenTime(holder, SET_VALUE, TIMEOUT_IN_MILLISECONDS + MARGIN_IN_MILLISECONDS); in testGetBeforeSet() 65 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS); in testGetBeforeSet() 71 final AsyncResultHolder<Integer> holder = new AsyncResultHolder<>("Test"); in testGetAfterSet() local 72 holder.set(SET_VALUE); in testGetAfterSet() 73 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS); in testGetAfterSet() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapSettingsAdapter.java | 108 final ChildHolder holder; in getChildView() local 111 holder = new ChildHolder(); in getChildView() 112 holder.cb = (CheckBox) convertView.findViewById(R.id.bluetooth_map_settings_item_check); in getChildView() 113 holder.title = in getChildView() 115 convertView.setTag(holder); in getChildView() 117 holder = (ChildHolder) convertView.getTag(); in getChildView() 120 holder.cb.setOnCheckedChangeListener(new OnCheckedChangeListener() { in getChildView() 183 holder.cb.setChecked(child.mIsChecked); in getChildView() 184 holder.title.setText(child.getName()); in getChildView() 228 final GroupHolder holder; in getGroupView() local [all …]
|
/packages/apps/Dialer/java/com/android/dialer/contactphoto/ |
D | ContactPhotoManagerImpl.java | 228 private static void inflateBitmap(BitmapHolder holder, int requestedExtent) { in inflateBitmap() argument 230 BitmapUtil.findOptimalSampleSize(holder.originalSmallerExtent, requestedExtent); in inflateBitmap() 231 byte[] bytes = holder.bytes; in inflateBitmap() 236 if (sampleSize == holder.decodedSampleSize) { in inflateBitmap() 239 if (holder.bitmapRef != null) { in inflateBitmap() 240 holder.bitmap = holder.bitmapRef.get(); in inflateBitmap() 241 if (holder.bitmap != null) { in inflateBitmap() 280 holder.decodedSampleSize = sampleSize; in inflateBitmap() 281 holder.bitmap = bitmap; in inflateBitmap() 282 holder.bitmapRef = new SoftReference<Bitmap>(bitmap); in inflateBitmap() [all …]
|
/packages/apps/Dialer/java/com/android/contacts/common/widget/ |
D | SelectPhoneAccountDialogFragment.java | 254 final ViewHolder holder; in getView() local 259 holder = new ViewHolder(); in getView() 260 holder.labelTextView = (TextView) rowView.findViewById(R.id.label); in getView() 261 holder.numberTextView = (TextView) rowView.findViewById(R.id.number); in getView() 262 holder.hintTextView = rowView.findViewById(R.id.hint); in getView() 263 holder.imageView = (ImageView) rowView.findViewById(R.id.icon); in getView() 264 rowView.setTag(holder); in getView() 267 holder = (ViewHolder) rowView.getTag(); in getView() 278 holder.labelTextView.setText(account.getLabel()); in getView() 281 holder.numberTextView.setVisibility(View.GONE); in getView() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactPhotoManager.java | 920 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/Settings/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreference.java | 156 public void onBindViewHolder(PreferenceViewHolder holder) { in onBindViewHolder() argument 157 super.onBindViewHolder(holder); in onBindViewHolder() 159 ProgressBar bar = (ProgressBar) holder.findViewById(R.id.determinateBar); in onBindViewHolder() 162 holder.findViewById(R.id.label_bar).setVisibility(View.VISIBLE); in onBindViewHolder() 164 ((TextView) holder.findViewById(android.R.id.text1)).setText(mStartLabel); in onBindViewHolder() 165 ((TextView) holder.findViewById(android.R.id.text2)).setText(mEndLabel); in onBindViewHolder() 168 holder.findViewById(R.id.label_bar).setVisibility(View.GONE); in onBindViewHolder() 171 updateDataUsageLabels(holder); in onBindViewHolder() 173 TextView usageTitle = (TextView) holder.findViewById(R.id.usage_title); in onBindViewHolder() 174 TextView carrierInfo = (TextView) holder.findViewById(R.id.carrier_and_update); in onBindViewHolder() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | DataUsageSummaryPreference.java | 156 public void onBindViewHolder(PreferenceViewHolder holder) { in onBindViewHolder() argument 157 super.onBindViewHolder(holder); in onBindViewHolder() 159 ProgressBar bar = (ProgressBar) holder.findViewById(R.id.determinateBar); in onBindViewHolder() 162 holder.findViewById(R.id.label_bar).setVisibility(View.VISIBLE); in onBindViewHolder() 164 ((TextView) holder.findViewById(android.R.id.text1)).setText(mStartLabel); in onBindViewHolder() 165 ((TextView) holder.findViewById(android.R.id.text2)).setText(mEndLabel); in onBindViewHolder() 168 holder.findViewById(R.id.label_bar).setVisibility(View.GONE); in onBindViewHolder() 171 updateDataUsageLabels(holder); in onBindViewHolder() 173 TextView usageTitle = (TextView) holder.findViewById(R.id.usage_title); in onBindViewHolder() 174 TextView carrierInfo = (TextView) holder.findViewById(R.id.carrier_and_update); in onBindViewHolder() [all …]
|
/packages/screensavers/Basic/src/com/android/dreams/basic/ |
D | Colors.java | 76 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument 77 LOG("surfaceCreated(%s, %d, %d)", holder.getSurface(), in surfaceCreated() 78 holder.getSurfaceFrame().width(), holder.getSurfaceFrame().height()); in surfaceCreated() 86 mRenderer = new ColorsGLRenderer(holder.getSurface(), in surfaceCreated() 87 holder.getSurfaceFrame().width(), holder.getSurfaceFrame().height()); in surfaceCreated() 94 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument 95 LOG("surfaceChanged(%s, %d, %d, %d)", holder.getSurface(), format, width, height); in surfaceChanged() 108 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument 109 LOG("surfaceDestroyed(%s)", holder.getSurface()); in surfaceDestroyed()
|
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/ |
D | ContentFillItemAnimator.java | 97 public boolean animateRemove(ViewHolder holder) { in animateRemove() argument 98 PendingAnimation pendAnim = new PendingAnimation(holder, ANIM_TYPE_REMOVE); in animateRemove() 103 private void animateRemoveImpl(ViewHolder holder, long startDelay) { in animateRemoveImpl() argument 104 final View view = holder.itemView; in animateRemoveImpl() 105 if (holder.itemView.getAlpha() == 0) { in animateRemoveImpl() 108 dispatchRemoveFinished(holder); in animateRemoveImpl() 113 holder.itemView, ALPHA, holder.itemView.getAlpha(), 0.0f); in animateRemoveImpl() 119 dispatchRemoveStarting(holder); in animateRemoveImpl() 125 dispatchRemoveFinished(holder); in animateRemoveImpl() 136 public boolean animateAdd(ViewHolder holder) { in animateAdd() argument [all …]
|
/packages/apps/ThemePicker/src/com/android/customization/widget/ |
D | OptionSelectorController.java | 126 RecyclerView.ViewHolder holder = mContainer.findViewHolderForAdapterPosition(index); in updateActivatedStatus() local 127 if (holder != null && holder.itemView != null) { in updateActivatedStatus() 128 holder.itemView.setActivated(isActivated); in updateActivatedStatus() 130 if (holder instanceof TileViewHolder) { in updateActivatedStatus() 131 TileViewHolder tileHolder = (TileViewHolder) holder; in updateActivatedStatus() 171 public void onBindViewHolder(@NonNull TileViewHolder holder, int position) { in initOptions() 179 if (holder.labelView != null) { in initOptions() 180 holder.labelView.setText(option.getTitle()); in initOptions() 182 option.bindThumbnailTile(holder.tileView); in initOptions() 183 holder.itemView.setActivated(option.equals(mSelectedOption)); in initOptions() [all …]
|
/packages/apps/Settings/src/com/android/settings/sim/ |
D | SimPreferenceDialog.java | 210 final ViewHolder holder; in getView() local 218 holder = new ViewHolder(); in getView() 223 holder.label = (TextView) rowView.findViewById(R.id.color_text); in getView() 224 holder.icon = (ImageView) rowView.findViewById(R.id.color_icon); in getView() 225 holder.swatch = drawable; in getView() 226 rowView.setTag(holder); in getView() 229 holder = (ViewHolder) rowView.getTag(); in getView() 232 holder.label.setText(getItem(position)); in getView() 233 holder.swatch.getPaint().setColor(mTintArr[position]); in getView() 234 holder.swatch.getPaint().setStyle(Paint.Style.FILL_AND_STROKE); in getView() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/ |
D | SimPreferenceDialog.java | 210 final ViewHolder holder; in getView() local 218 holder = new ViewHolder(); in getView() 223 holder.label = (TextView) rowView.findViewById(R.id.color_text); in getView() 224 holder.icon = (ImageView) rowView.findViewById(R.id.color_icon); in getView() 225 holder.swatch = drawable; in getView() 226 rowView.setTag(holder); in getView() 229 holder = (ViewHolder) rowView.getTag(); in getView() 232 holder.label.setText(getItem(position)); in getView() 233 holder.swatch.getPaint().setColor(mTintArr[position]); in getView() 234 holder.swatch.getPaint().setStyle(Paint.Style.FILL_AND_STROKE); in getView() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/ |
D | SearchAdapter.java | 102 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder() argument 103 if (holder instanceof SearchContactViewHolder) { in onBindViewHolder() 104 ((SearchContactViewHolder) holder).bind(searchCursorManager.getCursor(position), query); in onBindViewHolder() 105 } else if (holder instanceof NearbyPlaceViewHolder) { in onBindViewHolder() 106 ((NearbyPlaceViewHolder) holder).bind(searchCursorManager.getCursor(position), query); in onBindViewHolder() 107 } else if (holder instanceof DirectoryContactViewHolder) { in onBindViewHolder() 108 ((DirectoryContactViewHolder) holder).bind(searchCursorManager.getCursor(position), query); in onBindViewHolder() 109 } else if (holder instanceof HeaderViewHolder) { in onBindViewHolder() 112 ((HeaderViewHolder) holder).setHeader(header); in onBindViewHolder() 113 } else if (holder instanceof SearchActionViewHolder) { in onBindViewHolder() [all …]
|