/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ClientModeManagerBroadcastQueue.java | 19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 20 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SCAN_ONLY; 21 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT; 144 public void onActiveModeManagerAdded(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerAdded() 149 public void onActiveModeManagerRoleChanged(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRoleChanged() 154 public void onActiveModeManagerRemoved(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRemoved()
|
D | WifiCountryCode.java | 91 private final Map<ActiveModeManager, Boolean> mAmmToReadyForChangeMap = 108 public void onActiveModeManagerAdded(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerAdded() 109 if (activeModeManager.getRole() instanceof ActiveModeManager.ClientRole) { in onActiveModeManagerAdded() 123 public void onActiveModeManagerRemoved(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRemoved() 125 if (activeModeManager instanceof ActiveModeManager.ClientRole) { in onActiveModeManagerRemoved() 137 public void onActiveModeManagerRoleChanged(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRoleChanged() 138 if (activeModeManager.getRole() == ActiveModeManager.ROLE_CLIENT_PRIMARY) { in onActiveModeManagerRoleChanged() 327 for (ActiveModeManager am : mAmmToReadyForChangeMap.keySet()) { in isAllCmmReady() 664 Set<ActiveModeManager> amms = mAmmToReadyForChangeMap.keySet(); in setCountryCodeNative() 677 for (ActiveModeManager am : amms) { in setCountryCodeNative()
|
D | ActiveModeWarden.java | 29 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY; 30 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 31 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SCAN_ONLY; 32 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_LONG_LIVED; 33 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT; 34 import static com.android.server.wifi.ActiveModeManager.ROLE_SOFTAP_TETHERED; 85 import com.android.server.wifi.ActiveModeManager.ClientConnectivityRole; 86 import com.android.server.wifi.ActiveModeManager.ClientInternetConnectivityRole; 87 import com.android.server.wifi.ActiveModeManager.ClientRole; 88 import com.android.server.wifi.ActiveModeManager.SoftApRole; [all …]
|
D | MakeBeforeBreakManager.java | 19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 20 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT; 166 public void onActiveModeManagerAdded(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerAdded() 184 public void onActiveModeManagerRemoved(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRemoved() 218 public void onActiveModeManagerRoleChanged(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRoleChanged()
|
D | ConnectedScore.java | 22 import com.android.server.wifi.ActiveModeManager.ClientRole; 135 return mCurrentRole != null && mCurrentRole == ActiveModeManager.ROLE_CLIENT_PRIMARY; in isPrimary()
|
D | ActiveModeManager.java | 31 public interface ActiveModeManager { interface 36 interface Listener<T extends ActiveModeManager> {
|
D | MultiInternetManager.java | 19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 20 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_LONG_LIVED; 151 public void onActiveModeManagerAdded(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerAdded() 171 public void onActiveModeManagerRemoved(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRemoved() 198 public void onActiveModeManagerRoleChanged(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRoleChanged()
|
D | WifiDataStall.java | 102 public void onActiveModeManagerAdded(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerAdded() 107 public void onActiveModeManagerRemoved(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRemoved() 112 public void onActiveModeManagerRoleChanged(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRoleChanged() 144 if (clientModeManager.getRole() == ActiveModeManager.ROLE_CLIENT_PRIMARY) { in onConnectionEnd()
|
D | ClientModeManager.java | 22 public interface ClientModeManager extends ActiveModeManager, ClientMode {
|
D | WifiScoreReport.java | 45 import com.android.server.wifi.ActiveModeManager.ClientRole; 595 return mCurrentRole != null && mCurrentRole == ActiveModeManager.ROLE_CLIENT_PRIMARY; in isPrimary() 1145 mCurrentRole == ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT in getScoreBuilder() 1155 .setTransportPrimary(mCurrentRole == ActiveModeManager.ROLE_CLIENT_PRIMARY) in getScoreBuilder()
|
D | WifiNetworkFactory.java | 23 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY; 24 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 160 @Nullable private ActiveModeManager.ClientRole mClientModeManagerRole; 428 public void onActiveModeManagerAdded(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerAdded() 435 public void onActiveModeManagerRemoved(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRemoved() 448 public void onActiveModeManagerRoleChanged(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRoleChanged()
|
D | WifiConnectivityManager.java | 22 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 23 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SCAN_ONLY; 24 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_LONG_LIVED; 25 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT; 1277 public void onActiveModeManagerAdded(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerAdded() 1282 public void onActiveModeManagerRemoved(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRemoved() 1287 public void onActiveModeManagerRoleChanged(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRoleChanged() 3110 ActiveModeManager.ClientRole role = clientModeManager.getRole(); in handleConnectionStateChanged()
|
D | WifiHealthMonitor.java | 133 public void onActiveModeManagerAdded(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerAdded() 138 public void onActiveModeManagerRemoved(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRemoved() 143 public void onActiveModeManagerRoleChanged(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRoleChanged()
|
D | WifiMetrics.java | 21 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 483 private final Map<String, ActiveModeManager.ClientRole> mIfaceToRoleMap = new ArrayMap<>(); 1720 public void onActiveModeManagerAdded(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerAdded() 1733 public void onActiveModeManagerRemoved(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRemoved() 1745 public void onActiveModeManagerRoleChanged(@NonNull ActiveModeManager activeModeManager) { in onActiveModeManagerRoleChanged() 6061 return mIfaceToRoleMap.get(ifaceName) == ActiveModeManager.ROLE_CLIENT_PRIMARY; in isPrimary() 6498 ActiveModeManager.ClientRole role = mIfaceToRoleMap.get(ifaceName); in convertIfaceToEnum() 6499 if (role == ActiveModeManager.ROLE_CLIENT_SCAN_ONLY) { in convertIfaceToEnum() 6501 } else if (role == ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT) { in convertIfaceToEnum() 6503 } else if (role == ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY) { in convertIfaceToEnum() [all …]
|
D | WifiInjector.java | 842 @NonNull ActiveModeManager.Listener<SoftApManager> listener, in makeSoftApManager() 846 @NonNull ActiveModeManager.SoftApRole role, in makeSoftApManager() 920 @NonNull ActiveModeManager.ClientRole role, in makeClientModeManager()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ConcreteClientModeManagerTest.java | 29 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 30 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SCAN_ONLY; 31 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT; 108 @Mock ActiveModeManager.Listener<ConcreteClientModeManager> mListener; 267 private ConcreteClientModeManager createClientModeManager(ActiveModeManager.ClientRole role) { in createClientModeManager() 434 mClientModeManager.setRole(ActiveModeManager.ROLE_CLIENT_PRIMARY, TEST_WORKSOURCE); in switchFromScanOnlyModeToConnectMode() 632 ActiveModeManager.ClientRole lastRole = mClientModeManager.getRole(); in clientModeStopCleansUpState() 1429 mClientModeManager.setRole(ActiveModeManager.ROLE_CLIENT_PRIMARY, TEST_WORKSOURCE); in stayAtConnectedModeWithWifiOffDeferringTimeAndWifiCallingTimedOutMultipleSwitch() 1433 mClientModeManager.setRole(ActiveModeManager.ROLE_CLIENT_PRIMARY, TEST_WORKSOURCE); in stayAtConnectedModeWithWifiOffDeferringTimeAndWifiCallingTimedOutMultipleSwitch() 1498 assertEquals(ActiveModeManager.ROLE_CLIENT_PRIMARY, mClientModeManager.getRole()); in clientInConnectModeChangeRoles() [all …]
|
D | ClientModeManagerBroadcastQueueTest.java | 19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 20 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SCAN_ONLY; 21 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT;
|
D | MakeBeforeBreakManagerTest.java | 19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 20 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_LONG_LIVED; 21 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT;
|
D | WifiMulticastLockManagerTest.java | 19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 20 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT;
|
D | WifiScoreReportTest.java | 265 mWifiScoreReport.onRoleChanged(mIsPrimary ? ActiveModeManager.ROLE_CLIENT_PRIMARY in setUp() 266 : ActiveModeManager.ROLE_CLIENT_SECONDARY_LONG_LIVED); in setUp() 365 mWifiScoreReport.onRoleChanged(ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT); in mbbNetworkForceKeepUp() 379 mWifiScoreReport.onRoleChanged(ActiveModeManager.ROLE_CLIENT_PRIMARY); in mbbNetworkForceKeepUp() 400 mWifiScoreReport.onRoleChanged(ActiveModeManager.ROLE_CLIENT_PRIMARY); in calculateAndReportScoreWhileLingering_sendLingeringScore() 412 mWifiScoreReport.onRoleChanged(ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT); in calculateAndReportScoreWhileLingering_sendLingeringScore() 431 mWifiScoreReport.onRoleChanged(ActiveModeManager.ROLE_CLIENT_PRIMARY); in calculateAndReportScoreWhileLingering_sendLingeringScore() 452 mWifiScoreReport.onRoleChanged(ActiveModeManager.ROLE_CLIENT_SECONDARY_LONG_LIVED); in testExternalScorerWhileLingering_sendLingeringScore()
|
D | VelocityBasedConnectedScoreTest.java | 94 mVelocityBasedConnectedScore.onRoleChanged(ActiveModeManager.ROLE_CLIENT_PRIMARY); in setUp()
|
D | WifiCountryCodeTest.java | 19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 20 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_LONG_LIVED; 615 when(mSoftApManager.getRole()).thenReturn(ActiveModeManager.ROLE_SOFTAP_TETHERED); in testClientModeManagerAndSoftApManagerDoesntImpactEachOther()
|
D | ActiveModeWardenTest.java | 24 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY; 25 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 26 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SCAN_ONLY; 27 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_LONG_LIVED; 28 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT; 29 import static com.android.server.wifi.ActiveModeManager.ROLE_SOFTAP_LOCAL_ONLY; 30 import static com.android.server.wifi.ActiveModeManager.ROLE_SOFTAP_TETHERED; 100 import com.android.server.wifi.ActiveModeManager.ClientConnectivityRole; 101 import com.android.server.wifi.ActiveModeManager.Listener; 102 import com.android.server.wifi.ActiveModeManager.SoftApRole; [all …]
|
D | MultiInternetManagerTest.java | 19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY; 20 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_LONG_LIVED;
|
D | WifiNetworkFactoryTest.java | 281 when(mPrimaryClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in setUp() 290 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in setUp() 2002 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY); in testNetworkSpecifierHandleConnectionSuccessOnSecondaryCmm() 2033 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY); in testNetworkSpecifierHandleConnectionSuccessOnSecondaryCmmAndDisconnectFromAp() 2235 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY); in testHandleNetworkReleaseWithSpecifierAfterConnectionSuccessOnSecondaryCmm() 2277 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY); in testMetricsUpdateForConcurrentConnections() 2305 when(primaryCmm.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in testMetricsUpdateForConcurrentConnections() 3565 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in testShareConnectedNetworkWithoutCarModePriority() 3633 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in testShareConnectedNetworkWithCarModePriority() 3779 if (mClientModeManager.getRole() == ActiveModeManager.ROLE_CLIENT_PRIMARY) { in sendNetworkRequestAndSetupForConnectionStatus() [all …]
|