Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3d76c22 authored by Sahana Rao's avatar Sahana Rao Committed by Automerger Merge Worker
Browse files

Wait for MediaStore idle state to reduce the test flake am: 51fd45cd am:...

Wait for MediaStore idle state to reduce the test flake am: 51fd45cd am: 6719246f am: aaffa6f0

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/DocumentsUI/+/18796607



Change-Id: Ia413e493995d8653bb8d311860d0876f1959a175
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 524d231b aaffa6f0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import android.net.Uri;
import android.os.Bundle;
import android.os.RemoteException;
import android.os.SystemClock;
import android.provider.MediaStore;
import android.provider.Settings;
import android.support.test.uiautomator.UiObjectNotFoundException;
import android.text.TextUtils;
@@ -131,6 +132,7 @@ public class FileCopyUiTest extends ActivityTest<FilesActivity> {
        mPreTestStayAwakeValue = Settings.Global.getInt(context.getContentResolver(),
                Settings.Global.STAY_ON_WHILE_PLUGGED_IN);
        device.executeShellCommand("settings put global stay_on_while_plugged_in 3");
        MediaStore.waitForIdle(context.getContentResolver());

        mDeviceLabel = Settings.Global.getString(context.getContentResolver(),
                Settings.Global.DEVICE_NAME);