Lines Matching refs:idx
362 int idx = 0; in WriteMemoryRecord() local
365 for (idx = 0; idx < num_mem_records_; idx++) { in WriteMemoryRecord()
366 if (mem_records_[idx].uid == uid) { in WriteMemoryRecord()
370 if (mem_records_[idx].failure_record.last_checked_timestamp <= min_timestamp) { in WriteMemoryRecord()
371 min_timestamp = mem_records_[idx].failure_record.last_checked_timestamp; in WriteMemoryRecord()
372 min_idx = idx; in WriteMemoryRecord()
376 if (idx >= MAX_FAILURE_RECORDS) { in WriteMemoryRecord()
378 idx = min_idx; in WriteMemoryRecord()
379 } else if (idx == num_mem_records_) { in WriteMemoryRecord()
383 mem_records_[idx].uid = uid; in WriteMemoryRecord()
384 mem_records_[idx].failure_record = *record; in WriteMemoryRecord()
393 int idx = 0; in RemoveUser() local
394 for (idx = 0; idx < num_mem_records_; idx++) { in RemoveUser()
395 if (mem_records_[idx].uid == uid) { in RemoveUser()
396 memset(&mem_records_[idx], 0, sizeof(mem_failure_record_t)); in RemoveUser()