Searched refs:kMaxAttempts (Results 1 – 2 of 2) sorted by relevance
44 constexpr int kMaxAttempts = 1000; in generateId() local46 for (int attempts = 0; attempts < kMaxAttempts; attempts++) { in generateId()54 LOG_ALWAYS_FATAL("Couldn't generate ID after %d attempts", kMaxAttempts); in generateId()
3428 constexpr int kMaxAttempts = 3; in loadDisplayModes() local3474 if (attempt + 1 == kMaxAttempts) { in loadDisplayModes()3513 } while (++attempt < kMaxAttempts); in loadDisplayModes()3515 if (attempt == kMaxAttempts) { in loadDisplayModes()