Loading tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java +7 −0 Original line number Original line Diff line number Diff line Loading @@ -56,6 +56,7 @@ import com.android.launcher3.util.Condition; import com.android.launcher3.util.Wait; import com.android.launcher3.util.Wait; import com.android.launcher3.util.rule.LauncherActivityRule; import com.android.launcher3.util.rule.LauncherActivityRule; import org.junit.After; import org.junit.Before; import org.junit.Before; import org.junit.Rule; import org.junit.Rule; Loading Loading @@ -94,6 +95,12 @@ public abstract class AbstractLauncherUiTest { mLauncher = new LauncherInstrumentation(getInstrumentation()); mLauncher = new LauncherInstrumentation(getInstrumentation()); mTargetContext = InstrumentationRegistry.getTargetContext(); mTargetContext = InstrumentationRegistry.getTargetContext(); mTargetPackage = mTargetContext.getPackageName(); mTargetPackage = mTargetContext.getPackageName(); mDevice.executeShellCommand("settings put global heads_up_notifications_enabled 0"); } @After public void tearDown() throws Exception { mDevice.executeShellCommand("settings put global heads_up_notifications_enabled 1"); } } protected void lockRotation(boolean naturalOrientation) throws RemoteException { protected void lockRotation(boolean naturalOrientation) throws RemoteException { Loading tests/src/com/android/launcher3/ui/WorkTabTest.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -54,6 +54,7 @@ public class WorkTabTest extends AbstractLauncherUiTest { @After @After public void removeWorkProfile() throws Exception { public void removeWorkProfile() throws Exception { mDevice.executeShellCommand("pm remove-user " + mProfileUserId); mDevice.executeShellCommand("pm remove-user " + mProfileUserId); super.tearDown(); } } @Test @Test Loading tests/src/com/android/launcher3/ui/widget/BindWidgetTest.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -103,6 +103,8 @@ public class BindWidgetTest extends AbstractLauncherUiTest { if (mSessionId > -1) { if (mSessionId > -1) { mTargetContext.getPackageManager().getPackageInstaller().abandonSession(mSessionId); mTargetContext.getPackageManager().getPackageInstaller().abandonSession(mSessionId); } } super.tearDown(); } } @Test @Test Loading Loading
tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java +7 −0 Original line number Original line Diff line number Diff line Loading @@ -56,6 +56,7 @@ import com.android.launcher3.util.Condition; import com.android.launcher3.util.Wait; import com.android.launcher3.util.Wait; import com.android.launcher3.util.rule.LauncherActivityRule; import com.android.launcher3.util.rule.LauncherActivityRule; import org.junit.After; import org.junit.Before; import org.junit.Before; import org.junit.Rule; import org.junit.Rule; Loading Loading @@ -94,6 +95,12 @@ public abstract class AbstractLauncherUiTest { mLauncher = new LauncherInstrumentation(getInstrumentation()); mLauncher = new LauncherInstrumentation(getInstrumentation()); mTargetContext = InstrumentationRegistry.getTargetContext(); mTargetContext = InstrumentationRegistry.getTargetContext(); mTargetPackage = mTargetContext.getPackageName(); mTargetPackage = mTargetContext.getPackageName(); mDevice.executeShellCommand("settings put global heads_up_notifications_enabled 0"); } @After public void tearDown() throws Exception { mDevice.executeShellCommand("settings put global heads_up_notifications_enabled 1"); } } protected void lockRotation(boolean naturalOrientation) throws RemoteException { protected void lockRotation(boolean naturalOrientation) throws RemoteException { Loading
tests/src/com/android/launcher3/ui/WorkTabTest.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -54,6 +54,7 @@ public class WorkTabTest extends AbstractLauncherUiTest { @After @After public void removeWorkProfile() throws Exception { public void removeWorkProfile() throws Exception { mDevice.executeShellCommand("pm remove-user " + mProfileUserId); mDevice.executeShellCommand("pm remove-user " + mProfileUserId); super.tearDown(); } } @Test @Test Loading
tests/src/com/android/launcher3/ui/widget/BindWidgetTest.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -103,6 +103,8 @@ public class BindWidgetTest extends AbstractLauncherUiTest { if (mSessionId > -1) { if (mSessionId > -1) { mTargetContext.getPackageManager().getPackageInstaller().abandonSession(mSessionId); mTargetContext.getPackageManager().getPackageInstaller().abandonSession(mSessionId); } } super.tearDown(); } } @Test @Test Loading