/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ClassPresenterSelector.java | 35 public ClassPresenterSelector addClassPresenter(Class<?> cls, Presenter presenter) { in addClassPresenter() argument 36 mClassMap.put(cls, presenter); in addClassPresenter() 37 if (!mPresenters.contains(presenter)) { in addClassPresenter() 38 mPresenters.add(presenter); in addClassPresenter() 64 Object presenter = null; in getPresenter() local 67 presenter = mClassMap.get(cls); in getPresenter() 68 if (presenter instanceof PresenterSelector) { in getPresenter() 69 Presenter innerPresenter = ((PresenterSelector) presenter).getPresenter(item); in getPresenter() 75 } while (presenter == null && cls != null); in getPresenter() 77 return (Presenter) presenter; in getPresenter()
|
D | ItemBridgeAdapter.java | 35 public void onAddPresenter(Presenter presenter, int type) { in onAddPresenter() argument 138 ViewHolder(Presenter presenter, View view, Presenter.ViewHolder holder) { in ViewHolder() argument 140 mPresenter = presenter; in ViewHolder() 249 Presenter presenter = presenterSelector.getPresenter(item); in getItemViewType() local 250 int type = mPresenters.indexOf(presenter); in getItemViewType() 252 mPresenters.add(presenter); in getItemViewType() 253 type = mPresenters.indexOf(presenter); in getItemViewType() 254 if (DEBUG) Log.v(TAG, "getItemViewType added presenter " + presenter + " type " + type); in getItemViewType() 255 onAddPresenter(presenter, type); in getItemViewType() 257 mAdapterListener.onAddPresenter(presenter, type); in getItemViewType() [all …]
|
D | ControlBarPresenter.java | 47 Presenter presenter; field in ControlBarPresenter.BoundData 125 void showControls(Presenter presenter) { in showControls() argument 139 bindControlToAction(position, adapter, presenter); in showControls() 145 void bindControlToAction(int position, Presenter presenter) { in bindControlToAction() argument 146 bindControlToAction(position, getDisplayedAdapter(), presenter); in bindControlToAction() 150 ObjectAdapter adapter, Presenter presenter) { in bindControlToAction() argument 154 vh = presenter.onCreateViewHolder(mControlBar); in bindControlToAction() 158 presenter.setOnClickListener(vh, new View.OnClickListener() { in bindControlToAction() 172 presenter.onBindViewHolder(vh, item); in bindControlToAction() 255 vh.mPresenter = data.presenter; in onBindViewHolder()
|
D | PresenterSwitcher.java | 71 Presenter presenter = mPresenterSelector.getPresenter(object); in switchView() local 72 if (presenter != mCurrentPresenter) { in switchView() 75 mCurrentPresenter = presenter; in switchView()
|
D | SinglePresenterSelector.java | 27 public SinglePresenterSelector(Presenter presenter) { in SinglePresenterSelector() argument 28 mPresenter = presenter; in SinglePresenterSelector()
|
D | SparseArrayObjectAdapter.java | 23 public SparseArrayObjectAdapter(Presenter presenter) { in SparseArrayObjectAdapter() argument 24 super(presenter); in SparseArrayObjectAdapter()
|
D | ListRowPresenter.java | 266 public void onAddPresenter(Presenter presenter, int type) { in onAddPresenter() argument 268 type, getRecycledPoolSize(presenter)); in onAddPresenter() 458 public void setRecycledPoolSize(Presenter presenter, int size) { in setRecycledPoolSize() argument 459 mRecycledPoolSize.put(presenter, size); in setRecycledPoolSize() 465 public int getRecycledPoolSize(Presenter presenter) { in getRecycledPoolSize() argument 466 return mRecycledPoolSize.containsKey(presenter) ? mRecycledPoolSize.get(presenter) : in getRecycledPoolSize()
|
D | ArrayObjectAdapter.java | 38 public ArrayObjectAdapter(Presenter presenter) { in ArrayObjectAdapter() argument 39 super(presenter); in ArrayObjectAdapter()
|
D | CursorObjectAdapter.java | 39 public CursorObjectAdapter(Presenter presenter) { in CursorObjectAdapter() argument 40 super(presenter); in CursorObjectAdapter()
|
D | ObjectAdapter.java | 114 public ObjectAdapter(Presenter presenter) { in ObjectAdapter() argument 115 setPresenterSelector(new SinglePresenterSelector(presenter)); in ObjectAdapter()
|
D | FocusHighlightHelper.java | 239 Presenter presenter = mViewHolder.getPresenter(); in setFocusLevel() local 240 if (presenter instanceof RowHeaderPresenter) { in setFocusLevel() 241 ((RowHeaderPresenter) presenter).setSelectLevel( in setFocusLevel()
|
D | GuidedActionAdapter.java | 142 FocusListener focusListener, GuidedActionsStylist presenter, boolean isSubAdapter) { in GuidedActionAdapter() argument 147 mStylist = presenter; in GuidedActionAdapter()
|
D | PlaybackControlsRowPresenter.java | 389 vh.mControlsBoundData.presenter = vh.getPresenter(true); in onBindRowViewHolder() 394 vh.mSecondaryBoundData.presenter = vh.getPresenter(false); in onBindRowViewHolder()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuBuilder.java | 214 public void addMenuPresenter(MenuPresenter presenter) { in addMenuPresenter() argument 215 addMenuPresenter(presenter, mContext); in addMenuPresenter() 227 public void addMenuPresenter(MenuPresenter presenter, Context menuContext) { in addMenuPresenter() argument 228 mPresenters.add(new WeakReference<MenuPresenter>(presenter)); in addMenuPresenter() 229 presenter.initForMenu(menuContext, this); in addMenuPresenter() 239 public void removeMenuPresenter(MenuPresenter presenter) { in removeMenuPresenter() argument 242 if (item == null || item == presenter) { in removeMenuPresenter() 253 final MenuPresenter presenter = ref.get(); in dispatchPresenterUpdate() local 254 if (presenter == null) { in dispatchPresenterUpdate() 257 presenter.updateMenuView(cleared); in dispatchPresenterUpdate() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
D | MenuBuilder.java | 240 public void addMenuPresenter(MenuPresenter presenter) { in addMenuPresenter() argument 241 addMenuPresenter(presenter, mContext); in addMenuPresenter() 253 public void addMenuPresenter(MenuPresenter presenter, Context menuContext) { in addMenuPresenter() argument 254 mPresenters.add(new WeakReference<MenuPresenter>(presenter)); in addMenuPresenter() 255 presenter.initForMenu(menuContext, this); in addMenuPresenter() 265 public void removeMenuPresenter(MenuPresenter presenter) { in removeMenuPresenter() argument 268 if (item == null || item == presenter) { in removeMenuPresenter() 279 final MenuPresenter presenter = ref.get(); in dispatchPresenterUpdate() local 280 if (presenter == null) { in dispatchPresenterUpdate() 283 presenter.updateMenuView(cleared); in dispatchPresenterUpdate() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | DetailsFragment.java | 244 … protected void setupDetailsOverviewRowPresenter(FullWidthDetailsOverviewRowPresenter presenter) { in setupDetailsOverviewRowPresenter() argument 262 presenter.setFacet(ItemAlignmentFacet.class, facet); in setupDetailsOverviewRowPresenter() 351 protected void onSetRowStatus(RowPresenter presenter, RowPresenter.ViewHolder viewHolder, int in onSetRowStatus() argument 353 if (presenter instanceof FullWidthDetailsOverviewRowPresenter) { in onSetRowStatus() 354 onSetDetailsOverviewRowStatus((FullWidthDetailsOverviewRowPresenter) presenter, in onSetRowStatus() 376 protected void onSetDetailsOverviewRowStatus(FullWidthDetailsOverviewRowPresenter presenter, in onSetDetailsOverviewRowStatus() argument 380 presenter.setState(viewHolder, FullWidthDetailsOverviewRowPresenter.STATE_HALF); in onSetDetailsOverviewRowStatus() 382 presenter.setState(viewHolder, FullWidthDetailsOverviewRowPresenter.STATE_HALF); in onSetDetailsOverviewRowStatus() 384 presenter.setState(viewHolder, FullWidthDetailsOverviewRowPresenter.STATE_FULL); in onSetDetailsOverviewRowStatus() 386 presenter.setState(viewHolder, in onSetDetailsOverviewRowStatus()
|
D | DetailsSupportFragment.java | 246 … protected void setupDetailsOverviewRowPresenter(FullWidthDetailsOverviewRowPresenter presenter) { in setupDetailsOverviewRowPresenter() argument 264 presenter.setFacet(ItemAlignmentFacet.class, facet); in setupDetailsOverviewRowPresenter() 353 protected void onSetRowStatus(RowPresenter presenter, RowPresenter.ViewHolder viewHolder, int in onSetRowStatus() argument 355 if (presenter instanceof FullWidthDetailsOverviewRowPresenter) { in onSetRowStatus() 356 onSetDetailsOverviewRowStatus((FullWidthDetailsOverviewRowPresenter) presenter, in onSetRowStatus() 378 protected void onSetDetailsOverviewRowStatus(FullWidthDetailsOverviewRowPresenter presenter, in onSetDetailsOverviewRowStatus() argument 382 presenter.setState(viewHolder, FullWidthDetailsOverviewRowPresenter.STATE_HALF); in onSetDetailsOverviewRowStatus() 384 presenter.setState(viewHolder, FullWidthDetailsOverviewRowPresenter.STATE_HALF); in onSetDetailsOverviewRowStatus() 386 presenter.setState(viewHolder, FullWidthDetailsOverviewRowPresenter.STATE_FULL); in onSetDetailsOverviewRowStatus() 388 presenter.setState(viewHolder, in onSetDetailsOverviewRowStatus()
|
D | RowsFragment.java | 328 public void onAddPresenter(Presenter presenter, int type) { 330 mExternalAdapterListener.onAddPresenter(presenter, type);
|
D | RowsSupportFragment.java | 330 public void onAddPresenter(Presenter presenter, int type) { 332 mExternalAdapterListener.onAddPresenter(presenter, type);
|
/frameworks/base/docs/html/training/tv/playback/ |
D | details.jd | 13 <li><a href="#details-presenter">Build a Details Presenter</a></li> 29 This lesson discusses how to create a presenter class for media item details, and how to extend 46 <h2 id="details-presenter">Build a Details Presenter</h2> 49 In the media browsing framework provided by the leanback library, you use presenter 52 class for this purpose, which is a nearly complete implementation of the presenter for media item 93 The following example code demonstrates how to use the presenter class shown in the 113 // Attach your media item details presenter to the row presenter:
|
D | card.jd | 12 <li><a href="#presenter">Create a Card Presenter</a></li> 40 <h2 id="presenter">Create a Card Presenter</h2> 89 <p>In this step, you build the card presenter with a view holder for the card view that describes 90 your media content items. Note that each presenter must only create one view type. If you have two
|
D | browse.jd | 2 page.tags=tv, browsefragment, presenter, backgroundmanager 255 <p>This example shows how to define the presenter for a complex layout with 264 method to set the presenter for the row header, as shown in the following example.</p> 345 Once you have constructed a presenter class for your media items, you can build
|
/frameworks/base/docs/html-intl/intl/ja/training/tv/playback/ |
D | details.jd | 12 <li><a href="#details-presenter">詳細プレゼンターをビルドする</a></li> 33 <h2 id="details-presenter">詳細プレゼンターをビルドする</h2> 88 // Attach your media item details presenter to the row presenter:
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | FrameworkActionBar.java | 177 ActionMenuPresenter presenter = mActionBar.getActionMenuPresenter(); in isOverflowPopupNeeded() local 178 if (presenter == null) { in isOverflowPopupNeeded() 181 if (presenter.isOverflowReserved() && in isOverflowPopupNeeded()
|
D | FrameworkActionBarWrapper.java | 206 ActionMenuPresenter presenter = getActionMenuPresenter(); in inflateMenus() local 207 if (presenter != null) { in inflateMenus() 208 presenter.setMenuView(new ActionMenuView(getPopupContext())); in inflateMenus()
|