Home
last modified time | relevance | path

Searched refs:mAdapter (Results 1 – 25 of 78) sorted by relevance

1234

/frameworks/base/core/java/android/widget/
DHeaderViewListAdapter.java34 private final ListAdapter mAdapter; field in HeaderViewListAdapter
53 mAdapter = adapter; in HeaderViewListAdapter()
82 return mAdapter == null || mAdapter.isEmpty(); in isEmpty()
131 if (mAdapter != null) { in getCount()
132 return getFootersCount() + getHeadersCount() + mAdapter.getCount(); in getCount()
139 if (mAdapter != null) { in areAllItemsEnabled()
140 return mAreAllFixedViewsSelectable && mAdapter.areAllItemsEnabled(); in areAllItemsEnabled()
156 if (mAdapter != null) { in isEnabled()
157 adapterCount = mAdapter.getCount(); in isEnabled()
159 return mAdapter.isEnabled(adjPosition); in isEnabled()
[all …]
DActivityChooserView.java73 private final ActivityChooserViewAdapter mAdapter; field in ActivityChooserView
128 mAdapter.notifyDataSetChanged();
133 mAdapter.notifyDataSetInvalidated();
270 mAdapter = new ActivityChooserViewAdapter(); in ActivityChooserView()
271 mAdapter.registerDataSetObserver(new DataSetObserver() { in ActivityChooserView()
288 mAdapter.setDataModel(dataModel); in setActivityChooserModel()
353 if (mAdapter.getDataModel() == null) { in showPopupUnchecked()
362 final int activityCount = mAdapter.getActivityCount(); in showPopupUnchecked()
366 mAdapter.setShowFooterView(true); in showPopupUnchecked()
367 mAdapter.setMaxActivityCount(maxActivityCount - 1); in showPopupUnchecked()
[all …]
DSpinner.java430 } else if (mAdapter != null && mAdapter.getCount() > 0) { in getBaseline()
539 if (mAdapter != null) { in layout()
592 child = mAdapter.getView(position, null, this); in makeView()
681 if (mAdapter != null) { in onInitializeAccessibilityNodeInfo()
821 private SpinnerAdapter mAdapter; field in Spinner.DropDownAdapter
830 this.mAdapter = adapter; in DropDownAdapter()
837 return mAdapter == null ? 0 : mAdapter.getCount(); in getCount()
841 return mAdapter == null ? null : mAdapter.getItem(position); in getItem()
845 return mAdapter == null ? -1 : mAdapter.getItemId(position); in getItemId()
853 … return (mAdapter == null) ? null : mAdapter.getDropDownView(position, convertView, parent); in getDropDownView()
[all …]
DAbsSpinner.java41 SpinnerAdapter mAdapter; field in AbsSpinner
102 if (null != mAdapter) { in setAdapter()
103 mAdapter.unregisterDataSetObserver(mDataSetObserver); in setAdapter()
107 mAdapter = adapter; in setAdapter()
112 if (mAdapter != null) { in setAdapter()
114 mItemCount = mAdapter.getCount(); in setAdapter()
118 mAdapter.registerDataSetObserver(mDataSetObserver); in setAdapter()
188 if (selectedPosition >= 0 && mAdapter != null && selectedPosition < mAdapter.getCount()) { in onMeasure()
193 view = mAdapter.getView(selectedPosition, null, this); in onMeasure()
326 return mAdapter; in getAdapter()
DAdapterViewAnimator.java115 Adapter mAdapter; field in AdapterViewAnimator
297 if (mAdapter != null) { in setDisplayedChild()
361 if (relativeIndex >= 0 && relativeIndex <= getNumActiveViews() - 1 && mAdapter != null) { in getViewAtRelativeIndex()
371 if (mAdapter != null) { in getNumActiveViews()
379 if (mAdapter != null) { in getWindowSize()
410 if (mAdapter == null) return; in refreshChildren()
416 final View updatedChild = mAdapter.getView(modulo(i, adapterCount), null, this); in refreshChildren()
456 if (mAdapter == null) return; in showOnly()
543 View newView = mAdapter.getView(adapterPosition, null, this); in showOnly()
544 long itemId = mAdapter.getItemId(adapterPosition); in showOnly()
[all …]
/frameworks/ex/common/tests/src/com/android/common/widget/
DGroupingListAdapterTests.java51 private GroupingListAdapter mAdapter = new GroupingListAdapter(null) { field in GroupingListAdapterTests
118 mAdapter.changeCursor(mCursor); in testGroupingWithoutGroups()
120 assertEquals(3, mAdapter.getCount()); in testGroupingWithoutGroups()
128 mAdapter.changeCursor(mCursor); in testGroupingWithCollapsedGroupAtTheBeginning()
130 assertEquals(2, mAdapter.getCount()); in testGroupingWithCollapsedGroupAtTheBeginning()
137 mAdapter.changeCursor(mCursor); in testGroupingWithExpandedGroupAtTheBeginning()
138 mAdapter.toggleGroup(0); in testGroupingWithExpandedGroupAtTheBeginning()
140 assertEquals(4, mAdapter.getCount()); in testGroupingWithExpandedGroupAtTheBeginning()
149 mAdapter.changeCursor(mCursor); in testGroupingWithExpandCollapseCycleAtTheBeginning()
150 mAdapter.toggleGroup(0); in testGroupingWithExpandCollapseCycleAtTheBeginning()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DActivityChooserView.java72 private final ActivityChooserViewAdapter mAdapter; field in ActivityChooserView
127 mAdapter.notifyDataSetChanged();
132 mAdapter.notifyDataSetInvalidated();
242 mAdapter = new ActivityChooserViewAdapter(); in ActivityChooserView()
243 mAdapter.registerDataSetObserver(new DataSetObserver() { in ActivityChooserView()
260 mAdapter.setDataModel(dataModel); in setActivityChooserModel()
325 if (mAdapter.getDataModel() == null) { in showPopupUnchecked()
334 final int activityCount = mAdapter.getActivityCount(); in showPopupUnchecked()
338 mAdapter.setShowFooterView(true); in showPopupUnchecked()
339 mAdapter.setMaxActivityCount(maxActivityCount - 1); in showPopupUnchecked()
[all …]
DSpinnerICS.java238 } else if (mAdapter != null && mAdapter.getCount() > 0) { in getBaseline()
383 child = mAdapter.getView(position, null, this); in makeAndAddView()
527 private SpinnerAdapter mAdapter; field in SpinnerICS.DropDownAdapter
536 this.mAdapter = adapter; in DropDownAdapter()
543 return mAdapter == null ? 0 : mAdapter.getCount(); in getCount()
547 return mAdapter == null ? null : mAdapter.getItem(position); in getItem()
551 return mAdapter == null ? -1 : mAdapter.getItemId(position); in getItemId()
559 return mAdapter == null ? null : in getDropDownView()
560 mAdapter.getDropDownView(position, convertView, parent); in getDropDownView()
564 return mAdapter != null && mAdapter.hasStableIds(); in hasStableIds()
[all …]
DAbsSpinnerICS.java35 SpinnerAdapter mAdapter; field in AbsSpinnerICS
83 if (null != mAdapter) { in setAdapter()
84 mAdapter.unregisterDataSetObserver(mDataSetObserver); in setAdapter()
88 mAdapter = adapter; in setAdapter()
93 if (mAdapter != null) { in setAdapter()
95 mItemCount = mAdapter.getCount(); in setAdapter()
99 mAdapter.registerDataSetObserver(mDataSetObserver); in setAdapter()
174 if (selectedPosition >= 0 && mAdapter != null && selectedPosition < mAdapter.getCount()) { in onMeasure()
179 view = mAdapter.getView(selectedPosition, null, this); in onMeasure()
310 return mAdapter; in getAdapter()
/frameworks/opt/mailcommon/java/com/android/mailcommon/
DMultiAdapterSpinner.java58 protected MergedAdapter<FancySpinnerAdapter> mAdapter; field in MultiAdapterSpinner
100 mAdapter = new MergedSpinnerAdapter(); in MultiAdapterSpinner()
105 mPopup.setAdapter(mAdapter); in MultiAdapterSpinner()
109 mAdapter.setAdapters(adapters); in setAdapters()
116 for (int i = 0, count = mAdapter.getSubAdapterCount(); i < count; i++) { in setSelectedItem()
117 ListSpinnerAdapter a = mAdapter.getSubAdapter(i); in setSelectedItem()
144 for (int i = 0, count = mAdapter.getSubAdapterCount(); i < count; i++) { in onClick()
145 mAdapter.getSubAdapter(i).onShowPopup(); in onClick()
167 mAdapter.getAdapterOffsetForItem(position); in onItemClick()
169 if (result.mAdapter.canSelect(result.mLocalPosition)) { in onItemClick()
[all …]
DMergedAdapter.java49 public final T mAdapter; field in MergedAdapter.LocalAdapterPosition
53 mAdapter = adapter; in LocalAdapterPosition()
130 return result.mAdapter.getItem(result.mLocalPosition); in getItem()
152 if (adapter == result.mAdapter) { in getItemViewType()
157 int type = result.mAdapter.getItemViewType(result.mLocalPosition); in getItemViewType()
169 return result.mAdapter.getView(result.mLocalPosition, convertView, parent); in getView()
175 return result.mAdapter.getDropDownView(result.mLocalPosition, convertView, parent); in getDropDownView()
190 return result.mAdapter.isEnabled(result.mLocalPosition); in isEnabled()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DListMenuPresenter.java54 MenuAdapter mAdapter; field in ListMenuPresenter
94 if (mAdapter != null) { in initForMenu()
95 mAdapter.notifyDataSetChanged(); in initForMenu()
101 if (mAdapter == null) { in getMenuView()
102 mAdapter = new MenuAdapter(); in getMenuView()
105 if (!mAdapter.isEmpty()) { in getMenuView()
109 mMenuView.setAdapter(mAdapter); in getMenuView()
127 if (mAdapter == null) { in getAdapter()
128 mAdapter = new MenuAdapter(); in getAdapter()
130 return mAdapter; in getAdapter()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListWithEmptyView.java55 private CarefulAdapter<String> mAdapter; field in ListWithEmptyView
64 mAdapter = new CarefulAdapter<String>(this, in onCreate()
67 setListAdapter(mAdapter); in onCreate()
88 mAdapter.add(str); in onOptionsItemSelected()
91 if (mAdapter.getCount() > 0) { in onOptionsItemSelected()
92 mAdapter.remove(mAdapter.getItem(0)); in onOptionsItemSelected()
DListViewHeight.java37 ArrayAdapter<String> mAdapter; field in ListViewHeight
54 mAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, in onCreate()
67 mInnerList.setAdapter(mAdapter); in onCreate()
83 mInnerList.setAdapter(mAdapter); in onCreate()
DListThrasher.java39 ThrashListAdapter mAdapter; field in ListThrasher
45 mAdapter.bumpVersion();
116 mAdapter = new ThrashListAdapter(this); in onCreate()
117 setListAdapter(mAdapter); in onCreate()
/frameworks/base/core/java/com/android/internal/view/menu/
DListMenuPresenter.java51 MenuAdapter mAdapter; field in ListMenuPresenter
91 if (mAdapter != null) { in initForMenu()
92 mAdapter.notifyDataSetChanged(); in initForMenu()
101 if (mAdapter == null) { in getMenuView()
102 mAdapter = new MenuAdapter(); in getMenuView()
104 mMenuView.setAdapter(mAdapter); in getMenuView()
118 if (mAdapter == null) { in getAdapter()
119 mAdapter = new MenuAdapter(); in getAdapter()
121 return mAdapter; in getAdapter()
126 if (mAdapter != null) mAdapter.notifyDataSetChanged(); in updateMenuView()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothManager.java51 private final BluetoothAdapter mAdapter; field in BluetoothManager
63 mAdapter = BluetoothAdapter.getDefaultAdapter(); in BluetoothManager()
72 return mAdapter; in getAdapter()
129 IBluetoothManager managerService = mAdapter.getBluetoothManager(); in getConnectedDevices()
174 IBluetoothManager managerService = mAdapter.getBluetoothManager(); in getDevicesMatchingConnectionStates()
205 IBluetoothManager managerService = mAdapter.getBluetoothManager(); in openGattServer()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DListWithFooterViewAndNewLabelsTest.java32 private ListAdapter mAdapter; field in ListWithFooterViewAndNewLabelsTest
49 mAdapter = a.getListAdapter(); in setUp()
56 assertNotNull(mAdapter); in FAILING_testPreconditions()
61 1, mAdapter.getCount()); in FAILING_testPreconditions()
/frameworks/base/core/java/android/nfc/
DNfcManager.java41 private final NfcAdapter mAdapter; field in NfcManager
58 mAdapter = adapter; in NfcManager()
67 return mAdapter; in getDefaultAdapter()
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java135 private PagerAdapter mAdapter; field in ViewPager
408 if (mAdapter != null) { in setAdapter()
409 mAdapter.unregisterDataSetObserver(mObserver); in setAdapter()
410 mAdapter.startUpdate(this); in setAdapter()
413 mAdapter.destroyItem(this, ii.position, ii.object); in setAdapter()
415 mAdapter.finishUpdate(this); in setAdapter()
422 final PagerAdapter oldAdapter = mAdapter; in setAdapter()
423 mAdapter = adapter; in setAdapter()
426 if (mAdapter != null) { in setAdapter()
430 mAdapter.registerDataSetObserver(mObserver); in setAdapter()
[all …]
/frameworks/base/core/java/android/app/
DListFragment.java164 ListAdapter mAdapter; field in ListFragment
237 boolean hadAdapter = mAdapter != null; in setListAdapter()
238 mAdapter = adapter; in setListAdapter()
377 return mAdapter; in getListAdapter()
421 if (mAdapter != null) { in ensureList()
422 ListAdapter adapter = mAdapter; in ensureList()
423 mAdapter = null; in ensureList()
DListActivity.java180 protected ListAdapter mAdapter; field in ListActivity
252 setListAdapter(mAdapter); in onContentChanged()
264 mAdapter = adapter; in setListAdapter()
305 return mAdapter; in getListAdapter()
DExpandableListActivity.java159 ExpandableListAdapter mAdapter; field in ExpandableListActivity
234 setListAdapter(mAdapter); in onContentChanged()
245 mAdapter = adapter; in setListAdapter()
266 return mAdapter; in getExpandableListAdapter()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DDayPickerView.java74 protected SimpleMonthAdapter mAdapter; field in DayPickerView
110 setAdapter(mAdapter); in setController()
125 setAdapter(mAdapter); in onChange()
133 if (mAdapter == null) { in setUpAdapter()
134 mAdapter = new SimpleMonthAdapter(getContext(), mController); in setUpAdapter()
136 mAdapter.setSelectedDay(mSelectedDay); in setUpAdapter()
137 mAdapter.notifyDataSetChanged(); in setUpAdapter()
140 mAdapter.notifyDataSetChanged(); in setUpAdapter()
213 mAdapter.setSelectedDay(mSelectedDay); in goTo()
/frameworks/base/nfc-extras/java/com/android/nfc_extras/
DNfcAdapterExtras.java72 private final NfcAdapter mAdapter; field in NfcAdapterExtras
114 mAdapter = adapter; in NfcAdapterExtras()
164 mAdapter.attemptDeadServiceRecovery(e); in attemptDeadServiceRecovery()
165 initService(mAdapter); in attemptDeadServiceRecovery()

1234