Merge "Replace Thread.sleep with mTestLooper.dispatchAll" into main