Home
last modified time | relevance | path

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

12345

/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.java71 private final ActivityChooserViewAdapter mAdapter; field in ActivityChooserView
126 mAdapter.notifyDataSetChanged();
131 mAdapter.notifyDataSetInvalidated();
287 mAdapter = new ActivityChooserViewAdapter(); in ActivityChooserView()
288 mAdapter.registerDataSetObserver(new DataSetObserver() { in ActivityChooserView()
305 mAdapter.setDataModel(dataModel); in setActivityChooserModel()
370 if (mAdapter.getDataModel() == null) { in showPopupUnchecked()
379 final int activityCount = mAdapter.getActivityCount(); in showPopupUnchecked()
383 mAdapter.setShowFooterView(true); in showPopupUnchecked()
384 mAdapter.setMaxActivityCount(maxActivityCount - 1); in showPopupUnchecked()
[all …]
DYearPickerView.java37 private YearAdapter mAdapter; field in YearPickerView
81 mAdapter = new YearAdapter(getContext(), R.layout.year_label_text_view); in init()
83 setAdapter(mAdapter); in init()
100 mAdapter.clear(); in updateAdapterData()
103 mAdapter.add(year); in updateAdapterData()
112 mAdapter.notifyDataSetChanged(); in onItemClick()
114 mController.onYearSelected(mAdapter.getItem(position)); in onItemClick()
118 mAdapter.setItemTextAppearance(resId); in setItemTextAppearance()
174 mAdapter.notifyDataSetChanged(); in onDateChanged()
DSpinner.java455 } else if (mAdapter != null && mAdapter.getCount() > 0) { in getBaseline()
564 if (mAdapter != null) { in layout()
617 child = mAdapter.getView(position, null, this); in makeView()
706 if (mAdapter != null) { in onInitializeAccessibilityNodeInfo()
846 private SpinnerAdapter mAdapter; field in Spinner.DropDownAdapter
855 this.mAdapter = adapter; in DropDownAdapter()
862 return mAdapter == null ? 0 : mAdapter.getCount(); in getCount()
866 return mAdapter == null ? null : mAdapter.getItem(position); in getItem()
870 return mAdapter == null ? -1 : mAdapter.getItemId(position); in getItemId()
878 … return (mAdapter == null) ? null : mAdapter.getDropDownView(position, convertView, parent); in getDropDownView()
[all …]
DAbsSpinner.java41 SpinnerAdapter mAdapter; field in AbsSpinner
106 if (null != mAdapter) { in setAdapter()
107 mAdapter.unregisterDataSetObserver(mDataSetObserver); in setAdapter()
111 mAdapter = adapter; in setAdapter()
116 if (mAdapter != null) { in setAdapter()
118 mItemCount = mAdapter.getCount(); in setAdapter()
122 mAdapter.registerDataSetObserver(mDataSetObserver); in setAdapter()
192 if (selectedPosition >= 0 && mAdapter != null && selectedPosition < mAdapter.getCount()) { in onMeasure()
197 view = mAdapter.getView(selectedPosition, null, this); in onMeasure()
330 return mAdapter; in getAdapter()
DAdapterViewAnimator.java115 Adapter mAdapter; field in AdapterViewAnimator
302 if (mAdapter != null) { in setDisplayedChild()
366 if (relativeIndex >= 0 && relativeIndex <= getNumActiveViews() - 1 && mAdapter != null) { in getViewAtRelativeIndex()
376 if (mAdapter != null) { in getNumActiveViews()
384 if (mAdapter != null) { in getWindowSize()
415 if (mAdapter == null) return; in refreshChildren()
421 final View updatedChild = mAdapter.getView(modulo(i, adapterCount), null, this); in refreshChildren()
461 if (mAdapter == null) return; in showOnly()
548 View newView = mAdapter.getView(adapterPosition, null, this); in showOnly()
549 long itemId = mAdapter.getItemId(adapterPosition); in showOnly()
[all …]
DDayPickerView.java60 private SimpleMonthAdapter mAdapter; field in DayPickerView
89 setAdapter(mAdapter); in setController()
102 setAdapter(mAdapter); in onChange()
110 if (mAdapter == null) { in setUpAdapter()
111 mAdapter = new SimpleMonthAdapter(getContext(), mController); in setUpAdapter()
113 mAdapter.setSelectedDay(mSelectedDay); in setUpAdapter()
114 mAdapter.notifyDataSetChanged(); in setUpAdapter()
117 mAdapter.notifyDataSetChanged(); in setUpAdapter()
206 mAdapter.setSelectedDay(mSelectedDay); in goTo()
273 mAdapter.setCalendarTextColor(colors); in setCalendarTextColor()
/frameworks/base/telecomm/java/android/telecom/
DInCallAdapter.java37 private final IInCallAdapter mAdapter; field in InCallAdapter
43 mAdapter = adapter; in InCallAdapter()
54 mAdapter.answerCall(callId, videoState); in answerCall()
68 mAdapter.rejectCall(callId, rejectWithMessage, textMessage); in rejectCall()
80 mAdapter.disconnectCall(callId); in disconnectCall()
92 mAdapter.holdCall(callId); in holdCall()
104 mAdapter.unholdCall(callId); in unholdCall()
116 mAdapter.mute(shouldMute); in mute()
128 mAdapter.setAudioRoute(route); in setAudioRoute()
144 mAdapter.playDtmfTone(callId, digit); in playDtmfTone()
[all …]
DConnectionService.java87 private final ConnectionServiceAdapter mAdapter = new ConnectionServiceAdapter(); field in ConnectionService
212 mAdapter.addAdapter((IConnectionServiceAdapter) msg.obj);
216 mAdapter.removeAdapter((IConnectionServiceAdapter) msg.obj);
342 mAdapter.setActive(id);
345 mAdapter.setOnHold(id);
356 mAdapter.setDisconnected(id, disconnectCause);
370 mAdapter.setConferenceableConnections(
385 mAdapter.setCallCapabilities(id, capabilities);
396 mAdapter.setActive(id);
399 mAdapter.setDialing(id);
[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/v17/leanback/src/android/support/v17/leanback/widget/
DListRow.java21 private final ObjectAdapter mAdapter; field in ListRow
27 return mAdapter; in getAdapter()
32 mAdapter = adapter; in ListRow()
38 mAdapter = adapter; in ListRow()
44 mAdapter = adapter; in ListRow()
49 if (mAdapter == null) { in verify()
DItemBridgeAdapter.java58 private ObjectAdapter mAdapter; field in ItemBridgeAdapter
169 if (mAdapter != null) { in setAdapter()
170 mAdapter.unregisterObserver(mDataObserver); in setAdapter()
172 mAdapter = adapter; in setAdapter()
173 if (mAdapter == null) { in setAdapter()
177 mAdapter.registerObserver(mDataObserver); in setAdapter()
178 if (hasStableIds() != mAdapter.hasStableIds()) { in setAdapter()
179 setHasStableIds(mAdapter.hasStableIds()); in setAdapter()
210 return mAdapter.size(); in getItemCount()
216 mPresenterSelector : mAdapter.getPresenterSelector(); in getItemViewType()
[all …]
DControlBarPresenter.java67 ObjectAdapter mAdapter; field in ControlBarPresenter.ViewHolder
103 if (mAdapter == getDisplayedAdapter()) { in ViewHolder()
109 if (mAdapter == getDisplayedAdapter()) { in ViewHolder()
177 return mAdapter; in getDisplayedAdapter()
242 if (vh.mAdapter != data.adapter) { in onBindViewHolder()
243 vh.mAdapter = data.adapter; in onBindViewHolder()
244 vh.mAdapter.registerObserver(vh.mDataObserver); in onBindViewHolder()
254 vh.mAdapter.unregisterObserver(vh.mDataObserver); in onUnbindViewHolder()
255 vh.mAdapter = null; in onUnbindViewHolder()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DActivityChooserView.java74 private final ActivityChooserViewAdapter mAdapter; field in ActivityChooserView
129 mAdapter.notifyDataSetChanged();
134 mAdapter.notifyDataSetInvalidated();
244 mAdapter = new ActivityChooserViewAdapter(); in ActivityChooserView()
245 mAdapter.registerDataSetObserver(new DataSetObserver() { in ActivityChooserView()
262 mAdapter.setDataModel(dataModel); in setActivityChooserModel()
327 if (mAdapter.getDataModel() == null) { in showPopupUnchecked()
336 final int activityCount = mAdapter.getActivityCount(); in showPopupUnchecked()
340 mAdapter.setShowFooterView(true); in showPopupUnchecked()
341 mAdapter.setMaxActivityCount(maxActivityCount - 1); in showPopupUnchecked()
[all …]
DSpinnerCompat.java382 } else if (mAdapter != null && mAdapter.getCount() > 0) { in getBaseline()
485 if (mAdapter != null) { in layout()
538 child = mAdapter.getView(position, null, this); in makeView()
753 private SpinnerAdapter mAdapter; field in SpinnerCompat.DropDownAdapter
763 this.mAdapter = adapter; in DropDownAdapter()
770 return mAdapter == null ? 0 : mAdapter.getCount(); in getCount()
774 return mAdapter == null ? null : mAdapter.getItem(position); in getItem()
778 return mAdapter == null ? -1 : mAdapter.getItemId(position); in getItemId()
786 return (mAdapter == null) ? null in getDropDownView()
787 : mAdapter.getDropDownView(position, convertView, parent); in getDropDownView()
[all …]
DAbsSpinnerCompat.java36 SpinnerAdapter mAdapter; field in AbsSpinnerCompat
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()
308 return mAdapter; in getAdapter()
/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java56 private final BluetoothAdapter mAdapter; field in BluetoothControllerImpl
68 mAdapter = bluetoothManager.getAdapter(); in BluetoothControllerImpl()
69 if (mAdapter == null) { in BluetoothControllerImpl()
75 setAdapterState(mAdapter.getState()); in BluetoothControllerImpl()
81 pw.print(" mAdapter="); pw.println(mAdapter); in dump()
113 return mAdapter != null && mAdapter.isEnabled(); in isBluetoothEnabled()
118 return mAdapter != null in isBluetoothConnected()
119 && mAdapter.getConnectionState() == BluetoothAdapter.STATE_CONNECTED; in isBluetoothConnected()
124 return mAdapter != null in isBluetoothConnecting()
125 && mAdapter.getConnectionState() == BluetoothAdapter.STATE_CONNECTING; in isBluetoothConnecting()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DListMenuPresenter.java50 MenuAdapter mAdapter; field in ListMenuPresenter
90 if (mAdapter != null) { in initForMenu()
91 mAdapter.notifyDataSetChanged(); in initForMenu()
100 if (mAdapter == null) { in getMenuView()
101 mAdapter = new MenuAdapter(); in getMenuView()
103 mMenuView.setAdapter(mAdapter); in getMenuView()
117 if (mAdapter == null) { in getAdapter()
118 mAdapter = new MenuAdapter(); in getAdapter()
120 return mAdapter; in getAdapter()
125 if (mAdapter != null) mAdapter.notifyDataSetChanged(); in updateMenuView()
[all …]
/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()
104 if (mAdapter == null) { in getMenuView()
105 mAdapter = new MenuAdapter(); in getMenuView()
107 mMenuView.setAdapter(mAdapter); in getMenuView()
121 if (mAdapter == null) { in getAdapter()
122 mAdapter = new MenuAdapter(); in getAdapter()
124 return mAdapter; in getAdapter()
129 if (mAdapter != null) mAdapter.notifyDataSetChanged(); in updateMenuView()
[all …]
/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/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()
225 IBluetoothManager managerService = mAdapter.getBluetoothManager(); in openGattServer()
/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.java140 private PagerAdapter mAdapter; field in ViewPager
413 if (mAdapter != null) { in setAdapter()
414 mAdapter.unregisterDataSetObserver(mObserver); in setAdapter()
415 mAdapter.startUpdate(this); in setAdapter()
418 mAdapter.destroyItem(this, ii.position, ii.object); in setAdapter()
420 mAdapter.finishUpdate(this); in setAdapter()
427 final PagerAdapter oldAdapter = mAdapter; in setAdapter()
428 mAdapter = adapter; in setAdapter()
431 if (mAdapter != null) { in setAdapter()
435 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()

12345