HomeSort by relevance Sort by last modified time
    Searched defs:presenter (Results 1 - 25 of 38) sorted by null

1 2

  /external/autotest/frontend/client/src/autotest/tko/embedded_spreadsheet/
EmbeddedSpreadsheetClient.java 8 private EmbeddedSpreadsheetPresenter presenter = new EmbeddedSpreadsheetPresenter(); field in class:EmbeddedSpreadsheetClient
13 presenter.bindDisplay(display);
14 presenter.initialize(Window.Location.getParameter("afe_job_id"));
  /packages/apps/Settings/src/com/android/settings/applications/
PermissionsSummaryHelper.java 32 final RuntimePermissionPresenter presenter = local
34 presenter.getAppPermissions(pkg, new RuntimePermissionPresenter.OnResultCallback() {
  /developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/presenter/
DetailsDescriptionPresenter.java 17 package com.example.android.tvleanback.presenter;
GridItemPresenter.java 17 package com.example.android.tvleanback.presenter;
20 import android.support.v17.leanback.widget.Presenter;
28 public class GridItemPresenter extends Presenter {
CardPresenter.java 17 package com.example.android.tvleanback.presenter;
21 import android.support.v17.leanback.widget.Presenter;
33 public class CardPresenter extends Presenter {
73 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) {
91 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {
  /cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/
GridItemPresenter.java 17 package android.leanbackjank.app.presenter;
20 import android.support.v17.leanback.widget.Presenter;
28 public class GridItemPresenter extends Presenter {
IconHeaderItemPresenter.java 17 package android.leanbackjank.app.presenter;
23 import android.support.v17.leanback.widget.Presenter;
49 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object o) {
62 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {
CardPresenter.java 17 package android.leanbackjank.app.presenter;
21 import android.support.v17.leanback.widget.Presenter;
32 public class CardPresenter extends Presenter {
69 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) {
84 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {
  /frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/
CardPresenterSelector.java 21 import android.support.v17.leanback.widget.Presenter;
27 * This PresenterSelector will decide what Presenter to use depending on a given card's type.
32 private final HashMap<Card.Type, Presenter> presenters = new HashMap<Card.Type, Presenter>();
39 public Presenter getPresenter(Object item) {
44 Presenter presenter = presenters.get(card.getType()); local
45 if (presenter == null) {
48 presenter = new SingleLineCardPresenter(mContext);
68 presenter = new ImageCardViewPresenter(mContext, themeResId)
88 presenters.put(card.getType(), presenter); local
    [all...]
  /external/autotest/frontend/client/src/autotest/afe/create/
CreateJobViewTab.java 10 private CreateJobViewPresenter presenter; field in class:CreateJobViewTab
16 presenter = new CreateJobViewPresenter(listener);
18 presenter.bindDisplay(display);
48 return presenter;
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
ClassPresenterSelector.java 20 * A ClassPresenterSelector selects a {@link Presenter} based on the item's
25 private final ArrayList<Presenter> mPresenters = new ArrayList<Presenter>();
30 * Sets a presenter to be used for the given class.
32 * @param presenter The presenter that renders the objects of the given class.
35 public ClassPresenterSelector addClassPresenter(Class<?> cls, Presenter presenter) {
36 mClassMap.put(cls, presenter);
37 if (!mPresenters.contains(presenter)) {
64 Object presenter = null; local
    [all...]
ControlBarPresenter.java 25 * A presenter that assumes a LinearLayout container for a series
28 * Different layouts may be passed to the presenter constructor.
31 class ControlBarPresenter extends Presenter {
36 * The data type expected by this presenter.
45 * The presenter to be used for the adapter objects.
47 Presenter presenter; field in class:ControlBarPresenter.BoundData
54 void onControlSelected(Presenter.ViewHolder controlViewHolder, Object item,
62 void onControlClicked(Presenter.ViewHolder controlViewHolder, Object item,
66 class ViewHolder extends Presenter.ViewHolder
    [all...]
PresenterSwitcher.java 28 private Presenter mCurrentPresenter;
29 private Presenter.ViewHolder mCurrentViewHolder;
33 * {@link PresenterSelector} for choosing a {@link Presenter} for a given object.
71 Presenter presenter = mPresenterSelector.getPresenter(object); local
72 if (presenter != mCurrentPresenter) {
75 mCurrentPresenter = presenter;
FocusHighlightHelper.java 239 Presenter presenter = mViewHolder.getPresenter(); local
240 if (presenter instanceof RowHeaderPresenter) {
241 ((RowHeaderPresenter) presenter).setSelectLevel( method
ItemBridgeAdapter.java 24 * Bridge from {@link Presenter} to {@link RecyclerView.Adapter}. Public to allow use by third
35 public void onAddPresenter(Presenter presenter, int type) {
50 * Interface for wrapping a view created by a Presenter into another view.
63 private ArrayList<Presenter> mPresenters = new ArrayList<Presenter>();
88 final Presenter mPresenter;
89 final Presenter.ViewHolder mHolder;
95 * Get {@link Presenter}.
97 public final Presenter getPresenter()
249 Presenter presenter = presenterSelector.getPresenter(item); local
307 Presenter presenter = mPresenters.get(viewType); local
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
FrameworkActionBarWrapper.java 203 // Setting a menu different from the above initializes the presenter.
206 ActionMenuPresenter presenter = getActionMenuPresenter(); local
207 if (presenter != null) {
208 presenter.setMenuView(new ActionMenuView(getPopupContext()));
FrameworkActionBar.java 177 ActionMenuPresenter presenter = mActionBar.getActionMenuPresenter(); local
178 if (presenter == null) {
179 throw new RuntimeException("Failed to create a Presenter for Action Bar Menus.");
181 if (presenter.isOverflowReserved() &&
  /packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/
CallCardPresenterTest.java 70 CallCardPresenter presenter = new CallCardPresenter(); local
71 presenter.init(getContext(), null);
73 assertEquals(NAME_PRIMARY, presenter.getNameForCall(mUnlockedContactInfo));
78 CallCardPresenter presenter = new CallCardPresenter(); local
79 presenter.init(getContext(), null);
81 assertEquals(NUMBER, presenter.getNameForCall(mLockedContactInfo));
89 CallCardPresenter presenter = new CallCardPresenter(); local
90 presenter.init(getContext(), null);
92 assertEquals(NUMBER, presenter.getNameForCall(contactInfo));
97 CallCardPresenter presenter = new CallCardPresenter() local
105 CallCardPresenter presenter = new CallCardPresenter(); local
116 CallCardPresenter presenter = new CallCardPresenter(); local
    [all...]
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DetailsFragment.java 25 import android.support.v17.leanback.widget.Presenter;
102 public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item,
121 Presenter[] presenters = adapter.getPresenterSelector().getPresenters();
227 * Called to setup each Presenter of Adapter passed in {@link #setAdapter(ObjectAdapter)}. Note
228 * that setup should only change the Presenter behavior that is meaningful in DetailsFragment. For
233 protected void setupPresenter(Presenter rowPresenter) {
244 protected void setupDetailsOverviewRowPresenter(FullWidthDetailsOverviewRowPresenter presenter) {
262 presenter.setFacet(ItemAlignmentFacet.class, facet);
340 * FullWidthDetailsOverviewRowPresenter.ViewHolder, int, int, int)} if presenter is
343 * @param presenter The presenter used to create row ViewHolder
    [all...]
DetailsSupportFragment.java 27 import android.support.v17.leanback.widget.Presenter;
104 public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item,
123 Presenter[] presenters = adapter.getPresenterSelector().getPresenters();
229 * Called to setup each Presenter of Adapter passed in {@link #setAdapter(ObjectAdapter)}. Note
230 * that setup should only change the Presenter behavior that is meaningful in DetailsSupportFragment. For
235 protected void setupPresenter(Presenter rowPresenter) {
246 protected void setupDetailsOverviewRowPresenter(FullWidthDetailsOverviewRowPresenter presenter) {
264 presenter.setFacet(ItemAlignmentFacet.class, facet);
342 * FullWidthDetailsOverviewRowPresenter.ViewHolder, int, int, int)} if presenter is
345 * @param presenter The presenter used to create row ViewHolder
    [all...]
  /frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
PlaybackControlHelper.java 78 PlaybackControlsRowPresenter presenter = super.createControlsRowAndPresenter(); local
93 return presenter;
PlaybackControlSupportHelper.java 80 PlaybackControlsRowPresenter presenter = super.createControlsRowAndPresenter(); local
95 return presenter;
  /packages/apps/Dialer/InCallUI/src/com/android/incallui/
CallCardPresenter.java 63 * Presenter for the Call Card Fragment.
67 public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi>
105 CallCardPresenter presenter = mCallCardPresenter.get(); local
106 if (presenter != null) {
107 presenter.onContactInfoComplete(callId, entry, mIsPrimary);
113 CallCardPresenter presenter = mCallCardPresenter.get(); local
114 if (presenter != null) {
115 presenter.onImageLoadComplete(callId, entry);
121 CallCardPresenter presenter = mCallCardPresenter.get(); local
122 if (presenter != null)
    [all...]
  /frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/page/
PageAndListRowFragment.java 38 import android.support.v17.leanback.widget.Presenter;
179 VerticalGridPresenter presenter = new VerticalGridPresenter(ZOOM_FACTOR); local
180 presenter.setNumberOfColumns(COLUMNS);
181 setGridPresenter(presenter);
190 Presenter.ViewHolder itemViewHolder,
223 Presenter.ViewHolder itemViewHolder,
  /frameworks/base/core/java/com/android/internal/view/menu/
MenuBuilder.java 208 * Add a presenter to this menu. This will only hold a WeakReference;
209 * you do not need to explicitly remove a presenter, but you can using
212 * @param presenter The presenter to add
214 public void addMenuPresenter(MenuPresenter presenter) {
215 addMenuPresenter(presenter, mContext);
219 * Add a presenter to this menu that uses an alternate context for
221 * need to explicitly remove a presenter, but you can using
224 * @param presenter The presenter to ad
253 final MenuPresenter presenter = ref.get(); local
275 final MenuPresenter presenter = ref.get(); local
291 final MenuPresenter presenter = ref.get(); local
314 final MenuPresenter presenter = ref.get(); local
948 final MenuPresenter presenter = ref.get(); local
1080 final MenuPresenter presenter = ref.get(); local
1265 final MenuPresenter presenter = ref.get(); local
1287 final MenuPresenter presenter = ref.get(); local
    [all...]

Completed in 734 milliseconds

1 2