/frameworks/base/core/java/android/widget/ |
D | HeaderViewListAdapter.java | 34 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 …]
|
D | Spinner.java | 72 } else if (mAdapter != null && mAdapter.getCount() > 0) { in getBaseline() 192 child = mAdapter.getView(position, null, this); in makeAndAddView() 300 private SpinnerAdapter mAdapter; field in Spinner.DropDownAdapter 309 this.mAdapter = adapter; in DropDownAdapter() 316 return mAdapter == null ? 0 : mAdapter.getCount(); in getCount() 320 return mAdapter == null ? null : mAdapter.getItem(position); in getItem() 324 return mAdapter == null ? -1 : mAdapter.getItemId(position); in getItemId() 332 return mAdapter == null ? null : in getDropDownView() 333 mAdapter.getDropDownView(position, convertView, parent); in getDropDownView() 337 return mAdapter != null && mAdapter.hasStableIds(); in hasStableIds() [all …]
|
D | AbsSpinner.java | 39 SpinnerAdapter mAdapter; field in AbsSpinner 101 if (null != mAdapter) { in setAdapter() 102 mAdapter.unregisterDataSetObserver(mDataSetObserver); in setAdapter() 106 mAdapter = adapter; in setAdapter() 111 if (mAdapter != null) { in setAdapter() 113 mItemCount = mAdapter.getCount(); in setAdapter() 117 mAdapter.registerDataSetObserver(mDataSetObserver); in setAdapter() 187 if (selectedPosition >= 0 && mAdapter != null && selectedPosition < mAdapter.getCount()) { in onMeasure() 192 view = mAdapter.getView(selectedPosition, null, this); in onMeasure() 323 return mAdapter; in getAdapter()
|
D | ListView.java | 278 if (mAdapter != null) { in addHeaderView() 320 if (((HeaderViewListAdapter) mAdapter).removeHeader(v)) { in removeHeaderView() 397 if (((HeaderViewListAdapter) mAdapter).removeFooter(v)) { in removeFooterView() 418 return mAdapter; in getAdapter() 436 if (null != mAdapter) { in setAdapter() 437 mAdapter.unregisterDataSetObserver(mDataSetObserver); in setAdapter() 444 mAdapter = new HeaderViewListAdapter(mHeaderViewInfos, mFooterViewInfos, adapter); in setAdapter() 446 mAdapter = adapter; in setAdapter() 451 if (mAdapter != null) { in setAdapter() 452 mAreAllItemsSelectable = mAdapter.areAllItemsEnabled(); in setAdapter() [all …]
|
D | AutoCompleteTextView.java | 108 private ListAdapter mAdapter; field in AutoCompleteTextView 575 return mAdapter; in getAdapter() 600 } else if (mAdapter != null) { in setAdapter() 601 mAdapter.unregisterDataSetObserver(mObserver); in setAdapter() 603 mAdapter = adapter; in setAdapter() 604 if (mAdapter != null) { in setAdapter() 606 mFilter = ((Filterable) mAdapter).getFilter(); in setAdapter() 613 mDropDownList.setAdapter(mAdapter); in setAdapter() 674 final ListAdapter adapter = mAdapter; in onKeyDown() 933 selectedItem = mAdapter.getItem(position); in performCompletion() [all …]
|
D | GridView.java | 108 return mAdapter; in getAdapter() 118 if (null != mAdapter) { in setAdapter() 119 mAdapter.unregisterDataSetObserver(mDataSetObserver); in setAdapter() 124 mAdapter = adapter; in setAdapter() 129 if (mAdapter != null) { in setAdapter() 131 mItemCount = mAdapter.getCount(); in setAdapter() 136 mAdapter.registerDataSetObserver(mDataSetObserver); in setAdapter() 138 mRecycler.setViewTypeCount(mAdapter.getViewTypeCount()); in setAdapter() 160 final ListAdapter adapter = mAdapter; in lookForSelectablePosition() 932 mItemCount = mAdapter == null ? 0 : mAdapter.getCount(); in onMeasure() [all …]
|
D | ExpandableListView.java | 128 private ExpandableListAdapter mAdapter; field in ExpandableListView 465 mAdapter = adapter; in setAdapter() 483 return mAdapter; in getExpandableListAdapter() 579 smoothScrollToPosition(shiftedGroupPosition + mAdapter.getChildrenCount(groupPos), in handleItemClick() 797 return mAdapter.getGroupId(groupPos); in getSelectedId() 800 return mAdapter.getChildId(groupPos, getPackedPositionChild(packedPos)); in getSelectedId() 991 return mAdapter.getChildId(position.groupPos, position.childPos); in getChildOrGroupId() 993 return mAdapter.getGroupId(position.groupPos); in getChildOrGroupId()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListWithEmptyView.java | 55 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()
|
D | ListThrasher.java | 39 ThrashListAdapter mAdapter; field in ListThrasher 45 mAdapter.bumpVersion(); 116 mAdapter = new ThrashListAdapter(this); in onCreate() 117 setListAdapter(mAdapter); in onCreate()
|
D | ListViewHeight.java | 37 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()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothAudioGateway.java | 52 private final BluetoothAdapter mAdapter; field in BluetoothAudioGateway 63 mAdapter = adapter; in BluetoothAudioGateway() 76 public BluetoothAdapter mAdapter; field in BluetoothAudioGateway.IncomingConnectionInfo 82 mAdapter = adapter; in IncomingConnectionInfo() 129 mAdapter, in start() 130 mAdapter.getRemoteDevice(mConnectingHeadsetAddress), in start() 143 mAdapter, in start() 144 mAdapter.getRemoteDevice(mConnectingHandsfreeAddress), in start()
|
D | HeadsetBase.java | 45 private final BluetoothAdapter mAdapter; field in HeadsetBase 81 mAdapter = adapter; in HeadsetBase() 97 mAdapter = adapter; in HeadsetBase()
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | ListWithFooterViewAndNewLabelsTest.java | 32 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/ |
D | NfcManager.java | 35 private final NfcAdapter mAdapter; field in NfcManager 47 mAdapter = adapter; in NfcManager() 56 return mAdapter; in getDefaultAdapter()
|
/frameworks/base/core/tests/coretests/src/android/widget/expandablelistview/ |
D | ExpandableListTester.java | 32 private final ExpandableListAdapter mAdapter; field in ExpandableListTester 47 mAdapter = mExpandableListView.getExpandableListAdapter(); in ExpandableListTester() 84 int groupCount = mAdapter.getGroupCount(); in testContextMenus() 101 final int childrenCount = mAdapter.getChildrenCount(groupIndex); in testContextMenus() 136 Assert.assertTrue("Not enough groups", groupIndex < mAdapter.getGroupCount()); in expandAGroup() 152 final int groupCount = mAdapter.getGroupCount(); in testConvertionBetweenFlatAndPackedOnGroups() 178 final int childrenCount = mAdapter.getChildrenCount(groupIndex); in testConvertionBetweenFlatAndPackedOnChildren() 207 final int groupCount = mAdapter.getGroupCount(); in testSelectedPositionOnGroups() 232 final int childrenCount = mAdapter.getChildrenCount(groupIndex); in testSelectedPositionOnChildren()
|
D | ExpandableListBasicTest.java | 34 private ExpandableListAdapter mAdapter; field in ExpandableListBasicTest 47 mAdapter = mExpandableListView.getExpandableListAdapter(); in setUp() 108 mAdapter instanceof BaseExpandableListAdapter); in testExpandedGroupMovement() 109 final BaseExpandableListAdapter adapter = (BaseExpandableListAdapter) mAdapter; in testExpandedGroupMovement()
|
/frameworks/base/core/java/android/app/ |
D | ListActivity.java | 180 protected ListAdapter mAdapter; field in ListActivity 252 setListAdapter(mAdapter); in onContentChanged() 264 mAdapter = adapter; in setListAdapter() 305 return mAdapter; in getListAdapter()
|
D | ExpandableListActivity.java | 159 ExpandableListAdapter mAdapter; field in ExpandableListActivity 234 setListAdapter(mAdapter); in onContentChanged() 245 mAdapter = adapter; in setListAdapter() 266 return mAdapter; in getExpandableListAdapter()
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
D | GridThrasher.java | 41 ThrashListAdapter mAdapter; field in GridThrasher 47 mAdapter.bumpVersion(); 119 mAdapter = new ThrashListAdapter(this); in onCreate() 121 g.setAdapter(mAdapter); in onCreate()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuDialogHelper.java | 36 private ListAdapter mAdapter; field in MenuDialogHelper 53 mAdapter = menu.getMenuAdapter(MenuBuilder.TYPE_DIALOG); in show() 57 .setAdapter(mAdapter, this); in show() 137 mMenu.performItemAction((MenuItemImpl) mAdapter.getItem(which), 0); in onClick()
|
/frameworks/base/core/java/android/server/ |
D | BluetoothEventLoop.java | 53 private final BluetoothAdapter mAdapter; field in BluetoothEventLoop 109 mAdapter = adapter; in BluetoothEventLoop() 163 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mAdapter.getRemoteDevice(address)); in addDevice() 185 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mAdapter.getRemoteDevice(address)); in onDeviceDisappeared() 196 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mAdapter.getRemoteDevice(address)); in onDeviceDisconnectRequested() 301 BluetoothDevice device = mAdapter.getRemoteDevice(address); in onDevicePropertyChanged() 409 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mAdapter.getRemoteDevice(address)); in onRequestPairingConsent() 421 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mAdapter.getRemoteDevice(address)); in onRequestPasskeyConfirmation() 434 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mAdapter.getRemoteDevice(address)); in onRequestPasskey() 471 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mAdapter.getRemoteDevice(address)); in onRequestPinCode() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverActivity.java | 57 private ResolveListAdapter mAdapter; field in ResolverActivity 92 mAdapter = new ResolveListAdapter(this, intent, initialIntents, rList); in onCreate() 93 int count = mAdapter.getCount(); in onCreate() 95 ap.mAdapter = mAdapter; in onCreate() 97 startActivity(mAdapter.intentForPosition(0)); in onCreate() 114 ResolveInfo ri = mAdapter.resolveInfoForPosition(which); in onClick() 115 Intent intent = mAdapter.intentForPosition(which); in onClick() 188 final int N = mAdapter.mList.size(); in onIntentSelected() 192 ResolveInfo r = mAdapter.mList.get(i).ri; in onIntentSelected()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ListContextMenu.java | 44 ThrashListAdapter mAdapter; field in ListContextMenu 92 mAdapter = new ThrashListAdapter(this); in onCreate() 94 setListAdapter(mAdapter); in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ExpandableListScenario.java | 42 protected ExpandableListAdapter mAdapter; field in ExpandableListScenario 57 ((ExpandableListView) listView).setAdapter(mAdapter = createAdapter()); in setAdapter() 278 final ExpandableListAdapter adapter = mAdapter; in findGroupWithNumChildren() 296 return mAdapter; in getAdapter()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | GlobalActions.java | 71 private MyAdapter mAdapter; field in GlobalActions 219 mAdapter = new MyAdapter(); in createDialog() 223 ab.setAdapter(mAdapter, this) in createDialog() 245 mAdapter.notifyDataSetChanged(); in prepareDialog() 263 mAdapter.getItem(which).onPress(); in onClick() 550 mAdapter.notifyDataSetChanged();
|