Lines Matching refs:arr

71         const auto& arr = implicit_layers_;  in Parse()  local
72 if (arr.result != VK_SUCCESS) in Parse()
73 return arr.result; in Parse()
76 if (!arr.count) in Parse()
79 names_ = AllocateNameArray(arr.count + count); in Parse()
84 for (uint32_t i = 0; i < arr.count; i++) in Parse()
87 name_count_ = arr.count; in Parse()
135 auto& arr = implicit_layers_; in AddImplicitLayers() local
136 std::sort(arr.elements, arr.elements + arr.count, in AddImplicitLayers()
209 auto& arr = implicit_layers_; in AddImplicitLayer() local
210 auto& layer = arr.elements[arr.count++]; in AddImplicitLayer()
215 ALOGV("Added implicit layer %s", GetImplicitLayerName(arr.count - 1)); in AddImplicitLayer()
223 auto& arr = implicit_layers_; in AddImplicitLayerName() local
224 size_t offset = arr.pool_size; in AddImplicitLayerName()
225 char* dst = arr.name_pool + offset; in AddImplicitLayerName()
230 arr.pool_size += len + 1; in AddImplicitLayerName()
239 auto& arr = implicit_layers_; in GrowImplicitLayerArray() local
242 while (arr.count + layer_count > arr.max_count) { in GrowImplicitLayerArray()
244 (arr.max_count) ? (arr.max_count << 1) : initial_max_count; in GrowImplicitLayerArray()
247 if (new_max_count > arr.max_count) { in GrowImplicitLayerArray()
249 allocator_.pUserData, arr.elements, in GrowImplicitLayerArray()
255 arr.result = VK_ERROR_OUT_OF_HOST_MEMORY; in GrowImplicitLayerArray()
256 arr.count = 0; in GrowImplicitLayerArray()
260 arr.elements = reinterpret_cast<ImplicitLayer*>(new_mem); in GrowImplicitLayerArray()
261 arr.max_count = new_max_count; in GrowImplicitLayerArray()
265 while (arr.pool_size + name_size > arr.max_pool_size) { in GrowImplicitLayerArray()
266 size_t new_max_pool_size = (arr.max_pool_size) in GrowImplicitLayerArray()
267 ? (arr.max_pool_size << 1) in GrowImplicitLayerArray()
271 if (new_max_pool_size > arr.max_pool_size) { in GrowImplicitLayerArray()
273 allocator_.pUserData, arr.name_pool, new_max_pool_size, in GrowImplicitLayerArray()
278 arr.result = VK_ERROR_OUT_OF_HOST_MEMORY; in GrowImplicitLayerArray()
279 arr.pool_size = 0; in GrowImplicitLayerArray()
283 arr.name_pool = reinterpret_cast<char*>(new_mem); in GrowImplicitLayerArray()
284 arr.max_pool_size = new_max_pool_size; in GrowImplicitLayerArray()
291 const auto& arr = implicit_layers_; in GetImplicitLayerName() local
294 return implicit_layers_.name_pool + arr.elements[index].name_offset; in GetImplicitLayerName()
298 const auto& arr = implicit_layers_; in IsImplicitLayer() local
300 for (uint32_t i = 0; i < arr.count; i++) { in IsImplicitLayer()