/packages/services/Telephony/tests/src/com/android/phone/ |
D | ImsStateCallbackControllerTest.java | 40 import static org.mockito.Mockito.times; 204 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_DISCONNECTED); in testMmTelRegisterThenUnregisterCallback() 220 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_DISCONNECTED); in testMmTelConnectionUnavailable() 225 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_NOT_READY); in testMmTelConnectionUnavailable() 230 verify(mCallback0, times(1)).onUnavailable(REASON_NO_IMS_SERVICE_CONFIGURED); in testMmTelConnectionUnavailable() 246 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_DISCONNECTED); in testMmTelConnectionReady() 247 verify(mCallback0, times(0)).onAvailable(); in testMmTelConnectionReady() 267 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_DISCONNECTED); in testMmTelIgnoreDuplicatedConsecutiveReason() 272 verify(mCallback0, times(1)).onUnavailable(REASON_NO_IMS_SERVICE_CONFIGURED); in testMmTelIgnoreDuplicatedConsecutiveReason() 277 verify(mCallback0, times(1)).onUnavailable(REASON_NO_IMS_SERVICE_CONFIGURED); in testMmTelIgnoreDuplicatedConsecutiveReason() [all …]
|
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/ |
D | aggregate.py | 50 times = {} 54 times[app_phase] = {} 57 times[app_phase][phase] = {} 60 times[phase] = {} 87 times[app_phase][phase][layer] = zero_to_nan_if_missing(t0, phase, layer) 89 times[phase][layer] = zero_to_nan_if_missing(t, phase, layer) 90 if not times[PHASE_OVERALL][layer]: 91 times[PHASE_OVERALL][layer] = sum(nan_to_zero(times[phase][layer]) for phase in phases) 94 times[phase][LAYER_TOTAL] = max_ignoring_nans(times[phase].values()) 97 times[app_phase][phase][LAYER_TOTAL] = max_ignoring_nans(times[app_phase][phase].values()) [all …]
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/ |
D | MigrationBroadcastSchedulingTest.java | 32 import static org.mockito.Mockito.times; 141 verify(mMigrationBroadcastScheduler, times(1)).scheduleNewJobs(any()); in testPrescheduleNewJobs_updateMigrationState_newJobsScheduled() 154 verifyPeriodicJobSchedulerInvocation(mIntervalGreaterThanMinPeriod, times(1)); in testScheduling_migrationInProgressIntervalGreaterThanMinimum_periodicJobScheduled() 166 verifyPeriodicJobSchedulerInvocation(mMinPeriodMillis, times(1)); in testScheduling_migrationInProgressIntervalEqualToMinimum_periodicJobScheduled() 183 times(1)); in testScheduling_migrationInProgressIntervalLessThanMinimum_requiredCountJobsScheduled() 195 verifyPeriodicJobSchedulerInvocation(mIntervalGreaterThanMinPeriod, times(1)); in testScheduling_migrationAllowedIntervalGreaterThanMinimum_periodicJobScheduled() 209 verifyPeriodicJobSchedulerInvocation(mIntervalGreaterThanMinPeriod, times(0)); in testScheduling_requiredCountEqualToZeroIntervalGreaterThanMinimum_noJobScheduled() 213 times(0)); in testScheduling_requiredCountEqualToZeroIntervalGreaterThanMinimum_noJobScheduled() 227 verifyPeriodicJobSchedulerInvocation(mMinPeriodMillis, times(0)); in testScheduling_requiredCountEqualToZeroIntervalEqualToMinimum_noJobScheduled() 231 times(0)); in testScheduling_requiredCountEqualToZeroIntervalEqualToMinimum_noJobScheduled() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandlerTest.java | 123 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcStart() 124 verify(mMockNativeInterface, times(0)).informAudioFocusState(1); in testSrcStart() 125 verify(mMockNativeInterface, times(0)).informAudioTrackGain(1.0f); in testSrcStart() 135 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcStop() 136 verify(mMockNativeInterface, times(0)).informAudioFocusState(1); in testSrcStop() 137 verify(mMockNativeInterface, times(0)).informAudioTrackGain(1.0f); in testSrcStop() 146 verify(mMockAudioManager, times(1)).requestAudioFocus(any()); in testSnkPlay() 155 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSnkPause() 156 verify(mMockNativeInterface, times(0)).informAudioFocusState(1); in testSnkPause() 157 verify(mMockNativeInterface, times(0)).informAudioTrackGain(1.0f); in testSnkPause() [all …]
|
/packages/modules/Uwb/framework/tests/src/android/uwb/ |
D | RangingSessionTest.java | 34 import static org.mockito.Mockito.times; 87 verify(callback, times(1)).onOpened(eq(session)); in testOnRangingOpened_OnOpenSuccessCalled() 88 verify(callback, times(0)).onClosed(anyInt(), any()); in testOnRangingOpened_OnOpenSuccessCalled() 103 verify(callback, times(1)).onOpened(eq(session)); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled() 104 verify(callback, times(0)).onClosed(anyInt(), any()); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled() 107 verify(callback, times(1)).onServiceDiscovered(eq(PARAMS)); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled() 110 verify(callback, times(1)).onServiceConnected(eq(PARAMS)); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled() 123 verify(callback, times(1)).onOpened(eq(session)); in testOnRangingOpened_CannotOpenClosedSession() 124 verify(callback, times(0)).onClosed(anyInt(), any()); in testOnRangingOpened_CannotOpenClosedSession() 128 verify(callback, times(1)).onOpened(eq(session)); in testOnRangingOpened_CannotOpenClosedSession() [all …]
|
D | RangingManagerTest.java | 26 import static org.mockito.Mockito.times; 75 verify(adapter, times(1)) in testOpenSession_OpenRangingInvoked() 86 verify(adapter, times(1)) in testOpenSession_validChipId_OpenRangingInvoked() 118 verify(adapter, times(0)) in testOpenSession_invalidChipId_IllegalArgumentException() 129 verify(callback, times(0)).onOpened(any()); in testOnRangingOpened_InvalidSessionHandle() 143 verify(adapter, times(1)) in testOnRangingOpened_MultipleSessionsRegistered() 154 verify(adapter, times(2)) in testOnRangingOpened_MultipleSessionsRegistered() 164 verify(callback1, times(1)).onOpened(any()); in testOnRangingOpened_MultipleSessionsRegistered() 165 verify(callback2, times(0)).onOpened(any()); in testOnRangingOpened_MultipleSessionsRegistered() 168 verify(callback1, times(1)).onOpened(any()); in testOnRangingOpened_MultipleSessionsRegistered() [all …]
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/ |
D | GattTransportClientProviderTest.java | 29 import static org.mockito.Mockito.times; 192 verify(mMockBluetoothDevice, times(1)).connectGatt(any(), anyBoolean(), any(), anyInt()); in testStartAndStop() 195 verify(mMockBluetoothGatt, times(1)).disconnect(); in testStartAndStop() 198 verify(mMockBluetoothGatt, times(1)).connect(); in testStartAndStop() 206 verify(mMockBluetoothDevice, times(1)).connectGatt(any(), anyBoolean(), any(), anyInt()); in testStart_successAndRejectRestart() 208 verify(mMockBluetoothDevice, times(1)).connectGatt(any(), anyBoolean(), any(), anyInt()); in testStart_successAndRejectRestart() 217 verify(mMockBluetoothDevice, times(1)).connectGatt(any(), anyBoolean(), any(), anyInt()); in testStop_successAndRejectRestop() 219 verify(mMockBluetoothGatt, times(1)).disconnect(); in testStop_successAndRejectRestop() 221 verify(mMockBluetoothGatt, times(1)).disconnect(); in testStop_successAndRejectRestop() 315 verify(mMockTransportClientCallback, times(1)).onProcessingStarted(); in startProcessing() [all …]
|
D | GattTransportServerProviderTest.java | 27 import static org.mockito.Mockito.times; 155 verify(mMockBluetoothManager, times(1)).openGattServer(eq(mMockContext), captor.capture()); in setUp() 164 verify(mMockBluetoothGattServer, times(1)).addService(any()); in testStart_failed() 170 verify(mMockBluetoothGattServer, times(1)).addService(any()); in testStart_successAndRejectRestart() 172 verify(mMockBluetoothGattServer, times(1)).addService(any()); in testStart_successAndRejectRestart() 179 verify(mMockBluetoothGattServer, times(1)).addService(any()); in testStop_failed() 181 verify(mMockBluetoothGattServer, times(1)).removeService(any()); in testStop_failed() 187 verify(mMockBluetoothGattServer, times(1)).addService(any()); in testStop_successAndRejectRestop() 189 verify(mMockBluetoothGattServer, times(1)).removeService(any()); in testStop_successAndRejectRestop() 191 verify(mMockBluetoothGattServer, times(1)).removeService(any()); in testStop_successAndRejectRestop() [all …]
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/taskbar/ |
D | TaskbarNavButtonControllerTest.java | 23 import static org.mockito.Mockito.times; 92 verify(mockSystemUiProxy, times(1)).onBackPressed(); in testPressBack() 98 verify(mockSystemUiProxy, times(1)).onImeSwitcherPressed(); in testPressImeSwitcher() 104 verify(mockSystemUiProxy, times(1)) in testPressA11yShortClick() 111 verify(mockSystemUiProxy, times(1)).notifyAccessibilityButtonLongClicked(); in testPressA11yLongClick() 120 verify(mockAssistUtils, times(1)).tryStartAssistOverride(anyInt()); in testLongPressHome_enabled_withoutOverride() 121 verify(mockSystemUiProxy, times(1)).startAssistant(any()); in testLongPressHome_enabled_withoutOverride() 130 verify(mockAssistUtils, times(1)).tryStartAssistOverride(anyInt()); in testLongPressHome_enabled_withOverride() 157 verify(mockCommandHelper, times(1)).addCommand(TYPE_HOME); in testPressHome() 163 verify(mockCommandHelper, times(1)).addCommand(TYPE_TOGGLE); in testPressRecents() [all …]
|
D | FallbackTaskbarUIControllerTest.kt | 29 import org.mockito.Mockito.times 59 verify(taskbarDragController, times(1)).setDisallowGlobalDrag(true) in stateTransitionComplete_stateDefault() 60 verify(taskbarAllAppsController, times(1)).setDisallowGlobalDrag(true) in stateTransitionComplete_stateDefault() 62 verify(taskbarDragController, times(1)).setDisallowLongClick(false) in stateTransitionComplete_stateDefault() 63 verify(taskbarAllAppsController, times(1)).setDisallowLongClick(false) in stateTransitionComplete_stateDefault() 65 verify(taskbarPopupController, times(1)).setAllowInitialSplitSelection(true) in stateTransitionComplete_stateDefault() 72 verify(taskbarDragController, times(1)).setDisallowGlobalDrag(false) in stateTransitionComplete_stateSplitSelect() 73 verify(taskbarAllAppsController, times(1)).setDisallowGlobalDrag(false) in stateTransitionComplete_stateSplitSelect() 75 verify(taskbarDragController, times(1)).setDisallowLongClick(true) in stateTransitionComplete_stateSplitSelect() 76 verify(taskbarAllAppsController, times(1)).setDisallowLongClick(true) in stateTransitionComplete_stateSplitSelect() [all …]
|
/packages/modules/ImsMedia/tests/unit/src/com/android/telephony/imsmedia/ |
D | AudioSessionTest.java | 21 import static org.mockito.Mockito.times; 121 verify(audioService, times(1)).openSession(eq(SESSION_ID), eq(params)); in testOpenSession() 128 verify(audioService, times(1)).closeSession(eq(SESSION_ID)); in testCloseSession() 137 verify(audioLocalSession, times(1)).modifySession(eq(config)); in testModifySession() 144 verify(callback, times(1)).onModifySessionResponse(eq(config), eq(SUCCESS)); in testModifySession() 154 verify(callback, times(1)).onModifySessionResponse(eq(config), eq(NO_RESOURCES)); in testModifySession() 166 verify(audioLocalSession, times(1)).addConfig(eq(config)); in testAddConfig() 173 verify(callback, times(1)).onAddConfigResponse(eq(config), eq(SUCCESS)); in testAddConfig() 183 verify(callback, times(1)).onAddConfigResponse(eq(config), eq(NO_RESOURCES)); in testAddConfig() 195 verify(audioLocalSession, times(1)).deleteConfig(eq(config)); in testDeleteConfig() [all …]
|
D | VideoSessionTest.java | 21 import static org.mockito.Mockito.times; 126 verify(mVideoService, times(1)).openSession(eq(SESSION_ID), eq(params)); in testOpenSession() 133 verify(mVideoService, times(1)).closeSession(eq(SESSION_ID)); in testCloseSession() 142 verify(mVideoLocalSession, times(1)).modifySession(eq(config)); in testModifySession() 149 verify(mCallback, times(1)).onModifySessionResponse(eq(config), eq(SUCCESS)); in testModifySession() 159 verify(mCallback, times(1)).onModifySessionResponse(eq(config), eq(NO_RESOURCES)); in testModifySession() 169 verify(mVideoLocalSession, times(1)).setPreviewSurface(eq(PREVIEW_SURFACE)); in testSurfaces() 173 verify(mVideoLocalSession, times(1)).setDisplaySurface(eq(DISPLAY_SURFACE)); in testSurfaces() 182 verify(mVideoLocalSession, times(1)).setMediaQualityThreshold(eq(threshold)); in testSetMediaQualityThreshold() 189 verify(mVideoLocalSession, times(1)).requestVideoDataUsage(); in testRequestVideoDataUsage() [all …]
|
D | AudioOffloadTest.java | 26 import static org.mockito.Mockito.times; 126 verify(offloadService, times(1)).openSession(eq(SESSION_ID), eq(params)); in testOpenSession() 128 verify(imsMedia, times(1)).openSession(eq(SESSION_ID), any(), eq(null)); in testOpenSession() 141 verify(offloadService, times(1)).closeSession(eq(SESSION_ID)); in testCloseSession() 154 verify(imsMediaSession, times(1)).modifySession(argumentCaptor.capture()); in testModifySession() 169 verify(callback, times(1)).onModifySessionResponse(eq(inputAudioConfig), eq(SUCCESS)); in testModifySession() 178 verify(callback, times(1)).onModifySessionResponse( in testModifySession() 195 verify(imsMediaSession, times(1)).modifySession(argumentCaptor.capture()); in testAddConfig() 210 verify(callback, times(1)).onModifySessionResponse(eq(inputAudioConfig), eq(SUCCESS)); in testAddConfig() 219 verify(callback, times(1)).onModifySessionResponse(eq(inputAudioConfig), eq(NO_MEMORY)); in testAddConfig() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | DefaultDialerCacheTest.java | 45 import static org.mockito.Mockito.times; 80 verify(mContext, times(2)).registerReceiverAsUser( in setUp() 123 verify(mRoleManagerAdapter, times(4)) in testThreeUsers() 125 verify(mRoleManagerAdapter, times(2)) in testThreeUsers() 127 verify(mRoleManagerAdapter, times(2)) in testThreeUsers() 143 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER0)); in testDialer1PackageChanged() 144 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER1)); in testDialer1PackageChanged() 145 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER2)); in testDialer1PackageChanged() 160 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER0)); in testRandomOtherPackageChanged() 161 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER1)); in testRandomOtherPackageChanged() [all …]
|
D | CallRedirectionProcessorTest.java | 64 import static org.mockito.Mockito.times; 199 verify(mContext, times(0)).bindServiceAsUser(any(Intent.class), in testNoUserDefinedServiceNoCarrierSerivce() 201 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), eq(mHandle), in testNoUserDefinedServiceNoCarrierSerivce() 214 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testCarrierServiceTimeoutNoUserDefinedService() 216 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService() 221 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService() 234 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutNoCarrierService() 236 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService() 242 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService() 249 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), any(), in testUserDefinedServiceTimeoutNoCarrierService() [all …]
|
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/ |
D | QnsEventDispatcherTest.java | 149 verify(mMockMessage, times(1)).sendToTarget(); in testOnReceivedCarrierConfigChangedIntent() 158 verify(mMockMessage2, times(1)).sendToTarget(); in testOnReceivedCarrierConfigChangedIntent() 208 verify(mMockMessage, times(1)).sendToTarget(); in testOnSimLoadedStateEvent() 237 verify(mMockMessage, times(1)).sendToTarget(); in testOnSimUnknownStateEvent() 294 verify(mMockMessage, times(1)).sendToTarget(); in testOnAirplaneModeEvent() 300 verify(mMockMessage, times(1)).sendToTarget(); in testOnAirplaneModeEvent() 306 verify(mMockMessage2, times(1)).sendToTarget(); in testOnAirplaneModeEvent() 312 verify(mMockMessage2, times(1)).sendToTarget(); in testOnAirplaneModeEvent() 330 verify(mMockMessage, times(1)).sendToTarget(); in testOnWifiStateChangedEvent() 338 verify(mMockMessage, times(1)).sendToTarget(); in testOnWifiStateChangedEvent() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | BackgroundJobsManagerTest.java | 40 import static org.mockito.Mockito.times; 311 verify(mockJobScheduler, times(1)).cancel(eq(MAINTENANCE_JOB.getJobId())); in testUnscheduleAllBackgroundJobs() 312 verify(mockJobScheduler, times(1)).cancel(eq(TOPICS_EPOCH_JOB.getJobId())); in testUnscheduleAllBackgroundJobs() 313 verify(mockJobScheduler, times(1)) in testUnscheduleAllBackgroundJobs() 315 verify(mockJobScheduler, times(1)).cancel(eq(MEASUREMENT_DELETE_EXPIRED_JOB.getJobId())); in testUnscheduleAllBackgroundJobs() 316 verify(mockJobScheduler, times(1)) in testUnscheduleAllBackgroundJobs() 318 verify(mockJobScheduler, times(1)).cancel(eq(MEASUREMENT_ATTRIBUTION_JOB.getJobId())); in testUnscheduleAllBackgroundJobs() 319 verify(mockJobScheduler, times(1)) in testUnscheduleAllBackgroundJobs() 321 verify(mockJobScheduler, times(1)) in testUnscheduleAllBackgroundJobs() 323 verify(mockJobScheduler, times(1)) in testUnscheduleAllBackgroundJobs() [all …]
|
/packages/modules/Connectivity/tests/unit/java/android/net/nsd/ |
D | NsdManagerTest.java | 31 import static org.mockito.Mockito.times; 166 verify(listener, timeout(mTimeoutMs).times(1)).onResolveFailed(request, err); in doTestResolveService() 170 verify(mServiceConn, times(2)).resolveService(req.capture(), any())); in doTestResolveService() 172 verify(listener, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in doTestResolveService() 189 verify(mServiceConn, times(2)).resolveService(req.capture(), any())); in doTestParallelResolveService() 194 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in doTestParallelResolveService() 195 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in doTestParallelResolveService() 214 verify(mServiceConn, times(2)).registerService(req.capture(), any())); in doTestRegisterService() 218 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceRegistered(request2); in doTestRegisterService() 222 verify(listener1, timeout(mTimeoutMs).times(1)).onRegistrationFailed(request1, err); in doTestRegisterService() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | AsyncRegistrationQueueRunnerTest.java | 30 import static org.mockito.Mockito.times; 284 verify(mAsyncSourceFetcher, times(1)) in test_runAsyncRegistrationQueueWorker_appSource_success() 286 verify(mMeasurementDao, times(1)).insertEventReport(any(EventReport.class)); in test_runAsyncRegistrationQueueWorker_appSource_success() 287 verify(mMeasurementDao, times(1)).insertSource(any(Source.class)); in test_runAsyncRegistrationQueueWorker_appSource_success() 288 verify(mMeasurementDao, times(2)).insertAsyncRegistration(any(AsyncRegistration.class)); in test_runAsyncRegistrationQueueWorker_appSource_success() 291 verify(mMeasurementDao, times(1)).insertOrUpdateKeyValueData(redirectCountCaptor.capture()); in test_runAsyncRegistrationQueueWorker_appSource_success() 293 verify(mMeasurementDao, times(1)).deleteAsyncRegistration(any(String.class)); in test_runAsyncRegistrationQueueWorker_appSource_success() 345 verify(mAsyncSourceFetcher, times(1)) in runAsyncRegistrationQueueWorker_appSource_defaultRegistration_redirectTypeList() 347 verify(mMeasurementDao, times(1)).insertEventReport(any(EventReport.class)); in runAsyncRegistrationQueueWorker_appSource_defaultRegistration_redirectTypeList() 348 verify(mMeasurementDao, times(1)).insertSource(any(Source.class)); in runAsyncRegistrationQueueWorker_appSource_defaultRegistration_redirectTypeList() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/ |
D | EventReportingJobHandlerTest.java | 24 import static org.mockito.Mockito.times; 153 verify(mMeasurementDao, times(1)).markEventReportStatus(any(), anyInt()); in testSendReportForPendingReportSuccess() 154 verify(mSpyEventReportingJobHandler, times(1)) in testSendReportForPendingReportSuccess() 156 verify(mTransaction, times(2)).begin(); in testSendReportForPendingReportSuccess() 157 verify(mTransaction, times(2)).end(); in testSendReportForPendingReportSuccess() 197 verify(mMeasurementDao, times(1)).markEventDebugReportDelivered(any()); in testSendReportForPendingDebugReportSuccess() 198 verify(mSpyDebugEventReportingJobHandler, times(1)) in testSendReportForPendingDebugReportSuccess() 200 verify(mTransaction, times(2)).begin(); in testSendReportForPendingDebugReportSuccess() 201 verify(mTransaction, times(2)).end(); in testSendReportForPendingDebugReportSuccess() 241 verify(mMeasurementDao, times(1)).markEventReportStatus(any(), anyInt()); in testSendReportForPendingReportSuccessSingleTriggerDebugKey() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | PhonePolicyTest.java | 186 verify(mLeAudioService, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testProcessInitProfilePriorities_LeAudioDisabledByDefault() 188 verify(mA2dpService, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testProcessInitProfilePriorities_LeAudioDisabledByDefault() 190 verify(mHeadsetService, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testProcessInitProfilePriorities_LeAudioDisabledByDefault() 195 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testProcessInitProfilePriorities_LeAudioDisabledByDefault() 198 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testProcessInitProfilePriorities_LeAudioDisabledByDefault() 201 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testProcessInitProfilePriorities_LeAudioDisabledByDefault() 207 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testProcessInitProfilePriorities_LeAudioDisabledByDefault() 210 verify(mA2dpService, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)) in testProcessInitProfilePriorities_LeAudioDisabledByDefault() 212 verify(mHeadsetService, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)) in testProcessInitProfilePriorities_LeAudioDisabledByDefault() 217 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)) in testProcessInitProfilePriorities_LeAudioDisabledByDefault() [all …]
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | NavigationBarRotationContextTest.java | 22 import static org.mockito.Mockito.times; 72 verify(mRotationButtonController, times(1)) in testOnInvalidRotationProposal() 80 verify(mRotationButtonController, times(1)) in testOnSameRotationProposal() 90 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav() 92 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav() 98 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav() 100 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav() 105 verify(mRotationButtonController, times(1)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav() 113 verify(mRotationButtonController, times(0)) in testOnRotationProposalShowButton() 115 verify(mRotationButtonController, times(0)) in testOnRotationProposalShowButton() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | InterfaceConflictManagerTest.java | 31 import static org.mockito.Mockito.times; 276 verify(mStateMachine, times(1)).transitionTo(mWaitingState); in testUserApproved() 277 verify(mStateMachine, times(1)).deferMessage(msg); in testUserApproved() 278 verify(mWifiDialogManager, times(1)).createSimpleDialog( in testUserApproved() 280 verify(mDialogHandle, times(1)).launchDialog(); in testUserApproved() 316 verify(mStateMachine, times(1)).transitionTo(mWaitingState); in testUserRejected() 317 verify(mStateMachine, times(1)).deferMessage(msg); in testUserRejected() 318 verify(mWifiDialogManager, times(1)).createSimpleDialog( in testUserRejected() 320 verify(mDialogHandle, times(1)).launchDialog(); in testUserRejected() 341 verify(mStateMachine, times(1)).transitionTo(mWaitingState); in testUserApprovedWithDeferredMessages() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothPairingDetailTest.java | 24 import static org.mockito.Mockito.times; 138 verify(mFragment, times(1)).startScanning(); in onScanningStateChanged_restartScanAfterInitialScanning() 139 verify(mAvailableDevicesCategory, times(1)).setProgress(true); in onScanningStateChanged_restartScanAfterInitialScanning() 143 verify(mFragment, times(2)).startScanning(); in onScanningStateChanged_restartScanAfterInitialScanning() 144 verify(mAvailableDevicesCategory, times(2)).setProgress(true); in onScanningStateChanged_restartScanAfterInitialScanning() 148 verify(mFragment, times(2)).startScanning(); in onScanningStateChanged_restartScanAfterInitialScanning() 149 verify(mAvailableDevicesCategory, times(3)).setProgress(true); in onScanningStateChanged_restartScanAfterInitialScanning() 154 verify(mFragment, times(1)).stopScanning(); in onScanningStateChanged_restartScanAfterInitialScanning() 158 verify(mAvailableDevicesCategory, times(4)).setProgress(true); in onScanningStateChanged_restartScanAfterInitialScanning() 163 verify(mAvailableDevicesCategory, times(1)).setProgress(false); in onScanningStateChanged_restartScanAfterInitialScanning() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | OffloadControllerTest.java | 54 import static org.mockito.Mockito.times; 208 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in startOffloadController() 209 inOrder.verify(mHardware, times(expectStart ? 1 : 0)).initOffload( in startOffloadController() 220 inOrder.verify(mHardware, times(1)).stopOffload(); in stopOffloadController() 272 inOrder.verify(mHardware, times(1)).setLocalPrefixes(mStringArrayCaptor.capture()); in testSetUpstreamLinkPropertiesWorking() 295 inOrder.verify(mHardware, times(1)).setUpstreamParameters( in testSetUpstreamLinkPropertiesWorking() 297 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking() 312 inOrder.verify(mHardware, times(1)).setUpstreamParameters( in testSetUpstreamLinkPropertiesWorking() 314 inOrder.verify(mHardware, times(1)).getForwardedStats(eq(testIfName)); in testSetUpstreamLinkPropertiesWorking() 315 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking() [all …]
|