/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiScoreCardTest.java | 63 WifiScoreCard mWifiScoreCard; field in WifiScoreCardTest 100 mWifiScoreCard = new WifiScoreCard(mClock, "some seed"); in setUp() 111 mWifiScoreCard.noteIpConfiguration(mWifiInfo); in testUpdate() 113 WifiScoreCard.PerBssid perBssid = mWifiScoreCard.fetchByBssid(TEST_BSSID_1); in testUpdate() 120 mWifiScoreCard.noteIpConfiguration(mWifiInfo); in testUpdate() 122 assertEquals(perBssid, mWifiScoreCard.fetchByBssid(TEST_BSSID_1)); in testUpdate() 123 assertNotEquals(perBssid.id, mWifiScoreCard.fetchByBssid(TEST_BSSID_2).id); in testUpdate() 124 assertNotEquals(perBssid.l2Key, mWifiScoreCard.fetchByBssid(TEST_BSSID_2).l2Key); in testUpdate() 134 Pair<String, String> p1 = mWifiScoreCard.getL2KeyAndGroupHint(mWifiInfo); in testIdentifiers() 138 Pair<String, String> p2 = mWifiScoreCard.getL2KeyAndGroupHint(mWifiInfo); in testIdentifiers() [all …]
|
D | MemoryStoreImplTest.java | 42 @Mock WifiScoreCard mWifiScoreCard; field in MemoryStoreImplTest 51 mMemoryStoreImpl = new MemoryStoreImpl(mContext, mWifiInjector, mWifiScoreCard); in setUp() 60 verify(mWifiScoreCard, never()).installMemoryStore(any()); in attemptToStartBeforeIpMemoryServiceIsReadyShouldNotCallInstall() 70 verify(mWifiScoreCard).installMemoryStore(eq(mMemoryStoreImpl)); in testStartInstallsItself() 84 verifyNoMoreInteractions(mWifiScoreCard); in testThatStopDoesPendingWrites() 89 verify(mWifiScoreCard).installMemoryStore(eq(mMemoryStoreImpl)); in testThatStopDoesPendingWrites() 90 verify(mWifiScoreCard).doWrites(); in testThatStopDoesPendingWrites() 91 verifyNoMoreInteractions(mWifiScoreCard); in testThatStopDoesPendingWrites() 95 verifyNoMoreInteractions(mWifiScoreCard); in testThatStopDoesPendingWrites()
|
D | WifiCandidatesTest.java | 43 @Mock WifiScoreCard mWifiScoreCard; field in WifiCandidatesTest 60 mWifiCandidates = new WifiCandidates(mWifiScoreCard); in setUp() 74 doReturn(mPerBssid).when(mWifiScoreCard).lookupBssid(any(), any()); in setUp()
|
D | ClientModeImplTest.java | 358 @Mock WifiScoreCard mWifiScoreCard; field in ClientModeImplTest 441 when(mWifiInjector.getWifiScoreCard()).thenReturn(mWifiScoreCard); in setUp() 504 when(mWifiScoreCard.getL2KeyAndGroupHint(any())).thenReturn(new Pair<>(null, null)); in setUp() 2478 verify(mWifiScoreCard).noteSignalPoll(any()); in verifyConnectedModeRssiPolling() 2905 verify(mWifiScoreCard, never()).noteConnectionAttempt(any()); in testScoreCardNoteConnectionAttemptAfterCmdStartConnect() 2907 verify(mWifiScoreCard).noteConnectionAttempt(any()); in testScoreCardNoteConnectionAttemptAfterCmdStartConnect() 2909 verify(mWifiScoreCard, never()).noteIpConfiguration(any()); in testScoreCardNoteConnectionAttemptAfterCmdStartConnect() 2911 verify(mWifiScoreCard, never()).noteValidationSuccess(any()); in testScoreCardNoteConnectionAttemptAfterCmdStartConnect() 2920 when(mWifiScoreCard.getL2KeyAndGroupHint(any())).thenReturn(l2KeyAndGroupHint); in testScoreCardNoteConnectionComplete() 2923 verify(mWifiScoreCard).noteIpConfiguration(any()); in testScoreCardNoteConnectionComplete() [all …]
|
D | WifiNetworkSelectorTest.java | 85 mWifiScoreCard, in setUp() 95 when(mWifiScoreCard.lookupBssid(any(), any())).thenReturn(mPerBssid); in setUp() 191 @Mock private WifiScoreCard mWifiScoreCard; field in WifiNetworkSelectorTest
|
D | WifiServiceImplTest.java | 259 @Mock WifiScoreCard mWifiScoreCard; field in WifiServiceImplTest 385 when(mWifiInjector.getWifiScoreCard()).thenReturn(mWifiScoreCard); in setUp() 3520 verify(mWifiScoreCard).clear(); in testFactoryReset()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | MemoryStoreImpl.java | 46 @NonNull private final WifiScoreCard mWifiScoreCard; field in MemoryStoreImpl 52 mWifiScoreCard = Preconditions.checkNotNull(wifiScoreCard); in MemoryStoreImpl() 142 mWifiScoreCard.installMemoryStore(this); in start() 150 mWifiScoreCard.doWrites(); in stop()
|
D | WifiCandidates.java | 41 mWifiScoreCard = Preconditions.checkNotNull(wifiScoreCard); in WifiCandidates() 43 private final WifiScoreCard mWifiScoreCard; field in WifiCandidates 374 WifiScoreCard.PerBssid perBssid = mWifiScoreCard.lookupBssid( in add()
|
D | WifiInjector.java | 149 private final WifiScoreCard mWifiScoreCard; field in WifiInjector 171 mWifiScoreCard = new WifiScoreCard(mClock, in WifiInjector() 259 mWifiNetworkSelector = new WifiNetworkSelector(mContext, mWifiScoreCard, mScoringParams, in WifiInjector() 507 return mWifiScoreCard; in getWifiScoreCard()
|
D | WifiNetworkSelector.java | 112 private final WifiScoreCard mWifiScoreCard; field in WifiNetworkSelector 741 WifiCandidates wifiCandidates = new WifiCandidates(mWifiScoreCard); in selectNetwork() 967 mWifiScoreCard = wifiScoreCard; in WifiNetworkSelector()
|
D | ClientModeImpl.java | 209 private final WifiScoreCard mWifiScoreCard; field in ClientModeImpl 781 mWifiScoreCard = wifiInjector.getWifiScoreCard(); in ClientModeImpl() 2892 mWifiScoreCard.noteSupplicantStateChanging(mWifiInfo, state); in handleSupplicantStateChange() 2939 mWifiScoreCard.noteSupplicantStateChanged(mWifiInfo); in handleSupplicantStateChange() 2948 Pair<String, String> p = mWifiScoreCard.getL2KeyAndGroupHint(mWifiInfo); in updateL2KeyAndGroupHint() 3010 mWifiScoreCard.resetConnectionState(); in handleNetworkDisconnect() 3146 mWifiScoreCard.noteConnectionFailure(mWifiInfo, in reportConnectionAttemptEnd() 3214 mWifiScoreCard.noteIpConfiguration(mWifiInfo); in handleSuccessfulIpConfiguration() 3258 mWifiScoreCard.noteIpReachabilityLost(mWifiInfo); in handleIpReachabilityLost() 3522 new MemoryStoreImpl(mContext, mWifiInjector, mWifiScoreCard).start(); in processMessage() [all …]
|