/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/ |
D | WifiDetailPreferenceControllerTest.java | 32 import static org.mockito.Mockito.verify; 402 verify(mockSecurityPref).setSummary(SECURITY); in securityPreference_stringShouldBeSet() 411 verify(mockWifiManager, times(1)).getConnectionInfo(); in latestWifiInfo_shouldBeFetchedInDisplayPreferenceForConnectedNetwork() 420 verify(mockWifiManager, never()).getConnectionInfo(); in latestWifiInfo_shouldNotBeFetchedInDisplayPreferenceForDisconnectedNetwork() 429 verify(mockWifiManager, never()).getConnectionInfo(); in latestWifiInfo_shouldNotBeFetchedInDisplayPreferenceForNotInRangeNetwork() 438 verify(mockConnectivityManager, times(1)).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldBeFetchedInDisplayPreferenceForConnectedNetwork() 447 verify(mockConnectivityManager, never()).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldNotBeFetchedInDisplayPreferenceForDisconnectedNetwork() 456 verify(mockConnectivityManager, never()).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldNotBeFetchedInDisplayPreferenceForNotInRangeNetwork() 464 verify(mockConnectivityManager, times(1)).registerNetworkCallback( in networkCallback_shouldBeRegisteredOnResume() 474 verify(mockConnectivityManager, times(1)) in networkCallback_shouldBeUnregisteredOnPause() [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | TelephonyRcsServiceTest.java | 26 import static org.mockito.Mockito.verify; 89 verify(mFeatureControllerSlot0).addFeature(mMockUceSlot0, UserCapabilityExchangeImpl.class); in testUserCapabilityExchangePresenceConnected() 90 verify(mFeatureControllerSlot0).connect(); in testUserCapabilityExchangePresenceConnected() 97 verify(mFeatureControllerSlot0).addFeature(mMockUceSlot0, UserCapabilityExchangeImpl.class); in testUserCapabilityExchangeOptionsConnected() 98 verify(mFeatureControllerSlot0).connect(); in testUserCapabilityExchangeOptionsConnected() 105 verify(mFeatureControllerSlot0, never()).addFeature(mMockUceSlot0, in testNoFeaturesEnabled() 107 verify(mFeatureControllerSlot0, never()).connect(); in testNoFeaturesEnabled() 116 verify(mFeatureControllerSlot0, never()).addFeature(mMockUceSlot0, in testNoFeaturesEnabledCarrierConfigChanged() 118 verify(mFeatureControllerSlot0, never()).connect(); in testNoFeaturesEnabledCarrierConfigChanged() 119 verify(mFeatureControllerSlot0, never()).updateAssociatedSubscription(anyInt()); in testNoFeaturesEnabledCarrierConfigChanged() [all …]
|
D | RcsFeatureControllerTest.java | 29 import static org.mockito.Mockito.verify; 94 verify(mMockFeature).onRcsDisconnected(); in testRcsFeatureManagerConnectDisconnect() 98 verify(mFeatureManager).updateCapabilities(); in testRcsFeatureManagerConnectDisconnect() 99 verify(mFeatureManager).registerImsRegistrationCallback(any()); in testRcsFeatureManagerConnectDisconnect() 100 verify(mMockFeature).onRcsConnected(mFeatureManager); in testRcsFeatureManagerConnectDisconnect() 105 verify(mFeatureManager).unregisterImsRegistrationCallback(any()); in testRcsFeatureManagerConnectDisconnect() 106 verify(mMockFeature, times(2)).onRcsDisconnected(); in testRcsFeatureManagerConnectDisconnect() 116 verify(mMockFeature).onRcsConnected(mFeatureManager); in testFeatureManagerConnectedAddRemoveFeature() 120 verify(mMockFeature).onDestroy(); in testFeatureManagerConnectedAddRemoveFeature() 140 verify(mFeatureManager).registerImsRegistrationCallback(0, regCb); in testFeatureManagerConnectedRegister() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandlerTest.java | 92 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcStart() 93 verify(mMockA2dpSink, times(0)).informAudioFocusStateNative(1); in testSrcStart() 94 verify(mMockA2dpSink, times(0)).informAudioTrackGainNative(1.0f); in testSrcStart() 102 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcStop() 103 verify(mMockA2dpSink, times(0)).informAudioFocusStateNative(1); in testSrcStop() 104 verify(mMockA2dpSink, times(0)).informAudioTrackGainNative(1.0f); in testSrcStop() 111 verify(mMockAudioManager, times(1)).requestAudioFocus(any()); in testSnkPlay() 112 verify(mMockA2dpSink, times(1)).informAudioFocusStateNative(1); in testSnkPlay() 113 verify(mMockA2dpSink, times(1)).informAudioTrackGainNative(1.0f); in testSnkPlay() 120 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSnkPause() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/ |
D | VmsClientManagerTest.java | 34 import static org.mockito.Mockito.verify; 206 verify(mHal).setClientManager(mClientManager); in setUp() 220 verify(mContext, atLeast(0)).getSystemService(eq(Context.USER_SERVICE)); in tearDown() 221 verify(mContext, atLeast(0)).getResources(); in tearDown() 222 verify(mContext, atLeast(0)).getPackageManager(); in tearDown() 232 verify(mUserService).runOnUser0Unlock(mClientManager.mSystemUserUnlockedListener); in testInit() 234 verify(mUserService).addUserCallback(eq(mClientManager.mUserCallback)); in testInit() 242 verify(mUserService).removeUserCallback(mClientManager.mUserCallback); in testRelease() 271 verify(mSystemClientLog).logConnectionState(ConnectionState.CONNECTION_ERROR); in testSystemUserUnlocked_WrongPermission() 282 verify(mSystemClientLog, times(2)).logConnectionState(ConnectionState.CONNECTION_ERROR); in testSystemUserUnlocked_BindFailed() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/ |
D | BrowserPlayerWrapperTest.java | 74 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testWrap() 75 verify(mMockBrowser).connect(); in testWrap() 80 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_SUCCESS), eq(wrapper)); in testWrap() 81 verify(mMockBrowser).disconnect(); in testWrap() 89 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testConnect_Successful() 92 verify(mMockBrowser, times(1)).connect(); in testConnect_Successful() 94 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_SUCCESS), eq(wrapper)); in testConnect_Successful() 95 verify(mMockBrowser, times(1)).disconnect(); in testConnect_Successful() 103 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testConnect_Suspended() 106 verify(mMockBrowser, times(1)).connect(); in testConnect_Suspended() [all …]
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastConfigServiceTest.java | 26 import static org.mockito.Mockito.verify; 170 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber(anyInt(), in testEnableCellBroadcastRange() 192 verify(mMockedSmsService, times(1)).disableCellBroadcastRangeForSubscriber(anyInt(), in testDisableCellBroadcastRange() 217 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() 223 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() 229 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() 235 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() 241 verify(mMockedSmsService, times(1)).disableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() 249 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() 255 verify(mMockedSmsService, times(1)).enableCellBroadcastRangeForSubscriber( in testEnablingChannelsDefault() [all …]
|
D | CellBroadcastReceiverTest.java | 29 import static org.mockito.Mockito.verify; 132 verify(mIntent).getLongExtra(CellBroadcastReceiver.EXTRA_DELIVERY_TIME, -1); in testOnReceive_actionMarkAsRead() 133 verify(mCellBroadcastReceiver).getCellBroadcastTask(anyLong()); in testOnReceive_actionMarkAsRead() 142 verify(mCellBroadcastReceiver).initializeSharedPreference(); in testOnReceive_actionCarrierConfigChanged() 143 verify(mCellBroadcastReceiver).startConfigService(); in testOnReceive_actionCarrierConfigChanged() 144 verify(mCellBroadcastReceiver).enableLauncher(); in testOnReceive_actionCarrierConfigChanged() 151 verify(mCellBroadcastReceiver, never()).initializeSharedPreference(); in testOnReceive_cellbroadcastStartConfigAction() 152 verify(mCellBroadcastReceiver).startConfigService(); in testOnReceive_cellbroadcastStartConfigAction() 161 verify(mCellBroadcastReceiver, never()).initializeSharedPreference(); in testOnReceive_actionDefaultSmsSubscriptionChanged() 162 verify(mCellBroadcastReceiver).startConfigService(); in testOnReceive_actionDefaultSmsSubscriptionChanged() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/imei/ |
D | ImeiInfoDialogControllerTest.java | 33 import static org.mockito.Mockito.verify; 102 verify(mDialog, never()).setText(anyInt(), any()); in populateImeiInfo_invalidSlot_shouldSetNothing() 112 verify(mDialog).setText(ID_MEID_NUMBER_VALUE, MEID_NUMBER); in populateImeiInfo_cdmaLteEnabled_shouldSetMeidAndImeiAndMin() 113 verify(mDialog).setText(ID_MIN_NUMBER_VALUE, MIN_NUMBER); in populateImeiInfo_cdmaLteEnabled_shouldSetMeidAndImeiAndMin() 114 verify(mDialog).setText(ID_PRL_VERSION_VALUE, PRL_VERSION); in populateImeiInfo_cdmaLteEnabled_shouldSetMeidAndImeiAndMin() 115 verify(mDialog).setText(eq(ID_IMEI_VALUE), any()); in populateImeiInfo_cdmaLteEnabled_shouldSetMeidAndImeiAndMin() 116 verify(mDialog).setText(eq(ID_IMEI_SV_VALUE), any()); in populateImeiInfo_cdmaLteEnabled_shouldSetMeidAndImeiAndMin() 126 verify(mDialog).setText(ID_MEID_NUMBER_VALUE, MEID_NUMBER); in populateImeiInfo_cdmaLteDisabled_shouldSetMeidAndMinAndRemoveGsmSettings() 127 verify(mDialog).setText(ID_MIN_NUMBER_VALUE, MIN_NUMBER); in populateImeiInfo_cdmaLteDisabled_shouldSetMeidAndMinAndRemoveGsmSettings() 128 verify(mDialog).setText(ID_PRL_VERSION_VALUE, PRL_VERSION); in populateImeiInfo_cdmaLteDisabled_shouldSetMeidAndMinAndRemoveGsmSettings() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | RingerTest.java | 65 import static org.mockito.Mockito.verify; 165 verify(mockTonePlayer, never()).stopTone(); in testNoActionInTheaterMode() 166 verify(mockRingtonePlayer, never()).play(any(RingtoneFactory.class), any(Call.class), in testNoActionInTheaterMode() 168 verify(mockVibrator, never()) in testNoActionInTheaterMode() 183 verify(mockTonePlayer, never()).stopTone(); in testNoActionWithExternalRinger() 184 verify(mockRingtonePlayer, never()).play(any(RingtoneFactory.class), any(Call.class), in testNoActionWithExternalRinger() 186 verify(mockVibrator, never()) in testNoActionWithExternalRinger() 199 verify(mockTonePlayer, never()).stopTone(); in testNoActionWhenDialerRings() 200 verify(mockRingtonePlayer, never()).play(any(RingtoneFactory.class), any(Call.class), in testNoActionWhenDialerRings() 202 verify(mockVibrator, never()) in testNoActionWhenDialerRings() [all …]
|
D | CreateConnectionProcessorTest.java | 61 import static org.mockito.Mockito.verify; 157 verify(mMockCall).setConnectionManagerPhoneAccount(eq(pAHandle)); in testSimPhoneAccountSuccess() 158 verify(mMockCall).setTargetPhoneAccount(eq(pAHandle)); in testSimPhoneAccountSuccess() 159 verify(mMockCall).setConnectionService(eq(service)); in testSimPhoneAccountSuccess() 160 verify(service).createConnection(eq(mMockCall), any(CreateConnectionResponse.class)); in testSimPhoneAccountSuccess() 164 verify(mMockCreateConnectionResponse).handleCreateConnectionSuccess(mockCallIdMapper, null); in testSimPhoneAccountSuccess() 180 verify(service, never()).createConnection(eq(mMockCall), in testbadPhoneAccount() 182 verify(mMockCreateConnectionResponse).handleCreateConnectionFailure( in testbadPhoneAccount() 204 verify(mMockCall).setConnectionManagerPhoneAccount(eq(callManagerPAHandle)); in testConnectionManagerSuccess() 205 verify(mMockCall).setTargetPhoneAccount(eq(pAHandle)); in testConnectionManagerSuccess() [all …]
|
D | BluetoothPhoneServiceTest.java | 69 import static org.mockito.Mockito.verify; 143 verify(mMockCallsManager).answerCall(eq(mockCall), any(int.class)); in testHeadsetAnswerCall() 154 verify(mMockCallsManager,never()).answerCall(any(Call.class), any(int.class)); in testHeadsetAnswerCallNull() 165 verify(mMockCallsManager).disconnectCall(eq(mockCall)); in testHeadsetHangupCall() 176 verify(mMockCallsManager,never()).disconnectCall(any(Call.class)); in testHeadsetHangupCallNull() 187 verify(mMockCallsManager).playDtmfTone(eq(mockCall), eq((char) TEST_DTMF_TONE)); in testHeadsetSendDTMF() 188 verify(mMockCallsManager).stopDtmfTone(eq(mockCall)); in testHeadsetSendDTMF() 199 verify(mMockCallsManager,never()).playDtmfTone(any(Call.class), anyChar()); in testHeadsetSendDTMFNull() 200 verify(mMockCallsManager,never()).stopDtmfTone(any(Call.class)); in testHeadsetSendDTMFNull() 270 verify(mMockBluetoothHeadset).clccResponse(eq(1), eq(0), eq(0), eq(0), eq(false), in testListCurrentCallsOneCall() [all …]
|
D | CallAudioManagerTest.java | 64 import static org.mockito.Mockito.verify; 125 verify(mCallAudioModeStateMachine).sendMessageWithArgs( in testUnmuteOfSecondIncomingCall() 138 verify(mCallAudioModeStateMachine).sendMessageWithArgs( in testUnmuteOfSecondIncomingCall() 159 verify(mCallAudioRouteStateMachine, atLeastOnce()) in testUnmuteOfSecondIncomingCall() 187 verify(mCallAudioModeStateMachine).sendMessageWithArgs( 200 verify(mCallAudioModeStateMachine).sendMessageWithArgs( 222 verify(mCallAudioModeStateMachine).sendMessageWithArgs( 224 verify(mCallAudioModeStateMachine).sendMessageWithArgs( 257 verify(mCallAudioRouteStateMachine).sendMessageWithSessionInfo( 259 verify(mCallAudioModeStateMachine).sendMessageWithArgs( [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputServiceTest.java | 33 import static org.mockito.Mockito.verify; 110 verify(mDefaultMainListener).onKeyEvent(event); in ordinaryEvents_onMainDisplay_routedToInputManager() 117 verify(mDefaultMainListener, never()).onKeyEvent(any()); in ordinaryEvents_onInstrumentClusterDisplay_notRoutedToInputManager() 126 verify(listener).onKeyEvent(event); in ordinaryEvents_onInstrumentClusterDisplay_routedToListener() 143 verify(listener).onKeyEvent(event, InputHalService.DISPLAY_MAIN); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents() 144 verify(mDefaultMainListener, never()).onKeyEvent(any()); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents() 147 verify(listener).onKeyEvent(event, InputHalService.DISPLAY_INSTRUMENT_CLUSTER); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents() 148 verify(instrumentClusterListener, never()).onKeyEvent(any()); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents() 151 verify(listener).onKeyEvent(event, InputHalService.DISPLAY_MAIN); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents() 152 verify(mDefaultMainListener, never()).onKeyEvent(any()); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents() [all …]
|
D | VmsSubscriberServiceTest.java | 22 import static org.mockito.Mockito.verify; 78 verify(mBrokerService).addSubscriberListener(eq(mSubscriberService)); in setUp() 79 verify(mHal).setVmsSubscriberService(eq(mSubscriberService)); in setUp() 90 verify(mClientManager).addSubscriber(mSubscriberClient); in testAddVmsSubscriberToNotifications() 96 verify(mClientManager).removeSubscriber(mSubscriberClient); in testRemoveVmsSubscriberToNotifications() 102 verify(mClientManager).addSubscriber(mSubscriberClient); in testAddVmsSubscriber() 103 verify(mBrokerService).addSubscription(mSubscriberClient, LAYER); in testAddVmsSubscriber() 109 verify(mBrokerService).removeSubscription(mSubscriberClient, LAYER); in testRemoveVmsSubscriber() 116 verify(mClientManager).addSubscriber(mSubscriberClient); in testAddVmsSubscriberToPublisher() 117 verify(mBrokerService).addSubscription(mSubscriberClient, LAYER, PUBLISHER_ID); in testAddVmsSubscriberToPublisher() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
D | PreProvisioningControllerTest.java | 34 import static org.mockito.Mockito.verify; 184 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testManagedProfile() 185 verify(mEncryptionController).cancelEncryptionReminder(); in testManagedProfile() 198 verify(mUi).showErrorAndClose(eq(R.string.cant_add_work_profile), in testManagedProfile_provisioningNotAllowed() 209 verify(mUi).showErrorAndClose(eq(R.string.cant_set_up_device), in testManagedProfile_nullCallingPackage() 220 verify(mUi).showErrorAndClose(eq(R.string.cant_set_up_device), in testManagedProfile_invalidCallingPackage() 236 verify(mUi).requestEncryption(mParams); in testManagedProfile_withEncryption() 251 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testManagedProfile_afterEncryption() 252 verify(mEncryptionController).cancelEncryptionReminder(); in testManagedProfile_afterEncryption() 262 verify(mUi).showDeleteManagedProfileDialog(any(), any(), eq(TEST_USER_ID)); in testManagedProfile_withExistingProfile() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 223 verify(mObjectsFactory).makeSystemInterface(mHeadsetService); in setUp() 224 verify(mObjectsFactory).getNativeInterface(); in setUp() 225 verify(mNativeInterface).init(MAX_HEADSET_CONNECTIONS + 1, true /* inband ringtone */); in setUp() 286 verify(mObjectsFactory).makeStateMachine(device, in testConnectFromApi() 294 verify(mNativeInterface).connectHfp(device); in testConnectFromApi() 329 verify(mObjectsFactory).makeStateMachine(device, in testUnbondDevice_disconnectBeforeUnbond() 337 verify(mNativeInterface).connectHfp(device); in testUnbondDevice_disconnectBeforeUnbond() 355 verify(mObjectsFactory, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).destroyStateMachine( in testUnbondDevice_disconnectBeforeUnbond() 372 verify(mObjectsFactory).makeStateMachine(device, in testUnbondDevice_disconnectAfterUnbond() 378 verify(mNativeInterface, after(ASYNC_CALL_TIMEOUT_MILLIS)).connectHfp(device); in testUnbondDevice_disconnectAfterUnbond() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | ActiveDeviceManagerTest.java | 118 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in onlyA2dpConnected_setA2dpActive() 127 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in secondA2dpConnected_setSecondA2dpActive() 130 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpHeadsetDevice); in secondA2dpConnected_setSecondA2dpActive() 139 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in lastA2dpDisconnected_clearA2dpActive() 142 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(isNull()); in lastA2dpDisconnected_clearA2dpActive() 151 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in a2dpActiveDeviceSelected_setActive() 154 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpHeadsetDevice); in a2dpActiveDeviceSelected_setActive() 159 verify(mA2dpService, times(1)).setActiveDevice(mA2dpDevice); in a2dpActiveDeviceSelected_setActive() 169 verify(mHeadsetService, timeout(TIMEOUT_MS)).setActiveDevice(mHeadsetDevice); in onlyHeadsetConnected_setHeadsetActive() 178 verify(mHeadsetService, timeout(TIMEOUT_MS)).setActiveDevice(mHeadsetDevice); in secondHeadsetConnected_setSecondHeadsetActive() [all …]
|
D | PhonePolicyTest.java | 130 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS)) in testProcessInitProfilePriorities() 133 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS)) in testProcessInitProfilePriorities() 167 verify(mA2dpService, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connect(eq(bondedDevice)); in testAdapterOnAutoConnect() 168 verify(mHeadsetService, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connect(eq(bondedDevice)); in testAdapterOnAutoConnect() 207 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).setConnection( in testDisconnectNoAutoConnect() 209 verify(mDatabaseManager, never()).setConnection(eq(connectionOrder.get(1)), anyBoolean()); in testDisconnectNoAutoConnect() 210 verify(mDatabaseManager, never()).setConnection(eq(connectionOrder.get(2)), anyBoolean()); in testDisconnectNoAutoConnect() 211 verify(mDatabaseManager, never()).setConnection(eq(connectionOrder.get(3)), anyBoolean()); in testDisconnectNoAutoConnect() 222 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setConnection( in testDisconnectNoAutoConnect() 224 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setConnection( in testDisconnectNoAutoConnect() [all …]
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/inputmethod/ |
D | KeyboardFragmentTest.java | 22 import static org.mockito.Mockito.verify; 104 verify(mPreferenceScreen, atLeastOnce()).setTitle(R.string.system_keyboard); in testUpdateAutofillSettings_noCandiate() 105 verify(mPreferenceScreen, never()).setTitle(R.string.system_keyboard_autofill); in testUpdateAutofillSettings_noCandiate() 107 verify(mKeyboardCategory, atLeastOnce()).setVisible(false); in testUpdateAutofillSettings_noCandiate() 108 verify(mKeyboardCategory, never()).setVisible(true); in testUpdateAutofillSettings_noCandiate() 110 verify(mAutofillCategory, atLeastOnce()).setVisible(false); in testUpdateAutofillSettings_noCandiate() 111 verify(mAutofillCategory, never()).setVisible(true); in testUpdateAutofillSettings_noCandiate() 124 verify(mPreferenceScreen, atLeastOnce()).setTitle(R.string.system_keyboard_autofill); in testUpdateAutofillSettings_selected() 125 verify(mPreferenceScreen, never()).setTitle(R.string.system_keyboard); in testUpdateAutofillSettings_selected() 127 verify(mKeyboardCategory, atLeastOnce()).setVisible(true); in testUpdateAutofillSettings_selected() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothPairingDetailTest.java | 29 import static org.mockito.Mockito.verify; 118 verify(mFragment).startScanning(); in startScanning_startScanAndRemoveDevices() 119 verify(mAvailableDevicesCategory).removeAll(); in startScanning_startScanAndRemoveDevices() 130 verify(mFragment).addDeviceCategory(mAvailableDevicesCategory, in updateContent_stateOn_addDevices() 141 verify(mFragment).finish(); in updateContent_stateOff_finish() 160 verify(mFragment).updateContent(anyInt()); in updateBluetooth_bluetoothOn_updateState() 172 verify(mFragment).enableScanning(); in onScanningStateChanged_restartScanAfterInitialScanning() 174 verify(mFragment).startScanning(); in onScanningStateChanged_restartScanAfterInitialScanning() 178 verify(mFragment, times(1)).startScanning(); in onScanningStateChanged_restartScanAfterInitialScanning() 179 verify(mAvailableDevicesCategory, times(1)).setProgress(true); in onScanningStateChanged_restartScanAfterInitialScanning() [all …]
|
D | DeviceListPreferenceFragmentTest.java | 26 import static org.mockito.Mockito.verify; 89 verify(mFragment).startScanning(); in testEnableDisableScanning_testStateAfterEanbleDisable() 93 verify(mFragment).stopScanning(); in testEnableDisableScanning_testStateAfterEanbleDisable() 101 verify(mFragment).startScanning(); in testScanningStateChanged_testScanStarted() 104 verify(mFragment, times(1)).startScanning(); in testScanningStateChanged_testScanStarted() 111 verify(mFragment).startScanning(); in testScanningStateChanged_testScanFinished() 115 verify(mFragment, times(2)).startScanning(); in testScanningStateChanged_testScanFinished() 123 verify(mFragment).startScanning(); in testScanningStateChanged_testScanStateMultiple() 126 verify(mFragment, times(1)).startScanning(); in testScanningStateChanged_testScanStateMultiple() 129 verify(mFragment, times(2)).startScanning(); in testScanningStateChanged_testScanStateMultiple() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/simstatus/ |
D | SimStatusDialogControllerTest.java | 44 import static org.mockito.Mockito.verify; 205 verify(mDialog).setText(NETWORK_PROVIDER_VALUE_ID, carrierName); in initialize_updateNetworkProviderWithFoobarCarrier_shouldUpdateCarrierWithFoobar() 217 verify(mDialog).setText(PHONE_NUMBER_VALUE_ID, phoneNumber); in initialize_updatePhoneNumberWith1111111111_shouldUpdatePhoneNumber() 226 verify(mDialog).removeSettingFromScreen(OPERATOR_INFO_LABEL_ID); in initialize_updateLatestAreaInfoWithCdmaPhone_shouldRemoveOperatorInfoSetting() 227 verify(mDialog).removeSettingFromScreen(OPERATOR_INFO_VALUE_ID); in initialize_updateLatestAreaInfoWithCdmaPhone_shouldRemoveOperatorInfoSetting() 237 verify(mDialog).setText(SERVICE_STATE_VALUE_ID, inServiceText); in initialize_updateServiceStateWithInService_shouldUpdateTextToBeCInService() 249 verify(mDialog).setText(SERVICE_STATE_VALUE_ID, offServiceText); in initialize_updateServiceStateWithPowerOff_shouldUpdateTextAndResetSignalStrength() 250 verify(mDialog).setText(SIGNAL_STRENGTH_VALUE_ID, "0"); in initialize_updateServiceStateWithPowerOff_shouldUpdateTextAndResetSignalStrength() 264 verify(mDialog).setText(SERVICE_STATE_VALUE_ID, offServiceText); in initialize_updateVoiceDataOutOfService_shouldUpdateSettingAndResetSignalStrength() 265 verify(mDialog).setText(SIGNAL_STRENGTH_VALUE_ID, "0"); in initialize_updateVoiceDataOutOfService_shouldUpdateSettingAndResetSignalStrength() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | WirelessDebuggingEnablerTest.java | 22 import static org.mockito.Mockito.verify; 74 verify(mSwitchBar).show(); in onCreation_shouldShowSwitchBar() 81 verify(mSwitchBar).hide(); in teardownSwitchController_shouldHideSwitchBar() 91 verify(mSwitchBar).setChecked(false); in adbWifiEnabled_switchBarShouldBeChecked() 92 verify(mListener).onEnabled(false); in adbWifiEnabled_switchBarShouldBeChecked() 100 verify(mSwitchBar).setChecked(true); in adbWifiEnabled_switchBarShouldBeChecked() 102 verify(mListener).onEnabled(true); in adbWifiEnabled_switchBarShouldBeChecked() 111 verify(mSwitchBar).setChecked(true); in adbWifiEnabled_switchBarShouldNotBeChecked() 112 verify(mListener).onEnabled(true); in adbWifiEnabled_switchBarShouldNotBeChecked() 120 verify(mSwitchBar).setChecked(false); in adbWifiEnabled_switchBarShouldNotBeChecked() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | ChildSessionStateMachineTest.java | 65 import static org.mockito.Mockito.verify; 395 verify(mMockChildSessionSmCallback).onProcedureFinished(mChildSessionStateMachine); in quitAndVerify() 396 verify(mMockChildSessionSmCallback).onChildSessionClosed(mMockChildSessionCallback); in quitAndVerify() 433 verify(mMockChildSessionCallback).onIpSecTransformCreated(eq(transform), eq(direction)); in verifyNotifyUsersCreateIpSecSa() 438 verify(mMockChildSessionSmCallback) in verifyInitCreateChildResp() 441 verify(mMockChildSessionSmCallback).onProcedureFinished(mChildSessionStateMachine); in verifyInitCreateChildResp() 457 verify(mMockSaRecordHelper) in verifyInitCreateChildResp() 470 verify(mMockChildSessionSmCallback) in verifyInitCreateChildResp() 472 verify(mMockChildSessionSmCallback).onProcedureFinished(mChildSessionStateMachine); in verifyInitCreateChildResp() 478 verify(mSpyUserCbExecutor).execute(any(Runnable.class)); in verifyInitCreateChildResp() [all …]
|