MCPcopy Create free account
hub / github.com/baldurk/renderdoc / GetJdwpPort

Function GetJdwpPort

renderdoc/android/android.cpp:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65uint16_t GetJdwpPort()
66{
67 // we loop over a number of ports to try and avoid previous failed attempts from leaving sockets
68 // open and messing with subsequent attempts
69 const uint16_t portBase = 39500;
70
71 static uint16_t portIndex = 0;
72
73 portIndex++;
74 portIndex %= 100;
75
76 return portBase + portIndex;
77}
78
79rdcstr GetDefaultActivityForPackage(const rdcstr &deviceID, const rdcstr &packageName)
80{

Callers 1

ExecuteAndInjectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected