boolean function ( DisplayPortMetrics arg0 ) { if ( mHead == mTail ) { return false ; } mMetrics [ mTail ] = arg0 ; mTimestamps [ mTail ] = SystemClock . uptimeMillis ( ) ; mTail = ( mTail + 1 ) % BUFFER_SIZE ; return true ; }
add a new entry to the tail of the queue . if the buffer is full , do nothing . this must only be called from the java ui thread . concode_field_sep DisplayPortMetrics[] mMetrics concode_elem_sep long[] mTimestamps concode_elem_sep String LOGTAG concode_elem_sep int mTail concode_elem_sep int BUFFER_SIZE concode_elem_sep int mHead concode_field_sep long findTimeFor concode_elem_sep void reset