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

Method CheckAndroidSetup

qrenderdoc/Windows/Dialogs/CaptureDialog.cpp:565–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565void CaptureDialog::CheckAndroidSetup(QString &filename)
566{
567 ui->androidScan->setVisible(true);
568 ui->androidWarn->setVisible(false);
569
570 LambdaThread *scan = new LambdaThread([this, filename]() {
571 rdcstr host = m_Ctx.Replay().CurrentRemote().Hostname();
572 RENDERDOC_CheckAndroidPackage(host, filename, &m_AndroidFlags);
573
574 const bool debuggable = bool(m_AndroidFlags & AndroidFlags::Debuggable);
575 const bool hasroot = bool(m_AndroidFlags & AndroidFlags::RootAccess);
576
577 if(!debuggable && !hasroot)
578 {
579 // Check failed - set the warning visible
580 GUIInvoke::call(this, [this]() {
581 ui->androidScan->setVisible(false);
582 ui->androidWarn->setVisible(true);
583 });
584 }
585 else
586 {
587 // Check passed, either app is debuggable or we have root - no warnings needed
588 GUIInvoke::call(this, [this]() {
589 ui->androidScan->setVisible(false);
590 ui->androidWarn->setVisible(false);
591 });
592 }
593 });
594
595 scan->setName(lit("CheckAndroidSetup"));
596 scan->selfDelete(true);
597 scan->start();
598}
599
600void CaptureDialog::androidWarn_mouseClick()
601{

Callers

nothing calls this directly

Calls 5

CurrentRemoteMethod · 0.80
selfDeleteMethod · 0.80
setNameMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected