Home
last modified time | relevance | path

Searched refs:mPresenters (Results 1 – 6 of 6) sorted by relevance

/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DClassPresenterSelector.java25 private final ArrayList<Presenter> mPresenters = new ArrayList<Presenter>(); field in ClassPresenterSelector
37 if (!mPresenters.contains(presenter)) { in addClassPresenter()
38 mPresenters.add(presenter); in addClassPresenter()
55 if (!mPresenters.contains(innerPresenters[i])) { in addClassPresenterSelector()
56 mPresenters.add(innerPresenters[i]); in addClassPresenterSelector()
82 return mPresenters.toArray(new Presenter[mPresenters.size()]); in getPresenters()
DItemBridgeAdapter.java75 private ArrayList<Presenter> mPresenters = new ArrayList<Presenter>(); field in ItemBridgeAdapter
266 mPresenters = presenters; in setPresenterMapper()
273 return mPresenters; in getPresenterMapper()
287 int type = mPresenters.indexOf(presenter); in getItemViewType()
289 mPresenters.add(presenter); in getItemViewType()
290 type = mPresenters.indexOf(presenter); in getItemViewType()
344 Presenter presenter = mPresenters.get(viewType); in onCreateViewHolder()
452 return mPresenters.get(type); in getFacetProvider()
DControlButtonPresenterSelector.java37 private final Presenter[] mPresenters = new Presenter[]{mPrimaryPresenter}; field in ControlButtonPresenterSelector
63 return mPresenters; in getPresenters()
DActionPresenterSelector.java29 private final Presenter[] mPresenters = new Presenter[] { field in ActionPresenterSelector
44 return mPresenters; in getPresenters()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuBuilder.java153 private CopyOnWriteArrayList<WeakReference<MenuPresenter>> mPresenters = field in MenuBuilder
234 mPresenters.add(new WeakReference<MenuPresenter>(presenter)); in addMenuPresenter()
246 for (WeakReference<MenuPresenter> ref : mPresenters) { in removeMenuPresenter()
249 mPresenters.remove(ref); in removeMenuPresenter()
255 if (mPresenters.isEmpty()) return; in dispatchPresenterUpdate()
258 for (WeakReference<MenuPresenter> ref : mPresenters) { in dispatchPresenterUpdate()
261 mPresenters.remove(ref); in dispatchPresenterUpdate()
271 if (mPresenters.isEmpty()) return false; in dispatchSubMenuSelected()
280 for (WeakReference<MenuPresenter> ref : mPresenters) { in dispatchSubMenuSelected()
283 mPresenters.remove(ref); in dispatchSubMenuSelected()
[all …]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/
DMenuBuilder.java177 private CopyOnWriteArrayList<WeakReference<MenuPresenter>> mPresenters = field in MenuBuilder
269 mPresenters.add(new WeakReference<MenuPresenter>(presenter)); in addMenuPresenter()
281 for (WeakReference<MenuPresenter> ref : mPresenters) { in removeMenuPresenter()
284 mPresenters.remove(ref); in removeMenuPresenter()
290 if (mPresenters.isEmpty()) return; in dispatchPresenterUpdate()
293 for (WeakReference<MenuPresenter> ref : mPresenters) { in dispatchPresenterUpdate()
296 mPresenters.remove(ref); in dispatchPresenterUpdate()
306 if (mPresenters.isEmpty()) return false; in dispatchSubMenuSelected()
315 for (WeakReference<MenuPresenter> ref : mPresenters) { in dispatchSubMenuSelected()
318 mPresenters.remove(ref); in dispatchSubMenuSelected()
[all …]