/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiNativeInterfaceManagementTest.java | 34 import static org.mockito.Mockito.verify; 174 mInOrder.verify(mWifiVendorHal).initialize(any()); in setUp() 175 mInOrder.verify(mWificondControl).initialize(any()); in setUp() 176 mInOrder.verify(mWifiVendorHal).registerRadioModeChangeHandler(any()); in setUp() 387 verify(mWifiMonitor).stopMonitoring(IFACE_NAME_1); in testTeardownAllInterfaces() 388 verify(mNwManagementService).unregisterObserver(mNetworkObserverCaptor1.getValue()); in testTeardownAllInterfaces() 389 verify(mSupplicantStaIfaceHal).teardownIface(IFACE_NAME_1); in testTeardownAllInterfaces() 390 verify(mWificondControl).tearDownClientInterface(IFACE_NAME_1); in testTeardownAllInterfaces() 391 verify(mSupplicantStaIfaceHal).deregisterDeathHandler(); in testTeardownAllInterfaces() 392 verify(mSupplicantStaIfaceHal).terminate(); in testTeardownAllInterfaces() [all …]
|
D | CarrierNetworkNotifierTest.java | 33 import static org.mockito.Mockito.verify; 124 verify(mContext).registerReceiver(broadcastReceiverCaptor.capture(), any(), any(), any()); in setUp() 128 verify(mFrameworkFacade).registerContentObserver(eq(mContext), any(Uri.class), eq(true), in setUp() 141 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(CARRIER_NET_NOTIFIER_TAG, in onCreate_setWifiNetworksAvailableNotificationSettingState() 154 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(CARRIER_NET_NOTIFIER_TAG, in onFeatureDisable_setWifiNetworksAvailableNotificationSettingDisabled() 165 verify(mNotificationBuilder).createConnectToAvailableNetworkNotification( in handleScanResults_hasCarrierNetworks_notificationDisplayed() 167 verify(mWifiMetrics).incrementConnectToNetworkNotification(CARRIER_NET_NOTIFIER_TAG, in handleScanResults_hasCarrierNetworks_notificationDisplayed() 169 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_hasCarrierNetworks_notificationDisplayed() 179 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed() 192 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed() [all …]
|
D | OpenNetworkNotifierTest.java | 33 import static org.mockito.Mockito.verify; 123 verify(mContext).registerReceiver(broadcastReceiverCaptor.capture(), any(), any(), any()); in setUp() 127 verify(mFrameworkFacade).registerContentObserver(eq(mContext), any(Uri.class), eq(true), in setUp() 140 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(OPEN_NET_NOTIFIER_TAG, in onCreate_setWifiNetworksAvailableNotificationSettingState() 153 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(OPEN_NET_NOTIFIER_TAG, in onFeatureDisable_setWifiNetworksAvailableNotificationSettingDisabled() 164 verify(mNotificationBuilder).createConnectToAvailableNetworkNotification( in handleScanResults_hasOpenNetworks_notificationDisplayed() 166 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in handleScanResults_hasOpenNetworks_notificationDisplayed() 168 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_hasOpenNetworks_notificationDisplayed() 178 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed() 191 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed() [all …]
|
D | DppManagerTest.java | 49 import static org.mockito.Mockito.verify; 154 verify(mDppCallback).onFailure( in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 156 verify(mDppCallback, never()).onSuccess(anyInt()); in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 157 verify(mDppCallback, never()).onSuccessConfigReceived(anyInt()); in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 158 verify(mDppMetrics).updateDppConfiguratorInitiatorRequests(); in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 159 verify(mDppMetrics).updateDppFailure(EasyConnectStatusCallback in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 182 verify(mDppCallback).onFailure( in testStartDppAsConfiguratorInitiatorFailAddPeer() 184 verify(mDppCallback, never()).onSuccess(anyInt()); in testStartDppAsConfiguratorInitiatorFailAddPeer() 185 verify(mDppCallback, never()).onSuccessConfigReceived(anyInt()); in testStartDppAsConfiguratorInitiatorFailAddPeer() 186 verify(mDppMetrics).updateDppConfiguratorInitiatorRequests(); in testStartDppAsConfiguratorInitiatorFailAddPeer() [all …]
|
D | WifiMulticastLockManagerTest.java | 63 verify(mHandler, times(1)).startFilteringMulticastPackets(); in noLocks() 74 verify(mHandler).stopFilteringMulticastPackets(); in oneLock() 76 verify(mHandler, times(0)).startFilteringMulticastPackets(); in oneLock() 77 verify(mBatteryStats).noteWifiMulticastEnabled(anyInt()); in oneLock() 78 verify(mBatteryStats, times(0)).noteWifiMulticastDisabled(anyInt()); in oneLock() 81 verify(mBatteryStats).noteWifiMulticastDisabled(anyInt()); in oneLock() 93 verify(mHandler).stopFilteringMulticastPackets(); in oneLock_wrongName() 95 verify(mHandler, never()).startFilteringMulticastPackets(); in oneLock_wrongName() 96 verify(mBatteryStats).noteWifiMulticastEnabled(anyInt()); in oneLock_wrongName() 97 verify(mBatteryStats, never()).noteWifiMulticastDisabled(anyInt()); in oneLock_wrongName() [all …]
|
D | WifiControllerTest.java | 130 verify(mContext).registerReceiver(bcastRxCaptor.capture(), any(IntentFilter.class)); in setUp() 135 verify(mActiveModeWarden).registerClientModeCallback(clientModeCallbackCaptor.capture()); in setUp() 140 verify(mActiveModeWarden).registerScanOnlyCallback(scanOnlyModeCallbackCaptor.capture()); in setUp() 171 verify(mActiveModeWarden).enterScanOnlyMode(); in enableScanMode() 192 verify(mActiveModeWarden, never()).disableWifi(); in testEnterScanModeAtStartWhenSet() 193 verify(mActiveModeWarden).enterScanOnlyMode(); in testEnterScanModeAtStartWhenSet() 215 verify(mActiveModeWarden).disableWifi(); in testDoesNotEnterScanModeWhenLocationModeDisabled() 222 verify(mActiveModeWarden, never()).enterScanOnlyMode(); in testDoesNotEnterScanModeWhenLocationModeDisabled() 245 verify(mContext).registerReceiver(bcastRxCaptor.capture(), any(IntentFilter.class)); in testEnterScanModeWhenLocationModeEnabled() 248 verify(mActiveModeWarden).disableWifi(); in testEnterScanModeWhenLocationModeEnabled() [all …]
|
D | ScanRequestProxyTest.java | 153 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testEnableScanning() 154 mInOrder.verify(mWifiScanner).setScanningEnabled(true); in testEnableScanning() 164 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testDisableScanning() 165 mInOrder.verify(mWifiScanner).setScanningEnabled(false); in testDisableScanning() 185 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanSuccess() 186 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccess() 192 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testStartScanSuccess() 202 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanSuccessFromAppWithNetworkSettings() 203 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccessFromAppWithNetworkSettings() 217 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanSuccessFromAppWithNetworkSetupWizard() [all …]
|
D | WifiLockManagerTest.java | 108 inOrder.verify(binder).linkToDeath(deathRecipient.capture(), eq(0)); in acquireWifiLockSuccessful() 110 inOrder.verify(mBatteryStats).noteFullWifiLockAcquired(DEFAULT_TEST_UID_1); in acquireWifiLockSuccessful() 112 inOrder.verify(mBatteryStats).noteFullWifiLockAcquiredFromSource(ws); in acquireWifiLockSuccessful() 120 verify(mActivityManager).addOnUidImportanceListener(uidImportanceListener.capture(), in captureUidImportanceListener() 132 inOrder.verify(binder).unlinkToDeath(deathRecipient.capture(), eq(0)); in releaseWifiLockSuccessful() 133 inOrder.verify(mBatteryStats).noteFullWifiLockReleasedFromSource(any(WorkSource.class)); in releaseWifiLockSuccessful() 142 inOrder.verify(binder).unlinkToDeath(deathRecipient.capture(), eq(0)); in releaseWifiLockSuccessful_noBatteryStats() 151 inOrder.verify(binder).unlinkToDeath(deathRecipient.capture(), eq(0)); in releaseLowLatencyWifiLockSuccessful() 152 inOrder.verify(mBatteryStats).noteFullWifiLockReleased(anyInt()); in releaseLowLatencyWifiLockSuccessful() 203 verify(mWifiMetrics).addWifiLockAcqSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in releaseWifiLockShouldSucceed() [all …]
|
D | SarManagerTest.java | 129 verify(wifiNative).selectTxPowerScenario(sarInfoCaptor.capture()); in captureSarInfo() 205 verify(mTelephonyManager).listen(phoneStateListenerCaptor.capture(), in createSarManager() 215 verify(mSensorManager).registerListener(sensorEventListenerCaptor.capture(), in createSarManager() 221 verify(mWifiMetrics, never()).incrementNumSarSensorRegistrationFailures(); in createSarManager() 260 verify(mTelephonyManager).listen(phoneStateListenerCaptor.capture(), in createSarManagerSensorNegTest() 294 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_CALL_STATE)); in testSarMgr_enabledTxPowerScenario_registerPhone() 304 verify(mTelephonyManager, never()).listen(any(), anyInt()); in testSarMgr_disabledTxPowerScenario_registerPhone() 323 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook() 328 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook() 351 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn() [all …]
|
D | SelfRecoveryTest.java | 50 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), anyInt()); in testValidTriggerReasonsSendMessageToWifiController() 56 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), anyInt()); in testValidTriggerReasonsSendMessageToWifiController() 67 verify(mWifiController, never()).sendMessage(anyInt(), anyString()); in testInvalidTriggerReasonsDoesNotSendMessageToWifiController() 70 verify(mWifiController, never()).sendMessage(anyInt(), anyString()); in testInvalidTriggerReasonsDoesNotSendMessageToWifiController() 79 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_DISABLE_WIFI)); in testStaIfaceDownDisablesWifi() 94 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), in testTimeWindowLimiting_typicalUse() 99 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), in testTimeWindowLimiting_typicalUse() 105 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), in testTimeWindowLimiting_typicalUse() 112 verify(mWifiController, never()).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), in testTimeWindowLimiting_typicalUse() 114 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_DISABLE_WIFI)); in testTimeWindowLimiting_typicalUse() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | CommandQueueTest.java | 22 import static org.mockito.Mockito.verify; 51 verify(mCallbacks).disable(anyInt(), eq(0), eq(0), eq(false)); in setup() 65 verify(mCallbacks).setIcon(eq(slot), eq(icon)); in testIcon() 69 verify(mCallbacks).removeIcon(eq(slot)); in testIcon() 78 verify(mCallbacks).disable(eq(DEFAULT_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisable() 87 verify(mCallbacks).disable(eq(SECONDARY_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisableForSecondaryDisplay() 94 verify(mCallbacks).animateExpandNotificationsPanel(); in testExpandNotifications() 101 verify(mCallbacks).animateCollapsePanels(eq(0), eq(false)); in testCollapsePanels() 109 verify(mCallbacks).animateExpandSettingsPanel(eq(panel)); in testExpandSettings() 117 verify(mCallbacks).setSystemUiVisibility(eq(DEFAULT_DISPLAY), eq(1), eq(2), eq(3), eq(4), in testSetSystemUiVisibility() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsServiceControllerTest.java | 29 import static org.mockito.Mockito.verify; 128 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService() 148 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testBindFailureWhenBound() 166 verify(mMockServiceControllerBinder).createMmTelFeature(eq(SLOT_0), any()); in testBindServiceAndConnected() 167 verify(mMockServiceControllerBinder).createRcsFeature(eq(SLOT_0), any()); in testBindServiceAndConnected() 168 verify(mMockCallbacks).imsServiceFeatureCreated(eq(SLOT_0), eq(ImsFeature.FEATURE_MMTEL), in testBindServiceAndConnected() 170 verify(mMockCallbacks).imsServiceFeatureCreated(eq(SLOT_0), eq(ImsFeature.FEATURE_RCS), in testBindServiceAndConnected() 172 verify(mMockProxyCallbacks).imsFeatureCreated(eq(SLOT_0), eq(ImsFeature.FEATURE_MMTEL)); in testBindServiceAndConnected() 173 verify(mMockProxyCallbacks).imsFeatureCreated(eq(SLOT_0), eq(ImsFeature.FEATURE_RCS)); in testBindServiceAndConnected() 191 verify(mMockServiceControllerBinder).createMmTelFeature(eq(SLOT_0), any()); in testBindEmergencyMmTel() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | GroupHelperTest.java | 26 import static org.mockito.Mockito.verify; 88 verify(mCallback, never()).addAutoGroupSummary( in testNoGroup_postingUnderLimit() 90 verify(mCallback, never()).addAutoGroup(anyString()); in testNoGroup_postingUnderLimit() 91 verify(mCallback, never()).removeAutoGroup(anyString()); in testNoGroup_postingUnderLimit() 92 verify(mCallback, never()).removeAutoGroupSummary(anyInt(), anyString()); in testNoGroup_postingUnderLimit() 105 verify(mCallback, never()).addAutoGroupSummary( in testNoGroup_multiPackage() 107 verify(mCallback, never()).addAutoGroup(anyString()); in testNoGroup_multiPackage() 108 verify(mCallback, never()).removeAutoGroup(anyString()); in testNoGroup_multiPackage() 109 verify(mCallback, never()).removeAutoGroupSummary(anyInt(), anyString()); in testNoGroup_multiPackage() 121 verify(mCallback, never()).addAutoGroupSummary(anyInt(), eq(pkg), anyString()); in testNoGroup_multiUser() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 36 import static org.mockito.Mockito.verify; 258 verify(mMockIActivityManager).registerUidObserver( in callStart() 265 verify(mMockIAppOpsService).startWatchingMode( in callStart() 269 verify(mMockPowerManagerInternal).registerLowPowerModeObserver( in callStart() 273 verify(mMockContext).registerReceiver( in callStart() 275 verify(mMockUsageStatsManagerInternal).addAppIdleStateChangeListener( in callStart() 742 verify(l, times(0)).updateAllJobs(); in assertNoCallbacks() 743 verify(l, times(0)).updateJobsForUid(anyInt(), anyBoolean()); in assertNoCallbacks() 744 verify(l, times(0)).updateJobsForUidPackage(anyInt(), anyString(), anyBoolean()); in assertNoCallbacks() 746 verify(l, times(0)).unblockAllUnrestrictedAlarms(); in assertNoCallbacks() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationSwipeHelperTest.java | 27 import static org.mockito.Mockito.verify; 106 verify(mSwipeHelper, times(1)).setExposedMenuView(null); in testClearExposedMenuView() 122 verify(mSwipeHelper, times(1)).setTranslatingParentView(null); in testClearTranslatingParentView() 141 verify(mSwipeHelper, times(1)).setCurrentMenuRow(null); in testClearCurrentMenuRow() 154 verify(mSwipeHelper, times(1)).clearCurrentMenuRow(); in testOnDownUpdate_ExpandableNotificationRow() 155 verify(mHandler, times(1)).removeCallbacks(mFalsingCheck); in testOnDownUpdate_ExpandableNotificationRow() 156 verify(mSwipeHelper, times(1)).resetExposedMenuView(true, false); in testOnDownUpdate_ExpandableNotificationRow() 157 verify(mSwipeHelper, times(1)).initializeRow(mNotificationRow); in testOnDownUpdate_ExpandableNotificationRow() 170 verify(mSwipeHelper, times(1)).clearCurrentMenuRow(); in testOnDownUpdate_notExpandableNotificationRow() 171 verify(mHandler, times(1)).removeCallbacks(mFalsingCheck); in testOnDownUpdate_notExpandableNotificationRow() [all …]
|
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 61 import static org.mockito.Mockito.verify; 278 verify(mCallback).updateInterfaceState( in startsOutAvailable() 280 verify(mCallback).updateLinkProperties(eq(mIpServer), any(LinkProperties.class)); in startsOutAvailable() 309 verify(mCallback).updateInterfaceState( in handlesImmediateInterfaceDown() 311 verify(mCallback).updateLinkProperties(eq(mIpServer), any(LinkProperties.class)); in handlesImmediateInterfaceDown() 321 inOrder.verify(mNetd).tetherInterfaceAdd(IFACE_NAME); in canBeTethered() 322 inOrder.verify(mNetd).networkAddInterface(INetd.LOCAL_NET_ID, IFACE_NAME); in canBeTethered() 324 inOrder.verify(mNetd, times(2)).networkAddRoute(eq(INetd.LOCAL_NET_ID), eq(IFACE_NAME), in canBeTethered() 326 inOrder.verify(mCallback).updateInterfaceState( in canBeTethered() 328 inOrder.verify(mCallback).updateLinkProperties( in canBeTethered() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareStateManagerTest.java | 39 import static org.mockito.Mockito.verify; 177 verify(mMockContext, times(3)).registerReceiver(bcastRxCaptor.capture(), in setUp() 264 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testRequestMacAddresses() 271 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), in testRequestMacAddresses() 275 inOrder.verify(mockCallback1).onConnectSuccess(clientId1); in testRequestMacAddresses() 279 inOrder.verify(mockCallback2).onConnectSuccess(clientId2); in testRequestMacAddresses() 284 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses() 288 inOrder.verify(mockSessionCallback1).onSessionStarted(sessionId.capture()); in testRequestMacAddresses() 292 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses() 296 inOrder.verify(mockSessionCallback2).onSessionStarted(sessionId.capture()); in testRequestMacAddresses() [all …]
|
D | WifiAwareNativeManagerTest.java | 103 mInOrder.verify(mHalDeviceManager).initialize(); in setUp() 104 mInOrder.verify(mHalDeviceManager).registerStatusListener( in setUp() 128 mInOrder.verify(mHalDeviceManager).registerInterfaceAvailableForRequestListener( in testControlFlowWithoutInterface() 133 mInOrder.verify(mWifiAwareStateManagerMock).enableUsage(); in testControlFlowWithoutInterface() 139 mInOrder.verify(mWifiAwareStateManagerMock).disableUsage(); in testControlFlowWithoutInterface() 146 mInOrder.verify(mHalDeviceManager).registerInterfaceAvailableForRequestListener( in testControlFlowWithoutInterface() 150 mInOrder.verify(mWifiAwareStateManagerMock).enableUsage(); in testControlFlowWithoutInterface() 155 mInOrder.verify(mWifiAwareStateManagerMock).disableUsage(); in testControlFlowWithoutInterface() 157 mInOrder.verify(mHalDeviceManager, never()).createNanIface(any(), any()); in testControlFlowWithoutInterface() 176 mInOrder.verify(mHalDeviceManager).registerInterfaceAvailableForRequestListener( in testReferenceCounting() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SubscriptionInfoUpdaterTest.java | 32 import static org.mockito.Mockito.verify; 186 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsent() 190 verify(mConfigManager).updateConfigForPhoneId(eq(FAKE_SUB_ID_1), in testSimAbsent() 192 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsent() 206 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsentAndInactive() 212 verify(mConfigManager, times(0)).updateConfigForPhoneId(eq(FAKE_SUB_ID_1), in testSimAbsentAndInactive() 214 verify(mContext, times(0)).sendBroadcast(any(), anyString()); in testSimAbsentAndInactive() 215 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsentAndInactive() 226 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testSimUnknown() 229 verify(mConfigManager).updateConfigForPhoneId(eq(FAKE_SUB_ID_1), in testSimUnknown() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttServiceImplTest.java | 38 import static org.mockito.Mockito.verify; 230 verify(mockContext, times(2)).registerReceiver(bcastRxCaptor.capture(), in setUp() 232 verify(mockNative).start(any()); in setUp() 274 verify(mockNative).rangeRequest(mIntCaptor.capture(), eq(requests[i]), eq(true)); in testRangingFlow() 282 verify(mockCallback).onRangingResults(results.get(i).second); in testRangingFlow() 292 verify(mockMetrics).recordRequest(eq(mDefaultWs), eq(requests[i])); in testRangingFlow() 293 verify(mockMetrics).recordResult(eq(requests[i]), eq(results.get(i).first)); in testRangingFlow() 295 verify(mockMetrics, times(numIter)).recordOverallStatus( in testRangingFlow() 298 verify(mockNative, atLeastOnce()).isReady(); in testRangingFlow() 331 verify(mockNative).rangeRequest(mIntCaptor.capture(), mRequestCaptor.capture(), eq(true)); in testRangingFlowUsingAwarePeerHandles() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 38 import static org.mockito.Mockito.verify; 607 verify(mWifiNative).setupInterface(any(), any()); in checkIsP2pInitWhenClientConnected() 608 verify(mNwService).setInterfaceUp(anyString()); in checkIsP2pInitWhenClientConnected() 609 verify(mWifiMonitor, atLeastOnce()).registerHandler(anyString(), anyInt(), any()); in checkIsP2pInitWhenClientConnected() 611 verify(mWifiNative, never()).setupInterface(any(), any()); in checkIsP2pInitWhenClientConnected() 612 verify(mNwService, never()).setInterfaceUp(anyString()); in checkIsP2pInitWhenClientConnected() 613 verify(mWifiMonitor, never()).registerHandler(anyString(), anyInt(), any()); in checkIsP2pInitWhenClientConnected() 629 verify(mWifiNative).teardownInterface(); in checkIsP2pTearDownWhenClientDisconnected() 630 verify(mWifiMonitor).stopMonitoring(anyString()); in checkIsP2pTearDownWhenClientDisconnected() 632 verify(mWifiNative, never()).teardownInterface(); in checkIsP2pTearDownWhenClientDisconnected() [all …]
|
D | WifiP2pNativeTest.java | 28 import static org.mockito.Mockito.verify; 149 verify(mSupplicantP2pIfaceHalMock).setWpsDeviceName(eq(TEST_DEVICE_NAME)); in testSetDeviceName() 159 verify(mSupplicantP2pIfaceHalMock).setWpsDeviceName(eq(TEST_DEVICE_NAME)); in testSetP2pDeviceName() 170 verify(mSupplicantP2pIfaceHalMock).loadGroups(any(WifiP2pGroupList.class)); in testP2pListNetworks() 181 verify(mSupplicantP2pIfaceHalMock).startWpsPbc(eq(TEST_IFACE), eq(TEST_BSSID)); in testStartWpsPbc() 192 verify(mSupplicantP2pIfaceHalMock).startWpsPinKeypad(eq(TEST_IFACE), eq(TEST_PIN)); in testStartWpsPinKeypad() 203 verify(mSupplicantP2pIfaceHalMock).startWpsPinDisplay(eq(TEST_IFACE), eq(TEST_BSSID)); in testStartWpsPinDisplay() 213 verify(mSupplicantP2pIfaceHalMock).removeNetwork(eq(1)); in testP2pRemoveNetwork() 223 verify(mSupplicantP2pIfaceHalMock).setWpsDeviceType(eq(TEST_DEVICE_TYPE)); in testSetP2pDeviceType() 233 verify(mSupplicantP2pIfaceHalMock).setWpsConfigMethods(eq(TEST_WPS_CONFIG)); in testSetConfigMethods() [all …]
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 73 import static org.mockito.Mockito.verify; 542 verify(mStatsManager, times(1)).registerNetworkStatsProvider(anyString(), any()); in setUp() 543 verify(mNetd).registerUnsolicitedEventListener(any()); in setUp() 546 verify(mTelephonyManager).listen(phoneListenerCaptor.capture(), in setUp() 548 verify(mWifiManager).registerSoftApCallback(any(), any()); in setUp() 662 verify(mNetd, times(1)).interfaceSetCfg(any(InterfaceConfigurationParcel.class)); in verifyInterfaceServingModeStarted() 663 verify(mNetd, times(1)).tetherInterfaceAdd(ifname); in verifyInterfaceServingModeStarted() 664 verify(mNetd, times(1)).networkAddInterface(INetd.LOCAL_NET_ID, ifname); in verifyInterfaceServingModeStarted() 665 verify(mNetd, times(2)).networkAddRoute(eq(INetd.LOCAL_NET_ID), eq(ifname), in verifyInterfaceServingModeStarted() 694 verify(mNotificationUpdater, times(1)).onDownstreamChanged(DOWNSTREAM_NONE); in failingLocalOnlyHotspotLegacyApBroadcast() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | KeyguardBouncerTest.java | 29 import static org.mockito.Mockito.verify; 122 verify(mFalsingManager).onBouncerShown(); in testShow_notifiesFalsingManager() 141 verify(mKeyguardHostView).setAlpha(eq(1f)); in testShow_bouncerIsVisible() 142 verify(mKeyguardHostView).setTranslationY(eq(0f)); in testShow_bouncerIsVisible() 148 verify(mViewMediatorCallback).onBouncerVisiblityChanged(eq(true)); in testShow_notifiesVisibility() 149 verify(mExpansionCallback).onStartingToShow(); in testShow_notifiesVisibility() 160 verify(mKeyguardHostView).dismiss(anyInt()); in testShow_triesToDismissKeyguard() 166 verify(mKeyguardHostView, never()).showPrimarySecurityScreen(); in testShow_resetsSecuritySelection() 170 verify(mKeyguardHostView).showPrimarySecurityScreen(); in testShow_resetsSecuritySelection() 176 verify(mKeyguardHostView).startAppearAnimation(); in testShow_animatesKeyguardView() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | FileUpdaterTest.java | 27 import static org.mockito.Mockito.verify; 137 verify(mInjector, times(times)).injectWtf(anyOrNullString(), anyOrNull(Throwable.class)); in veriryWtf() 152 verify(mInjector, times(0)).injectWriteToFile(anyOrNullString(), anyOrNullString()); in testNoWrites() 158 verify(mInjector, times(0)).injectWriteToFile(anyOrNullString(), anyOrNullString()); in testNoWrites() 177 verify(mInjector, times(1)).injectWriteToFile("file1", "11"); in testSimpleWrite() 183 verify(mInjector, times(1)).injectWriteToFile("file1", "111"); in testSimpleWrite() 204 verify(mInjector, times(1)).injectWriteToFile("file1", "11"); in testMultiWrites() 205 verify(mInjector, times(1)).injectWriteToFile("file2", "22"); in testMultiWrites() 206 verify(mInjector, times(1)).injectWriteToFile("file3", "33"); in testMultiWrites() 212 verify(mInjector, times(1)).injectWriteToFile("file1", "111"); in testMultiWrites() [all …]
|