/packages/services/Telephony/tests/src/com/android/phone/ |
D | ImsStateCallbackControllerTest.java | 42 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/ |
D | AdServicesAppsearchDeleteJobTest.java | 37 import static org.mockito.Mockito.verify; 195 verify(jobScheduler).cancel(0); in onCancelJob_shouldNotReschedule() 196 verify(mAdServicesAppsearchDeleteJob).setReschedule(any(), eq(false)); in onCancelJob_shouldNotReschedule() 214 verify(mAdservicesPhFlags).isAppsearchDeleteJobEnabled(); in schedulePeriodic_onDisabledFlag_shouldNotSchedule() 215 verify(jobScheduler, never()).schedule(any()); in schedulePeriodic_onDisabledFlag_shouldNotSchedule() 234 verify(mAdservicesPhFlags).isAppsearchDeleteJobEnabled(); in schedulePeriodic_onExistingJob_shouldNotSchedule() 235 verify(jobScheduler).getPendingJob(anyInt()); in schedulePeriodic_onExistingJob_shouldNotSchedule() 236 verify(jobScheduler, never()).schedule(any()); in schedulePeriodic_onExistingJob_shouldNotSchedule() 260 verify(jobScheduler) in schedulePeriodic_onNonExistingJob_EnabledJob_shouldSchedule() 262 verify(mAdservicesPhFlags) in schedulePeriodic_onNonExistingJob_EnabledJob_shouldSchedule() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/adselection/signature/ |
D | ProtectedAudienceSignatureManagerTest.java | 29 import static org.mockito.Mockito.verify; 219 verify(mSignatureVerificationLoggerMock, times(1)).startKeyFetchForSignatureVerification(); in verifyLogSuccessfulSignatureVerification() 220 verify(mSignatureVerificationLoggerMock, times(1)).endKeyFetchForSignatureVerification(); in verifyLogSuccessfulSignatureVerification() 221 verify(mSignatureVerificationLoggerMock, times(1)) in verifyLogSuccessfulSignatureVerification() 223 verify(mSignatureVerificationLoggerMock, times(1)) in verifyLogSuccessfulSignatureVerification() 225 verify(mSignatureVerificationLoggerMock, times(1)).startSignatureVerification(); in verifyLogSuccessfulSignatureVerification() 226 verify(mSignatureVerificationLoggerMock, times(1)).endSignatureVerification(); in verifyLogSuccessfulSignatureVerification() 227 verify(mSignatureVerificationLoggerMock, times(1)) in verifyLogSuccessfulSignatureVerification() 229 verify(mSignatureVerificationLoggerMock, times(1)).close(verified); in verifyLogSuccessfulSignatureVerification() 230 verify(mSignatureVerificationLoggerMock, times(0)) in verifyLogSuccessfulSignatureVerification() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/ |
D | UxEngineTest.java | 34 import static org.mockito.Mockito.verify; 154 verify(mUxStatesManager).persistAdServicesStates(adServicesStates); in startTest_uxDisabled() 157 verify(mUxStatesManager).getFlag(KEY_ADSERVICES_ENABLED); in startTest_uxDisabled() 158 verify(mConsentManager, never()).isEntryPointEnabled(); in startTest_uxDisabled() 161 verify(mConsentManager, never()).setUx(UNSUPPORTED_UX); in startTest_uxDisabled() 162 verify(mConsentManager, never()).setEnrollmentChannel(UNSUPPORTED_UX, null); in startTest_uxDisabled() 164 ExtendedMockito.verify( in startTest_uxDisabled() 190 verify(mUxStatesManager).persistAdServicesStates(adServicesStates); in startTest_entryPointDisabled() 193 verify(mUxStatesManager).getFlag(KEY_ADSERVICES_ENABLED); in startTest_entryPointDisabled() 194 verify(mConsentManager).isEntryPointEnabled(); in startTest_entryPointDisabled() [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | TelephonyRcsServiceTest.java | 27 import static org.mockito.Mockito.verify; 126 verify(mFeatureControllerSlot0).addFeature(mMockUceSlot0, UceControllerManager.class); in testUceControllerPresenceConnected() 127 verify(mFeatureControllerSlot0).connect(); in testUceControllerPresenceConnected() 135 verify(mFeatureControllerSlot0).addFeature(mMockUceSlot0, UceControllerManager.class); in testUceControllerOptionsConnected() 136 verify(mFeatureControllerSlot0).connect(); in testUceControllerOptionsConnected() 143 verify(mFeatureControllerSlot0, never()).addFeature(mMockUceSlot0, in testNoFeaturesEnabled() 145 verify(mFeatureControllerSlot0, never()).connect(); in testNoFeaturesEnabled() 151 verify(mFeatureControllerSlot0, never()).addFeature(mMockSipTransportSlot0, in testSipTransportConnected() 153 verify(mFeatureControllerSlot0, never()).connect(); in testSipTransportConnected() 161 verify(mFeatureControllerSlot0).addFeature(mMockSipTransportSlot0, in testSipTransportConnected() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | OpenNetworkNotifierTest.java | 35 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 …]
|
D | ConcreteClientModeManagerTest.java | 282 verify(mWifiNative).setupInterfaceForClientInScanMode( in startClientInScanOnlyModeAndVerifyEnabled() 284 verify(mWifiNative).setWifiNativeInterfaceEventCallback( in startClientInScanOnlyModeAndVerifyEnabled() 286 verify(mWifiInjector, never()).makeClientModeImpl(any(), any(), anyBoolean()); in startClientInScanOnlyModeAndVerifyEnabled() 293 verify(mContext).getSystemService(eq(ConnectivityManager.class)); in startClientInScanOnlyModeAndVerifyEnabled() 294 verify(mContext).getResources(); in startClientInScanOnlyModeAndVerifyEnabled() 298 verify(mListener).onStarted(mClientModeManager); in startClientInScanOnlyModeAndVerifyEnabled() 299 verify(mWifiNative).setScanMode(TEST_INTERFACE_NAME, true); in startClientInScanOnlyModeAndVerifyEnabled() 310 verify(mWifiNative).setupInterfaceForClientInScanMode( in startClientInConnectModeAndVerifyEnabled() 312 verify(mWifiNative).setWifiNativeInterfaceEventCallback( in startClientInConnectModeAndVerifyEnabled() 314 verify(mWifiNative).switchClientInterfaceToConnectivityMode( in startClientInConnectModeAndVerifyEnabled() [all …]
|
D | DppManagerTest.java | 69 import static org.mockito.Mockito.verify; 213 verify(mDppCallback).onFailure( in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 216 verify(mDppCallback, never()).onSuccess(anyInt()); in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 217 verify(mDppCallback, never()).onSuccessConfigReceived(anyInt()); in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 218 verify(mDppMetrics).updateDppConfiguratorInitiatorRequests(); in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 219 verify(mDppMetrics).updateDppFailure(eq(EasyConnectStatusCallback in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 244 verify(mDppCallback).onFailure(eq(EASY_CONNECT_EVENT_FAILURE_INVALID_NETWORK), eq(null), in testStartDppAsConfiguratorInitiatorWithoutConfigurableProfile() 267 verify(mDppCallback).onFailure( in testStartDppAsConfiguratorInitiatorFailAddPeer() 270 verify(mDppCallback, never()).onSuccess(anyInt()); in testStartDppAsConfiguratorInitiatorFailAddPeer() 271 verify(mDppCallback, never()).onSuccessConfigReceived(anyInt()); in testStartDppAsConfiguratorInitiatorFailAddPeer() [all …]
|
D | WifiNativeInterfaceManagementTest.java | 40 import static org.mockito.Mockito.verify; 303 mInOrder.verify(mWifiVendorHal).initialize(any()); in setUp() 304 mInOrder.verify(mWificondControl).setOnServiceDeadCallback( in setUp() 306 mInOrder.verify(mWificondControl).tearDownInterfaces(); in setUp() 307 mInOrder.verify(mWifiVendorHal).registerRadioModeChangeHandler(any()); in setUp() 353 verify(mSupplicantStaIfaceHal).isAidlService(); in testSetupClientInterfaceWithQosPolicyFeatureEnabled() 354 verify(mSupplicantStaIfaceHal) in testSetupClientInterfaceWithQosPolicyFeatureEnabled() 565 verify(mWifiMonitor).stopMonitoring(IFACE_NAME_1); in testTeardownAllInterfaces() 566 verify(mNetdWrapper).unregisterObserver(mNetworkObserverCaptor1.getValue()); in testTeardownAllInterfaces() 567 verify(mSupplicantStaIfaceHal).teardownIface(IFACE_NAME_1); in testTeardownAllInterfaces() [all …]
|
D | WifiVoipDetectorTest.java | 24 import static org.mockito.Mockito.verify; 104 verify(mTelephonyManager).registerTelephonyCallback(any(), in testNotifyWifiConnectedDisconnectedInPrimaryClientMode() 106 verify(mAudioManager).addOnModeChangedListener(any(), in testNotifyWifiConnectedDisconnectedInPrimaryClientMode() 109 verify(mWifiNative, never()).setVoipMode(anyInt()); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode() 112 verify(mWifiNative, never()).setVoipMode(anyInt()); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode() 116 verify(mWifiNative).setVoipMode(WifiChip.WIFI_VOIP_MODE_VOICE); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode() 117 verify(mWifiInjector.getWifiMetrics()).setVoipMode(WifiChip.WIFI_VOIP_MODE_VOICE); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode() 120 verify(mWifiNative).setVoipMode(WifiChip.WIFI_VOIP_MODE_OFF); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode() 121 verify(mWifiInjector.getWifiMetrics()).setVoipMode(WifiChip.WIFI_VOIP_MODE_OFF); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode() 125 verify(mWifiNative).setVoipMode(WifiChip.WIFI_VOIP_MODE_VOICE); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode() [all …]
|
D | InterfaceConflictManagerTest.java | 32 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/ |
D | VolumeOptionMenuControllerTest.java | 23 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/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/ |
D | DevicePolicyControllerImplEnforcementTest.java | 21 import static org.mockito.Mockito.verify; 130 verify(mMockUserRestrictionsPolicyHandler).onUnprovisioned(); in enforceCurrentPolicies_withProvisionStateUnprovisioned_shouldCallOnUnprovisioned() 133 verify(mMockAppOpsPolicyHandler).onUnprovisioned(); in enforceCurrentPolicies_withProvisionStateUnprovisioned_shouldCallOnUnprovisioned() 136 verify(mMockLockTaskModePolicyHandler).onUnprovisioned(); in enforceCurrentPolicies_withProvisionStateUnprovisioned_shouldCallOnUnprovisioned() 139 verify(mMockPackagePolicyHandler).onUnprovisioned(); in enforceCurrentPolicies_withProvisionStateUnprovisioned_shouldCallOnUnprovisioned() 142 verify(mMockRolePolicyHandler).onUnprovisioned(); in enforceCurrentPolicies_withProvisionStateUnprovisioned_shouldCallOnUnprovisioned() 145 verify(mMockKioskKeepAlivePolicyHandler).onUnprovisioned(); in enforceCurrentPolicies_withProvisionStateUnprovisioned_shouldCallOnUnprovisioned() 148 verify(mMockControllerKeepAlivePolicyHandler).onUnprovisioned(); in enforceCurrentPolicies_withProvisionStateUnprovisioned_shouldCallOnUnprovisioned() 151 verify(mMockNotificationsPolicyHandler).onUnprovisioned(); in enforceCurrentPolicies_withProvisionStateUnprovisioned_shouldCallOnUnprovisioned() 164 verify(mMockUserRestrictionsPolicyHandler).onProvisionInProgress(); in enforceCurrentPolicies_withProvisionStateProgress_shouldCallOnProvisionInProgress() [all …]
|
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/cardemulation/ |
D | CardEmulationManagerTest.java | 39 import static org.mockito.Mockito.verify; 246 verify(mRoutingOptionManager).getOffHostRouteEse(); in assertConstructorMethodCalls() 247 verify(mRoutingOptionManager).getOffHostRouteUicc(); in assertConstructorMethodCalls() 248 verify(mRegisteredServicesCache).initialize(); in assertConstructorMethodCalls() 249 verify(mRegisteredNfcFServicesCache).initialize(); in assertConstructorMethodCalls() 250 verify(mWalletRoleObserver).isWalletRoleFeatureEnabled(); in assertConstructorMethodCalls() 251 verify(mWalletRoleObserver).getDefaultWalletRoleHolder(eq(USER_ID)); in assertConstructorMethodCalls() 252 verify(mPreferredServices) in assertConstructorMethodCalls() 254 verify(mRegisteredAidCache) in assertConstructorMethodCalls() 268 verify(mHostEmulationManager).onPollingLoopDetected(mPollingLoopFrameCaptor.capture()); in testPollingLoopDetected() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | ActiveDeviceManagerTest.java | 43 import static org.mockito.Mockito.verify; 225 verify(mA2dpService).setActiveDevice(mA2dpDevice); in onlyA2dpConnected_setA2dpActive() 234 verify(mA2dpService, never()).setActiveDevice(mA2dpHeadsetDevice); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected() 238 verify(mA2dpService).setActiveDevice(mA2dpHeadsetDevice); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected() 239 verify(mHeadsetService).setActiveDevice(mA2dpHeadsetDevice); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected() 249 verify(mA2dpService).setActiveDevice(mA2dpHeadsetDevice); in a2dpAndHfpConnectedAtTheSameTime_setA2dpActiveShouldBeCalled() 250 verify(mHeadsetService).setActiveDevice(mA2dpHeadsetDevice); in a2dpAndHfpConnectedAtTheSameTime_setA2dpActiveShouldBeCalled() 258 verify(mA2dpService).setActiveDevice(mA2dpDevice); in secondA2dpConnected_setSecondA2dpActive() 262 verify(mA2dpService).setActiveDevice(mSecondaryAudioDevice); in secondA2dpConnected_setSecondA2dpActive() 270 verify(mA2dpService).setActiveDevice(mA2dpDevice); in lastA2dpDisconnected_clearA2dpActive() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 67 import static org.mockito.Mockito.verify; 278 verify(mBpfCoordinator).addIpServer(mIpServer); in initTetheredStateMachine() 289 verify(mBpfCoordinator, times(2)).maybeAddUpstreamToLookupTable( in initTetheredStateMachine() 291 verify(mBpfCoordinator).updateIpv6UpstreamInterface( in initTetheredStateMachine() 340 verify(mCallback).updateInterfaceState( in startsOutAvailable() 342 verify(mCallback).updateLinkProperties(eq(mIpServer), any(LinkProperties.class)); in startsOutAvailable() 371 verify(mCallback).updateInterfaceState( in handlesImmediateInterfaceDown() 373 verify(mCallback).updateLinkProperties(eq(mIpServer), any(LinkProperties.class)); in handlesImmediateInterfaceDown() 389 inOrder.verify(mRoutingCoordinatorManager) in canBeTetheredAsBluetooth() 394 inOrder.verify(mRoutingCoordinatorManager, never()).requestDownstreamAddress(any()); in canBeTetheredAsBluetooth() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/customaudience/ |
D | CustomAudienceServiceImplTest.java | 59 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify; 214 verify(mFledgeAuthorizationFilterMock) in testJoinCustomAudience_runNormally() 220 verify(mCustomAudienceImplMock) in testJoinCustomAudience_runNormally() 225 verify(() -> BackgroundFetchJob.schedule(mFlagsWithAllCheckEnabled)); in testJoinCustomAudience_runNormally() 226 verify(mICustomAudienceCallbackMock).onSuccess(); in testJoinCustomAudience_runNormally() 227 verify(mFledgeAuthorizationFilterMock) in testJoinCustomAudience_runNormally() 232 verify(mAppImportanceFilterMock) in testJoinCustomAudience_runNormally() 235 verify(mFledgeAuthorizationFilterMock) in testJoinCustomAudience_runNormally() 242 verify(mConsentManagerMock).isFledgeConsentRevokedForAppAfterSettingFledgeUse(any()); in testJoinCustomAudience_runNormally() 243 verify(mFledgeAllowListsFilterMock) in testJoinCustomAudience_runNormally() [all …]
|
/packages/modules/Uwb/framework/tests/src/android/uwb/ |
D | RangingManagerTest.java | 27 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/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbCountryCodeTest.java | 35 import static org.mockito.Mockito.verify; 194 verify(mNativeUwbManager).setCountryCode( in testSetDefaultCountryCodeWhenNoCountryCodeAvailable() 196 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, DEFAULT_COUNTRY_CODE); in testSetDefaultCountryCodeWhenNoCountryCodeAvailable() 203 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephony() 205 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, TEST_COUNTRY_CODE); in testInitializeCountryCodeFromTelephony() 217 verify(mTelephonyManager).getNetworkCountryIso(); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListEmptyAndFlagEnabled() 218 verify(mTelephonyManager, never()).getNetworkCountryIso(anyInt()); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListEmptyAndFlagEnabled() 219 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephonyWhenSubscriptionListEmptyAndFlagEnabled() 221 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, ISO_COUNTRY_CODE); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListEmptyAndFlagEnabled() 233 verify(mTelephonyManager).getNetworkCountryIso(); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListNullAndFlagEnabled() [all …]
|
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/ |
D | ThreadNetworkShellCommandTest.java | 36 import static org.mockito.Mockito.verify; 132 verify(mContext, times(1)) in getCountryCode_testingPermissionIsChecked() 143 verify(mOutputWriter).println(contains("US")); in getCountryCode_currentCountryCodePrinted() 150 verify(mContext, times(1)) in forceSetCountryCodeEnabled_testingPermissionIsChecked() 159 verify(mCountryCode).setOverrideCountryCode(eq("US")); in forceSetCountryCodeEnabled_countryCodeIsOverridden() 166 verify(mCountryCode).clearOverrideCountryCode(); in forceSetCountryCodeDisabled_overriddenCountryCodeIsCleared() 173 verify(mContext, times(1)) in forceStopOtDaemon_testingPermissionIsChecked() 186 verify(mControllerService, times(1)).forceStopOtDaemonForTest(eq(true), any()); in forceStopOtDaemon_serviceThrows_failed() 187 verify(mOutputWriter, never()).println(); in forceStopOtDaemon_serviceThrows_failed() 196 verify(mControllerService, times(1)).forceStopOtDaemonForTest(eq(true), any()); in forceStopOtDaemon_serviceApiTimeout_failedWithTimeoutError() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/ |
D | WifiDetailPreferenceController2Test.java | 38 import static org.mockito.Mockito.verify; 438 verify(mMockSecurityPref).setSummary(SECURITY); in securityPreference_stringShouldBeSet() 447 verify(mMockWifiManager, never()).getConnectionInfo(); in latestWifiInfo_shouldNotBeFetchedInDisplayPreferenceForDisconnectedNetwork() 456 verify(mMockWifiManager, never()).getConnectionInfo(); in latestWifiInfo_shouldNotBeFetchedInDisplayPreferenceForNotInRangeNetwork() 465 verify(mMockConnectivityManager, never()).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldNotBeFetchedInDisplayPreferenceForDisconnectedNetwork() 474 verify(mMockConnectivityManager, never()).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldNotBeFetchedInDisplayPreferenceForNotInRangeNetwork() 483 verify(mMockConnectivityManager, times(1)).registerNetworkCallback( in networkCallback_shouldBeRegisteredOnResume() 494 verify(mMockConnectivityManager, times(1)) in networkCallback_shouldBeUnregisteredOnPause() 506 verify(mMockHeaderController).setIcon(expectedIcon); in entityHeader_shouldHaveIconSetForConnectedNetwork() 516 verify(mMockHeaderController).setIcon(expectedIcon); in entityHeader_shouldHaveIconSetForDisconnectedNetwork() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ |
D | ConsentManagerV2Test.java | 79 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify; 436 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(AdServicesApiType.ALL_API); in testConsentIsGivenAfterEnabling_AppSearchOnly() 454 verify(spyConsentManager, times(0)).setConsentToSourceOfTruth(isGiven); in testConsentManager_LazyEnable() 471 verify(spyConsentManager).setConsentToSourceOfTruth(isGiven); in testConsentManager_LazyDisabled() 490 verify(spyConsentManager, never()).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyEnable() 508 verify(spyConsentManager).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyDisabled() 513 verify(spyConsentManager, times(wantedNumOfInvocations)).resetTopicsAndBlockedTopics(); in verifyResetApiCalled() 514 verify(spyConsentManager, times(wantedNumOfInvocations)).resetAppsAndBlockedApps(); in verifyResetApiCalled() 515 verify(spyConsentManager, times(wantedNumOfInvocations)).resetMeasurement(); in verifyResetApiCalled() 592 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(AdServicesApiType.ALL_API); in testConsentIsRevokedAfterDisabling_AppSearchOnly() [all …]
|
D | ConsentManagerTest.java | 94 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify; 462 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(CONSENT_KEY_FOR_ALL); in testConsentIsGivenAfterEnabling_AppSearchOnly() 481 verify(spyConsentManager, times(0)).setConsentToPpApi(isGiven); in testConsentManager_LazyEnable() 498 verify(spyConsentManager).setConsentToPpApi(isGiven); in testConsentManager_LazyDisabled() 516 verify( in testConsentManagerPreApi_LazyEnable() 523 verify(spyConsentManager, never()).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyEnable() 540 verify( in testConsentManagerPreApi_LazyDisabled() 546 verify(spyConsentManager).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyDisabled() 551 verify(spyConsentManager, times(wantedNumOfInvocations)).resetTopicsAndBlockedTopics(); in verifyResetApiCalled() 552 verify(spyConsentManager, times(wantedNumOfInvocations)).resetAppsAndBlockedApps(); in verifyResetApiCalled() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsMultinetworkSocketClientTest.java | 33 import static org.mockito.Mockito.verify; 121 verify(mProvider, timeout(DEFAULT_TIMEOUT).times(requestSocketCount)) in expectSocketCallback() 157 verify(mSocketCreationCallback).onSocketCreated(mSocketKey); in testSendPacket() 159 verify(mSocketCreationCallback).onSocketCreated(tetherSocketKey1); in testSendPacket() 161 verify(mSocketCreationCallback).onSocketCreated(tetherSocketKey2); in testSendPacket() 167 verify(mSocket).send(ipv4Packet); in testSendPacket() 168 verify(tetherIfaceSock1, never()).send(any()); in testSendPacket() 169 verify(tetherIfaceSock2, never()).send(any()); in testSendPacket() 175 verify(mSocket, times(2)).send(ipv4Packet); in testSendPacket() 176 verify(tetherIfaceSock1, never()).send(any()); in testSendPacket() [all …]
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/users/ |
D | RestrictedProfilePinStorageTest.java | 27 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 …]
|