Home
last modified time | relevance | path

Searched refs:kMaxAttempts (Results 1 – 4 of 4) sorted by relevance

/aosp12/frameworks/native/services/surfaceflinger/
H A DDisplayIdGenerator.h44 constexpr int kMaxAttempts = 1000; in generateId() local
46 for (int attempts = 0; attempts < kMaxAttempts; attempts++) { in generateId()
54 LOG_ALWAYS_FATAL("Couldn't generate ID after %d attempts", kMaxAttempts); in generateId()
H A DSurfaceFlinger.cpp2529 constexpr int kMaxAttempts = 3; in loadDisplayModes() local
2540 } while (!activeModeIsSupported && ++attempt < kMaxAttempts); in loadDisplayModes()
2544 kMaxAttempts, *activeModeHwcId, base::Join(hwcModes, ", ").c_str()); in loadDisplayModes()
/aosp12/packages/modules/adb/
H A Dtransport.cpp135 static constexpr const size_t kMaxAttempts = 20; member in __anon3f7f08150110::ReconnectHandler
178 ReconnectAttempt{transport, reconnect_time, ReconnectHandler::kMaxAttempts}); in TrackTransport()
/aosp12/system/netd/tests/
H A Dbinder_test.cpp2296 constexpr int kMaxAttempts = 50; in findDnsSockets() local
2298 for (int i = 0; i < kMaxAttempts; i++) { in findDnsSockets()
2301 << "Failed to dump sockets, attempt " << i << " of " << kMaxAttempts; in findDnsSockets()