Searched refs:adapter (Results 126 - 146 of 146) sorted by relevance

123456

/frameworks/base/services/core/java/com/android/server/am/
H A DBatteryStatsService.java528 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
529 if (adapter != null) {
530 adapter.getProfileProxy(mContext, mBluetoothProfileServiceListener,
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DAdapterHelperTest.java52 TestAdapter mPreProcessClone; // we clone adapter pre-process to run operations to see result
842 assertEquals("actual adapter position should match", ind,
999 TestAdapter adapter = new TestAdapter(0, mAdapterHelper);
1001 adapter.mItems.add(item);
1003 return adapter;
H A DStaggeredGridLayoutManagerTest.java500 // set a new adapter with huge items to test full bounds check
693 final RecyclerView.Adapter adapter = mAdapter;
715 // now layout another RV with same adapter
718 mRecyclerView.setAdapter(adapter);// use same adapter so that items can be matched
898 // use the same adapter for Rect matching
1019 // use the same adapter for Rect matching
1069 // use the same adapter for Rect matching
1230 assertEquals("recycler view mPosition should match adapter mPosition", position,
/frameworks/base/core/java/android/widget/
H A DAbsListView.java263 * and the value holds the last known position in the adapter for that id.
278 * The adapter containing the data to be displayed by this view
283 * The remote adapter containing the data to be displayed by this view to be set
288 * If mAdapter != null, whenever this is true the adapter has stable IDs.
576 * The select child's view (from the adapter's getView) is enabled.
664 * the top of the first position in the adapter, based on the last time
671 * the bottom of the last position in the adapter, based on the last time
892 public void setAdapter(ListAdapter adapter) { argument
893 if (adapter != null) {
981 * choice mode has not been set to {@link #CHOICE_MODE_NONE} and the adapter
[all...]
H A DGridView.java169 * Sets up this AbsListView to use a remote views adapter which connects to a RemoteViewsService
171 * @param intent the intent used to identify the RemoteViewsService for the adapter to connect to.
181 * @param adapter the adapter providing the grid's data
184 public void setAdapter(ListAdapter adapter) { argument
191 mAdapter = adapter;
197 super.setAdapter(adapter);
230 final ListAdapter adapter = mAdapter;
231 if (adapter == null || isInTouchMode()) {
842 * Smoothly scroll to the specified adapter positio
[all...]
H A DDayPickerView.java540 public void onDaySelected(SimpleMonthAdapter adapter, Calendar day) {
H A DSearchView.java692 * and not when using a custom adapter.
717 * You can set a custom adapter if you wish. Otherwise the default adapter is used to
722 public void setSuggestionsAdapter(CursorAdapter adapter) { argument
723 mSuggestionsAdapter = adapter;
729 * Returns the adapter used for suggestions, if any.
730 * @return the suggestions adapter
1163 // attach the suggestions adapter, if suggestions are available
/frameworks/base/core/java/com/android/internal/app/
H A DWindowDecorActionBar.java1245 public void setListNavigationCallbacks(SpinnerAdapter adapter, OnNavigationListener callback) { argument
1246 mDecorToolbar.setDropdownParams(adapter, new NavItemSelectedListener(callback));
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageInstallerSession.java442 final PackageInstallObserverAdapter adapter = new PackageInstallObserverAdapter(mContext,
444 mHandler.obtainMessage(MSG_COMMIT, adapter.getBinder()).sendToTarget();
/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/
H A DWindowDecorActionBar.java1246 public void setListNavigationCallbacks(SpinnerAdapter adapter, OnNavigationListener callback) { argument
1247 mDecorToolbar.setDropdownParams(adapter, new NavItemSelectedListener(callback));
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DRecyclerView.java74 * to a <em>position</em> within the adapter.</li>
75 * <li><em>Recycle (view):</em> A view previously used to display data for a specific adapter
82 * by the adapter if the view was considered <em>dirty</em>.</li>
83 * <li><em>Dirty (view):</em> A child view that must be rebound by the adapter before
91 * calculation. This saves LayoutManager from tracking adapter changes to calculate animations.
99 * <li>adapter position: Position of an item in the adapter. This is the position from
103 * These two positions are the same except the time between dispatching <code>adapter.notify*
117 * work with up-to-date adapter positions even if they may not have been reflected to layout yet.
118 * For example, if you want to access the item in the adapter o
593 swapAdapter(Adapter adapter, boolean removeAndRecycleExistingViews) argument
607 setAdapter(Adapter adapter) argument
621 setAdapterInternal(Adapter adapter, boolean compatibleWithPrevious, boolean removeAndRecycleViews) argument
3376 attach(Adapter adapter) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarView.java752 public void setDropdownParams(SpinnerAdapter adapter, AdapterView.OnItemSelectedListener l) { argument
753 mSpinnerAdapter = adapter;
756 mSpinner.setAdapter(adapter);
/frameworks/base/services/print/java/com/android/server/print/
H A DUserState.java169 public Bundle print(String printJobName, IPrintDocumentAdapter adapter, argument
182 if (!mPrintJobForAppCache.onPrintJobCreated(adapter.asBinder(), appId,
201 intent.putExtra(PrintManager.EXTRA_PRINT_DOCUMENT_ADAPTER, adapter.asBinder());
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java108 * Used to track what the expected number of items in the adapter should be.
410 * @param adapter Adapter to use
412 public void setAdapter(PagerAdapter adapter) { argument
428 mAdapter = adapter;
453 if (mAdapterChangeListener != null && oldAdapter != adapter) {
454 mAdapterChangeListener.onAdapterChanged(oldAdapter, adapter);
470 * Retrieve the current adapter supplying pages.
488 * layout with its current adapter there will be a smooth animated transition between
678 * limit will be recreated from the adapter when needed.
967 throw new IllegalStateException("The application's PagerAdapter changed the adapter'
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSearchView.java696 * and not when using a custom adapter.
721 * You can set a custom adapter if you wish. Otherwise the default adapter is used to
726 public void setSuggestionsAdapter(CursorAdapter adapter) { argument
727 mSuggestionsAdapter = adapter;
733 * Returns the adapter used for suggestions, if any.
734 * @return the suggestions adapter
1077 // attach the suggestions adapter, if suggestions are available
/frameworks/base/services/core/java/com/android/server/content/
H A DSyncManager.java461 // message handler. Normally we will hold a sync adapter wake lock while it is being
463 // one sync adapter before starting the sync for the other sync adapter and we
515 // Else check if the sync adapter has opted-in or not
706 // For each authority sync each account that matches a sync adapter.
1168 * sync adapter. Since this grabs the wakelock you need to be sure to call
1173 * @param syncAdapterUid the UID of the application that contains the sync adapter
1255 * unbinding from the sync adapter (if actually bound).
1368 // join the installed sync adapter with the accounts list and emit for everything
1916 public final IBinder adapter; field in class:SyncManager.ServiceConnectionData
1918 ServiceConnectionData(ActiveSyncContext activeSyncContext, IBinder adapter) argument
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DPrintActivity.java232 final IBinder adapter = extras.getBinder(PrintManager.EXTRA_PRINT_DOCUMENT_ADAPTER);
233 if (adapter == null) {
246 onConnectedToPrintSpooler(adapter);
1228 // If the media sizes changed, we update the adapter and the spinner.
1246 // Rebuild the adapter data.
1288 // If the color modes changed, we update the adapter and the spinner.
1311 // Rebuild the adapter data.
1933 // Check if historical printers are loaded as this adapter is open
1935 // when the adapter is created because the historical printers may
1936 // be loaded before or after the adapter i
[all...]
/frameworks/base/media/java/android/media/
H A DAudioService.java693 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
694 if (adapter != null) {
695 adapter.getProfileProxy(mContext, mBluetoothProfileServiceListener,
2812 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
2813 if (adapter != null) {
2814 result = adapter.getProfileProxy(mContext, mBluetoothProfileServiceListener,
/frameworks/opt/chips/tests/src/com/android/ex/chips/
H A DChipsTest.java1037 final BaseRecipientAdapter adapter = new TestBaseRecipientAdapter(getContext(), 10,
1039 view.setAdapter(adapter);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
H A DRecentsPanelView.java98 public void setAdapter(TaskDescriptionAdapter adapter); argument
/frameworks/base/services/core/java/com/android/server/
H A DInputMethodManagerService.java2881 final ImeSubtypeListAdapter adapter = new ImeSubtypeListAdapter(dialogContext,
2893 adapter.mCheckedItem = which;
2894 adapter.notifyDataSetChanged();
2905 mDialogBuilder.setSingleChoiceItems(adapter, checkedItem, choiceListener);

Completed in 669 milliseconds

123456