MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / find_device

Method find_device

source/MaaAdbControlUnit/Manager/AdbControlUnitMgr.cpp:270–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270bool AdbControlUnitMgr::find_device(std::vector<std::string>& devices)
271{
272 auto opt = device_list_.request_devices();
273 if (!opt) {
274 LogError << "failed to find_device";
275 return false;
276 }
277
278 devices = std::move(opt).value();
279 return true;
280}
281
282bool AdbControlUnitMgr::shell(const std::string& cmd, std::string& output, std::chrono::milliseconds timeout)
283{

Callers 1

Calls 2

moveFunction · 0.85
request_devicesMethod · 0.80

Tested by

no test coverage detected