Home
last modified time | relevance | path

Searched refs:ActiveModeManager (Results 1 – 25 of 41) sorted by relevance

12

/packages/modules/Wifi/service/java/com/android/server/wifi/
DClientModeManagerBroadcastQueue.java19 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()
DWifiCountryCode.java91 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()
DActiveModeWarden.java29 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 …]
DMakeBeforeBreakManager.java19 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()
DConnectedScore.java22 import com.android.server.wifi.ActiveModeManager.ClientRole;
135 return mCurrentRole != null && mCurrentRole == ActiveModeManager.ROLE_CLIENT_PRIMARY; in isPrimary()
DActiveModeManager.java31 public interface ActiveModeManager { interface
36 interface Listener<T extends ActiveModeManager> {
DMultiInternetManager.java19 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()
DWifiDataStall.java102 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()
DClientModeManager.java22 public interface ClientModeManager extends ActiveModeManager, ClientMode {
DWifiScoreReport.java45 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()
DWifiNetworkFactory.java23 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()
DWifiConnectivityManager.java22 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()
DWifiHealthMonitor.java133 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()
DWifiMetrics.java21 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 …]
DWifiInjector.java842 @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/
DConcreteClientModeManagerTest.java29 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 …]
DClientModeManagerBroadcastQueueTest.java19 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;
DMakeBeforeBreakManagerTest.java19 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;
DWifiMulticastLockManagerTest.java19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
20 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_TRANSIENT;
DWifiScoreReportTest.java265 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()
DVelocityBasedConnectedScoreTest.java94 mVelocityBasedConnectedScore.onRoleChanged(ActiveModeManager.ROLE_CLIENT_PRIMARY); in setUp()
DWifiCountryCodeTest.java19 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()
DActiveModeWardenTest.java24 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 …]
DMultiInternetManagerTest.java19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
20 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_SECONDARY_LONG_LIVED;
DWifiNetworkFactoryTest.java281 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 …]

12