/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScanRequestProxyTest.java | 135 any(), in setUp() 139 any(), in setUp() 174 mInOrder.verify(mWifiScanner).registerScanListener(any(), any()); in enableScanning() 193 verify(mScanMetrics, times(timesDataSet)).setWorkSource(any()); in verifyScanMetricsDataWasSet() 203 mInOrder.verify(mWifiScanner).registerScanListener(any(), any()); in testEnableScanning() 214 mInOrder.verify(mWifiScanner).registerScanListener(any(), any()); in testDisableScanning() 236 mInOrder.verify(mWifiScanner).startScan(any(), any(), any(), any()); in testStartScanSuccess() 253 mInOrder.verify(mWifiScanner).startScan(any(), any(), any(), any()); in testStartScanSuccessFromAppWithNetworkSettings() 273 mInOrder.verify(mWifiScanner).startScan(any(), any(), any(), any()); in testStartScanSuccessFromAppWithNetworkSetupWizard() 287 mInOrder.verify(mWifiScanner).registerScanListener(any(), any()); in testStartScanWithHiddenNetworkScanningDisabled() [all …]
|
D | ConcreteClientModeManagerTest.java | 38 import static org.mockito.Mockito.any; 148 when(mWifiInjector.makeClientModeImpl(any(), any(), anyBoolean())) in setUpSystemServiceForContext() 150 when(mWifiInjector.makeScanOnlyModeImpl(any())).thenReturn(mScanOnlyModeImpl); in setUpSystemServiceForContext() 202 any(Executor.class), in setUp() 203 any(RegistrationManager.RegistrationCallback.class)); in setUp() 211 any(RegistrationManager.RegistrationCallback.class)); in setUp() 227 }).when(mConnectivityManager).registerNetworkCallback(any(), any(), any()); in setUp() 232 }).when(mConnectivityManager).unregisterNetworkCallback(any(NetworkCallback.class)); in setUp() 244 }).when(mBroadcastQueue).queueOrSendBroadcast(any(), any()); in setUp() 262 when(mWifiNative.setupInterfaceForClientInScanMode(any(), any())) in startClientInScanOnlyModeAndVerifyEnabled() [all …]
|
D | LinkProbeManagerTest.java | 22 import static org.mockito.Mockito.any; 109 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeTriggeredAndAcked() 110 verify(mWifiMetrics, never()).incrementLinkProbeExperimentProbeCount(any()); in testLinkProbeTriggeredAndAcked() 127 verify(mWifiNative).probeLink(eq(TEST_IFACE_NAME), any(), callbackCaptor.capture(), in testLinkProbeTriggeredAndAcked() 154 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeTriggeredAndFailed() 171 verify(mWifiNative).probeLink(eq(TEST_IFACE_NAME), any(), callbackCaptor.capture(), in testLinkProbeTriggeredAndFailed() 212 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenTxSucceeded() 220 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenTxSucceeded() 232 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenTxSucceeded() 245 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenScreenJustTurnedOn() [all …]
|
D | WifiNativeInterfaceManagementTest.java | 23 import static org.mockito.ArgumentMatchers.any; 129 when(mWifiVendorHal.createStaIface(any(), any())).thenReturn(IFACE_NAME_0); in setUp() 130 when(mWifiVendorHal.createApIface(any(), any(), anyInt(), in setUp() 132 when(mWifiVendorHal.getBridgedApInstances(any())).thenReturn( in setUp() 134 when(mWifiVendorHal.removeStaIface(any())).thenReturn(true); in setUp() 135 when(mWifiVendorHal.removeApIface(any())).thenReturn(true); in setUp() 136 when(mWifiVendorHal.replaceStaIfaceRequestorWs(any(), any())).thenReturn(true); in setUp() 142 when(mWificondControl.setupInterfaceForClientMode(any(), any(), any(), any())).thenReturn( in setUp() 144 when(mWificondControl.setupInterfaceForSoftApMode(any())).thenReturn(true); in setUp() 145 when(mWificondControl.tearDownClientInterface(any())).thenReturn(true); in setUp() [all …]
|
D | MakeBeforeBreakManagerTest.java | 91 verify(mNewPrimaryCmm, never()).setRole(any(), any()); in makeBeforeBreakDisabled_noOp() 99 verify(mNewPrimaryCmm, never()).setRole(any(), any()); in onL3ValidatedNonSecondaryTransient_noOp() 131 verify(mOldPrimaryCmm).setRole(any(), any()); in makeBeforeBreakEnded_mMakeBeforeBreakInfoCleared() 132 verify(mNewPrimaryCmm).setRole(any(), any()); in makeBeforeBreakEnded_mMakeBeforeBreakInfoCleared() 142 verify(mOldPrimaryCmm).setRole(any(), any()); in makeBeforeBreakEnded_mMakeBeforeBreakInfoCleared() 143 verify(mNewPrimaryCmm).setRole(any(), any()); in makeBeforeBreakEnded_mMakeBeforeBreakInfoCleared() 158 verify(mUnrelatedCmm, never()).setRole(any(), any()); in modeChanged_anotherCmm_noOp() 159 verify(mOldPrimaryCmm).setRole(any(), any()); in modeChanged_anotherCmm_noOp() 160 verify(mNewPrimaryCmm, never()).setRole(any(), any()); in modeChanged_anotherCmm_noOp() 170 verify(mOldPrimaryCmm, never()).setRole(any(), any()); in modeChanged_noMakeBeforeBreak_noOp() [all …]
|
D | ActiveModeWardenTest.java | 37 import static org.mockito.Mockito.any; 215 any(Listener.class), any(), any(), anyBoolean()); in setUp() 224 }).when(mWifiInjector).makeSoftApManager(any(Listener.class), in setUp() 225 any(WifiServiceImpl.SoftApCallbackInternal.class), any(), any(), any(), in setUp() 328 any(), eq(TEST_WORKSOURCE), eq(ROLE_CLIENT_PRIMARY), anyBoolean()); in enterClientModeActiveState() 361 any(), eq(TEST_WORKSOURCE), eq(ROLE_CLIENT_SCAN_ONLY), anyBoolean()); in enterScanOnlyModeActiveState() 409 any(), any(), any(), eq(TEST_WORKSOURCE), eq(softApRole), anyBoolean()); in enterSoftApActiveMode() 618 any(), eq(TEST_WORKSOURCE), eq(ROLE_CLIENT_SCAN_ONLY), anyBoolean()); in testScanOnlyModeScanHiddenNetworks() 709 any(), eq(TEST_WORKSOURCE), eq(ROLE_CLIENT_PRIMARY), anyBoolean()); in testReenterClientModeActiveStateIsNop() 716 any(), eq(TEST_WORKSOURCE), eq(ROLE_CLIENT_PRIMARY), anyBoolean()); in testReenterClientModeActiveStateIsNop() [all …]
|
D | WifiConnectivityManagerTest.java | 33 import static org.mockito.Mockito.any; 168 any(), eq(ActiveModeWarden.INTERNAL_REQUESTOR_WS), any(), any()); in setUp() 175 any(), any(), any(), any()); in setUp() 342 any(), allSingleScanListenerCaptor.capture()); in mockWifiScanner() 436 when(ns.getCandidatesFromScan(any(), any(), any(), anyBoolean(), anyBoolean(), in mockWifiNetworkSelector() 438 when(ns.selectNetwork(any())) in mockWifiNetworkSelector() 482 mBroadcastReceiverCaptor.capture(), any(), any(), any()); in createConnectivityManager() 528 any(), any(), any(), any()); in alreadyConnectedOnPrimaryCmm_dontConnectAgain() 530 anyInt(), anyInt(), any()); in alreadyConnectedOnPrimaryCmm_dontConnectAgain() 552 any(), any(), any(), any()); in disconnectedOnPrimaryCmm_connectUsingPrimaryCmm() [all …]
|
D | SupplicantStaNetworkHalTest.java | 28 import static org.mockito.Mockito.any; 227 verify(mISupplicantStaNetworkV12).setSaePassword(any(String.class)); in testSaePasswordNetworkWifiConfigurationSaveLoad() 229 .getSaePassword(any(android.hardware.wifi.supplicant.V1_2.ISupplicantStaNetwork in testSaePasswordNetworkWifiConfigurationSaveLoad() 232 .getPskPassphrase(any(ISupplicantStaNetwork.getPskPassphraseCallback.class)); in testSaePasswordNetworkWifiConfigurationSaveLoad() 233 verify(mISupplicantStaNetworkV12, never()).setPsk(any(byte[].class)); in testSaePasswordNetworkWifiConfigurationSaveLoad() 235 .getPsk(any(ISupplicantStaNetwork.getPskCallback.class)); in testSaePasswordNetworkWifiConfigurationSaveLoad() 249 .getPskPassphrase(any(ISupplicantStaNetwork.getPskPassphraseCallback.class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad() 250 verify(mISupplicantStaNetworkMock, never()).setPsk(any(byte[].class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad() 252 .getPsk(any(ISupplicantStaNetwork.getPskCallback.class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad() 271 verify(mISupplicantStaNetworkMock).setPsk(any(byte[].class)); in testPskNetworkWifiConfigurationSaveLoad() [all …]
|
D | SavedNetworkNominatorTest.java | 74 when(mWifiCarrierInfoManager.getBestMatchSubscriptionId(any())).thenReturn(VALID_SUBID); in setUp() 79 .shouldBeIgnoredBySecureSuggestionFromSameCarrier(any(), any())) in setUp() 140 verify(mOnConnectableListener, never()).onConnectable(any(), any()); in ignoreNetworksIfUseExternalScores() 166 verify(mOnConnectableListener, never()).onConnectable(any(), any()); in ignoreNetworkIfSimIsAbsentForEapSimNetwork() 193 verify(mOnConnectableListener, never()).onConnectable(any(), any()); in ignoreEphemeralNetworks() 218 verify(mOnConnectableListener, times(2)).onConnectable(any(), any()); in ignoreNetworksIfAutojoinNotAllowed() 223 verify(mOnConnectableListener).onConnectable(any(), in ignoreNetworksIfAutojoinNotAllowed() 251 verify(mOnConnectableListener, never()).onConnectable(any(), any()); in returnNoCandidateIfNoNetworksAllowAutojoin() 297 verify(mOnConnectableListener).onConnectable(any(), any()); in testIgnoreNetworksIfMeteredAndFromNonDataSim() 301 verify(mOnConnectableListener, never()).onConnectable(any(), any()); in testIgnoreNetworksIfMeteredAndFromNonDataSim() [all …]
|
D | OpenNetworkNotifierTest.java | 28 import static org.mockito.ArgumentMatchers.any; 126 verify(mContext).registerReceiver(broadcastReceiverCaptor.capture(), any(), any(), any()); in setUp() 130 verify(mFrameworkFacade).registerContentObserver(eq(mContext), any(Uri.class), eq(true), in setUp() 134 when(mWifiConfigManager.addOrUpdateNetwork(any(), anyInt())) in setUp() 140 }).when(mMakeBeforeBreakManager).stopAllSecondaryTransientClientModeManagers(any()); in setUp() 176 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_hasOpenNetworks_notificationDisplayed() 186 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed() 199 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed() 214 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_emptyList_notificationCleared() 233 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_noRecommendation_notificationCleared() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | RingerTest.java | 55 import static org.mockito.ArgumentMatchers.any; 140 }).when(spyVibrationEffectProxy).get(any(), any()); in setUp() 145 when(mockSystemSettingsUtil.isHapticPlaybackSupported(any(Context.class))).thenReturn(true); in setUp() 149 when(notificationManager.matchesCallFilter(any(Bundle.class))).thenReturn(true); in setUp() 150 when(mockRingtoneFactory.hasHapticChannels(any(Ringtone.class))).thenReturn(false); in setUp() 151 when(mockRingtonePlayer.play(any(RingtoneFactory.class), any(Call.class), in setUp() 173 when(mockSystemSettingsUtil.isTheaterModeOn(any(Context.class))).thenReturn(true); in testNoActionInTheaterMode() 176 verify(mockRingtonePlayer, never()).play(any(RingtoneFactory.class), any(Call.class), in testNoActionInTheaterMode() 179 .vibrate(any(VibrationEffect.class), any(AudioAttributes.class)); in testNoActionInTheaterMode() 194 verify(mockRingtonePlayer, never()).play(any(RingtoneFactory.class), any(Call.class), in testNoActionWithExternalRinger() [all …]
|
D | CallsManagerTest.java | 26 import static org.mockito.ArgumentMatchers.any; 220 when(mInCallWakeLockControllerFactory.create(any(), any())).thenReturn( in setUp() 222 when(mHeadsetMediaButtonFactory.create(any(), any(), any())).thenReturn( in setUp() 224 when(mProximitySensorManagerFactory.create(any(), any())).thenReturn( in setUp() 226 when(mInCallControllerFactory.create(any(), any(), any(), any(), any(), any(), in setUp() 227 any())).thenReturn(mInCallController); in setUp() 228 when(mCallAudioRouteStateMachineFactory.create(any(), any(), any(), any(), any(), any(), in setUp() 230 when(mCallAudioModeStateMachineFactory.create(any(), any())) in setUp() 234 when(mConnSvrFocusManagerFactory.create(any())).thenReturn(mConnectionSvrFocusMgr); in setUp() 235 doNothing().when(mRoleManagerAdapter).setCurrentUserHandle(any()); in setUp() [all …]
|
D | CallRedirectionProcessorTest.java | 58 import static org.mockito.Matchers.any; 162 any(PhoneAccountHandle.class))).thenReturn(CARRIER_SERVICE_TEST_COMPONENT_NAME); in enableCarrierCallRedirectionService() 171 when(mCallRedirectionProcessorHelper.getCarrierCallRedirectionService(any())).thenReturn( in disableCarrierCallRedirectionService() 197 verify(mContext, times(0)).bindServiceAsUser(any(Intent.class), in testNoUserDefinedServiceNoCarrierSerivce() 198 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testNoUserDefinedServiceNoCarrierSerivce() 212 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testCarrierServiceTimeoutNoUserDefinedService() 213 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testCarrierServiceTimeoutNoUserDefinedService() 214 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService() 219 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService() 232 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutNoCarrierService() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/survey/ |
D | SurveyMixinTest.java | 5 import static org.mockito.ArgumentMatchers.any; 55 when(mProvider.getSurveyId(any(), eq(FAKE_KEY))).thenReturn(FAKE_SURVEY_ID); in setUp() 61 when(mProvider.getSurveyExpirationDate(any(), any())).thenReturn(-1L); in onResume_triesRegisteringReceiverAndDownloadingWhenNoSurveyDetected() 70 verify(mProvider, times(1)).downloadSurvey(any(), any(), any()); in onResume_triesRegisteringReceiverAndDownloadingWhenNoSurveyDetected() 72 verify(mProvider, times(1)).createAndRegisterReceiver(any()); in onResume_triesRegisteringReceiverAndDownloadingWhenNoSurveyDetected() 74 verify(mProvider, never()).showSurveyIfAvailable(any(), any()); in onResume_triesRegisteringReceiverAndDownloadingWhenNoSurveyDetected() 80 when(mProvider.getSurveyExpirationDate(any(), any())).thenReturn(0L); in onResume_triesShowingSurveyWhenOneIsPresent() 89 verify(mProvider, never()).downloadSurvey(any(), any(), any()); in onResume_triesShowingSurveyWhenOneIsPresent() 91 verify(mProvider, never()).createAndRegisterReceiver(any()); in onResume_triesShowingSurveyWhenOneIsPresent() 93 verify(mProvider, times(1)).showSurveyIfAvailable(any(), any()); in onResume_triesShowingSurveyWhenOneIsPresent() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | StartDpcInsideSuwServiceConnectionTest.java | 26 import static org.mockito.Matchers.any; 87 when(mUtils.canResolveIntentAsUser(any(Context.class), any(Intent.class), anyInt())) in setUp() 114 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_serviceConnects() 140 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_instanceStateSavedAndRestoredBeforeServiceConnected() 159 any(Intent.class), any(ServiceConnection.class), anyInt())).thenReturn(true); in testBindingSucceeds_instanceStateSavedAndRestoredBeforeServiceConnected() 185 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_instanceStateSavedAndRestoredAfterServiceConnected() 210 any(Intent.class), any(ServiceConnection.class), anyInt())).thenReturn(true); in testBindingSucceeds_instanceStateSavedAndRestoredAfterServiceConnected() 223 verify(mRestoredActivity, never()).startActivityForResultAsUser(any(Intent.class), anyInt(), in testBindingSucceeds_instanceStateSavedAndRestoredAfterServiceConnected() 224 any(UserHandle.class)); in testBindingSucceeds_instanceStateSavedAndRestoredAfterServiceConnected() 237 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_instanceStateSavedAndRestoredAfterDpcFinished() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/ |
D | NetworkStackServiceTest.kt | 51 import org.mockito.ArgumentMatchers.any 83 doReturn(mockIpMemoryStoreService).`when`(this).makeIpMemoryStoreService(any()) in <lambda>() 84 doReturn(mockDhcpServer).`when`(this).makeDhcpServer(any(), any(), any(), any()) in <lambda>() 85 doReturn(mockNetworkMonitor).`when`(this).makeNetworkMonitor(any(), any(), any(), any(), in <lambda>() 86 any()) in <lambda>() 87 doReturn(mockIpClient).`when`(this).makeIpClient(any(), any(), any(), any(), any()) in <lambda>() 94 doReturn(netd).`when`(this).queryLocalInterface(any()) in <lambda>() 152 verify(mockIpMemoryStoreCb).onIpMemoryStoreFetched(any()) in prepareDumpVersionTest() 168 verify(deps).makeDhcpServer(any(), eq(TEST_IFACE), any(), any()) in prepareDumpVersionTest() 169 verify(mockDhcpCb).onDhcpServerCreated(eq(IDhcpServer.STATUS_SUCCESS), any()) in prepareDumpVersionTest() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareNativeManagerTest.java | 21 import static org.mockito.ArgumentMatchers.any; 98 when(mWifiNanIfaceMock.registerEventCallback(any())).thenReturn(mStatusOk); in setUp() 99 when(mIWifiNanIface15Mock.registerEventCallback_1_5(any())).thenReturn(mStatusOk); in setUp() 111 mManagerStatusListenerCaptor.capture(), any()); in setUp() 130 when(mHalDeviceManager.createNanIface(any(), any(), any())).thenReturn(mWifiNanIfaceMock); in testControlFlowWithoutInterface() 147 mInOrder.verify(mHalDeviceManager, never()).createNanIface(any(), any(), any()); in testControlFlowWithoutInterface() 162 when(mHalDeviceManager.createNanIface(any(), any(), any())).thenReturn(mWifiNanIfaceMock); in testReferenceCounting() 172 any(), eq(TEST_WS)); in testReferenceCounting() 173 mInOrder.verify(mWifiNanIfaceMock).registerEventCallback(any()); in testReferenceCounting() 186 any(), eq(TEST_WS)); in testReferenceCounting() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/ |
D | ProvisioningIntentProviderTest.java | 28 import static org.mockito.ArgumentMatchers.any; 110 when(mUtils.canResolveIntentAsUser(any(), any(), anyInt())).thenReturn(true); in maybeLaunchDpc_adminIntegratedFlow_policyComplianceActionLaunched() 117 verify(mContext).startActivityAsUser(intentCaptor.capture(), any()); in maybeLaunchDpc_adminIntegratedFlow_policyComplianceActionLaunched() 118 verify(mProvisioningAnalyticsTracker).logDpcSetupStarted(any(), any()); in maybeLaunchDpc_adminIntegratedFlow_policyComplianceActionLaunched() 131 verify(mContext).startActivityAsUser(intentCaptor.capture(), any()); in maybeLaunchDpc_legacyFlow_provisioningSuccessfulLaunched() 132 verify(mProvisioningAnalyticsTracker).logDpcSetupStarted(any(), any()); in maybeLaunchDpc_legacyFlow_provisioningSuccessfulLaunched() 138 when(mUtils.canResolveIntentAsUser(any(), any(), anyInt())).thenReturn(true); in maybeLaunchDpc_legacyFlow_duringSetupWizard_provisioningSuccessfulLaunched() 146 verify(mContext).startActivityAsUser(intentCaptor.capture(), any()); in maybeLaunchDpc_legacyFlow_duringSetupWizard_provisioningSuccessfulLaunched() 147 verify(mProvisioningAnalyticsTracker).logDpcSetupStarted(any(), any()); in maybeLaunchDpc_legacyFlow_duringSetupWizard_provisioningSuccessfulLaunched() 153 when(mUtils.canResolveIntentAsUser(any(), any(), anyInt())).thenReturn(true); in maybeLaunchDpc_legacyFlow_duringSetupWizard_policyComplianceResolvable_policyComplianceLaunched() [all …]
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | GsmCellBroadcastHandlerTest.java | 23 import static org.mockito.Mockito.any; 206 }).when(mHandlerHelper).post(any()); in setUp() 227 verify(mMockedContext).sendOrderedBroadcast(intentCaptor.capture(), any(), in testTriggerMessage() 228 (Bundle) any(), any(), any(), anyInt(), any(), any()); in testTriggerMessage() 243 verify(mMockedContext, times(2)).unregisterReceiver(any()); in testCleanup() 260 verify(mMockedContext, never()).sendOrderedBroadcast(any(), anyString(), anyString(), in testAirplaneModeReset() 261 any(), any(), anyInt(), any(), any()); in testAirplaneModeReset() 279 verify(mMockedContext, never()).sendOrderedBroadcast(any(), anyString(), anyString(), in testGeofencingAlertOutOfPolygon() 280 any(), any(), anyInt(), any(), any()); in testGeofencingAlertOutOfPolygon() 310 verify(mMockedContext).sendOrderedBroadcast(intentCaptor.capture(), any(), in testSmsCbLocation() [all …]
|
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/ |
D | EpdgTunnelManagerTest.java | 123 any(EpdgSelector.EpdgSelectorCallback.class))) in setUp() 131 doReturn(testLocalAddressList).when(mEpdgTunnelManager).getAddressForNetwork(any(), any()); in setUp() 239 any()); in testBringUPTunnelSuccess() 304 any(EpdgSelector.EpdgSelectorCallback.class))) in testRekeyAndNattTimerFromCarrierConfig() 311 any(IkeSessionParams.class), in testRekeyAndNattTimerFromCarrierConfig() 312 any(ChildSessionParams.class), in testRekeyAndNattTimerFromCarrierConfig() 313 any(Executor.class), in testRekeyAndNattTimerFromCarrierConfig() 314 any(IkeSessionCallback.class), in testRekeyAndNattTimerFromCarrierConfig() 315 any(ChildSessionCallback.class)); in testRekeyAndNattTimerFromCarrierConfig() 338 any(Executor.class), in testRekeyAndNattTimerFromCarrierConfig() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkNominateHelperTest.java | 26 import static org.mockito.Mockito.any; 177 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(null); in evaluateScansWithNoMatch() 201 verify(mPasspointManager, never()).matchProvider(any(ScanResult.class)); in evaluateScansWithNoInterworkingAP() 221 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(homeProvider) in evaluateScansWithNetworkMatchingHomeProvider() 223 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt(), in evaluateScansWithNetworkMatchingHomeProvider() 224 any())).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScansWithNetworkMatchingHomeProvider() 233 verify(mWifiConfigManager).addOrUpdateNetwork(addedConfig.capture(), anyInt(), any()); in evaluateScansWithNetworkMatchingHomeProvider() 240 eq(TEST_NETWORK_ID), eq(false), anyInt(), any()); in evaluateScansWithNetworkMatchingHomeProvider() 242 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt(), any()); in evaluateScansWithNetworkMatchingHomeProvider() 244 eq(TEST_NETWORK_ID), any(ScanDetail.class)); in evaluateScansWithNetworkMatchingHomeProvider() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceHalTest.java | 209 when(mServiceManagerMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp() 212 any(IServiceNotification.Stub.class))).thenReturn(true); in setUp() 213 when(mISupplicantMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp() 215 when(mISupplicantP2pIfaceMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp() 217 when(mISupplicantP2pIfaceMock.registerCallback(any(ISupplicantP2pIfaceCallback.class))) in setUp() 311 when(mISupplicantMockV1_1.removeInterface(any(ISupplicant.IfaceInfo.class))) in testTeardown_successV1_1() 314 verify(mISupplicantMockV1_1).removeInterface(any()); in testTeardown_successV1_1() 337 }).when(mISupplicantMock).linkToDeath(any(IHwBinder.DeathRecipient.class), in testMisorderSupplicantDeathHandlingV1_1() 356 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_success() 375 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_failure() [all …]
|
/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletPanelViewControllerTest.java | 24 import static org.mockito.ArgumentMatchers.any; 116 }).when(mPluginCallbacks).startPendingIntentDismissingKeyguard(any()); in setUp() 135 verify(mWalletClient, never()).getWalletCards(any(), any(), any()); in getPanelContent_returnsSameView() 193 verify(mWalletClient, times(1)).removeWalletServiceEventListener(any()); in onDismissed_doesNotTriggerTwice() 203 verify(mWalletClient, never()).getWalletCards(any(), any(), any()); in onDeviceLockStateChanged_unlocked_queriesCards() 207 verify(mWalletClient).getWalletCards(any(), any(), any()); in onDeviceLockStateChanged_unlocked_queriesCards() 217 verify(mWalletClient, never()).getWalletCards(any(), any(), any()); // sanity check in onDeviceLockStateChanged_calledTwice_onlyQueriesCardsOnce() 223 verify(mWalletClient).getWalletCards(any(), any(), any()); in onDeviceLockStateChanged_calledTwice_onlyQueriesCardsOnce() 242 verify(mWalletClient, never()).getWalletCards(any(), any(), any()); in onDeviceLockStateChanged_unlocked_locked_queriesCardsAndDoesNotHide() 248 verify(mWalletClient).getWalletCards(any(), any(), any()); in onDeviceLockStateChanged_unlocked_locked_queriesCardsAndDoesNotHide() [all …]
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | ConnectivityManagerTest.java | 48 import static org.mockito.Mockito.any; 228 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRelease() 229 anyInt(), anyInt(), any(), nullable(String.class))).thenReturn(request); in testCallbackRelease() 234 verify(callback, timeout(500).times(1)).onAvailable(any(Network.class), in testCallbackRelease() 235 any(NetworkCapabilities.class), any(LinkProperties.class), anyBoolean()); in testCallbackRelease() 243 verify(callback, timeout(500).times(0)).onLosing(any(), anyInt()); in testCallbackRelease() 257 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRecycling() 258 anyInt(), anyInt(), any(), nullable(String.class))).thenReturn(req1); in testCallbackRecycling() 263 verify(callback, timeout(100).times(1)).onAvailable(any(Network.class), in testCallbackRecycling() 264 any(NetworkCapabilities.class), any(LinkProperties.class), anyBoolean()); in testCallbackRecycling() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputServiceTest.java | 27 import static org.mockito.ArgumentMatchers.any; 124 doReturn(true).when(mHandler).sendMessageAtTime(any(), anyLong()); in setUp() 144 when(mCaptureController.onKeyEvent(anyInt(), any(KeyEvent.class))).thenReturn(true); in testOnRotaryEvent_injectingRotaryNavigationEvent() 151 verify(mCaptureController, never()).onKeyEvent(anyInt(), any(KeyEvent.class)); in testOnRotaryEvent_injectingRotaryNavigationEvent() 152 verify(mDefaultMainListener, never()).onKeyEvent(any(KeyEvent.class)); in testOnRotaryEvent_injectingRotaryNavigationEvent() 163 when(mCaptureController.onKeyEvent(anyInt(), any(KeyEvent.class))).thenReturn(true); in testOnRotaryEvent_injectingRotaryVolumeEvent() 173 any(KeyEvent.class)); in testOnRotaryEvent_injectingRotaryVolumeEvent() 174 verify(mDefaultMainListener, never()).onKeyEvent(any(KeyEvent.class)); in testOnRotaryEvent_injectingRotaryVolumeEvent() 194 any(KeyEvent.class)); in testOnRotaryEvent_injectingRotaryNavigation_notConsumedByCaptureController() 196 any(KeyEvent.class)); in testOnRotaryEvent_injectingRotaryNavigation_notConsumedByCaptureController() [all …]
|