Home
last modified time | relevance | path

Searched refs:mArrayList (Results 1 – 1 of 1) sorted by relevance

/development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/
DScanResultAdapter.java36 private ArrayList<ScanResult> mArrayList; field in ScanResultAdapter
46 mArrayList = new ArrayList<>(); in ScanResultAdapter()
51 return mArrayList.size(); in getCount()
56 return mArrayList.get(position); in getItem()
61 return mArrayList.get(position).getDevice().getAddress().hashCode(); in getItemId()
76 ScanResult scanResult = mArrayList.get(position); in getView()
94 for (int i = 0; i < mArrayList.size(); i++) { in getPosition()
95 if (mArrayList.get(i).getDevice().getAddress().equals(address)) { in getPosition()
114 mArrayList.set(existingPosition, scanResult); in add()
117 mArrayList.add(scanResult); in add()
[all …]