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

Function EnumerateDevices

renderdoc/android/android.cpp:647–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647rdcarray<rdcstr> EnumerateDevices()
648{
649 rdcarray<rdcstr> ret;
650
651 rdcstr adbStdout = Android::adbExecCommand("", "devices", ".", true).strStdout;
652
653 rdcarray<rdcstr> lines;
654 split(adbStdout, lines, '\n');
655 for(const rdcstr &line : lines)
656 {
657 rdcarray<rdcstr> tokens;
658 split(line, tokens, '\t');
659 if(tokens.size() == 2 && tokens[1].trimmed() == "device")
660 ret.push_back(tokens[0]);
661 }
662
663 return ret;
664}
665}; // namespace Android
666
667struct AndroidRemoteServer : public RemoteServer

Callers 1

GetDevicesMethod · 0.85

Calls 5

adbExecCommandFunction · 0.85
splitFunction · 0.85
trimmedMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected