Searched refs:mockDrawable (Results 1 – 4 of 4) sorted by relevance
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
H A D | SlashImageViewTest.java | 48 Drawable mockDrawable = mock(Drawable.class); in testSetNonNullSlashStateCreatesSlashDrawable() local 52 mSlashView.setState(mockState, mockDrawable); in testSetNonNullSlashStateCreatesSlashDrawable() 60 Drawable mockDrawable = mock(Drawable.class); in testSetNullSlashStateRemovesSlashDrawable() local 62 mSlashView.setState(mockState, mockDrawable); in testSetNullSlashStateRemovesSlashDrawable() 66 mSlashView.setState(null, mockDrawable); in testSetNullSlashStateRemovesSlashDrawable() 74 Drawable mockDrawable = mock(Drawable.class); in testSetNullDrawableRemovesSlashDrawable() local 77 mSlashView.setImageDrawable(mockDrawable); in testSetNullDrawableRemovesSlashDrawable() 78 mSlashView.setState(mockState, mockDrawable); in testSetNullDrawableRemovesSlashDrawable() 88 when(mockDrawable.getLevel()).thenReturn(2); in testSetImageDrawableUsesDrawableLevel() 90 iv.setImageDrawable(mockDrawable); in testSetImageDrawableUsesDrawableLevel() [all …]
|
H A D | AlphaControlledSignalTileViewTest.java | 62 Drawable mockDrawable = mock(Drawable.class); in testSlashDrawable_doesNotSetTintList() local 63 AlphaControlledSlashDrawable drawable = new AlphaControlledSlashDrawable(mockDrawable); in testSlashDrawable_doesNotSetTintList() 66 verify(mockDrawable, never()).setTintList(any()); in testSlashDrawable_doesNotSetTintList() 71 Drawable mockDrawable = mock(Drawable.class); in testSlashDrawable_setsFinalTintList() local 72 AlphaControlledSlashDrawable drawable = new AlphaControlledSlashDrawable(mockDrawable); in testSlashDrawable_setsFinalTintList() 75 verify(mockDrawable, atLeastOnce()).setTintList(list); in testSlashDrawable_setsFinalTintList()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
H A D | BatteryDiffEntryTest.java | 65 @Mock private Drawable mockDrawable; field in BatteryDiffEntryTest 241 mockConstantState(mockDrawable); in testGetAppIcon_nonUidConsumer_returnAppIconInBatteryDiffEntry() 246 entry.mAppIcon = mockDrawable; in testGetAppIcon_nonUidConsumer_returnAppIconInBatteryDiffEntry() 247 assertThat(entry.getAppIcon()).isEqualTo(mockDrawable); in testGetAppIcon_nonUidConsumer_returnAppIconInBatteryDiffEntry() 256 mockConstantState(mockDrawable); in testGetAppIcon_uidConsumerForNonOwner_returnDefaultActivityIconWithBadge() 259 .getBadgedIconForUser(eq(mockDrawable), any()); in testGetAppIcon_uidConsumerForNonOwner_returnDefaultActivityIconWithBadge() 269 mockConstantState(mockDrawable); in testGetAppIcon_uidConsumerWithNullIcon_returnDefaultActivityIcon() 272 assertThat(entry.getAppIcon()).isEqualTo(mockDrawable); in testGetAppIcon_uidConsumerWithNullIcon_returnDefaultActivityIcon() 277 assertThat(nameAndIcon.icon).isEqualTo(mockDrawable); in testGetAppIcon_uidConsumerWithNullIcon_returnDefaultActivityIcon() 299 mockConstantState(mockDrawable); in testClearCache_switchLocale_clearCacheIconAndLabel() [all …]
|
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | ServiceStateTrackerTest.java | 1638 Drawable mockDrawable = mock(Drawable.class); in testSetPsNotifications() local 1640 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetPsNotifications() 1670 Drawable mockDrawable = mock(Drawable.class); in testSetCsNotifications() local 1672 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetCsNotifications() 1703 Drawable mockDrawable = mock(Drawable.class); in testSetCsNormalNotifications() local 1705 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetCsNormalNotifications() 1735 Drawable mockDrawable = mock(Drawable.class); in testSetCsEmergencyNotifications() local 1737 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetCsEmergencyNotifications() 1769 Drawable mockDrawable = mock(Drawable.class); in testSetNotificationsForGroupedSubs() local 1771 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetNotificationsForGroupedSubs()
|