/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/ |
D | NetworkTimeUpdateServiceTest.java | 75 RefreshCallbacks mockCallback = mock(RefreshCallbacks.class); in engineImpl_refreshAndRescheduleIfRequired_nullNetwork() local 77 engine.refreshAndRescheduleIfRequired(null, "Test", mockCallback); in engineImpl_refreshAndRescheduleIfRequired_nullNetwork() 81 verifyNoMoreInteractions(mockCallback); in engineImpl_refreshAndRescheduleIfRequired_nullNetwork() 106 RefreshCallbacks mockCallback = mock(RefreshCallbacks.class); in engineImpl_refreshAndRescheduleIfRequired_success() local 108 engine.refreshAndRescheduleIfRequired(mDummyNetwork, "Test", mockCallback); in engineImpl_refreshAndRescheduleIfRequired_success() 115 verify(mockCallback).submitSuggestion(expectedSuggestion); in engineImpl_refreshAndRescheduleIfRequired_success() 117 verify(mockCallback).scheduleNextRefresh( in engineImpl_refreshAndRescheduleIfRequired_success() 141 RefreshCallbacks mockCallback = mock(RefreshCallbacks.class); in engineImpl_refreshAndRescheduleIfRequired_failThenFailRepeatedly() local 144 engine.refreshAndRescheduleIfRequired(mDummyNetwork, "Test", mockCallback); in engineImpl_refreshAndRescheduleIfRequired_failThenFailRepeatedly() 150 verify(mockCallback, never()).submitSuggestion(any()); in engineImpl_refreshAndRescheduleIfRequired_failThenFailRepeatedly() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | CastControllerImplTest.java | 61 Callback mockCallback = mock(Callback.class); in testAddCallback() local 63 mController.addCallback(mockCallback); in testAddCallback() 64 verify(mockCallback, times(1)).onCastDevicesChanged(); in testAddCallback() 69 Callback mockCallback = mock(Callback.class); in testRemoveCallback() local 71 mController.addCallback(mockCallback); in testRemoveCallback() 72 verify(mockCallback, times(1)).onCastDevicesChanged(); in testRemoveCallback() 74 mController.removeCallback(mockCallback); in testRemoveCallback() 75 verify(mockCallback, times(1)).onCastDevicesChanged(); in testRemoveCallback() 80 Callback mockCallback = mock(Callback.class); in testRemoveCallbackFromEmptyList() local 82 mController.removeCallback(mockCallback); in testRemoveCallbackFromEmptyList() [all …]
|
D | ZenModeControllerImplTest.java | 98 Callback mockCallback = mock(Callback.class); in testRemoveDuringCallback() local 99 mController.addCallback(mockCallback); in testRemoveDuringCallback() 101 verify(mockCallback).onConfigChanged(eq(null)); in testRemoveDuringCallback()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/cpu/ |
D | CpuMonitorServiceTest.java | 140 CpuMonitorInternal.CpuAvailabilityCallback mockCallback = mock( in testAddRemoveCpuAvailabilityCallbackOnDebugBuild() local 144 TEST_MONITORING_CONFIG_ALL_CPUSET, mockCallback); in testAddRemoveCpuAvailabilityCallbackOnDebugBuild() 154 verify(mockCallback, timeout(ASYNC_CALLBACK_WAIT_TIMEOUT_MILLISECONDS)) in testAddRemoveCpuAvailabilityCallbackOnDebugBuild() 157 verify(mockCallback, never()).onAvailabilityChanged(any()); in testAddRemoveCpuAvailabilityCallbackOnDebugBuild() 159 mLocalService.removeCpuAvailabilityCallback(mockCallback); in testAddRemoveCpuAvailabilityCallbackOnDebugBuild() 173 CpuMonitorInternal.CpuAvailabilityCallback mockCallback = mock( in testAddRemoveCpuAvailabilityCallbackOnUserBuild() local 177 TEST_MONITORING_CONFIG_ALL_CPUSET, mockCallback); in testAddRemoveCpuAvailabilityCallbackOnUserBuild() 187 verify(mockCallback, timeout(ASYNC_CALLBACK_WAIT_TIMEOUT_MILLISECONDS)) in testAddRemoveCpuAvailabilityCallbackOnUserBuild() 190 verify(mockCallback, never()).onAvailabilityChanged(any()); in testAddRemoveCpuAvailabilityCallbackOnUserBuild() 192 mLocalService.removeCpuAvailabilityCallback(mockCallback); in testAddRemoveCpuAvailabilityCallbackOnUserBuild() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsListingControllerImplTest.kt | 79 private lateinit var mockCallback: ControlsListingController.ControlsListingCallback variable in com.android.systemui.controls.management.ControlsListingControllerImplTest 185 controller.addCallback(mockCallback) in testCallbackCalledWhenAdded() 187 verify(mockCallback).onServicesUpdated(any()) in testCallbackCalledWhenAdded() 188 reset(mockCallback) in testCallbackCalledWhenAdded() 193 verify(mockCallback, never()).onServicesUpdated(any()) in testCallbackCalledWhenAdded() 199 controller.addCallback(mockCallback) in testCallbackGetsList() 208 reset(mockCallback) in testCallbackGetsList() 214 verify(mockCallback).onServicesUpdated(capture(captor)) in testCallbackGetsList() 241 controller.addCallback(mockCallback) in testChangeUserSendsCorrectServiceUpdate() 248 reset(mockCallback) in testChangeUserSendsCorrectServiceUpdate() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/parsing/result/ |
D | ParseInputAndResultTest.kt | 58 private lateinit var mockCallback: ParseInput.Callback variable in android.content.pm.parsing.result.ParseInputAndResultTest 74 mockCallback = spy(TestCallback()) in createInput() 75 input = ParseTypeImpl(mockCallback) in createInput() 223 verify(mockCallback, times(1)).isChangeEnabled(anyLong(), anyString(), anyInt()) in multipleDisabledErrorsQueriesOnceEnableFirst() 227 verifyNoMoreInteractions(mockCallback) in multipleDisabledErrorsQueriesOnceEnableFirst() 237 verify(mockCallback, never()).isChangeEnabled(anyLong(), anyString(), anyInt()) in multipleDisabledErrorsQueriesOnceEnableSecond() 241 verify(mockCallback, times(1)).isChangeEnabled(anyLong(), anyString(), anyInt()) in multipleDisabledErrorsQueriesOnceEnableSecond() 245 verifyNoMoreInteractions(mockCallback) in multipleDisabledErrorsQueriesOnceEnableSecond()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | BrightnessRangeControllerTest.kt | 37 private val mockCallback = mock<Runnable>() constant in com.android.server.display.BrightnessRangeControllerTest 91 return BrightnessRangeController(mockHbmController, mockCallback, mockConfig, in createController()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowOrganizerTests.java | 1363 IWindowContainerTransactionCallback mockCallback = in testBLASTCallbackWithWindows() local 1365 int id = mWm.mAtmService.mWindowOrganizerController.startSyncWithOrganizer(mockCallback); in testBLASTCallbackWithWindows() 1371 verify(mockCallback, never()).onTransactionReady(anyInt(), any()); in testBLASTCallbackWithWindows() 1379 verify(mockCallback, never()).onTransactionReady(anyInt(), any()); in testBLASTCallbackWithWindows() 1391 verify(mockCallback).onTransactionReady(anyInt(), any()); in testBLASTCallbackWithWindows()
|