/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | LastCallerInfoManager.java | 19 import android.net.wifi.WifiManager; 20 import android.net.wifi.WifiManager.ApiType; 58 case WifiManager.API_SCANNING_ENABLED: in convertApiName() 60 case WifiManager.API_WIFI_ENABLED: in convertApiName() 62 case WifiManager.API_SOFT_AP: in convertApiName() 64 case WifiManager.API_TETHERED_HOTSPOT: in convertApiName() 66 case WifiManager.API_AUTOJOIN_GLOBAL: in convertApiName() 68 case WifiManager.API_SET_SCAN_SCHEDULE: in convertApiName() 70 case WifiManager.API_SET_ONE_SHOT_SCREEN_ON_CONNECTIVITY_SCAN_DELAY: in convertApiName() 72 case WifiManager.API_SET_NETWORK_SELECTION_CONFIG: in convertApiName() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiLockManagerTest.java | 46 import android.net.wifi.WifiManager; 169 not(WifiManager.WIFI_MODE_NO_LOCKS_HELD)); in acquireWifiLockSuccessful() 224 assertEquals(WifiManager.WIFI_MODE_NO_LOCKS_HELD, mWifiLockManager.getStrongestLockMode()); in newWifiLockManagerShouldNotHaveAnyLocks() 238 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in acquireWifiLockWithValidParamsShouldSucceed() 239 assertEquals(WifiManager.WIFI_MODE_FULL_HIGH_PERF, mWifiLockManager.getStrongestLockMode()); in acquireWifiLockWithValidParamsShouldSucceed() 252 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, in acquireWifiLockWithValidParamsShouldSucceed() 254 assertEquals(WifiManager.WIFI_MODE_FULL_LOW_LATENCY, in acquireWifiLockWithValidParamsShouldSucceed() 270 int expectedMode = WifiManager.WIFI_MODE_FULL_HIGH_PERF; in secondCallToAcquireWifiLockWithSameBinderShouldFail() 275 expectedMode = WifiManager.WIFI_MODE_FULL_LOW_LATENCY; in secondCallToAcquireWifiLockWithSameBinderShouldFail() 278 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in secondCallToAcquireWifiLockWithSameBinderShouldFail() [all …]
|
D | TestUtil.java | 25 import android.net.wifi.WifiManager; 39 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); in sendNetworkStateChanged() 42 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo); in sendNetworkStateChanged() 51 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); in sendNetworkStateChanged() 52 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, nwInfo); in sendNetworkStateChanged() 53 intent.putExtra(WifiManager.EXTRA_WIFI_INFO, wifiInfo); in sendNetworkStateChanged() 62 Intent intent = new Intent(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in sendScanResultsAvailable() 71 Intent intent = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION); in sendWifiStateChanged() 72 intent.putExtra(WifiManager.EXTRA_WIFI_STATE, wifiState); in sendWifiStateChanged() 82 Intent intent = new Intent(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); in sendWifiApStateChanged() [all …]
|
D | SupplicantStateTrackerTest.java | 25 import android.net.wifi.WifiManager; 106 assertThat(intent.getAction()).isEqualTo(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in testSupplicantStateChangeIntent() 107 assertThat(intent.<SupplicantState>getParcelableExtra(WifiManager.EXTRA_NEW_STATE)) in testSupplicantStateChangeIntent() 127 assertThat(intent.getAction()).isEqualTo(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in testAuthPassInSupplicantStateChangeIntent() 128 assertThat(intent.<SupplicantState>getParcelableExtra(WifiManager.EXTRA_NEW_STATE)) in testAuthPassInSupplicantStateChangeIntent() 130 assertThat(intent.getIntExtra(WifiManager.EXTRA_SUPPLICANT_ERROR, 0)).isEqualTo(0); in testAuthPassInSupplicantStateChangeIntent() 149 assertThat(intent.getAction()).isEqualTo(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in testAuthFailedInSupplicantStateChangeIntent() 150 assertThat(intent.<SupplicantState>getParcelableExtra(WifiManager.EXTRA_NEW_STATE)) in testAuthFailedInSupplicantStateChangeIntent() 152 assertThat(intent.getIntExtra(WifiManager.EXTRA_SUPPLICANT_ERROR, 0)) in testAuthFailedInSupplicantStateChangeIntent() 153 .isEqualTo(WifiManager.ERROR_AUTHENTICATING); in testAuthFailedInSupplicantStateChangeIntent() [all …]
|
D | SoftApManagerTest.java | 19 import static android.net.wifi.WifiManager.EXTRA_PREVIOUS_WIFI_AP_STATE; 20 import static android.net.wifi.WifiManager.EXTRA_WIFI_AP_FAILURE_REASON; 21 import static android.net.wifi.WifiManager.EXTRA_WIFI_AP_INTERFACE_NAME; 22 import static android.net.wifi.WifiManager.EXTRA_WIFI_AP_MODE; 23 import static android.net.wifi.WifiManager.EXTRA_WIFI_AP_STATE; 24 import static android.net.wifi.WifiManager.IFACE_IP_MODE_LOCAL_ONLY; 25 import static android.net.wifi.WifiManager.SAP_CLIENT_DISCONNECT_REASON_CODE_UNSPECIFIED; 26 import static android.net.wifi.WifiManager.WIFI_AP_STATE_DISABLED; 27 import static android.net.wifi.WifiManager.WIFI_AP_STATE_DISABLING; 28 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED; [all …]
|
D | SarManagerTest.java | 29 import android.net.wifi.WifiManager; 184 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook() 212 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn() 231 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook() 253 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_DISABLED); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook() 293 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledSar_wifiOn_offHook_wifiOff_onHook() 306 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_DISABLED); in testSarMgr_enabledSar_wifiOn_offHook_wifiOff_onHook() 314 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledSar_wifiOn_offHook_wifiOff_onHook() 338 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledSar_wifiOff_offHook_onHook_wifiOn() 360 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledSar_offHook_wifiOnOff_onHook() [all …]
|
D | MultiInternetManagerTest.java | 34 import android.net.wifi.WifiManager; 219 assertEquals(WifiManager.WIFI_MULTI_INTERNET_MODE_DISABLED, in testSetMultiInternetStateWhenFeatureDisabled() 223 WifiManager.WIFI_MULTI_INTERNET_MODE_MULTI_AP)); in testSetMultiInternetStateWhenFeatureDisabled() 225 WifiManager.WIFI_MULTI_INTERNET_MODE_MULTI_AP); in testSetMultiInternetStateWhenFeatureDisabled() 226 assertEquals(WifiManager.WIFI_MULTI_INTERNET_MODE_DISABLED, in testSetMultiInternetStateWhenFeatureDisabled() 233 assertEquals(WifiManager.WIFI_MULTI_INTERNET_MODE_DISABLED, in testSetMultiInternetStateWhenFeatureEnabled() 237 WifiManager.WIFI_MULTI_INTERNET_MODE_DBS_AP)); in testSetMultiInternetStateWhenFeatureEnabled() 241 WifiManager.WIFI_MULTI_INTERNET_MODE_DBS_AP); in testSetMultiInternetStateWhenFeatureEnabled() 242 assertEquals(WifiManager.WIFI_MULTI_INTERNET_MODE_DBS_AP, in testSetMultiInternetStateWhenFeatureEnabled() 246 WifiManager.WIFI_MULTI_INTERNET_MODE_MULTI_AP)); in testSetMultiInternetStateWhenFeatureEnabled() [all …]
|
D | WifiDialogManagerTest.java | 44 import android.net.wifi.WifiManager; 186 assertThat(dismissIntent.getAction()).isEqualTo(WifiManager.ACTION_DISMISS_DIALOG); in verifyDismissIntent() 191 assertThat(dismissIntent.hasExtra(WifiManager.EXTRA_DIALOG_ID)).isTrue(); in verifyDismissIntent() 192 int dialogId = dismissIntent.getIntExtra(WifiManager.EXTRA_DIALOG_ID, in verifyDismissIntent() 193 WifiManager.INVALID_DIALOG_ID); in verifyDismissIntent() 194 assertThat(dialogId).isNotEqualTo(WifiManager.INVALID_DIALOG_ID); in verifyDismissIntent() 208 assertThat(launchIntent.getAction()).isEqualTo(WifiManager.ACTION_LAUNCH_DIALOG); in verifySimpleDialogLaunchIntent() 213 assertThat(launchIntent.hasExtra(WifiManager.EXTRA_DIALOG_ID)).isTrue(); in verifySimpleDialogLaunchIntent() 214 int dialogId = launchIntent.getIntExtra(WifiManager.EXTRA_DIALOG_ID, in verifySimpleDialogLaunchIntent() 215 WifiManager.INVALID_DIALOG_ID); in verifySimpleDialogLaunchIntent() [all …]
|
D | WifiTrafficPollerTest.java | 29 import android.net.wifi.WifiManager; 100 WifiManager.TrafficStateCallback.DATA_ACTIVITY_INOUT); in testClientNotification() 115 WifiManager.TrafficStateCallback.DATA_ACTIVITY_INOUT); in testDataActivityUpdatePacketThreshold() 121 WifiManager.TrafficStateCallback.DATA_ACTIVITY_NONE); in testDataActivityUpdatePacketThreshold() 127 .onStateChanged(WifiManager.TrafficStateCallback.DATA_ACTIVITY_OUT); in testDataActivityUpdatePacketThreshold() 133 WifiManager.TrafficStateCallback.DATA_ACTIVITY_NONE); in testDataActivityUpdatePacketThreshold() 139 .onStateChanged(WifiManager.TrafficStateCallback.DATA_ACTIVITY_IN); in testDataActivityUpdatePacketThreshold() 173 WifiManager.TrafficStateCallback.DATA_ACTIVITY_INOUT); in testRemoveClientWithWrongCallback() 210 WifiManager.TrafficStateCallback.DATA_ACTIVITY_INOUT); in unchangedDataActivityNotNotified() 230 WifiManager.TrafficStateCallback.DATA_ACTIVITY_INOUT); in multipleCallbacksOnlyChangedNotified() [all …]
|
D | WifiNetworkSuggestionsManagerTest.java | 24 import static android.net.wifi.WifiManager.ACTION_REMOVE_SUGGESTION_DISCONNECT; 25 import static android.net.wifi.WifiManager.ACTION_REMOVE_SUGGESTION_LINGER; 78 import android.net.wifi.WifiManager; 266 WifiManager.WIFI_FEATURE_WPA3_SAE | WifiManager.WIFI_FEATURE_OWE); in setUp() 370 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testAddNetworkSuggestionsSuccess() 373 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testAddNetworkSuggestionsSuccess() 426 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveNetworkSuggestionsSuccess() 429 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveNetworkSuggestionsSuccess() 434 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveNetworkSuggestionsSuccess() 437 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveNetworkSuggestionsSuccess() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiStatusTest.java | 29 import android.net.wifi.WifiManager; 79 private WifiManager mWifiManager; 90 if (intent.getAction().equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { 91 handleWifiStateChanged(intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, 92 WifiManager.WIFI_STATE_UNKNOWN)); 93 } else if (intent.getAction().equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) { 95 (NetworkInfo) intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO)); 96 } else if (intent.getAction().equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) { 98 } else if (intent.getAction().equals(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION)) { 100 } else if (intent.getAction().equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) { [all …]
|
D | RequestToggleWiFiActivity.java | 32 import android.net.wifi.WifiManager; 68 private @NonNull WifiManager mWiFiManager; 80 mWiFiManager = getSystemService(WifiManager.class); in onCreate() 92 case WifiManager.ACTION_REQUEST_ENABLE: { in onCreate() 96 case WifiManager.ACTION_REQUEST_DISABLE: { in onCreate() 144 case WifiManager.WIFI_STATE_ENABLED: { in onStart() 149 case WifiManager.WIFI_STATE_ENABLING: { in onStart() 158 case WifiManager.WIFI_STATE_DISABLED: { in onStart() 164 case WifiManager.WIFI_STATE_ENABLING: { in onStart() 174 case WifiManager.WIFI_STATE_ENABLED: { in onStart() [all …]
|
D | WifiEnabler.java | 31 import android.net.wifi.WifiManager; 54 private final WifiManager mWifiManager; 71 if (WifiManager.WIFI_STATE_CHANGED_ACTION.equals(action)) { 73 } else if (WifiManager.SUPPLICANT_STATE_CHANGED_ACTION.equals(action)) { 76 intent.getParcelableExtra(WifiManager.EXTRA_NEW_STATE))); 78 } else if (WifiManager.NETWORK_STATE_CHANGED_ACTION.equals(action)) { 80 WifiManager.EXTRA_NETWORK_INFO); 101 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiEnabler() 104 mIntentFilter = new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION); in WifiEnabler() 106 mIntentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in WifiEnabler() [all …]
|
/packages/modules/Wifi/WifiDialog/src/com/android/wifi/dialog/ |
D | WifiDialogActivity.java | 33 import android.net.wifi.WifiManager; 82 private @Nullable WifiManager mWifiManager; 139 private WifiManager getWifiManager() { in getWifiManager() 141 mWifiManager = getSystemService(WifiManager.class); in getWifiManager() 154 WifiManager.EXTRA_CLOSE_SYSTEM_DIALOGS_EXCEPT_WIFI, false)) { 190 int dialogId = intent.getIntExtra(WifiManager.EXTRA_DIALOG_ID, in onCreate() 191 WifiManager.INVALID_DIALOG_ID); in onCreate() 192 if (dialogId == WifiManager.INVALID_DIALOG_ID) { in onCreate() 227 int dialogId = intent.getIntExtra(WifiManager.EXTRA_DIALOG_ID, in onNewIntent() 228 WifiManager.INVALID_DIALOG_ID); in onNewIntent() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiDialogManager.java | 28 import android.net.wifi.WifiManager; 103 WifiManager.EXTRA_CLOSE_SYSTEM_DIALOGS_EXCEPT_WIFI, 182 if (mActiveDialogIds.isEmpty() || mNextDialogId == WifiManager.INVALID_DIALOG_ID) { in getNextDialogId() 188 private @Nullable Intent getBaseLaunchIntent(@WifiManager.DialogType int dialogType) { in getBaseLaunchIntent() 189 Intent intent = new Intent(WifiManager.ACTION_LAUNCH_DIALOG) in getBaseLaunchIntent() 190 .putExtra(WifiManager.EXTRA_DIALOG_TYPE, dialogType) in getBaseLaunchIntent() 202 Intent intent = new Intent(WifiManager.ACTION_DISMISS_DIALOG); in getDismissIntent() 203 intent.putExtra(WifiManager.EXTRA_DIALOG_ID, dialogId); in getDismissIntent() 281 private int mDialogId = WifiManager.INVALID_DIALOG_ID; 301 if (mDialogId != WifiManager.INVALID_DIALOG_ID) { in launchDialog() [all …]
|
D | WifiLockManager.java | 23 import android.net.wifi.WifiManager; 80 private int mCurrentOpMode = WifiManager.WIFI_MODE_NO_LOCKS_HELD; 251 && lockMode == WifiManager.WIFI_MODE_FULL_HIGH_PERF) { in acquireWifiLock() 252 lockMode = WifiManager.WIFI_MODE_FULL_LOW_LATENCY; in acquireWifiLock() 278 return WifiManager.WIFI_MODE_NO_LOCKS_HELD; in getStrongestLockMode() 283 return WifiManager.WIFI_MODE_FULL_HIGH_PERF; in getStrongestLockMode() 288 return WifiManager.WIFI_MODE_FULL_LOW_LATENCY; in getStrongestLockMode() 292 return WifiManager.WIFI_MODE_FULL_LOW_LATENCY; in getStrongestLockMode() 296 return WifiManager.WIFI_MODE_FULL_LOW_LATENCY; in getStrongestLockMode() 300 return WifiManager.WIFI_MODE_FULL_HIGH_PERF; in getStrongestLockMode() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/ |
D | WifiStatusPreferenceControllerTest.java | 26 import android.net.wifi.WifiManager; 52 WifiManager.WIFI_STATE_DISABLED, 53 WifiManager.WIFI_STATE_ENABLING); 55 WifiManager.WIFI_STATE_ENABLED, 56 WifiManager.WIFI_STATE_DISABLING, 57 WifiManager.WIFI_STATE_UNKNOWN); 86 ShadowCarWifiManager.setWifiState(WifiManager.WIFI_STATE_UNKNOWN); in updateState_wifiNotAvailable_invisible() 95 ShadowCarWifiManager.setWifiState(WifiManager.WIFI_STATE_DISABLED); in updateState_wifiDisabled_visible() 104 ShadowCarWifiManager.setWifiState(WifiManager.WIFI_STATE_DISABLED); in updateState_wifiDisabled_isNotSelectable() 113 ShadowCarWifiManager.setWifiState(WifiManager.WIFI_STATE_DISABLED); in updateState_wifiDisabled_showsDisabledText() [all …]
|
D | WifiRequestToggleActivityTest.java | 26 import android.net.wifi.WifiManager; 69 ShadowCarWifiManager.setWifiState(WifiManager.WIFI_STATE_DISABLED); in testOnStartWifiEnabled_toggleEnableWifi_showsDialog() 71 mActivityController = createActivityController(WifiManager.ACTION_REQUEST_ENABLE); in testOnStartWifiEnabled_toggleEnableWifi_showsDialog() 79 ShadowCarWifiManager.setWifiState(WifiManager.WIFI_STATE_ENABLED); in testOnStartWifiDisabled_toggleDisableWifi_showsDialog() 81 mActivityController = createActivityController(WifiManager.ACTION_REQUEST_DISABLE); in testOnStartWifiDisabled_toggleDisableWifi_showsDialog() 89 ShadowCarWifiManager.setWifiState(WifiManager.WIFI_STATE_ENABLED); in testOnStartWifiEnabled_toggleEnableWifi_finish() 91 mActivityController = createActivityController(WifiManager.ACTION_REQUEST_ENABLE); in testOnStartWifiEnabled_toggleEnableWifi_finish() 99 ShadowCarWifiManager.setWifiState(WifiManager.WIFI_STATE_DISABLED); in testOnStartWifiDisabled_toggleDisableWifi_finish() 101 mActivityController = createActivityController(WifiManager.ACTION_REQUEST_DISABLE); in testOnStartWifiDisabled_toggleDisableWifi_finish()
|
/packages/modules/Wifi/framework/api/ |
D | lint-baseline.txt | 2 DeprecationMismatch: android.net.wifi.WifiManager#EXTRA_BSSID: 3 …Field WifiManager.EXTRA_BSSID: @Deprecated annotation (present) and @deprecated doc tag (not prese… 4 DeprecationMismatch: android.net.wifi.WifiManager#EXTRA_WIFI_INFO: 5 …Field WifiManager.EXTRA_WIFI_INFO: @Deprecated annotation (present) and @deprecated doc tag (not p… 8 GenericException: android.net.wifi.WifiManager.LocalOnlyHotspotReservation#finalize(): 10 GenericException: android.net.wifi.WifiManager.MulticastLock#finalize(): 12 GenericException: android.net.wifi.WifiManager.WifiLock#finalize(): 20 …ion: android.net.wifi.WifiManager#addLocalOnlyConnectionFailureListener(java.util.concurrent.Execu… 22 …ion: android.net.wifi.WifiManager#addSuggestionConnectionStatusListener(java.util.concurrent.Execu… 24 RequiresPermission: android.net.wifi.WifiManager#allowAutojoinGlobal(boolean): [all …]
|
D | module-lib-lint-baseline.txt | 22 DeprecationMismatch: android.net.wifi.WifiManager#EXTRA_BSSID: 23 …Field WifiManager.EXTRA_BSSID: @Deprecated annotation (present) and @deprecated doc tag (not prese… 24 DeprecationMismatch: android.net.wifi.WifiManager#EXTRA_WIFI_INFO: 25 …Field WifiManager.EXTRA_WIFI_INFO: @Deprecated annotation (present) and @deprecated doc tag (not p… 56 …ion: android.net.wifi.WifiManager#addLocalOnlyConnectionFailureListener(java.util.concurrent.Execu… 58 …ion: android.net.wifi.WifiManager#addSuggestionConnectionStatusListener(java.util.concurrent.Execu… 60 …mission: android.net.wifi.WifiManager#addWifiLowLatencyLockListener(java.util.concurrent.Executor,… 62 …: android.net.wifi.WifiManager#addWifiVerboseLoggingStatusChangedListener(java.util.concurrent.Exe… 64 RequiresPermission: android.net.wifi.WifiManager#allowAutojoinGlobal(boolean): 66 RequiresPermission: android.net.wifi.WifiManager#getChannelData(java.util.concurrent.Executor, java… [all …]
|
D | system-lint-baseline.txt | 22 DeprecationMismatch: android.net.wifi.WifiManager#EXTRA_BSSID: 23 …Field WifiManager.EXTRA_BSSID: @Deprecated annotation (present) and @deprecated doc tag (not prese… 24 DeprecationMismatch: android.net.wifi.WifiManager#EXTRA_WIFI_INFO: 25 …Field WifiManager.EXTRA_WIFI_INFO: @Deprecated annotation (present) and @deprecated doc tag (not p… 76 …ion: android.net.wifi.WifiManager#addLocalOnlyConnectionFailureListener(java.util.concurrent.Execu… 78 …ion: android.net.wifi.WifiManager#addSuggestionConnectionStatusListener(java.util.concurrent.Execu… 80 …mission: android.net.wifi.WifiManager#addWifiLowLatencyLockListener(java.util.concurrent.Executor,… 82 …: android.net.wifi.WifiManager#addWifiVerboseLoggingStatusChangedListener(java.util.concurrent.Exe… 84 RequiresPermission: android.net.wifi.WifiManager#allowAutojoinGlobal(boolean): 86 RequiresPermission: android.net.wifi.WifiManager#getChannelData(java.util.concurrent.Executor, java… [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/qc/ |
D | HotspotQCUtils.java | 22 import android.net.wifi.WifiManager; 34 public static boolean isHotspotEnabled(WifiManager wifiManager) { in isHotspotEnabled() 36 return state == WifiManager.WIFI_AP_STATE_ENABLED in isHotspotEnabled() 37 || state == WifiManager.WIFI_AP_STATE_ENABLING; in isHotspotEnabled() 43 public static boolean isHotspotBusy(WifiManager wifiManager) { in isHotspotBusy() 45 return state == WifiManager.WIFI_AP_STATE_ENABLING in isHotspotBusy() 46 || state == WifiManager.WIFI_AP_STATE_DISABLING; in isHotspotBusy()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/ |
D | HotspotTileTest.java | 31 import android.net.wifi.WifiManager; 55 private WifiManager mWifiManager; 61 when(mContext.getSystemService(WifiManager.class)).thenReturn(mWifiManager); in setUp() 68 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_DISABLED); in getQCItem_titleAndIconSet() 77 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_DISABLED); in getQCItem_hotspotDisabled_tileUnchecked() 86 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_hotspotEnabled_tileChecked() 95 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLING); in getQCItem_hotspotBusy_tileDisabled() 102 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_DISABLED); in getQCItem_hotspotUnsupported_tileUnavailable() 126 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_DISABLED); in onNotifyChange_togglesHotspot() 137 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_createsTile_zoneWrite() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/tether/ |
D | WifiTetherPreferenceController.java | 20 import static android.net.wifi.WifiManager.SAP_START_FAILURE_GENERAL; 27 import android.net.wifi.WifiManager; 57 private WifiManager mWifiManager; 75 context.getApplicationContext().getSystemService(WifiManager.class), in WifiTetherPreferenceController() 85 WifiManager wifiManager, in WifiTetherPreferenceController() 172 && mSoftApState == WifiManager.WIFI_AP_STATE_ENABLED) { in initWifiTetherSoftApManager() 185 case WifiManager.WIFI_AP_STATE_ENABLING: in handleWifiApStateChanged() 188 case WifiManager.WIFI_AP_STATE_ENABLED: in handleWifiApStateChanged() 193 case WifiManager.WIFI_AP_STATE_DISABLING: in handleWifiApStateChanged() 196 case WifiManager.WIFI_AP_STATE_DISABLED: in handleWifiApStateChanged() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | ConfirmConnectToWifiNetworkActivity.java | 14 import android.net.wifi.WifiManager; 53 intentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in onCreate() 66 WifiManager wifiManager = getSystemService(WifiManager.class); in onClick() 98 private void doConnect(WifiManager wifiManager) { in doConnect() 107 new WifiManager.ActionListener() { in doConnect() 148 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { 149 int wifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, 0); 151 && wifiState == WifiManager.WIFI_STATE_ENABLED) { 155 .getSystemService(WifiManager.class));
|