Loading packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/UdfpsControllerTest.java +4 −1 Original line number Diff line number Diff line Loading @@ -94,6 +94,8 @@ import com.android.systemui.util.concurrency.FakeExecutor; import com.android.systemui.util.time.FakeSystemClock; import com.android.systemui.util.time.SystemClock; import com.google.android.msdl.domain.MSDLPlayer; import dagger.Lazy; import kotlinx.coroutines.CoroutineScope; Loading Loading @@ -310,7 +312,8 @@ public class UdfpsControllerTest extends SysuiTestCase { mPowerInteractor, mock(CoroutineScope.class), UserActivityNotifierKosmosKt.getUserActivityNotifier(mKosmos), mWakefulnessLifecycle mWakefulnessLifecycle, mock(MSDLPlayer.class) ); verify(mFingerprintManager).setUdfpsOverlayController(mOverlayCaptor.capture()); mOverlayController = mOverlayCaptor.getValue(); Loading packages/SystemUI/src/com/android/systemui/biometrics/UdfpsController.java +18 −8 Original line number Diff line number Diff line Loading @@ -114,6 +114,9 @@ import com.android.systemui.util.concurrency.DelayableExecutor; import com.android.systemui.util.concurrency.Execution; import com.android.systemui.util.time.SystemClock; import com.google.android.msdl.data.model.MSDLToken; import com.google.android.msdl.domain.MSDLPlayer; import dagger.Lazy; import kotlin.Unit; Loading Loading @@ -189,6 +192,7 @@ public class UdfpsController implements DozeReceiver, Dumpable { @NonNull private final CoroutineScope mScope; @NonNull private final InputManager mInputManager; @NonNull private final SelectedUserInteractor mSelectedUserInteractor; @NonNull private final MSDLPlayer mMsdlPlayer; private final boolean mIgnoreRefreshRate; private final KeyguardTransitionInteractor mKeyguardTransitionInteractor; Loading Loading @@ -719,7 +723,8 @@ public class UdfpsController implements DozeReceiver, Dumpable { @NonNull PowerInteractor powerInteractor, @Application CoroutineScope scope, UserActivityNotifier userActivityNotifier, Lazy<WakefulnessLifecycle> wakefulnessLifecycle) { Lazy<WakefulnessLifecycle> wakefulnessLifecycle, MSDLPlayer msdlPlayer) { mContext = context; mExecution = execution; mVibrator = vibrator; Loading Loading @@ -772,6 +777,7 @@ public class UdfpsController implements DozeReceiver, Dumpable { mDeviceEntryUdfpsTouchOverlayViewModel = deviceEntryUdfpsTouchOverlayViewModel; mDefaultUdfpsTouchOverlayViewModel = defaultUdfpsTouchOverlayViewModel; mPromptUdfpsTouchOverlayViewModel = promptUdfpsTouchOverlayViewModel; mMsdlPlayer = msdlPlayer; mDumpManager.registerDumpable(TAG, this); Loading Loading @@ -916,6 +922,9 @@ public class UdfpsController implements DozeReceiver, Dumpable { mKeyguardViewManager.showPrimaryBouncer(true, "UdfpsController#onAodInterrupt"); // play the same haptic as the DeviceEntryIcon longpress if (Flags.msdlFeedback()) { mMsdlPlayer.playToken(MSDLToken.LONG_PRESS, null); } else { if (mOverlay != null && mOverlay.getTouchOverlay() != null) { mVibrator.performHapticFeedback( mOverlay.getTouchOverlay(), Loading @@ -925,6 +934,7 @@ public class UdfpsController implements DozeReceiver, Dumpable { Log.e(TAG, "No haptics played. Could not obtain overlay view to perform" + "vibration. Either the controller overlay is null or has no view"); } } return; } Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/UdfpsControllerTest.java +4 −1 Original line number Diff line number Diff line Loading @@ -94,6 +94,8 @@ import com.android.systemui.util.concurrency.FakeExecutor; import com.android.systemui.util.time.FakeSystemClock; import com.android.systemui.util.time.SystemClock; import com.google.android.msdl.domain.MSDLPlayer; import dagger.Lazy; import kotlinx.coroutines.CoroutineScope; Loading Loading @@ -310,7 +312,8 @@ public class UdfpsControllerTest extends SysuiTestCase { mPowerInteractor, mock(CoroutineScope.class), UserActivityNotifierKosmosKt.getUserActivityNotifier(mKosmos), mWakefulnessLifecycle mWakefulnessLifecycle, mock(MSDLPlayer.class) ); verify(mFingerprintManager).setUdfpsOverlayController(mOverlayCaptor.capture()); mOverlayController = mOverlayCaptor.getValue(); Loading
packages/SystemUI/src/com/android/systemui/biometrics/UdfpsController.java +18 −8 Original line number Diff line number Diff line Loading @@ -114,6 +114,9 @@ import com.android.systemui.util.concurrency.DelayableExecutor; import com.android.systemui.util.concurrency.Execution; import com.android.systemui.util.time.SystemClock; import com.google.android.msdl.data.model.MSDLToken; import com.google.android.msdl.domain.MSDLPlayer; import dagger.Lazy; import kotlin.Unit; Loading Loading @@ -189,6 +192,7 @@ public class UdfpsController implements DozeReceiver, Dumpable { @NonNull private final CoroutineScope mScope; @NonNull private final InputManager mInputManager; @NonNull private final SelectedUserInteractor mSelectedUserInteractor; @NonNull private final MSDLPlayer mMsdlPlayer; private final boolean mIgnoreRefreshRate; private final KeyguardTransitionInteractor mKeyguardTransitionInteractor; Loading Loading @@ -719,7 +723,8 @@ public class UdfpsController implements DozeReceiver, Dumpable { @NonNull PowerInteractor powerInteractor, @Application CoroutineScope scope, UserActivityNotifier userActivityNotifier, Lazy<WakefulnessLifecycle> wakefulnessLifecycle) { Lazy<WakefulnessLifecycle> wakefulnessLifecycle, MSDLPlayer msdlPlayer) { mContext = context; mExecution = execution; mVibrator = vibrator; Loading Loading @@ -772,6 +777,7 @@ public class UdfpsController implements DozeReceiver, Dumpable { mDeviceEntryUdfpsTouchOverlayViewModel = deviceEntryUdfpsTouchOverlayViewModel; mDefaultUdfpsTouchOverlayViewModel = defaultUdfpsTouchOverlayViewModel; mPromptUdfpsTouchOverlayViewModel = promptUdfpsTouchOverlayViewModel; mMsdlPlayer = msdlPlayer; mDumpManager.registerDumpable(TAG, this); Loading Loading @@ -916,6 +922,9 @@ public class UdfpsController implements DozeReceiver, Dumpable { mKeyguardViewManager.showPrimaryBouncer(true, "UdfpsController#onAodInterrupt"); // play the same haptic as the DeviceEntryIcon longpress if (Flags.msdlFeedback()) { mMsdlPlayer.playToken(MSDLToken.LONG_PRESS, null); } else { if (mOverlay != null && mOverlay.getTouchOverlay() != null) { mVibrator.performHapticFeedback( mOverlay.getTouchOverlay(), Loading @@ -925,6 +934,7 @@ public class UdfpsController implements DozeReceiver, Dumpable { Log.e(TAG, "No haptics played. Could not obtain overlay view to perform" + "vibration. Either the controller overlay is null or has no view"); } } return; } Loading