Searched defs:adapter (Results 26 - 50 of 54) sorted by relevance

123

/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DActionBarImplICS.java112 public void setListNavigationCallbacks(SpinnerAdapter adapter, OnNavigationListener callback) { argument
113 mActionBar.setListNavigationCallbacks(adapter,
H A DActionBar.java243 * Set the adapter and navigation callback for list navigation mode.
245 * The supplied adapter will provide views for the expanded list as well as the currently
251 * @param adapter An adapter that will provide views both to display the current navigation
256 public abstract void setListNavigationCallbacks(SpinnerAdapter adapter, argument
H A DActionBarImplBase.java218 public void setListNavigationCallbacks(SpinnerAdapter adapter, OnNavigationListener callback) { argument
219 mActionView.setDropdownAdapter(adapter);
256 SpinnerAdapter adapter = mActionView.getDropdownAdapter();
257 return adapter != null ? adapter.getCount() : 0;
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DSpinnerICS.java222 public void setAdapter(SpinnerAdapter adapter) { argument
223 super.setAdapter(adapter);
226 mPopup.setAdapter(new DropDownAdapter(adapter));
228 mTempAdapter = new DropDownAdapter(adapter);
361 * by getting a new one from the adapter. If we are animating, make sure
382 // Nothing found in the recycler -- ask the adapter for a view
478 int measureContentWidth(SpinnerAdapter adapter, Drawable background) { argument
479 if (adapter == null) {
494 final int end = Math.min(adapter.getCount(), start + MAX_ITEMS_MEASURED);
498 final int positionType = adapter
535 DropDownAdapter(SpinnerAdapter adapter) argument
623 setAdapter(ListAdapter adapter) argument
663 setAdapter(ListAdapter adapter) argument
720 setAdapter(ListAdapter adapter) argument
[all...]
H A DAdapterViewICS.java54 * the adapter does not want the item's view recycled.
149 * The position within the adapter's data set of the item to select
161 * The position within the adapter's data set of the currently selected item.
177 * The number of items in the current adapter.
183 * The number of items in the adapter before a data changed event occurred.
189 * number of items in the current adapter.
254 * will be a view provided by the adapter)
255 * @param position The position of the view in the adapter.
297 * @param position The position of the view in the adapter.
375 * @param position The position of the view in the adapter
450 setAdapter(T adapter) argument
[all...]
H A DListPopupWindow.java199 * Sets the adapter that provides the data and the views to represent the data in this popup
202 * @param adapter The adapter to use to create this window's content.
204 public void setAdapter(ListAdapter adapter) { argument
210 mAdapter = adapter;
212 adapter.registerDataSetObserver(mObserver);
695 * Perform an item click operation on the specified list adapter position.
706 final ListAdapter adapter = list.getAdapter();
707 mItemClickListener.onItemClick(list, child, position, adapter.getItemId(position));
804 final ListAdapter adapter
[all...]
H A DActionBarView.java709 public void setDropdownAdapter(SpinnerAdapter adapter) { argument
710 mSpinnerAdapter = adapter;
712 mSpinner.setAdapter(adapter);
/frameworks/base/core/java/android/app/
H A DActionBar.java254 * Set the adapter and navigation callback for list navigation mode.
256 * The supplied adapter will provide views for the expanded list as well as
262 * @param adapter An adapter that will provide views both to display
268 public abstract void setListNavigationCallbacks(SpinnerAdapter adapter, argument
/frameworks/base/core/java/android/widget/
H A DAdapterView.java52 * the adapter does not want the item's view recycled.
147 * The position within the adapter's data set of the item to select
159 * The position within the adapter's data set of the currently selected item.
175 * The number of items in the current adapter.
181 * The number of items in the adapter before a data changed event occurred.
187 * number of items in the current adapter.
257 * will be a view provided by the adapter)
258 * @param position The position of the view in the adapter.
288 * @param position The position of the view in the adapter.
366 * @param position The position of the view in the adapter
441 setAdapter(T adapter) argument
[all...]
H A DAdapterViewAnimator.java92 * The index, relative to the adapter, of the beginning of the window of views
97 * The index, relative to the adapter, of the end of the window of views
108 * Listens for data changes from the adapter
123 * The remote adapter containing the data to be displayed by this view to be set
415 // get the fresh child from the adapter
541 // Get the new view from the adapter, add it and apply any transform / animation
547 // with the adapter, that is, that we don't modify this view directly
550 // If the view from the adapter is null, we still keep an empty frame in place
740 // if the data changes, mWhichChild might be out of the bounds of the adapter
951 public void setAdapter(Adapter adapter) { argument
[all...]
H A DAutoCompleteTextView.java52 * <p>The list of suggestions is obtained from a data adapter and appears
65 * ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,
69 * textView.setAdapter(adapter);
121 // When set, an update in the underlying adapter will update the result list popup.
444 * to show up in the adapter sometime in the future.
599 * <p>Returns a filterable list adapter used for auto completion.</p>
601 * @return a data adapter used for auto completion
609 * must be a filterable list adapter.</p>
611 * <p>The caller is still responsible for managing any resources used by the adapter.
612 * Notably, when the AutoCompleteTextView is closed or released, the adapter i
626 setAdapter(T adapter) argument
[all...]
H A DExpandableListView.java551 public void setAdapter(ListAdapter adapter) { argument
584 * Sets the adapter that provides data to this view.
585 * @param adapter The adapter that provides data to this view.
587 public void setAdapter(ExpandableListAdapter adapter) { argument
589 mAdapter = adapter;
591 if (adapter != null) {
593 mConnector = new ExpandableListConnector(adapter);
603 * Gets the adapter that provides data to this view.
604 * @return The adapter tha
[all...]
H A DGridView.java154 * Sets up this AbsListView to use a remote views adapter which connects to a RemoteViewsService
156 * @param intent the intent used to identify the RemoteViewsService for the adapter to connect to.
166 * @param adapter the adapter providing the grid's data
169 public void setAdapter(ListAdapter adapter) { argument
176 mAdapter = adapter;
182 super.setAdapter(adapter);
215 final ListAdapter adapter = mAdapter;
216 if (adapter == null || isInTouchMode()) {
826 * Smoothly scroll to the specified adapter positio
[all...]
H A DSpinner.java412 public void setAdapter(SpinnerAdapter adapter) { argument
413 super.setAdapter(adapter);
418 mPopup.setAdapter(new DropDownAdapter(adapter));
420 mTempAdapter = new DropDownAdapter(adapter);
570 * by getting a new one from the adapter. If we are animating, make sure
591 // Nothing found in the recycler -- ask the adapter for a view
709 int measureContentWidth(SpinnerAdapter adapter, Drawable background) { argument
710 if (adapter == null) {
725 final int end = Math.min(adapter.getCount(), start + MAX_ITEMS_MEASURED);
729 final int positionType = adapter
829 DropDownAdapter(SpinnerAdapter adapter) argument
916 setAdapter(ListAdapter adapter) argument
963 setAdapter(ListAdapter adapter) argument
1052 setAdapter(ListAdapter adapter) argument
[all...]
H A DListPopupWindow.java219 * Sets the adapter that provides the data and the views to represent the data
222 * @param adapter The adapter to use to create this window's content.
224 public void setAdapter(ListAdapter adapter) { argument
230 mAdapter = adapter;
232 adapter.registerDataSetObserver(mObserver);
740 * Perform an item click operation on the specified list adapter position.
751 final ListAdapter adapter = list.getAdapter();
752 mItemClickListener.onItemClick(list, child, position, adapter.getItemId(position));
852 final ListAdapter adapter
[all...]
H A DListView.java250 * setting the adapter with {@link #setAdapter(ListAdapter)}. Starting with
252 * called at any time. If the ListView's adapter does not extend
267 // Wrap the adapter if it wasn't already wrapped.
287 * setting the adapter with {@link #setAdapter(ListAdapter)}. Starting with
289 * called at any time. If the ListView's adapter does not extend
343 * setting the adapter with {@link #setAdapter(ListAdapter)}. Starting with
345 * called at any time. If the ListView's adapter does not extend
360 // Wrap the adapter if it wasn't already wrapped.
380 * setting the adapter with {@link #setAdapter(ListAdapter)}. Starting with
382 * called at any time. If the ListView's adapter doe
457 setAdapter(ListAdapter adapter) argument
[all...]
H A DRemoteViewsAdapter.java51 * An adapter to a RemoteViewsService which fetches and caches RemoteViews
127 * @return whether the adapter was set or not.
145 * FrameLayouts in the adapter).
154 public RemoteViewsAdapterServiceConnection(RemoteViewsAdapter adapter) { argument
155 mAdapter = new WeakReference<RemoteViewsAdapter>(adapter);
161 RemoteViewsAdapter adapter;
163 if ((adapter = mAdapter.get()) != null) {
164 checkInteractAcrossUsersPermission(context, adapter.mUserId);
166 new UserHandle(adapter.mUserId));
168 Slog.w(TAG, "bind: adapter wa
[all...]
H A DSearchView.java641 * and not when using a custom adapter.
666 * You can set a custom adapter if you wish. Otherwise the default adapter is used to
671 public void setSuggestionsAdapter(CursorAdapter adapter) { argument
672 mSuggestionsAdapter = adapter;
678 * Returns the adapter used for suggestions, if any.
679 * @return the suggestions adapter
1106 // attach the suggestions adapter, if suggestions are available
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
H A DRecentsPanelView.java98 public void setAdapter(TaskDescriptionAdapter adapter); argument
/frameworks/base/services/java/com/android/server/display/
H A DDisplayManagerService.java63 * one display adapter for built-in local displays, one for simulated non-functional
173 // The Wifi display adapter, or null if not registered.
176 // The virtual display adapter, or null if not registered.
665 + "because the virtual display adapter is not available.");
729 // Register default display adapter.
783 private void registerDisplayAdapterLocked(DisplayAdapter adapter) { argument
784 mDisplayAdapters.add(adapter);
785 adapter.registerLocked();
1121 for (DisplayAdapter adapter : mDisplayAdapters) {
1122 pw.println(" " + adapter
[all...]
/frameworks/base/services/java/com/android/server/print/
H A DUserState.java167 public Bundle print(String printJobName, IPrintDocumentAdapter adapter, argument
180 if (!mPrintJobForAppCache.onPrintJobCreated(adapter.asBinder(), appId,
199 intent.putExtra(PrintManager.EXTRA_PRINT_DOCUMENT_ADAPTER, adapter.asBinder());
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java64 * Like ListView, SGV populates from an adapter and recycles views that fall out
67 * - mFirstPosition is the adapter position of the View returned by getChildAt(0).
68 * - Any child index can be translated to an adapter position by adding mFirstPosition.
69 * - Any adapter position can be translated to a child index by subtracting mFirstPosition.
71 * currently attached to the grid as children. All other adapter positions do not have
269 * Return the first adapter position with a view currently attached as
272 * @return the adapter position represented by the view at getChildAt(0).
743 * @param queryAdapter true to requery the adapter for view data
1221 * Obtain a populated view from the adapter. If optScrap is non-null and is not
1244 // The adapter did
1269 setAdapter(ListAdapter adapter) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DActionBarImpl.java1140 public void setListNavigationCallbacks(SpinnerAdapter adapter, OnNavigationListener callback) { argument
1141 mActionView.setDropdownAdapter(adapter);
1163 SpinnerAdapter adapter = mActionView.getDropdownAdapter();
1164 return adapter != null ? adapter.getCount() : 0;
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarView.java775 public void setDropdownAdapter(SpinnerAdapter adapter) { argument
776 mSpinnerAdapter = adapter;
778 mSpinner.setAdapter(adapter);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSearchView.java672 * and not when using a custom adapter.
697 * You can set a custom adapter if you wish. Otherwise the default adapter is used to
702 public void setSuggestionsAdapter(CursorAdapter adapter) { argument
703 mSuggestionsAdapter = adapter;
709 * Returns the adapter used for suggestions, if any.
710 * @return the suggestions adapter
1071 // attach the suggestions adapter, if suggestions are available

Completed in 1742 milliseconds

123