Lines Matching refs:position
190 public void onBindViewHolder(ViewHolder holder, int position) {
191 final CachedBluetoothDevice bluetoothDevice = getItem(position);
222 public int getItemViewType(int position) {
224 if (position == 0) {
228 if (position == mBondedDevicesSorted.size() + 1) {
234 private CachedBluetoothDevice getItem(int position) {
235 if (position > 0 && position <= mBondedDevicesSorted.size()) {
237 return mBondedDevicesSorted.get(position - 1);
239 if (position > mBondedDevicesSorted.size() + 1
240 && position <= mBondedDevicesSorted.size() + 1 + mAvailableDevicesSorted.size()) {
243 position - NUM_OF_HEADERS - mBondedDevicesSorted.size());