Home
last modified time | relevance | path

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

12345678910>>...109

/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DCardEmulationManagerTest.java27 import static org.mockito.Mockito.verify;
169 verify(mRoutingOptionManager).getOffHostRouteEse(); in assertConstructorMethodCalls()
170 verify(mRoutingOptionManager).getOffHostRouteUicc(); in assertConstructorMethodCalls()
171 verify(mRegisteredServicesCache).initialize(); in assertConstructorMethodCalls()
172 verify(mRegisteredNfcFServicesCache).initialize(); in assertConstructorMethodCalls()
173 verify(mWalletRoleObserver).isWalletRoleFeatureEnabled(); in assertConstructorMethodCalls()
174 verify(mWalletRoleObserver).getDefaultWalletRoleHolder(eq(USER_ID)); in assertConstructorMethodCalls()
175 verify(mPreferredServices).onWalletRoleHolderChanged(eq(WALLET_HOLDER_PACKAGE_NAME), in assertConstructorMethodCalls()
177 verify(mRegisteredAidCache).onWalletRoleHolderChanged(eq(WALLET_HOLDER_PACKAGE_NAME), in assertConstructorMethodCalls()
191 verify(mHostEmulationManager).onPollingLoopDetected(mPollingLoopFrameCaptor.capture()); in testPollingLoopDetected()
[all …]
/packages/services/Telephony/tests/src/com/android/phone/
DImsStateCallbackControllerTest.java41 import static org.mockito.Mockito.verify;
205 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_DISCONNECTED); in testMmTelRegisterThenUnregisterCallback()
221 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_DISCONNECTED); in testMmTelConnectionUnavailable()
226 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_NOT_READY); in testMmTelConnectionUnavailable()
231 verify(mCallback0, times(1)).onUnavailable(REASON_NO_IMS_SERVICE_CONFIGURED); in testMmTelConnectionUnavailable()
247 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_DISCONNECTED); in testMmTelConnectionReady()
248 verify(mCallback0, times(0)).onAvailable(); in testMmTelConnectionReady()
252 verify(mCallback0, atLeastOnce()).onAvailable(); in testMmTelConnectionReady()
268 verify(mCallback0, times(1)).onUnavailable(REASON_IMS_SERVICE_DISCONNECTED); in testMmTelIgnoreDuplicatedConsecutiveReason()
273 verify(mCallback0, times(1)).onUnavailable(REASON_NO_IMS_SERVICE_CONFIGURED); in testMmTelIgnoreDuplicatedConsecutiveReason()
[all …]
/packages/modules/ExtServices/java/tests/src/android/ext/services/common/
DAdServicesAppsearchDeleteJobTest.java37 import static org.mockito.Mockito.verify;
191 verify(jobScheduler).cancel(0); in onCancelJob_shouldNotReschedule()
192 verify(mAdServicesAppsearchDeleteJob).setReschedule(any(), eq(false)); in onCancelJob_shouldNotReschedule()
210 verify(mAdservicesPhFlags).isAppsearchDeleteJobEnabled(); in schedulePeriodic_onDisabledFlag_shouldNotSchedule()
211 verify(jobScheduler, never()).schedule(any()); in schedulePeriodic_onDisabledFlag_shouldNotSchedule()
230 verify(mAdservicesPhFlags).isAppsearchDeleteJobEnabled(); in schedulePeriodic_onExistingJob_shouldNotSchedule()
231 verify(jobScheduler).getPendingJob(anyInt()); in schedulePeriodic_onExistingJob_shouldNotSchedule()
232 verify(jobScheduler, never()).schedule(any()); in schedulePeriodic_onExistingJob_shouldNotSchedule()
256 verify(jobScheduler) in schedulePeriodic_onNonExistingJob_EnabledJob_shouldSchedule()
258 verify(mAdservicesPhFlags) in schedulePeriodic_onNonExistingJob_EnabledJob_shouldSchedule()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/signature/
DProtectedAudienceSignatureManagerTest.java29 import static org.mockito.Mockito.verify;
224 verify(mSignatureVerificationLoggerMock, times(1)).startKeyFetchForSignatureVerification(); in verifyLogSuccessfulSignatureVerification()
225 verify(mSignatureVerificationLoggerMock, times(1)).endKeyFetchForSignatureVerification(); in verifyLogSuccessfulSignatureVerification()
226 verify(mSignatureVerificationLoggerMock, times(1)) in verifyLogSuccessfulSignatureVerification()
228 verify(mSignatureVerificationLoggerMock, times(1)) in verifyLogSuccessfulSignatureVerification()
230 verify(mSignatureVerificationLoggerMock, times(1)).startSignatureVerification(); in verifyLogSuccessfulSignatureVerification()
231 verify(mSignatureVerificationLoggerMock, times(1)).endSignatureVerification(); in verifyLogSuccessfulSignatureVerification()
232 verify(mSignatureVerificationLoggerMock, times(1)) in verifyLogSuccessfulSignatureVerification()
234 verify(mSignatureVerificationLoggerMock, times(1)).close(verified); in verifyLogSuccessfulSignatureVerification()
235 verify(mSignatureVerificationLoggerMock, times(0)) in verifyLogSuccessfulSignatureVerification()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/
DUxEngineTest.java37 import static org.mockito.Mockito.verify;
158 verify(mUxStatesManager).persistAdServicesStates(adServicesStates); in startTest_uxDisabled()
161 verify(mUxStatesManager).getFlag(KEY_ADSERVICES_ENABLED); in startTest_uxDisabled()
162 verify(mConsentManager, never()).isEntryPointEnabled(); in startTest_uxDisabled()
165 verify(mConsentManager, never()).setUx(UNSUPPORTED_UX); in startTest_uxDisabled()
166 verify(mConsentManager, never()).setEnrollmentChannel(UNSUPPORTED_UX, null); in startTest_uxDisabled()
168 ExtendedMockito.verify( in startTest_uxDisabled()
194 verify(mUxStatesManager).persistAdServicesStates(adServicesStates); in startTest_entryPointDisabled()
197 verify(mUxStatesManager).getFlag(KEY_ADSERVICES_ENABLED); in startTest_entryPointDisabled()
198 verify(mConsentManager).isEntryPointEnabled(); in startTest_entryPointDisabled()
[all …]
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DTelephonyRcsServiceTest.java26 import static org.mockito.Mockito.verify;
121 verify(mFeatureControllerSlot0).addFeature(mMockUceSlot0, UceControllerManager.class); in testUceControllerPresenceConnected()
122 verify(mFeatureControllerSlot0).connect(); in testUceControllerPresenceConnected()
130 verify(mFeatureControllerSlot0).addFeature(mMockUceSlot0, UceControllerManager.class); in testUceControllerOptionsConnected()
131 verify(mFeatureControllerSlot0).connect(); in testUceControllerOptionsConnected()
138 verify(mFeatureControllerSlot0, never()).addFeature(mMockUceSlot0, in testNoFeaturesEnabled()
140 verify(mFeatureControllerSlot0, never()).connect(); in testNoFeaturesEnabled()
146 verify(mFeatureControllerSlot0, never()).addFeature(mMockSipTransportSlot0, in testSipTransportConnected()
148 verify(mFeatureControllerSlot0, never()).connect(); in testSipTransportConnected()
156 verify(mFeatureControllerSlot0).addFeature(mMockSipTransportSlot0, in testSipTransportConnected()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DOpenNetworkNotifierTest.java35 import static org.mockito.Mockito.verify;
134 verify(mContext).registerReceiver(broadcastReceiverCaptor.capture(), any(), any(), any()); in setUp()
138 verify(mFrameworkFacade).registerContentObserver(eq(mContext), any(Uri.class), eq(true), in setUp()
157 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(OPEN_NET_NOTIFIER_TAG, in onCreate_setWifiNetworksAvailableNotificationSettingState()
170 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(OPEN_NET_NOTIFIER_TAG, in onFeatureDisable_setWifiNetworksAvailableNotificationSettingDisabled()
181 verify(mNotificationBuilder).createConnectToAvailableNetworkNotification( in handleScanResults_hasOpenNetworks_notificationDisplayed()
183 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in handleScanResults_hasOpenNetworks_notificationDisplayed()
185 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_hasOpenNetworks_notificationDisplayed()
195 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed()
208 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed()
[all …]
DConcreteClientModeManagerTest.java280 verify(mWifiNative).setupInterfaceForClientInScanMode( in startClientInScanOnlyModeAndVerifyEnabled()
282 verify(mWifiNative).setWifiNativeInterfaceEventCallback( in startClientInScanOnlyModeAndVerifyEnabled()
284 verify(mWifiInjector, never()).makeClientModeImpl(any(), any(), anyBoolean()); in startClientInScanOnlyModeAndVerifyEnabled()
291 verify(mContext).getSystemService(eq(ConnectivityManager.class)); in startClientInScanOnlyModeAndVerifyEnabled()
292 verify(mContext).getResources(); in startClientInScanOnlyModeAndVerifyEnabled()
296 verify(mListener).onStarted(mClientModeManager); in startClientInScanOnlyModeAndVerifyEnabled()
297 verify(mWifiNative).setScanMode(TEST_INTERFACE_NAME, true); in startClientInScanOnlyModeAndVerifyEnabled()
308 verify(mWifiNative).setupInterfaceForClientInScanMode( in startClientInConnectModeAndVerifyEnabled()
310 verify(mWifiNative).setWifiNativeInterfaceEventCallback( in startClientInConnectModeAndVerifyEnabled()
312 verify(mWifiNative).switchClientInterfaceToConnectivityMode( in startClientInConnectModeAndVerifyEnabled()
[all …]
DDppManagerTest.java68 import static org.mockito.Mockito.verify;
212 verify(mDppCallback).onFailure( in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
215 verify(mDppCallback, never()).onSuccess(anyInt()); in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
216 verify(mDppCallback, never()).onSuccessConfigReceived(anyInt()); in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
217 verify(mDppMetrics).updateDppConfiguratorInitiatorRequests(); in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
218 verify(mDppMetrics).updateDppFailure(eq(EasyConnectStatusCallback in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
243 verify(mDppCallback).onFailure(eq(EASY_CONNECT_EVENT_FAILURE_INVALID_NETWORK), eq(null), in testStartDppAsConfiguratorInitiatorWithoutConfigurableProfile()
266 verify(mDppCallback).onFailure( in testStartDppAsConfiguratorInitiatorFailAddPeer()
269 verify(mDppCallback, never()).onSuccess(anyInt()); in testStartDppAsConfiguratorInitiatorFailAddPeer()
270 verify(mDppCallback, never()).onSuccessConfigReceived(anyInt()); in testStartDppAsConfiguratorInitiatorFailAddPeer()
[all …]
DWifiNativeInterfaceManagementTest.java40 import static org.mockito.Mockito.verify;
251 mInOrder.verify(mWifiVendorHal).initialize(any()); in setUp()
252 mInOrder.verify(mWificondControl).setOnServiceDeadCallback( in setUp()
254 mInOrder.verify(mWificondControl).tearDownInterfaces(); in setUp()
255 mInOrder.verify(mWifiVendorHal).registerRadioModeChangeHandler(any()); in setUp()
298 verify(mSupplicantStaIfaceHal).isAidlService(); in testSetupClientInterfaceWithQosPolicyFeatureEnabled()
299 verify(mSupplicantStaIfaceHal) in testSetupClientInterfaceWithQosPolicyFeatureEnabled()
510 verify(mWifiMonitor).stopMonitoring(IFACE_NAME_1); in testTeardownAllInterfaces()
511 verify(mNetdWrapper).unregisterObserver(mNetworkObserverCaptor1.getValue()); in testTeardownAllInterfaces()
512 verify(mSupplicantStaIfaceHal).teardownIface(IFACE_NAME_1); in testTeardownAllInterfaces()
[all …]
DWifiNetworkFactoryTest.java52 import static org.mockito.Mockito.verify;
304 verify(mWifiDeviceStateChangeManager, atLeastOnce()).registerStateChangeCallback( in setUp()
309 verify(mWifiInjector).makeNetworkRequestStoreData(dataSourceArgumentCaptor.capture()); in setUp()
314 verify(mActiveModeWarden).registerModeChangeCallback( in setUp()
322 verify(mConnectivityManager).registerNetworkProvider( in setUp()
365 verify(mWifiConnectivityManager).setTrustedConnectionAllowed(true); in testHandleNetworkRequestWithNoSpecifier()
384 verify(mWifiConnectivityManager).setTrustedConnectionAllowed(true); in testHandleNetworkReleaseWithNoSpecifier()
388 verify(mWifiConnectivityManager).setTrustedConnectionAllowed(false); in testHandleNetworkReleaseWithNoSpecifier()
413 verify(mConnectivityManager, never()).declareNetworkRequestUnfulfillable(any()); in testHandleAcceptNetworkRequestFromWithUnsupportedSpecifier()
432 verify(mConnectivityManager).declareNetworkRequestUnfulfillable(any()); in testHandleAcceptNetworkRequestWithBand()
[all …]
DInterfaceConflictManagerTest.java32 import static org.mockito.Mockito.verify;
158 verify(mStateMachine, never()).transitionTo(mWaitingState); in testUserApprovalDisabled()
159 verify(mWifiDialogManager, never()).createSimpleDialog( in testUserApprovalDisabled()
161 verify(mDialogHandle, never()).launchDialog(); in testUserApprovalDisabled()
181 verify(mStateMachine, never()).transitionTo(mWaitingState); in testUserApprovalDisabledForSpecificPackage()
182 verify(mWifiDialogManager, never()).createSimpleDialog( in testUserApprovalDisabledForSpecificPackage()
184 verify(mDialogHandle, never()).launchDialog(); in testUserApprovalDisabledForSpecificPackage()
199 verify(mStateMachine, never()).transitionTo(mWaitingState); in testBypassDialog()
200 verify(mWifiDialogManager, never()).createSimpleDialog( in testBypassDialog()
202 verify(mDialogHandle, never()).launchDialog(); in testBypassDialog()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/
DVolumeOptionMenuControllerTest.java23 import static org.mockito.Mockito.verify;
90 verify(mController.mFormat, atLeastOnce()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
91 verify(mController.mRename, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
92 verify(mController.mMount, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
93 verify(mController.mUnmount, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
94 verify(mController.mFormatAsPortable, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
95 verify(mController.mFormatAsInternal, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
96 verify(mController.mMigrate, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
97 verify(mController.mFree, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
98 verify(mController.mForget, never()).setVisible(true); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DCustomAudienceServiceImplTest.java47 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
210 verify(mFledgeAuthorizationFilterMock) in testJoinCustomAudience_runNormally()
216 verify(mCustomAudienceImplMock) in testJoinCustomAudience_runNormally()
221 verify(() -> BackgroundFetchJob.schedule(mFlagsWithAllCheckEnabled)); in testJoinCustomAudience_runNormally()
222 verify(mICustomAudienceCallbackMock).onSuccess(); in testJoinCustomAudience_runNormally()
223 verify(mFledgeAuthorizationFilterMock) in testJoinCustomAudience_runNormally()
228 verify(mAppImportanceFilterMock) in testJoinCustomAudience_runNormally()
231 verify(mFledgeAuthorizationFilterMock) in testJoinCustomAudience_runNormally()
238 verify(mConsentManagerMock).isFledgeConsentRevokedForAppAfterSettingFledgeUse(any()); in testJoinCustomAudience_runNormally()
239 verify(mFledgeAllowListsFilterMock) in testJoinCustomAudience_runNormally()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DActiveDeviceManagerTest.java34 import static org.mockito.Mockito.verify;
218 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in onlyA2dpConnected_setA2dpActive()
226 verify(mA2dpService, after(TIMEOUT_MS).never()).setActiveDevice(mA2dpHeadsetDevice); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected()
228 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpHeadsetDevice); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected()
229 verify(mHeadsetService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpHeadsetDevice); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected()
240 verify(mA2dpService).setActiveDevice(mA2dpHeadsetDevice); in a2dpAndHfpConnectedAtTheSameTime_setA2dpActiveShouldBeCalled()
241 verify(mHeadsetService).setActiveDevice(mA2dpHeadsetDevice); in a2dpAndHfpConnectedAtTheSameTime_setA2dpActiveShouldBeCalled()
248 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in secondA2dpConnected_setSecondA2dpActive()
251 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mSecondaryAudioDevice); in secondA2dpConnected_setSecondA2dpActive()
258 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in lastA2dpDisconnected_clearA2dpActive()
[all …]
DAudioRoutingManagerTest.java31 import static org.mockito.Mockito.verify;
182 verify(mA2dpService, never()).setActiveDevice(mA2dpDevice); in onlyA2dpConnected_setA2dpActiveShouldNotCalled()
189 verify(mA2dpService, never()).setActiveDevice(mA2dpHeadsetDevice); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected()
193 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpHeadsetDevice); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected()
194 verify(mHeadsetService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpHeadsetDevice); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected()
202 verify(mA2dpService).setActiveDevice(mA2dpHeadsetDevice); in a2dpAndHfpConnectedAtTheSameTime_setA2dpActiveShouldNotBeCalled()
203 verify(mHeadsetService).setActiveDevice(mA2dpHeadsetDevice); in a2dpAndHfpConnectedAtTheSameTime_setA2dpActiveShouldNotBeCalled()
211 verify(mA2dpService, never()).setActiveDevice(mA2dpDevice); in secondA2dpConnected_setA2dpActiveShouldNotBeCalled()
215 verify(mA2dpService, never()).setActiveDevice(mSecondaryAudioDevice); in secondA2dpConnected_setA2dpActiveShouldNotBeCalled()
224 verify(mA2dpService).setActiveDevice(mA2dpDevice); in lastA2dpDisconnected_clearA2dpActive()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbCountryCodeTest.java34 import static org.mockito.Mockito.verify;
163 verify(mNativeUwbManager).setCountryCode( in testSetDefaultCountryCodeWhenNoCountryCodeAvailable()
165 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, DEFAULT_COUNTRY_CODE); in testSetDefaultCountryCodeWhenNoCountryCodeAvailable()
172 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephony()
174 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, TEST_COUNTRY_CODE); in testInitializeCountryCodeFromTelephony()
186 verify(mTelephonyManager).getNetworkCountryIso(); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListEmptyAndFlagEnabled()
187 verify(mTelephonyManager, never()).getNetworkCountryIso(anyInt()); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListEmptyAndFlagEnabled()
188 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephonyWhenSubscriptionListEmptyAndFlagEnabled()
190 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, ISO_COUNTRY_CODE); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListEmptyAndFlagEnabled()
202 verify(mTelephonyManager).getNetworkCountryIso(); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListNullAndFlagEnabled()
[all …]
/packages/modules/Uwb/framework/tests/src/android/uwb/
DRangingManagerTest.java27 import static org.mockito.Mockito.verify;
75 verify(adapter, times(1)) in testOpenSession_OpenRangingInvoked()
86 verify(adapter, times(1)) in testOpenSession_validChipId_OpenRangingInvoked()
118 verify(adapter, times(0)) in testOpenSession_invalidChipId_IllegalArgumentException()
129 verify(callback, times(0)).onOpened(any()); in testOnRangingOpened_InvalidSessionHandle()
143 verify(adapter, times(1)) in testOnRangingOpened_MultipleSessionsRegistered()
154 verify(adapter, times(2)) in testOnRangingOpened_MultipleSessionsRegistered()
164 verify(callback1, times(1)).onOpened(any()); in testOnRangingOpened_MultipleSessionsRegistered()
165 verify(callback2, times(0)).onOpened(any()); in testOnRangingOpened_MultipleSessionsRegistered()
168 verify(callback1, times(1)).onOpened(any()); in testOnRangingOpened_MultipleSessionsRegistered()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java64 import static org.mockito.Mockito.verify;
223 verify(mIpNeighborMonitor).start(); in initStateMachine()
253 verify(mBpfCoordinator).updateAllIpv6Rules( in initTetheredStateMachine()
322 verify(mCallback).updateInterfaceState( in startsOutAvailable()
324 verify(mCallback).updateLinkProperties(eq(mIpServer), any(LinkProperties.class)); in startsOutAvailable()
353 verify(mCallback).updateInterfaceState( in handlesImmediateInterfaceDown()
355 verify(mCallback).updateLinkProperties(eq(mIpServer), any(LinkProperties.class)); in handlesImmediateInterfaceDown()
366 inOrder.verify(mAddressCoordinator).requestDownstreamAddress(any(), in canBeTetheredAsBluetooth()
368 inOrder.verify(mNetd).interfaceSetCfg(argThat(cfg -> in canBeTetheredAsBluetooth()
371 inOrder.verify(mNetd).tetherInterfaceAdd(IFACE_NAME); in canBeTetheredAsBluetooth()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerTest.java79 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
411 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(CONSENT_KEY_FOR_ALL); in testConsentIsGivenAfterEnabling_AppSearchOnly()
430 verify(spyConsentManager, times(0)).setConsentToPpApi(isGiven); in testConsentManager_LazyEnable()
447 verify(spyConsentManager).setConsentToPpApi(isGiven); in testConsentManager_LazyDisabled()
465 verify( in testConsentManagerPreApi_LazyEnable()
472 verify(spyConsentManager, never()).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyEnable()
489 verify( in testConsentManagerPreApi_LazyDisabled()
495 verify(spyConsentManager).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyDisabled()
500 verify(spyConsentManager, times(wantedNumOfInvocations)).resetTopicsAndBlockedTopics(); in verifyResetApiCalled()
501 verify(spyConsentManager, times(wantedNumOfInvocations)).resetAppsAndBlockedApps(); in verifyResetApiCalled()
[all …]
DConsentManagerV2Test.java74 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
429 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(AdServicesApiType.ALL_API); in testConsentIsGivenAfterEnabling_AppSearchOnly()
447 verify(spyConsentManager, times(0)).setConsentToSourceOfTruth(isGiven); in testConsentManager_LazyEnable()
464 verify(spyConsentManager).setConsentToSourceOfTruth(isGiven); in testConsentManager_LazyDisabled()
483 verify(spyConsentManager, never()).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyEnable()
501 verify(spyConsentManager).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyDisabled()
506 verify(spyConsentManager, times(wantedNumOfInvocations)).resetTopicsAndBlockedTopics(); in verifyResetApiCalled()
507 verify(spyConsentManager, times(wantedNumOfInvocations)).resetAppsAndBlockedApps(); in verifyResetApiCalled()
508 verify(spyConsentManager, times(wantedNumOfInvocations)).resetMeasurement(); in verifyResetApiCalled()
588 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(AdServicesApiType.ALL_API); in testConsentIsRevokedAfterDisabling_AppSearchOnly()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java38 import static org.mockito.Mockito.verify;
437 verify(mMockSecurityPref).setSummary(SECURITY); in securityPreference_stringShouldBeSet()
446 verify(mMockWifiManager, never()).getConnectionInfo(); in latestWifiInfo_shouldNotBeFetchedInDisplayPreferenceForDisconnectedNetwork()
455 verify(mMockWifiManager, never()).getConnectionInfo(); in latestWifiInfo_shouldNotBeFetchedInDisplayPreferenceForNotInRangeNetwork()
464 verify(mMockConnectivityManager, never()).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldNotBeFetchedInDisplayPreferenceForDisconnectedNetwork()
473 verify(mMockConnectivityManager, never()).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldNotBeFetchedInDisplayPreferenceForNotInRangeNetwork()
482 verify(mMockConnectivityManager, times(1)).registerNetworkCallback( in networkCallback_shouldBeRegisteredOnResume()
493 verify(mMockConnectivityManager, times(1)) in networkCallback_shouldBeUnregisteredOnPause()
505 verify(mMockHeaderController).setIcon(expectedIcon); in entityHeader_shouldHaveIconSetForConnectedNetwork()
515 verify(mMockHeaderController).setIcon(expectedIcon); in entityHeader_shouldHaveIconSetForDisconnectedNetwork()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsMultinetworkSocketClientTest.java31 import static org.mockito.Mockito.verify;
117 verify(mProvider, timeout(DEFAULT_TIMEOUT).times(requestSocketCount)) in expectSocketCallback()
153 verify(mSocketCreationCallback).onSocketCreated(mSocketKey); in testSendPacket()
155 verify(mSocketCreationCallback).onSocketCreated(tetherSocketKey1); in testSendPacket()
157 verify(mSocketCreationCallback).onSocketCreated(tetherSocketKey2); in testSendPacket()
163 verify(mSocket).send(ipv4Packet); in testSendPacket()
164 verify(tetherIfaceSock1, never()).send(any()); in testSendPacket()
165 verify(tetherIfaceSock2, never()).send(any()); in testSendPacket()
171 verify(mSocket, times(2)).send(ipv4Packet); in testSendPacket()
172 verify(tetherIfaceSock1, never()).send(any()); in testSendPacket()
[all …]
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/users/
DRestrictedProfilePinStorageTest.java27 import static org.mockito.Mockito.verify;
90 verify(mPinService).isPinSet(); in testSetPinWhenNoPinIsSet_success()
91 verify(mPinService, never()).isPinCorrect(anyString()); in testSetPinWhenNoPinIsSet_success()
93 verify(mPinService).setPin(mNewPin); in testSetPinWhenNoPinIsSet_success()
94 verify(mLockPatternUtils, never()).setLockCredential( in testSetPinWhenNoPinIsSet_success()
106 verify(mPinService).isPinCorrect(eq(mWrongPin)); in testSetPinWhenWrongPinIsInput_fail()
108 verify(mPinService, never()).setPin(anyString()); in testSetPinWhenWrongPinIsInput_fail()
109 verify(mLockPatternUtils, never()).setLockCredential( in testSetPinWhenWrongPinIsInput_fail()
121 verify(mPinService, atLeastOnce()).isPinSet(); in testSetPinWhenCorrectPinIsInput_success()
122 verify(mPinService).isPinCorrect(eq(mOriginalPin)); in testSetPinWhenCorrectPinIsInput_success()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryTipsControllerTest.java21 import static org.mockito.Mockito.verify;
72 verify(mBatteryTipsCardPreference).setVisible(false); in handleBatteryTipsCardUpdated_null_hidePreference()
84 verify(mBatteryTipsCardPreference) in handleBatteryTipsCardUpdated_adaptiveBrightnessAnomaly_showAnomaly()
86 verify(mBatteryTipsCardPreference).setIconResourceId(R.drawable.ic_battery_tips_lightbulb); in handleBatteryTipsCardUpdated_adaptiveBrightnessAnomaly_showAnomaly()
87 verify(mBatteryTipsCardPreference).setButtonColorResourceId(R.color.color_accent_selector); in handleBatteryTipsCardUpdated_adaptiveBrightnessAnomaly_showAnomaly()
88 verify(mBatteryTipsCardPreference).setMainButtonLabel("View Settings"); in handleBatteryTipsCardUpdated_adaptiveBrightnessAnomaly_showAnomaly()
89 verify(mBatteryTipsCardPreference).setDismissButtonLabel("Got it"); in handleBatteryTipsCardUpdated_adaptiveBrightnessAnomaly_showAnomaly()
91 verify(mBatteryTipsCardPreference).setVisible(true); in handleBatteryTipsCardUpdated_adaptiveBrightnessAnomaly_showAnomaly()
92 verify(mFeatureFactory.metricsFeatureProvider) in handleBatteryTipsCardUpdated_adaptiveBrightnessAnomaly_showAnomaly()
109 verify(mBatteryTipsCardPreference).setTitle("Reduce screen timeout to extend battery life"); in handleBatteryTipsCardUpdated_screenTimeoutAnomaly_showAnomaly()
[all …]

12345678910>>...109