package Ġcom . test . lat te . thread Ċ Ċ import Ġandroidx . test . platform . app . Instrumentation Registry . get Instrumentation Ċ Ċ @ Published Api Ċ internal Ġobject ĠMain Thread Idle Checker Ġ: ĠId le Checker Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġinstrument ation Ġ= Ġget Instrumentation () ĊĊĠĠĠ Ġoverride Ġfun Ġwait Until Idle () Ġ= Ġinstrument ation . waitFor Idle Sync () Ċ }