Home
last modified time | relevance | path

Searched refs:sliceView (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/src/com/android/settings/panel/
DPanelSlicesAdapter.java129 final SliceView sliceView; field in PanelSlicesAdapter.SliceRowViewHolder
135 sliceView = view.findViewById(R.id.slice_view); in SliceRowViewHolder()
136 sliceView.setMode(SliceView.MODE_LARGE); in SliceRowViewHolder()
137 sliceView.setShowTitleItems(true); in SliceRowViewHolder()
138 sliceView.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO); in SliceRowViewHolder()
149 sliceView.setVisibility(View.GONE); in onBind()
152 sliceView.setSlice(slice); in onBind()
153 sliceView.setVisibility(View.VISIBLE); in onBind()
157 sliceView.setShowActionDividers(true); in onBind()
160 sliceView.setOnSliceActionListener( in onBind()
[all …]
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DSliceFullCardRendererHelper.java50 cardHolder.sliceView.setScrollable(false); in bindView()
51 cardHolder.sliceView.setTag(card.getSliceUri()); in bindView()
52 cardHolder.sliceView.setMode(SliceView.MODE_LARGE); in bindView()
53 cardHolder.sliceView.setSlice(slice); in bindView()
55 cardHolder.sliceView.setOnSliceActionListener((eventInfo, sliceItem) -> { in bindView()
67 cardHolder.sliceView.setShowTitleItems(true); in bindView()
69 cardHolder.sliceView.setShowHeaderDivider(true); in bindView()
70 cardHolder.sliceView.setShowActionDividers(true); in bindView()
75 public final SliceView sliceView; field in SliceFullCardRendererHelper.SliceViewHolder
79 sliceView = view.findViewById(R.id.slice_view); in SliceViewHolder()
DSliceContextualCardRenderer.java108 ((SliceViewHolder) holder).sliceView.setSlice(card.getSlice()); in bindView()
223 return ((SliceFullCardRendererHelper.SliceViewHolder) viewHolder).sliceView; in getInitialView()
DSwipeDismissalDelegate.java119 return ((SliceFullCardRendererHelper.SliceViewHolder) viewHolder).sliceView; in getSwipeableView()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSlicePreferenceTest.java58 final SliceView sliceView = mSlicePreference.findViewById(R.id.slice_view); in onSliceUpdated_null_hideSliceView() local
62 assertThat(sliceView.getVisibility()).isEqualTo(View.GONE); in onSliceUpdated_null_hideSliceView()
67 final SliceView sliceView = mSlicePreference.findViewById(R.id.slice_view); in onSliceUpdated_notNull_showSliceView() local
71 assertThat(sliceView.getVisibility()).isEqualTo(View.VISIBLE); in onSliceUpdated_notNull_showSliceView()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DSliceContextualCardRendererTest.java100 ((SliceFullCardRendererHelper.SliceViewHolder) viewHolder).sliceView.getSlice()) in bindView_invalidScheme_sliceShouldBeNull()
112 ((SliceFullCardRendererHelper.SliceViewHolder) viewHolder).sliceView.getSlice()) in bindView_viewTypeFullWidth_shouldSetCachedSlice()
125 ((SliceFullCardRendererHelper.SliceViewHolder) viewHolder).sliceView.getSlice()) in bindView_viewTypeSticky_shouldSetCachedSlice()
202 final View sliceView = viewHolder.itemView.findViewById(R.id.slice_view); in viewClick_keepCard_shouldShowSlice() local
212 assertThat(sliceView.getVisibility()).isEqualTo(View.VISIBLE); in viewClick_keepCard_shouldShowSlice()
263 final View sliceView = viewHolder.itemView.findViewById(R.id.slice_view); in onStop_cardIsInDismissalView_shouldResetToSliceView() local
272 assertThat(sliceView.getVisibility()).isEqualTo(View.VISIBLE); in onStop_cardIsInDismissalView_shouldResetToSliceView()
DSliceFullCardRendererHelperTest.java81 assertThat(((SliceViewHolder) viewHolder).sliceView.isScrollable()).isFalse(); in bindView_shouldSetScrollableToFalse()
91 assertThat(((SliceViewHolder) viewHolder).sliceView.getTag()).isEqualTo(card.getSliceUri()); in bindView_shouldSetTagToSliceUri()
100 assertThat(((SliceViewHolder) viewHolder).sliceView.getMode()).isEqualTo( in bindView_shouldSetModeToLarge()
110 assertThat(((SliceViewHolder) viewHolder).sliceView.getSlice().getUri()).isEqualTo( in bindView_shouldSetSlice()