/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
D | ControlButtonPresenterSelector.java | 33 private final Presenter mPrimaryPresenter = 35 private final Presenter mSecondaryPresenter = 37 private final Presenter[] mPresenters = new Presenter[]{mPrimaryPresenter}; 42 public Presenter getPrimaryPresenter() { in getPrimaryPresenter() 49 public Presenter getSecondaryPresenter() { in getSecondaryPresenter() 57 public Presenter getPresenter(Object item) { in getPresenter() 62 public Presenter[] getPresenters() { in getPresenters() 66 static class ActionViewHolder extends Presenter.ViewHolder { 79 static class ControlButtonPresenter extends Presenter { 94 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() [all …]
|
D | ClassPresenterSelector.java | 25 private final ArrayList<Presenter> mPresenters = new ArrayList<Presenter>(); 35 public ClassPresenterSelector addClassPresenter(Class<?> cls, Presenter presenter) { in addClassPresenter() 53 Presenter[] innerPresenters = presenterSelector.getPresenters(); in addClassPresenterSelector() 62 public Presenter getPresenter(Object item) { in getPresenter() 69 Presenter innerPresenter = ((PresenterSelector) presenter).getPresenter(item); in getPresenter() 77 return (Presenter) presenter; in getPresenter() 81 public Presenter[] getPresenters() { in getPresenters() 82 return mPresenters.toArray(new Presenter[mPresenters.size()]); in getPresenters()
|
D | ControlBarPresenter.java | 31 class ControlBarPresenter extends Presenter { 47 Presenter presenter; 54 void onControlSelected(Presenter.ViewHolder controlViewHolder, Object item, in onControlSelected() 62 void onControlClicked(Presenter.ViewHolder controlViewHolder, Object item, in onControlClicked() 66 class ViewHolder extends Presenter.ViewHolder { 69 Presenter mPresenter; 72 SparseArray<Presenter.ViewHolder> mViewHolders = 73 new SparseArray<Presenter.ViewHolder>(); 126 void showControls(Presenter presenter) { in showControls() 146 void bindControlToAction(int position, Presenter presenter) { in bindControlToAction() [all …]
|
D | ActionPresenterSelector.java | 27 private final Presenter mOneLineActionPresenter = new OneLineActionPresenter(); 28 private final Presenter mTwoLineActionPresenter = new TwoLineActionPresenter(); 29 private final Presenter[] mPresenters = new Presenter[] { 33 public Presenter getPresenter(Object item) { in getPresenter() 43 public Presenter[] getPresenters() { in getPresenters() 47 static class ActionViewHolder extends Presenter.ViewHolder { 59 abstract static class ActionPresenter extends Presenter { 61 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() 85 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() 102 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() [all …]
|
D | SinglePresenterSelector.java | 22 private final Presenter mPresenter; 27 public SinglePresenterSelector(Presenter presenter) { in SinglePresenterSelector() 32 public Presenter getPresenter(Object item) { in getPresenter() 37 public Presenter[] getPresenters() { in getPresenters() 38 return new Presenter[]{mPresenter}; in getPresenters()
|
D | RowPresenter.java | 98 public abstract class RowPresenter extends Presenter { 121 static class ContainerViewHolder extends Presenter.ViewHolder { 141 public static class ViewHolder extends Presenter.ViewHolder { 298 public Presenter.ViewHolder getSelectedItemViewHolder() { in getSelectedItemViewHolder() 325 public final Presenter.ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() 328 Presenter.ViewHolder result; in onCreateViewHolder() 405 public final ViewHolder getRowViewHolder(Presenter.ViewHolder holder) { in getRowViewHolder() 419 public final void setRowViewExpanded(Presenter.ViewHolder holder, boolean expanded) { in setRowViewExpanded() 431 public final void setRowViewSelected(Presenter.ViewHolder holder, boolean selected) { in setRowViewSelected() 528 public final void setSelectLevel(Presenter.ViewHolder vh, float level) { in setSelectLevel() [all …]
|
D | ItemBridgeAdapter.java | 37 public void onAddPresenter(Presenter presenter, int type) { in onAddPresenter() 75 private ArrayList<Presenter> mPresenters = new ArrayList<Presenter>(); 102 final Presenter mPresenter; 103 final Presenter.ViewHolder mHolder; 111 public final Presenter getPresenter() { in getPresenter() 118 public final Presenter.ViewHolder getViewHolder() { in getViewHolder() 152 ViewHolder(Presenter presenter, View view, Presenter.ViewHolder holder) { in ViewHolder() 265 public void setPresenterMapper(ArrayList<Presenter> presenters) { in setPresenterMapper() 272 public ArrayList<Presenter> getPresenterMapper() { in getPresenterMapper() 286 Presenter presenter = presenterSelector.getPresenter(item); in getItemViewType() [all …]
|
D | MediaItemActionPresenter.java | 31 class MediaItemActionPresenter extends Presenter { 36 static class ViewHolder extends Presenter.ViewHolder { 50 public Presenter.ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() 58 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() 65 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder()
|
D | DividerPresenter.java | 28 public class DividerPresenter extends Presenter { 45 public Presenter.ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() 53 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() 57 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder()
|
D | DetailsOverviewLogoPresenter.java | 25 public class DetailsOverviewLogoPresenter extends Presenter { 30 public static class ViewHolder extends Presenter.ViewHolder { 93 public Presenter.ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() 136 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() 170 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder()
|
D | ListRowPresenter.java | 118 public Presenter.ViewHolder getItemViewHolder(int position) { in getItemViewHolder() 128 public Presenter.ViewHolder getSelectedItemViewHolder() { in getSelectedItemViewHolder() 147 public static class SelectItemViewHolderTask extends Presenter.ViewHolderTask { 151 Presenter.ViewHolderTask mItemTask; 194 public Presenter.ViewHolderTask getItemTask() { in getItemTask() 202 public void setItemTask(Presenter.ViewHolderTask itemTask) { in setItemTask() 207 public void run(Presenter.ViewHolder holder) { in run() 213 final Presenter.ViewHolderTask itemTask = mItemTask; in run() 279 public void onAddPresenter(Presenter presenter, int type) { in onAddPresenter() 295 private HashMap<Presenter, Integer> mRecycledPoolSize = new HashMap<Presenter, Integer>(); [all …]
|
D | AbstractMediaItemPresenter.java | 94 private Presenter mMediaItemActionPresenter = new MediaItemActionPresenter(); 137 public void setActionPresenter(Presenter actionPresenter) { in setActionPresenter() 146 public Presenter getActionPresenter() { in getActionPresenter() 169 private final List<Presenter.ViewHolder> mActionViewHolders; 184 mActionViewHolders = new ArrayList<Presenter.ViewHolder>(); in ViewHolder() 238 Presenter actionPresenter = mRowPresenter.getActionPresenter(); in onBindRowActions() 246 final Presenter.ViewHolder actionViewHolder = in onBindRowActions() 272 Presenter.ViewHolder avh = mActionViewHolders.get(i); in onBindRowActions() 296 Presenter actionPresenter = mRowPresenter.getActionPresenter(); in notifyActionChanged() 302 Presenter.ViewHolder actionViewHolder = mActionViewHolders.get(actionIndex); in notifyActionChanged()
|
D | PresenterSelector.java | 24 public abstract Presenter getPresenter(Object item); in getPresenter() 30 public Presenter[] getPresenters() { in getPresenters()
|
D | PresenterSwitcher.java | 28 private Presenter mCurrentPresenter; 29 private Presenter.ViewHolder mCurrentViewHolder; 71 Presenter presenter = mPresenterSelector.getPresenter(object); in switchView()
|
D | RowHeaderPresenter.java | 34 public class RowHeaderPresenter extends Presenter { 83 public static class ViewHolder extends Presenter.ViewHolder { 128 public Presenter.ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() 140 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() 173 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder()
|
D | AbstractDetailsDescriptionPresenter.java | 35 public abstract class AbstractDetailsDescriptionPresenter extends Presenter { 40 public static class ViewHolder extends Presenter.ViewHolder { 160 public final void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() 219 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {} in onUnbindViewHolder() 222 public void onViewAttachedToWindow(Presenter.ViewHolder holder) { in onViewAttachedToWindow() 231 public void onViewDetachedFromWindow(Presenter.ViewHolder holder) { in onViewDetachedFromWindow()
|
D | PlaybackControlsRowPresenter.java | 55 public final Presenter.ViewHolder mDescriptionViewHolder; 68 Presenter.ViewHolder mSecondaryControlsVh; 71 Presenter.ViewHolder mSelectedViewHolder; 91 ViewHolder(View rootView, Presenter descriptionPresenter) { in ViewHolder() 126 Presenter getPresenter(boolean primary) { in getPresenter() 163 private Presenter mDescriptionPresenter; 172 public void onControlSelected(Presenter.ViewHolder itemViewHolder, Object item, 186 public void onControlClicked(Presenter.ViewHolder itemViewHolder, Object item, 204 public PlaybackControlsRowPresenter(Presenter descriptionPresenter) { in PlaybackControlsRowPresenter()
|
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
D | BrowseAnimationFragment.java | 28 import androidx.leanback.widget.Presenter; 95 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, in createRandomItem() 110 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, in createRandomItem() 125 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, in createRandomItem() 138 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, in createRandomItem() 148 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, in createRandomItem() 161 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, in createRandomItem() 175 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, in createRandomItem() 192 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, in createRandomItem() 209 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, in createRandomItem() [all …]
|
D | VerticalGridFragment.java | 27 import androidx.leanback.widget.Presenter; 93 public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item, in setupFragment() 101 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, in setupFragment()
|
D | VerticalGridSupportFragment.java | 30 import androidx.leanback.widget.Presenter; 96 public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item, in setupFragment() 104 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, in setupFragment()
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
D | ItemBridgeAdapterTest.java | 49 public static class BasePresenter extends Presenter { 74 private Presenter mPresenter; 120 .onBindViewHolder(any(Presenter.ViewHolder.class), any()); in onCreateAndOnBind() 128 .onUnbindViewHolder(any(Presenter.ViewHolder.class)); in onUnbind() 140 .onUnbindViewHolder(any(Presenter.ViewHolder.class)); in onUnbindWithTransientState()
|
/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/presenter/ |
D | CardPresenter.java | 24 import androidx.leanback.widget.Presenter; 33 public class CardPresenter extends Presenter { 66 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() 96 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder()
|
D | HeaderItemPresenter.java | 30 import androidx.leanback.widget.Presenter; 52 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() 67 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder()
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
D | PlaybackFragmentTest.java | 47 import androidx.leanback.widget.Presenter; 111 ArgumentCaptor<Presenter.ViewHolder> itemVHCaptor = in testSelectedListener() 112 ArgumentCaptor.forClass(Presenter.ViewHolder.class); in testSelectedListener() 120 verify(selectedListener, times(0)).onItemSelected(any(Presenter.ViewHolder.class), in testSelectedListener() 178 ArgumentCaptor<Presenter.ViewHolder> itemVHCaptor = in testClickedListener() 179 ArgumentCaptor.forClass(Presenter.ViewHolder.class); in testClickedListener() 187 verify(clickedListener, times(0)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener() 197 verify(clickedListener, times(1)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener() 207 verify(clickedListener, times(2)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener() 221 verify(clickedListener, times(3)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener()
|
D | PlaybackSupportFragmentTest.java | 44 import androidx.leanback.widget.Presenter; 108 ArgumentCaptor<Presenter.ViewHolder> itemVHCaptor = in testSelectedListener() 109 ArgumentCaptor.forClass(Presenter.ViewHolder.class); in testSelectedListener() 117 verify(selectedListener, times(0)).onItemSelected(any(Presenter.ViewHolder.class), in testSelectedListener() 175 ArgumentCaptor<Presenter.ViewHolder> itemVHCaptor = in testClickedListener() 176 ArgumentCaptor.forClass(Presenter.ViewHolder.class); in testClickedListener() 184 verify(clickedListener, times(0)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener() 194 verify(clickedListener, times(1)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener() 204 verify(clickedListener, times(2)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener() 218 verify(clickedListener, times(3)).onItemClicked(any(Presenter.ViewHolder.class), in testClickedListener()
|