Home
last modified time | relevance | path

Searched refs:verify (Results 1 – 25 of 693) sorted by relevance

12345678910>>...28

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNativeInterfaceManagementTest.java34 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 …]
DOpenNetworkNotifierTest.java33 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 …]
DCarrierNetworkNotifierTest.java33 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 …]
DDppManagerTest.java49 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 …]
DWifiMulticastLockManagerTest.java63 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 …]
DWifiControllerTest.java130 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 …]
DScanRequestProxyTest.java141 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testEnableScanning()
142 mInOrder.verify(mWifiScanner).setScanningEnabled(true); in testEnableScanning()
152 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testDisableScanning()
153 mInOrder.verify(mWifiScanner).setScanningEnabled(false); in testDisableScanning()
173 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanSuccess()
174 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccess()
180 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testStartScanSuccess()
190 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanSuccessFromAppWithNetworkSettings()
191 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccessFromAppWithNetworkSettings()
205 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanSuccessFromAppWithNetworkSetupWizard()
[all …]
DWifiLockManagerTest.java108 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()
214 verify(mWifiMetrics).addWifiLockAcqSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in releaseWifiLockShouldSucceed()
[all …]
DSelfRecoveryTest.java50 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 …]
DSarManagerTest.java129 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 …]
DActiveModeWardenTest.java113 verify(mWifiNative).registerStatusListener(mStatusListenerCaptor.capture()); in setUp()
181 verify(mClientModeManager).start(); in enterClientModeActiveState()
183 verify(mScanRequestProxy).enableScanning(false, false); in enterClientModeActiveState()
185 verify(mScanRequestProxy).enableScanning(true, true); in enterClientModeActiveState()
186 verify(mBatteryStats).noteWifiOn(); in enterClientModeActiveState()
209 verify(mScanOnlyModeManager).start(); in enterScanOnlyModeActiveState()
211 verify(mScanRequestProxy).enableScanning(false, false); in enterScanOnlyModeActiveState()
213 verify(mScanRequestProxy).enableScanning(true, false); in enterScanOnlyModeActiveState()
214 verify(mBatteryStats).noteWifiOn(); in enterScanOnlyModeActiveState()
215 verify(mBatteryStats).noteWifiState(eq(BatteryStats.WIFI_STATE_OFF_SCANNING), eq(null)); in enterScanOnlyModeActiveState()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DCommandQueueTest.java22 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/
DImsServiceControllerTest.java29 import static org.mockito.Mockito.verify;
124 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService()
144 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testBindFailureWhenBound()
162 verify(mMockServiceControllerBinder).createMmTelFeature(eq(1), any()); in testBindServiceAndConnected()
163 verify(mMockServiceControllerBinder).createRcsFeature(eq(1), any()); in testBindServiceAndConnected()
164 verify(mMockCallbacks).imsServiceFeatureCreated(eq(1), eq(1), in testBindServiceAndConnected()
166 verify(mMockCallbacks).imsServiceFeatureCreated(eq(1), eq(2), in testBindServiceAndConnected()
168 verify(mMockProxyCallbacks).imsFeatureCreated(eq(1), eq(1)); in testBindServiceAndConnected()
169 verify(mMockProxyCallbacks).imsFeatureCreated(eq(1), eq(2)); in testBindServiceAndConnected()
188 verify(mMockServiceControllerBinder, never()).createMmTelFeature(eq(0), any()); in testBindEmergencyMmTel()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DGroupHelperTest.java26 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/
DAppStateTrackerTest.java36 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/tests/FlickerTests/lib/test/src/com/android/server/wm/flicker/
DTransitionRunnerTest.java24 import static org.mockito.Mockito.verify;
84 orderVerifier.verify(mTransitionsMock).turnOnDevice(); in transitionsRunInOrder()
85 orderVerifier.verify(mTransitionsMock).openApp(); in transitionsRunInOrder()
86 orderVerifier.verify(mTransitionsMock).performMagic(); in transitionsRunInOrder()
87 orderVerifier.verify(mTransitionsMock).closeApp(); in transitionsRunInOrder()
88 orderVerifier.verify(mTransitionsMock).cleanUpTracks(); in transitionsRunInOrder()
110 verify(mTransitionsMock, times(wantedNumberOfInvocations)).turnOnDevice(); in canCombineTransitions()
111 verify(mTransitionsMock, times(wantedNumberOfInvocations)).openApp(); in canCombineTransitions()
112 verify(mTransitionsMock, times(wantedNumberOfInvocations)).performMagic(); in canCombineTransitions()
113 verify(mTransitionsMock, times(wantedNumberOfInvocations)).closeApp(); in canCombineTransitions()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationSwipeHelperTest.java27 import static org.mockito.Mockito.verify;
104 verify(mSwipeHelper, times(1)).setExposedMenuView(null); in testClearExposedMenuView()
120 verify(mSwipeHelper, times(1)).setTranslatingParentView(null); in testClearTranslatingParentView()
139 verify(mSwipeHelper, times(1)).setCurrentMenuRow(null); in testClearCurrentMenuRow()
152 verify(mSwipeHelper, times(1)).clearCurrentMenuRow(); in testOnDownUpdate_ExpandableNotificationRow()
153 verify(mHandler, times(1)).removeCallbacks(mFalsingCheck); in testOnDownUpdate_ExpandableNotificationRow()
154 verify(mSwipeHelper, times(1)).resetExposedMenuView(true, false); in testOnDownUpdate_ExpandableNotificationRow()
155 verify(mSwipeHelper, times(1)).initializeRow(mNotificationRow); in testOnDownUpdate_ExpandableNotificationRow()
168 verify(mSwipeHelper, times(1)).clearCurrentMenuRow(); in testOnDownUpdate_notExpandableNotificationRow()
169 verify(mHandler, times(1)).removeCallbacks(mFalsingCheck); in testOnDownUpdate_notExpandableNotificationRow()
[all …]
/frameworks/base/tests/net/java/android/net/ip/
DIpServerTest.java47 import static org.mockito.Mockito.verify;
175 verify(mCallback).updateInterfaceState( in startsOutAvailable()
177 verify(mCallback).updateLinkProperties(eq(mIpServer), any(LinkProperties.class)); in startsOutAvailable()
206 verify(mCallback).updateInterfaceState( in handlesImmediateInterfaceDown()
208 verify(mCallback).updateLinkProperties(eq(mIpServer), any(LinkProperties.class)); in handlesImmediateInterfaceDown()
218 inOrder.verify(mNMService).tetherInterface(IFACE_NAME); in canBeTethered()
219 inOrder.verify(mCallback).updateInterfaceState( in canBeTethered()
221 inOrder.verify(mCallback).updateLinkProperties( in canBeTethered()
232 inOrder.verify(mNMService).untetherInterface(IFACE_NAME); in canUnrequestTethering()
233 inOrder.verify(mNetd).interfaceSetCfg(argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in canUnrequestTethering()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DKeyguardBouncerTest.java28 import static org.mockito.Mockito.verify;
116 verify(mFalsingManager).onBouncerShown(); in testShow_notifiesFalsingManager()
135 verify(mKeyguardHostView).setAlpha(eq(1f)); in testShow_bouncerIsVisible()
136 verify(mKeyguardHostView).setTranslationY(eq(0f)); in testShow_bouncerIsVisible()
142 verify(mViewMediatorCallback).onBouncerVisiblityChanged(eq(true)); in testShow_notifiesVisibility()
143 verify(mExpansionCallback).onStartingToShow(); in testShow_notifiesVisibility()
154 verify(mKeyguardHostView).dismiss(anyInt()); in testShow_triesToDismissKeyguard()
160 verify(mKeyguardHostView, never()).showPrimarySecurityScreen(); in testShow_resetsSecuritySelection()
164 verify(mKeyguardHostView).showPrimarySecurityScreen(); in testShow_resetsSecuritySelection()
170 verify(mKeyguardHostView).startAppearAnimation(); in testShow_animatesKeyguardView()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareNativeManagerTest.java103 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 …]
DWifiAwareStateManagerTest.java39 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 …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java38 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/base/tests/net/java/com/android/server/connectivity/tethering/
DOffloadControllerTest.java41 import static org.mockito.Mockito.verify;
142 verify(mNMService).registerTetheringStatsProvider( in makeOffloadController()
160 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testNoSettingsValueDefaultDisabledDoesNotStart()
161 inOrder.verify(mHardware, never()).initOffloadConfig(); in testNoSettingsValueDefaultDisabledDoesNotStart()
162 inOrder.verify(mHardware, never()).initOffloadControl( in testNoSettingsValueDefaultDisabledDoesNotStart()
180 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testNoSettingsValueDefaultEnabledDoesStart()
181 inOrder.verify(mHardware, times(1)).initOffloadConfig(); in testNoSettingsValueDefaultEnabledDoesStart()
182 inOrder.verify(mHardware, times(1)).initOffloadControl( in testNoSettingsValueDefaultEnabledDoesStart()
196 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testSettingsAllowsStart()
197 inOrder.verify(mHardware, times(1)).initOffloadConfig(); in testSettingsAllowsStart()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java38 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 …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DFileUpdaterTest.java27 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 …]

12345678910>>...28