/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiNotificationManagerTest.java | 46 private WifiNotificationManager mWifiNotificationManager; field in WifiNotificationManagerTest 72 mWifiNotificationManager = new WifiNotificationManager(mContext); in setUp() 77 mWifiNotificationManager.notify(TEST_MESSAGE_ID, mNotification); in testNotify() 80 mWifiNotificationManager.createNotificationChannels(); in testNotify() 82 mWifiNotificationManager.notify(TEST_MESSAGE_ID, mNotification); in testNotify() 88 mWifiNotificationManager.cancel(TEST_MESSAGE_ID); in testCancel() 91 mWifiNotificationManager.createNotificationChannels(); in testCancel() 93 mWifiNotificationManager.cancel(TEST_MESSAGE_ID); in testCancel() 99 mWifiNotificationManager.createNotificationChannels(); in testUserSwitchNotificationSendCorrect() 101 mWifiNotificationManager.notify(TEST_MESSAGE_ID, mNotification); in testUserSwitchNotificationSendCorrect() [all …]
|
D | OpenNetworkNotifierTest.java | 93 @Mock private WifiNotificationManager mWifiNotificationManager; field in OpenNetworkNotifierTest 131 mMakeBeforeBreakManager, mWifiNotificationManager, mWifiPermissionsUtil); in setUp() 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() 223 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_emptyList_notificationCleared() 227 verify(mWifiNotificationManager).cancel(anyInt()); in handleScanResults_notificationShown_emptyList_notificationCleared() 242 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_noRecommendation_notificationCleared() 247 verify(mWifiNotificationManager).cancel(anyInt()); in handleScanResults_notificationShown_noRecommendation_notificationCleared() 262 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared() [all …]
|
D | WakeupOnboardingTest.java | 56 @Mock private WifiNotificationManager mWifiNotificationManager; field in WakeupOnboardingTest 77 mWifiNotificationManager); in setUp() 88 verify(mWifiNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), any()); in showsNotificationIfNotOnboarded() 99 verify(mWifiNotificationManager, never()) in doesNotShowNotificationIfAlreadyOnboarded() 112 InOrder inOrder = Mockito.inOrder(mWifiNotificationManager); in doesNotShowNotificationIfAlreadyShowing() 113 inOrder.verify(mWifiNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), in doesNotShowNotificationIfAlreadyShowing() 134 verify(mWifiNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in dismissNotificationAction_setsOnboarded() 158 verify(mWifiNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in turnOffWifiWakeAction_setsOnboardedAndTurnsOffWifiWake() 181 verify(mWifiNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in openWifiSettingsAction_setsOnboardedAndOpensWifiSettings() 196 verify(mWifiNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in onStopDismissesNotificationWithoutOnboarding() [all …]
|
D | EapFailureNotifierTest.java | 70 @Mock WifiNotificationManager mWifiNotificationManager; field in EapFailureNotifierTest 122 mWifiNotificationManager, mWifiGlobals); in setUp() 148 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureEapFailureConfigWithOverride() 189 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithDefinedErrorCodeWithoutNotificationShown() 193 verify(mWifiNotificationManager).notify(eq(EapFailureNotifier.NOTIFICATION_ID), any()); in onEapFailureWithDefinedErrorCodeWithoutNotificationShown() 216 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailure_showNotificationFalse_notShown() 220 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in onEapFailure_showNotificationFalse_notShown() 239 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithDefinedErrorCodeWithNotificationShownWithoutSameSsid() 244 verify(mWifiNotificationManager).notify(eq(EapFailureNotifier.NOTIFICATION_ID), any()); in onEapFailureWithDefinedErrorCodeWithNotificationShownWithoutSameSsid() 269 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithDefinedErrorCodeWithNotificationShownWithSameSsid() [all …]
|
D | WrongPasswordNotifierTest.java | 58 @Mock WifiNotificationManager mWifiNotificationManager; field in WrongPasswordNotifierTest 77 mWifiNotificationManager); in setUp() 110 verify(mWifiNotificationManager).notify(eq(WrongPasswordNotifier.NOTIFICATION_ID), any()); in onWrongPasswordError() 130 reset(mWifiNotificationManager); in onNewConnectionAttemptWithPreviousWrongPasswordError() 133 verify(mWifiNotificationManager).cancel(eq(WrongPasswordNotifier.NOTIFICATION_ID)); in onNewConnectionAttemptWithPreviousWrongPasswordError() 145 verify(mWifiNotificationManager, never()).cancel(anyInt()); in onNewConnectionAttemptWithoutPreviousWrongPasswordError()
|
D | SoftApNotifierTest.java | 51 @Mock WifiNotificationManager mWifiNotificationManager; field in SoftApNotifierTest 64 mSoftApNotifier = new SoftApNotifier(mContext, mFrameworkFacade, mWifiNotificationManager); in setUp() 77 verify(mWifiNotificationManager).notify( in showSoftApShutdownTimeoutExpiredNotification() 94 verify(mWifiNotificationManager).cancel( in dismissSoftApShutdownTimeoutExpiredNotification()
|
D | ConnectionFailureNotifierTest.java | 65 @Mock private WifiNotificationManager mWifiNotificationManager; field in ConnectionFailureNotifierTest 89 new Handler(mLooper.getLooper()), mWifiNotificationManager, in setUp() 134 verify(mWifiNotificationManager).notify( in testConnectionFailureSendRandomizationSettingsNotification() 177 verify(mWifiNotificationManager).notify( in testWifiConfigurationMismatch()
|
D | AvailableNetworkNotifierTest.java | 60 @Mock WifiNotificationManager mWifiNotificationManager; field in AvailableNetworkNotifierTest 88 mWifiNotificationManager, in setUp()
|
D | WifiNetworkSuggestionsManagerTest.java | 169 private @Mock WifiNotificationManager mWifiNotificationManager; field in WifiNetworkSuggestionsManagerTest 233 when(mWifiInjector.getWifiNotificationManager()).thenReturn(mWifiNotificationManager); in setUp() 2685 verify(mWifiNotificationManager).cancel(SystemMessage.NOTE_NETWORK_SUGGESTION_AVAILABLE); in testClear() 2708 reset(mWifiNotificationManager); in testUserApprovalNotificationDismissalWhenGetScanResult() 2721 reset(mWifiNotificationManager); in testUserApprovalNotificationDismissalWhenGetScanResult() 2727 verifyNoMoreInteractions(mWifiNotificationManager); in testUserApprovalNotificationDismissalWhenGetScanResult() 2757 reset(mWifiNotificationManager); in testUserApprovalNotificationClickOnAllowWhenGetScanResult() 2769 verify(mWifiNotificationManager).cancel(SystemMessage.NOTE_NETWORK_SUGGESTION_AVAILABLE); in testUserApprovalNotificationClickOnAllowWhenGetScanResult() 2777 reset(mWifiNotificationManager); in testUserApprovalNotificationClickOnAllowWhenGetScanResult() 2781 verifyNoMoreInteractions(mWifiNotificationManager); in testUserApprovalNotificationClickOnAllowWhenGetScanResult() [all …]
|
D | WifiCarrierInfoManagerTest.java | 168 @Mock WifiNotificationManager mWifiNotificationManager; field in WifiCarrierInfoManagerTest 228 when(mWifiInjector.getWifiNotificationManager()).thenReturn(mWifiNotificationManager); in setUp() 1888 verify(mWifiNotificationManager).cancel(SystemMessage.NOTE_CARRIER_SUGGESTION_AVAILABLE); in testSendImsiProtectionExemptionNotificationWithUserAllowed() 1918 verify(mWifiNotificationManager).cancel(SystemMessage.NOTE_CARRIER_SUGGESTION_AVAILABLE); in testSendImsiProtectionExemptionNotificationWithUserDisallowed() 1951 reset(mWifiNotificationManager); in testSendImsiProtectionExemptionNotificationWithUserDismissal() 1954 verifyNoMoreInteractions(mWifiNotificationManager); in testSendImsiProtectionExemptionNotificationWithUserDismissal() 1959 reset(mWifiNotificationManager); in testSendImsiProtectionExemptionNotificationWithUserDismissal() 1964 verifyNoMoreInteractions(mWifiNotificationManager); in testSendImsiProtectionExemptionNotificationWithUserDismissal() 1991 verify(mWifiNotificationManager).cancel(SystemMessage.NOTE_CARRIER_SUGGESTION_AVAILABLE); in testSendImsiProtectionExemptionConfirmationDialogWithUserDisallowed() 2031 verify(mWifiNotificationManager).cancel(SystemMessage.NOTE_CARRIER_SUGGESTION_AVAILABLE); in testSendImsiProtectionExemptionConfirmationDialogWithUserDismissal() [all …]
|
D | InsecureEapNetworkHandlerTest.java | 323 @Mock WifiNotificationManager mWifiNotificationManager; field in InsecureEapNetworkHandlerTest 739 mWifiNotificationManager, in setupTest() 999 mWifiNotificationManager, in verifySetPendingCertificateNoCrashWithNoConfig() 1256 mWifiNotificationManager, in configureTofuWithAidlVersion2Value()
|
D | WifiServiceImplTest.java | 481 @Mock WifiNotificationManager mWifiNotificationManager; field in WifiServiceImplTest 553 when(mWifiInjector.getWifiNotificationManager()).thenReturn(mWifiNotificationManager); in setUp() 8722 verify(mWifiNotificationManager).createNotificationChannels(); in testHandleUserSwitch() 9642 verify(mWifiNotificationManager).createNotificationChannels(); in testNotificationResetWithLocaleChange() 9643 clearInvocations(mWifiNotificationManager); in testNotificationResetWithLocaleChange() 9647 verify(mWifiNotificationManager).createNotificationChannels(); in testNotificationResetWithLocaleChange()
|
D | SoftApManagerTest.java | 208 @Mock WifiNotificationManager mWifiNotificationManager; field in SoftApManagerTest
|
D | ClientModeImplTest.java | 590 @Mock WifiNotificationManager mWifiNotificationManager; field in ClientModeImplTest 838 mSettingsConfigStore, false, mWifiNotificationManager, in initializeCmi()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiInjector.java | 259 private final WifiNotificationManager mWifiNotificationManager; field in WifiInjector 312 mWifiNotificationManager = new WifiNotificationManager(mContext); in WifiInjector() 446 mFrameworkFacade, mWifiNotificationManager, mDeviceConfigFacade, in WifiInjector() 525 mMakeBeforeBreakManager, mWifiNotificationManager, mWifiPermissionsUtil); in WifiInjector() 548 mWifiNotificationManager, mConnectionFailureNotificationBuilder, in WifiInjector() 586 wifiHandler, mFrameworkFacade, wakeupNotificationFactory, mWifiNotificationManager); in WifiInjector() 607 mWifiNotificationManager); in WifiInjector() 852 new SoftApNotifier(mContext, mFrameworkFacade, mWifiNotificationManager), in makeSoftApManager() 883 mWifiNotificationManager), in makeClientModeImpl() 888 mWifiNotificationManager, mWifiGlobals), in makeClientModeImpl() [all …]
|
D | AvailableNetworkNotifier.java | 135 private final WifiNotificationManager mWifiNotificationManager; field in AvailableNetworkNotifier 190 mWifiNotificationManager = wifiNotificationManager; in AvailableNetworkNotifier() 265 mWifiNotificationManager.cancel(mSystemMessageNotificationId); in clearPendingNotification() 437 mWifiNotificationManager.notify(mSystemMessageNotificationId, notification); in postNotification()
|