/frameworks/base/core/java/com/android/internal/widget/ |
D | SimpleItemAnimator.java | 85 public boolean canReuseUpdatedViewHolder(@NonNull RecyclerView.ViewHolder viewHolder) { in canReuseUpdatedViewHolder() argument 86 return !mSupportsChangeAnimations || viewHolder.isInvalid(); in canReuseUpdatedViewHolder() 90 public boolean animateDisappearance(@NonNull ViewHolder viewHolder, in animateDisappearance() argument 94 View disappearingItemView = viewHolder.itemView; in animateDisappearance() 97 if (!viewHolder.isRemoved() && (oldLeft != newLeft || oldTop != newTop)) { in animateDisappearance() 102 Log.d(TAG, "DISAPPEARING: " + viewHolder + " with view " + disappearingItemView); in animateDisappearance() 104 return animateMove(viewHolder, oldLeft, oldTop, newLeft, newTop); in animateDisappearance() 107 Log.d(TAG, "REMOVED: " + viewHolder + " with view " + disappearingItemView); in animateDisappearance() 109 return animateRemove(viewHolder); in animateDisappearance() 114 public boolean animateAppearance(@NonNull ViewHolder viewHolder, in animateAppearance() argument [all …]
|
D | ViewInfoStore.java | 163 boolean isInPreLayout(ViewHolder viewHolder) { in isInPreLayout() argument 164 final InfoRecord record = mLayoutHolderMap.get(viewHolder); in isInPreLayout() 223 final ViewHolder viewHolder = mLayoutHolderMap.keyAt(index); in process() local 227 callback.unused(viewHolder); in process() 233 callback.unused(viewHolder); in process() 235 callback.processDisappeared(viewHolder, record.preInfo, record.postInfo); in process() 239 callback.processAppeared(viewHolder, record.preInfo, record.postInfo); in process() 242 callback.processPersistent(viewHolder, record.preInfo, record.postInfo); in process() 245 callback.processDisappeared(viewHolder, record.preInfo, null); in process() 248 callback.processAppeared(viewHolder, record.preInfo, record.postInfo); in process() [all …]
|
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/ |
D | BatteryStatsViewerActivity.java | 278 public void onBindViewHolder(@NonNull ViewHolder viewHolder, int position) { in onBindViewHolder() argument 283 setTitleIconAndBackground(viewHolder, entry.title, in onBindViewHolder() 285 setPowerText(viewHolder.value1TextView, entry.value1); in onBindViewHolder() 286 setProportionText(viewHolder.value2TextView, entry); in onBindViewHolder() 289 setTitleIconAndBackground(viewHolder, entry.title, in onBindViewHolder() 292 setPowerText(viewHolder.value1TextView, entry.value1); in onBindViewHolder() 293 setProportionText(viewHolder.value2TextView, entry); in onBindViewHolder() 296 setTitleIconAndBackground(viewHolder, " " + entry.title, in onBindViewHolder() 299 setPowerText(viewHolder.value1TextView, entry.value1); in onBindViewHolder() 300 viewHolder.value2TextView.setVisibility(View.INVISIBLE); in onBindViewHolder() [all …]
|
D | BatteryConsumerPickerActivity.java | 239 public void onBindViewHolder(@NonNull BatteryConsumerViewHolder viewHolder, int position) { in onBindViewHolder() argument 241 viewHolder.id = item.id; in onBindViewHolder() 242 viewHolder.titleView.setText(item.label); in onBindViewHolder() 244 viewHolder.detailsView.setText(item.details); in onBindViewHolder() 245 viewHolder.detailsView.setVisibility(View.VISIBLE); in onBindViewHolder() 247 viewHolder.detailsView.setVisibility(View.GONE); in onBindViewHolder() 249 viewHolder.powerView.setText( in onBindViewHolder() 252 viewHolder.iconView.setImageDrawable( in onBindViewHolder() 255 viewHolder.iconView.setImageResource(R.drawable.gm_device_24); in onBindViewHolder() 258 viewHolder.packagesView.setText(item.packages); in onBindViewHolder() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/ |
D | MediaRecommendationsViewBinder.kt | 49 viewHolder: RecommendationViewHolder, in <lambda>() 55 val cardView = viewHolder.recommendations in <lambda>() 62 bindRecsCard(viewHolder, it, mediaViewController, falsingManager) in <lambda>() 72 viewHolder: RecommendationViewHolder, in <lambda>() 78 viewHolder.cardTitle.setTextColor(viewModel.cardTitleColor) in <lambda>() 79 viewHolder.recommendations.backgroundTintList = ColorStateList.valueOf(viewModel.cardColor) in <lambda>() 80 viewHolder.recommendations.contentDescription = in <lambda>() 83 viewHolder.recommendations.setOnClickListener { in <lambda>() 88 viewHolder.recommendations.setOnLongClickListener { in <lambda>() 92 openGuts(viewHolder, viewModel, mediaViewController) in <lambda>() [all …]
|
D | MediaControlViewBinder.kt | 73 viewHolder: MediaViewHolder, in <lambda>() 81 val mediaCard = viewHolder.player in <lambda>() 88 viewHolder, in <lambda>() 104 viewHolder: MediaViewHolder, in <lambda>() 112 with(viewHolder) { in <lambda>() 132 openGuts(viewHolder, viewController, viewModel) in <lambda>() 134 closeGuts(viewHolder, viewController, viewModel) in <lambda>() 143 viewHolder, in <lambda>() 148 bindGutsViewModel(viewHolder, viewModel, viewController, falsingManager) in <lambda>() 149 bindActionButtons(viewHolder, viewModel, viewController, falsingManager) in <lambda>() [all …]
|
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/ |
D | PermissionListAdapter.java | 53 ViewHolder viewHolder = new ViewHolder(view); in onCreateViewHolder() local 54 viewHolder.mPermissionIcon.setImageDrawable( in onCreateViewHolder() 57 if (viewHolder.mExpandButton.getTag() == null) { in onCreateViewHolder() 58 viewHolder.mExpandButton.setTag(R.drawable.btn_expand_more); in onCreateViewHolder() 67 viewHolder.mPermissionSummary.setVisibility(View.GONE); in onCreateViewHolder() 70 if ((Integer) viewHolder.mExpandButton.getTag() == R.drawable.btn_expand_more) { in onCreateViewHolder() 71 viewHolder.mExpandButton.setImageResource(R.drawable.btn_expand_less); in onCreateViewHolder() 72 viewHolder.mPermissionSummary.setVisibility(View.VISIBLE); in onCreateViewHolder() 73 viewHolder.mExpandButton.setTag(R.drawable.btn_expand_less); in onCreateViewHolder() 78 viewHolder.mExpandButton.setImageResource(R.drawable.btn_expand_more); in onCreateViewHolder() [all …]
|
D | DeviceListAdapter.java | 61 ViewHolder viewHolder = new ViewHolder(view); in onCreateViewHolder() local 63 viewHolder.mImageView.setImageDrawable( in onCreateViewHolder() 66 viewHolder.mImageView.setImageDrawable( in onCreateViewHolder() 70 viewHolder.mImageView.setColorFilter( in onCreateViewHolder() 73 return viewHolder; in onCreateViewHolder()
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
D | ItemTouchHelper.java | 361 ViewHolder viewHolder = mSelected; 362 if (viewHolder == null) { 370 moveIfNecessary(viewHolder); 765 private List<ViewHolder> findSwapTargets(ViewHolder viewHolder) { in findSwapTargets() argument 776 final int right = left + viewHolder.itemView.getWidth() + 2 * margin; in findSwapTargets() 777 final int bottom = top + viewHolder.itemView.getHeight() + 2 * margin; in findSwapTargets() 784 if (other == viewHolder.itemView) { in findSwapTargets() 817 void moveIfNecessary(ViewHolder viewHolder) { in moveIfNecessary() argument 825 final float threshold = mCallback.getMoveThreshold(viewHolder); in moveIfNecessary() 828 if (Math.abs(y - viewHolder.itemView.getTop()) < viewHolder.itemView.getHeight() * threshold in moveIfNecessary() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/controller/ |
D | MediaControlPanelTest.kt | 153 @Mock private lateinit var viewHolder: MediaViewHolder in <lambda>() variable in com.android.systemui.media.controls.ui.controller.MediaControlPanelTest 411 whenever(viewHolder.player).thenReturn(view) in <lambda>() 412 whenever(viewHolder.appIcon).thenReturn(appIcon) in <lambda>() 413 whenever(viewHolder.albumView).thenReturn(albumView) in <lambda>() 415 whenever(viewHolder.titleText).thenReturn(titleText) in <lambda>() 416 whenever(viewHolder.artistText).thenReturn(artistText) in <lambda>() 417 whenever(viewHolder.explicitIndicator).thenReturn(explicitIndicator) in <lambda>() 419 whenever(viewHolder.seamless).thenReturn(seamless) in <lambda>() 420 whenever(viewHolder.seamlessButton).thenReturn(seamlessButton) in <lambda>() 421 whenever(viewHolder.seamlessIcon).thenReturn(seamlessIcon) in <lambda>() [all …]
|
D | MediaViewControllerTest.kt | 120 @Mock private lateinit var viewHolder: MediaViewHolder in <lambda>() variable in com.android.systemui.media.controls.ui.controller.MediaViewControllerTest 381 mediaViewController.attachPlayer(viewHolder) in <lambda>() 393 mediaViewController.attachPlayer(viewHolder) in <lambda>() 404 mediaViewController.attachPlayer(viewHolder) in <lambda>() 420 mediaViewController.attachPlayer(viewHolder) in <lambda>() 440 mediaViewController.attachPlayer(viewHolder) in <lambda>() 459 mediaViewController.attachPlayer(viewHolder) in <lambda>() 481 mediaViewController.attachPlayer(viewHolder) in <lambda>() 503 mediaViewController.attachPlayer(viewHolder) in <lambda>() 529 mediaViewController.attachPlayer(viewHolder) in <lambda>() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | FooterPreferenceTest.java | 95 PreferenceViewHolder viewHolder = spy(PreferenceViewHolder.createInstanceForTests( in onBindViewHolder_whenTitleIsNull_shouldNotRaiseNpe() local 97 when(viewHolder.findViewById(androidx.core.R.id.title)).thenReturn(null); in onBindViewHolder_whenTitleIsNull_shouldNotRaiseNpe() 101 mFooterPreference.onBindViewHolder(viewHolder); in onBindViewHolder_whenTitleIsNull_shouldNotRaiseNpe() 111 PreferenceViewHolder viewHolder = spy(PreferenceViewHolder.createInstanceForTests( in onBindViewHolder_whenLearnMoreIsNull_shouldNotRaiseNpe() local 113 when(viewHolder.findViewById(R.id.settingslib_learn_more)).thenReturn(null); in onBindViewHolder_whenLearnMoreIsNull_shouldNotRaiseNpe() 117 mFooterPreference.onBindViewHolder(viewHolder); in onBindViewHolder_whenLearnMoreIsNull_shouldNotRaiseNpe() 127 PreferenceViewHolder viewHolder = spy(PreferenceViewHolder.createInstanceForTests( in onBindViewHolder_whenIconFrameIsNull_shouldNotRaiseNpe() local 129 when(viewHolder.findViewById(R.id.icon_frame)).thenReturn(null); in onBindViewHolder_whenIconFrameIsNull_shouldNotRaiseNpe() 133 mFooterPreference.onBindViewHolder(viewHolder); in onBindViewHolder_whenIconFrameIsNull_shouldNotRaiseNpe()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | DropdownChipLayouter.java | 128 final ViewHolder viewHolder = new ViewHolder(itemView); in bindView() local 149 if (viewHolder.topDivider != null) { in bindView() 150 viewHolder.topDivider.setVisibility(position == 0 ? View.VISIBLE : View.GONE); in bindView() 152 (MarginLayoutParams) viewHolder.topDivider.getLayoutParams(), in bindView() 155 if (viewHolder.bottomDivider != null) { in bindView() 157 (MarginLayoutParams) viewHolder.bottomDivider.getLayoutParams(), in bindView() 175 bindTextToView(displayName, viewHolder.displayNameView); in bindView() 176 bindTextToView(destination, viewHolder.destinationView); in bindView() 177 bindTextToView(destinationType, viewHolder.destinationTypeView); in bindView() 178 bindIconToView(showImage, entry, viewHolder.imageView, type); in bindView() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/ |
D | WalletCardCarousel.java | 237 ViewHolder viewHolder = findViewHolderForAdapterPosition(mCenteredAdapterPosition); in updatePadding() local 238 if (viewHolder != null) { in updatePadding() 239 View cardView = viewHolder.itemView; in updatePadding() 249 WalletCardViewHolder viewHolder = (WalletCardViewHolder) view.getTag(); in updateCardView() local 250 CardView cardView = viewHolder.mCardView; in updateCardView() 342 WalletCardViewHolder viewHolder = (WalletCardViewHolder) view.getTag(); 343 WalletCardViewInfo card = viewHolder.mCardViewInfo; 390 WalletCardViewHolder viewHolder = new WalletCardViewHolder(view); 391 CardView cardView = viewHolder.mCardView; 396 view.setTag(viewHolder); [all …]
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/ |
D | CardPresenter.java | 49 public void onBindViewHolder(ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 51 ImageCardView cardView = (ImageCardView) viewHolder.view; in onBindViewHolder() 58 public void onUnbindViewHolder(ViewHolder viewHolder) { in onUnbindViewHolder() argument 59 ImageCardView cardView = (ImageCardView) viewHolder.view; in onUnbindViewHolder()
|
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/items/ |
D | RecyclerItemAdapterTest.java | 128 final ItemViewHolder viewHolder = adapter.onCreateViewHolder(parent, R.layout.test_list_item); in testCreateViewHolder() local 129 assertNotNull("Background should be set", viewHolder.itemView.getBackground()); in testCreateViewHolder() 130 assertEquals("foobar", viewHolder.itemView.getTag()); in testCreateViewHolder() 138 final ItemViewHolder viewHolder = in testCreateViewHolderNoBackground() local 140 assertNull("Background should be null", viewHolder.itemView.getBackground()); in testCreateViewHolderNoBackground() 148 final ItemViewHolder viewHolder = in testCreateViewHolderWithExistingBackground() local 150 Drawable background = viewHolder.itemView.getBackground(); in testCreateViewHolderWithExistingBackground()
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/ |
D | DividerItemDecoration.java | 165 protected boolean isDividerAllowedAbove(RecyclerView.ViewHolder viewHolder) { in isDividerAllowedAbove() argument 166 return !(viewHolder instanceof DividedViewHolder) in isDividerAllowedAbove() 167 || ((DividedViewHolder) viewHolder).isDividerAllowedAbove(); in isDividerAllowedAbove() 179 protected boolean isDividerAllowedBelow(RecyclerView.ViewHolder viewHolder) { in isDividerAllowedBelow() argument 180 return !(viewHolder instanceof DividedViewHolder) in isDividerAllowedBelow() 181 || ((DividedViewHolder) viewHolder).isDividerAllowedBelow(); in isDividerAllowedBelow()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | SingleLineConversationViewBinderTest.kt | 77 val viewHolder = in bindGroupConversationSingleLineView() constant 96 viewHolder, in bindGroupConversationSingleLineView() 101 assertEquals(viewModel.titleText, viewHolder.titleView.text) in bindGroupConversationSingleLineView() 102 assertEquals(viewModel.contentText, viewHolder.textView.text) in bindGroupConversationSingleLineView() 105 viewHolder.conversationSenderNameView.text in bindGroupConversationSingleLineView()
|
D | SingleLineViewBinderTest.kt | 62 val viewHolder = in bindNonConversationSingleLineView() constant 79 SingleLineViewBinder.bind(viewModel, viewHolder) in bindNonConversationSingleLineView() 82 Assert.assertEquals(viewModel.titleText, viewHolder?.titleView?.text) in bindNonConversationSingleLineView() 83 Assert.assertEquals(viewModel.contentText, viewHolder?.textView?.text) in bindNonConversationSingleLineView()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/ |
D | DreamClockTimeComplicationTest.java | 125 final Complication.ViewHolder viewHolder = complication.createView(mComplicationViewModel); in testComplicationViewHolderComponentOnCreateView() local 127 assertThat(viewHolder).isEqualTo(mDreamClockTimeViewHolder); in testComplicationViewHolderComponentOnCreateView() 136 final DreamClockTimeComplication.DreamClockTimeViewHolder viewHolder = in testComplicationViewHolderContentAccessors() local 139 assertThat(viewHolder.getView()).isEqualTo(mView); in testComplicationViewHolderContentAccessors() 140 assertThat(viewHolder.getLayoutParams()).isEqualTo(mLayoutParams); in testComplicationViewHolderContentAccessors()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | TemperatureControlBehaviorTest.kt | 36 private lateinit var viewHolder: ControlViewHolder variable in com.android.systemui.controls.ui.TemperatureControlBehaviorTest 42 viewHolder = in setup() 93 viewHolder.bindData(controlWithState, false) in testBehaviourSupportsThumbnailSubBehaviour() 94 underTest.initialize(viewHolder) in testBehaviourSupportsThumbnailSubBehaviour()
|
/frameworks/base/packages/SettingsLib/AvatarPicker/src/ |
D | AvatarPickerActivity.java | 234 public void onBindViewHolder(@NonNull AvatarViewHolder viewHolder, int position) { in onBindViewHolder() argument 236 viewHolder.setDrawable(getDrawable(R.drawable.avatar_take_photo_circled)); in onBindViewHolder() 237 viewHolder.setContentDescription(getString(R.string.user_image_take_photo)); in onBindViewHolder() 240 viewHolder.setDrawable(getDrawable(R.drawable.avatar_choose_photo_circled)); in onBindViewHolder() 241 viewHolder.setContentDescription(getString(R.string.user_image_choose_photo)); in onBindViewHolder() 245 viewHolder.setSelected(position == mSelectedPosition); in onBindViewHolder() 246 viewHolder.setDrawable(mImageDrawables.get(index)); in onBindViewHolder() 248 viewHolder.setContentDescription(mImageDescriptions.get(index)); in onBindViewHolder() 250 viewHolder.setContentDescription(getString( in onBindViewHolder() 254 viewHolder.setClickListener(view -> onViewHolderSelected(position)); in onBindViewHolder()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/ |
D | ComplicationHostViewController.java | 139 final Complication.ViewHolder viewHolder = complication.getComplication() in updateComplications() 142 final View view = viewHolder.getView(); in updateComplications() 155 mComplications.put(id, viewHolder); in updateComplications() 163 viewHolder.getLayoutParams(), viewHolder.getCategory()); in updateComplications()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | FavoritesModel.kt | 220 viewHolder: RecyclerView.ViewHolder, in onMove() 223 onMoveItem(viewHolder.bindingAdapterPosition, target.bindingAdapterPosition) in onMove() 229 viewHolder: RecyclerView.ViewHolder in getMovementFlags() 231 if (viewHolder.bindingAdapterPosition < dividerPosition) { in getMovementFlags() 246 override fun onSwiped(viewHolder: RecyclerView.ViewHolder, direction: Int) {} in onSwiped()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/ |
D | SettingsJankMonitor.kt | 52 val viewHolder = recyclerView.findViewHolderForAdapterPosition(adapterPosition) ?: return in detectSwitchPreferenceClickJank() constant 53 detectToggleJank(preference.key, viewHolder.itemView) in detectSwitchPreferenceClickJank()
|