Home
last modified time | relevance | path

Searched refs:mSliceLiveData (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/src/com/android/settings/panel/
DPanelSlicesAdapter.java54 private final List<LiveData<Slice>> mSliceLiveData; field in PanelSlicesAdapter
61 mSliceLiveData = new ArrayList<>(sliceLiveData); in PanelSlicesAdapter()
77 sliceRowViewHolder.onBind(mSliceLiveData.get(position)); in onBindViewHolder()
85 return Math.min(mSliceLiveData.size(), MAX_NUM_OF_SLICES); in getItemCount()
94 return mSliceLiveData.subList(0, getItemCount()); in getData()
DPanelFragment.java87 private final List<LiveData<Slice>> mSliceLiveData = new ArrayList<>(); field in PanelFragment
206 mSliceLiveData.clear(); in loadAllSlices()
214 mSliceLiveData.add(sliceLiveData); in loadAllSlices()
238 mSliceLiveData.remove(sliceLiveData); in loadAllSlices()
265 this, mSliceLiveData, mPanel.getMetricsCategory()); in loadPanelWhenReady()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DSliceContextualCardRendererTest.java60 private LiveData<Slice> mSliceLiveData; field in SliceContextualCardRendererTest
111 mRenderer.mSliceLiveDataMap.put(TEST_SLICE_URI, mSliceLiveData); in bindView_sliceLiveDataShouldRemoveObservers()
115 verify(mSliceLiveData).removeObservers(mLifecycleOwner); in bindView_sliceLiveDataShouldRemoveObservers()
158 mRenderer.mSliceLiveDataMap.put(TEST_SLICE_URI, mSliceLiveData); in bindView_reuseViewHolder_shouldHideSwipeBackgroundBeforeSliceBinding()
169 mRenderer.mSliceLiveDataMap.put(TEST_SLICE_URI, mSliceLiveData); in bindView_deferredSetupCard_shouldNotCrash()
225 mRenderer.mSliceLiveDataMap.put(TEST_SLICE_URI, mSliceLiveData); in viewClick_removeCard_sliceLiveDataShouldRemoveObservers()