Searched refs:mockClock (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardStatusViewControllerTest.java | 100 ClockController mockClock = mock(ClockController.class); in updatePosition_primaryClockAnimation() local 101 when(mKeyguardClockSwitchController.getClock()).thenReturn(mockClock); in updatePosition_primaryClockAnimation() 102 when(mockClock.getConfig()).thenReturn(new ClockConfig("MOCK", "", "", false, true, false)); in updatePosition_primaryClockAnimation() 115 ClockController mockClock = mock(ClockController.class); in updatePosition_alternateClockAnimation() local 116 when(mKeyguardClockSwitchController.getClock()).thenReturn(mockClock); in updatePosition_alternateClockAnimation() 117 when(mockClock.getConfig()).thenReturn(new ClockConfig("MOCK", "", "", true, true, false)); in updatePosition_alternateClockAnimation()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/clocks/ |
D | ClockRegistryTest.kt | 69 @Mock private lateinit var mockClock: ClockController variable in com.android.systemui.shared.clocks.ClockRegistryTest 218 .addClock("clock_1", { mockClock }, { mockThumbnail }) in clockIdConflict_ErrorWithoutCrash_unloadDuplicate() 219 .addClock("clock_2", { mockClock }, { mockThumbnail }) in clockIdConflict_ErrorWithoutCrash_unloadDuplicate() 239 assertEquals(registry.createExampleClock("clock_1"), mockClock) in clockIdConflict_ErrorWithoutCrash_unloadDuplicate() 240 assertEquals(registry.createExampleClock("clock_2"), mockClock) in clockIdConflict_ErrorWithoutCrash_unloadDuplicate() 255 .addClock("clock_3", { mockClock }) in createCurrentClock_pluginConnected() 264 assertEquals(mockClock, clock) in createCurrentClock_pluginConnected() 275 .addClock("clock_3", { mockClock }) in activeClockId_changeAfterPluginConnected() 317 .addClock("clock_3", { mockClock }) in pluginRemoved_clockAndListChanged()
|