Lines Matching refs:bsi
967 ssize_t bsi = mBufferSlots.indexOfKey(bi.mSlot); in acquireBuffer_l() local
970 ALOGV("acquireBuffer_l: %s buffer slot %d", bsi < 0 ? "setting" : "UPDATING", bi.mSlot); in acquireBuffer_l()
971 if (bsi >= 0) { in acquireBuffer_l()
972 discardBufferAtSlotIndex_l(bsi); in acquireBuffer_l()
974 bsi = mBufferSlots.add(bi.mSlot, nullptr); in acquireBuffer_l()
977 mBufferSlots.replaceValueAt(bsi, buffer); in acquireBuffer_l()
979 buffer = mBufferSlots.valueAt(bsi); in acquireBuffer_l()
1099 ssize_t bsi = mBufferSlots.indexOfKey(i); in discardBufferInSlot_l() local
1100 if (bsi < 0) { in discardBufferInSlot_l()
1103 discardBufferAtSlotIndex_l(bsi); in discardBufferInSlot_l()
1104 mBufferSlots.removeItemsAt(bsi); in discardBufferInSlot_l()
1109 void GraphicBufferSource::discardBufferAtSlotIndex_l(ssize_t bsi) { in discardBufferAtSlotIndex_l() argument
1110 const std::shared_ptr<CachedBuffer>& buffer = mBufferSlots.valueAt(bsi); in discardBufferAtSlotIndex_l()
1115 mBufferSlots.keyAt(bsi), buffer.use_count(), latestBufferSlot); in discardBufferAtSlotIndex_l()
1116 mBufferSlots.valueAt(bsi)->onDroppedFromCache(); in discardBufferAtSlotIndex_l()
1127 mBufferSlots.editValueAt(bsi).reset(); in discardBufferAtSlotIndex_l()