Loading packages/SystemUI/src/com/android/systemui/biometrics/AuthContainerView.java +2 −2 Original line number Diff line number Diff line Loading @@ -412,7 +412,6 @@ public class AuthContainerView extends LinearLayout }); setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO); setFocusableInTouchMode(true); requestFocus(); } Loading Loading @@ -464,7 +463,8 @@ public class AuthContainerView extends LinearLayout } } private void onBackInvoked() { @VisibleForTesting public void onBackInvoked() { sendEarlyUserCanceled(); animateAway(AuthDialogCallback.DISMISSED_USER_CANCELED); } Loading packages/SystemUI/tests/src/com/android/systemui/biometrics/AuthContainerViewTest.kt +2 −5 Original line number Diff line number Diff line Loading @@ -35,7 +35,6 @@ import android.os.UserManager import android.testing.TestableLooper import android.testing.TestableLooper.RunWithLooper import android.testing.ViewUtils import android.view.KeyEvent import android.view.View import android.view.WindowInsets import android.view.WindowManager Loading Loading @@ -202,8 +201,7 @@ open class AuthContainerViewTest : SysuiTestCase() { val root = container.rootView // Simulate back invocation container.dispatchKeyEvent(KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK)) container.dispatchKeyEvent(KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK)) container.onBackInvoked() waitForIdleSync() assertThat(container.parent).isNull() Loading @@ -217,8 +215,7 @@ open class AuthContainerViewTest : SysuiTestCase() { val root = container.rootView // Simulate back invocation container.dispatchKeyEvent(KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK)) container.dispatchKeyEvent(KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK)) container.onBackInvoked() waitForIdleSync() assertThat(container.parent).isNull() Loading Loading
packages/SystemUI/src/com/android/systemui/biometrics/AuthContainerView.java +2 −2 Original line number Diff line number Diff line Loading @@ -412,7 +412,6 @@ public class AuthContainerView extends LinearLayout }); setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO); setFocusableInTouchMode(true); requestFocus(); } Loading Loading @@ -464,7 +463,8 @@ public class AuthContainerView extends LinearLayout } } private void onBackInvoked() { @VisibleForTesting public void onBackInvoked() { sendEarlyUserCanceled(); animateAway(AuthDialogCallback.DISMISSED_USER_CANCELED); } Loading
packages/SystemUI/tests/src/com/android/systemui/biometrics/AuthContainerViewTest.kt +2 −5 Original line number Diff line number Diff line Loading @@ -35,7 +35,6 @@ import android.os.UserManager import android.testing.TestableLooper import android.testing.TestableLooper.RunWithLooper import android.testing.ViewUtils import android.view.KeyEvent import android.view.View import android.view.WindowInsets import android.view.WindowManager Loading Loading @@ -202,8 +201,7 @@ open class AuthContainerViewTest : SysuiTestCase() { val root = container.rootView // Simulate back invocation container.dispatchKeyEvent(KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK)) container.dispatchKeyEvent(KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK)) container.onBackInvoked() waitForIdleSync() assertThat(container.parent).isNull() Loading @@ -217,8 +215,7 @@ open class AuthContainerViewTest : SysuiTestCase() { val root = container.rootView // Simulate back invocation container.dispatchKeyEvent(KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK)) container.dispatchKeyEvent(KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK)) container.onBackInvoked() waitForIdleSync() assertThat(container.parent).isNull() Loading