Loading packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java +7 −0 Original line number Diff line number Diff line Loading @@ -2343,6 +2343,13 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable, } } @VisibleForTesting void clearInternalHandleAfterTest() { if (mHandler != null) { mHandler.removeCallbacksAndMessages(null); } } private final class CustomDialog extends Dialog implements DialogInterface { public CustomDialog(Context context) { super(context, R.style.volume_dialog_theme); Loading packages/SystemUI/tests/src/com/android/systemui/volume/VolumeDialogImplTest.java +8 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ import com.android.systemui.util.DeviceConfigProxyFake; import com.android.systemui.util.concurrency.FakeExecutor; import com.android.systemui.util.time.FakeSystemClock; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; Loading Loading @@ -370,6 +371,13 @@ public class VolumeDialogImplTest extends SysuiTestCase { verify(mCsdWarningDialog).show(); } @After public void teardown() { if (mDialog != null) { mDialog.clearInternalHandleAfterTest(); } } /* @Test public void testContentDescriptions() { Loading Loading
packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java +7 −0 Original line number Diff line number Diff line Loading @@ -2343,6 +2343,13 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable, } } @VisibleForTesting void clearInternalHandleAfterTest() { if (mHandler != null) { mHandler.removeCallbacksAndMessages(null); } } private final class CustomDialog extends Dialog implements DialogInterface { public CustomDialog(Context context) { super(context, R.style.volume_dialog_theme); Loading
packages/SystemUI/tests/src/com/android/systemui/volume/VolumeDialogImplTest.java +8 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ import com.android.systemui.util.DeviceConfigProxyFake; import com.android.systemui.util.concurrency.FakeExecutor; import com.android.systemui.util.time.FakeSystemClock; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; Loading Loading @@ -370,6 +371,13 @@ public class VolumeDialogImplTest extends SysuiTestCase { verify(mCsdWarningDialog).show(); } @After public void teardown() { if (mDialog != null) { mDialog.clearInternalHandleAfterTest(); } } /* @Test public void testContentDescriptions() { Loading