Searched refs:mMockJobManager (Results 1 – 3 of 3) sorted by relevance
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/ |
D | ImsEntitlementReceiverTest.java | 100 @Mock private JobManager mMockJobManager; field in ImsEntitlementReceiverTest 116 dependencies.jobManager = mMockJobManager; in setUp() 149 verify(mMockJobManager, times(1)).queryEntitlementStatusOnceNetworkReady(); in onReceive_simChanged_dataReset() 162 verify(mMockJobManager, never()).queryEntitlementStatusOnceNetworkReady(); in onReceive_simChanged_simPinLockedThenLoaded() 171 verify(mMockJobManager, times(1)).queryEntitlementStatusOnceNetworkReady(); in onReceive_simChanged_simPinLockedThenLoaded() 181 verify(mMockJobManager, never()).queryEntitlementStatusOnceNetworkReady(); in onReceive_theSameSim_dataNotReset() 193 verify(mMockJobManager, never()).queryEntitlementStatusOnceNetworkReady(); in onReceive_differentSlot_dataNotReset() 203 verify(mMockJobManager).queryEntitlementStatusOnceNetworkReady(); in onReceive_simChangedAndDifferentSlotId_dataReset() 211 verify(mMockJobManager).queryEntitlementStatusOnceNetworkReady(); in onReceive_isSystemUser_jobScheduled() 221 verify(mMockJobManager, never()).queryEntitlementStatusOnceNetworkReady(); in onReceive_notSystemUser_noJobScheduled() [all …]
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/ |
D | FederatedComputeManagingServiceDelegateTest.java | 77 @Mock FederatedComputeJobManager mMockJobManager; field in FederatedComputeManagingServiceDelegateTest 120 when(mMockJobManager.onTrainerStartCalled(anyString(), any())).thenReturn(STATUS_SUCCESS); in testSchedule_returnsSuccess() 132 when(mMockJobManager.onTrainerStartCalled(anyString(), any())) in testScheduleFailed() 145 when(mMockJobManager.onTrainerStartCalled(anyString(), any())) in testScheduleThrowsRTE() 158 when(mMockJobManager.onTrainerStartCalled(anyString(), any())) in testScheduleThrowsNPE() 235 when(mMockJobManager.onTrainerStopCalled(any(), anyString())).thenReturn(STATUS_SUCCESS); in testCancel_returnsSuccess() 242 when(mMockJobManager.onTrainerStopCalled(any(), any())).thenReturn(STATUS_INTERNAL_ERROR); in testCancelFails() 259 when(mMockJobManager.onTrainerStopCalled(any(), any())).thenThrow(RuntimeException.class); in testCancelThrowsRTE() 266 when(mMockJobManager.onTrainerStopCalled(any(), any())) in testCancelThrowsNPE() 387 return mMockJobManager; in getJobManager()
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/ |
D | FederatedComputeWorkerTest.java | 311 @Mock FederatedComputeJobManager mMockJobManager; field in FederatedComputeWorkerTest 380 mMockJobManager, in doBeforeEachTest() 392 when(mMockJobManager.onTrainingStarted(anyInt())).thenReturn(FEDERATED_TRAINING_TASK_1); in doBeforeEachTest() 420 when(mMockJobManager.onTrainingStarted(anyInt())).thenReturn(null); in testJobNonExist_returnsFail() 426 verify(mMockJobManager, never()) in testJobNonExist_returnsFail() 441 verify(mMockJobManager) in testTrainingConditionsCheckFailed_returnsFail() 470 verify(mMockJobManager) in testCheckinFails_throwsException() 487 verify(mMockJobManager) in testCheckinWithRetryRejection() 555 verify(mMockJobManager) in testCheckinWithUnAuthRejection_success() 582 verify(mMockJobManager) in testReportResultWithRejection() [all …]
|