Merge "Fix @Ignored test for Stylus Usi notifications." into tm-qpr-dev am: f207b4d301

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20948013

Change-Id: Ic40fbd470b8d7d5e15630c41ec1dcb6bb6192306
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Vania Januar
2023-01-12 14:51:35 +00:00
committed by Automerger Merge Worker

View File

@@ -180,12 +180,12 @@ class StylusUsiPowerUiTest : SysuiTestCase() {
@Test @Test
@Ignore("TODO(b/257936830): get bt address once input api available") @Ignore("TODO(b/257936830): get bt address once input api available")
fun refresh_hasConnectedBluetoothStylus_doesNotNotify() { fun refresh_hasConnectedBluetoothStylus_cancelsNotification() {
whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf(0)) whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf(0))
stylusUsiPowerUi.refresh() stylusUsiPowerUi.refresh()
verifyNoMoreInteractions(notificationManager) verify(notificationManager).cancel(R.string.stylus_battery_low_percentage)
} }
@Test @Test