Home
last modified time | relevance | path

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

/hardware/interfaces/automotive/evs/aidl/impl/default/src/
DEvsCamera.cpp367 void EvsCamera::swapBufferFrames_unsafe(const std::size_t pos1, const std::size_t pos2) { in swapBufferFrames_unsafe() argument
368 if (pos1 == pos2) { in swapBufferFrames_unsafe()
371 if (pos1 >= mBuffers.size() || pos2 >= mBuffers.size()) { in swapBufferFrames_unsafe()
372 LOG(ERROR) << __func__ << ": Index out-of-bound. pos1: " << pos1 << ", pos2: " << pos2 in swapBufferFrames_unsafe()
377 const std::size_t id2 = mBufferPosToId[pos2]; in swapBufferFrames_unsafe()
378 std::swap(mBufferPosToId[pos1], mBufferPosToId[pos2]); in swapBufferFrames_unsafe()
380 std::swap(mBuffers[pos1], mBuffers[pos2]); in swapBufferFrames_unsafe()
/hardware/google/gfxstream/guest/mesa/src/util/
Dlist.h283 #define list_pair_for_each_entry(type, pos1, pos2, head1, head2, member) \ argument
285 *pos2 = list_entry((head2)->next, type, member); \
286 &pos1->member != (head1) && &pos2->member != (head2); \
288 pos2 = list_entry(pos2->member.next, type, member))
/hardware/interfaces/automotive/evs/aidl/impl/default/include/
DEvsCamera.h99 void swapBufferFrames_unsafe(const std::size_t pos1, const std::size_t pos2);