Lines Matching refs:vec
94 static void hidl_vec_removeAt(hidl_vec<Type>* vec, uint32_t index) { in hidl_vec_removeAt() argument
95 if (vec) { in hidl_vec_removeAt()
96 std::rotate(vec->begin() + index, vec->begin() + index + 1, vec->end()); in hidl_vec_removeAt()
97 vec->resize(vec->size() - 1); in hidl_vec_removeAt()
102 static uint32_t hidl_vec_push_back(hidl_vec<Type>* vec, const Type& value) { in hidl_vec_push_back() argument
104 const uint32_t index = vec->size(); in hidl_vec_push_back()
105 vec->resize(index + 1); in hidl_vec_push_back()
106 (*vec)[index] = value; in hidl_vec_push_back()
478 static void removeValueAndDecrementGreaterValues(hidl_vec<uint32_t>* vec, uint32_t value) { in removeValueAndDecrementGreaterValues() argument
479 if (vec) { in removeValueAndDecrementGreaterValues()
481 auto last = std::remove(vec->begin(), vec->end(), value); in removeValueAndDecrementGreaterValues()
482 vec->resize(std::distance(vec->begin(), last)); in removeValueAndDecrementGreaterValues()
485 std::transform(vec->begin(), vec->end(), vec->begin(), in removeValueAndDecrementGreaterValues()