Lines Matching refs:mode

174     /* Tracks the persisted states for wi-fi & airplane mode */
459 Log.d(TAG, "resetting country code because Airplane mode is ON");
496 final int mode = intent.getIntExtra(EXTRA_WIFI_AP_MODE,
498 handleWifiApStateChange(currState, prevState, errorCode, ifaceName, mode);
515 // If we are already disabled (could be due to airplane mode), avoid changing persist
825 int mode = WifiManager.IFACE_IP_MODE_UNSPECIFIED;
826 SoftApModeConfiguration softApConfig = new SoftApModeConfiguration(mode, wifiConfig);
856 * @param mode new operating mode of the interface
861 public void updateInterfaceIpState(String ifaceName, int mode) {
867 updateInterfaceIpStateInternal(ifaceName, mode);
871 private void updateInterfaceIpStateInternal(String ifaceName, int mode) {
874 // update the mode tracker here - we clear out state below
877 previousMode = mIfaceIpModes.put(ifaceName, mode);
879 Slog.d(TAG, "updateInterfaceIpState: ifaceName=" + ifaceName + " mode=" + mode
880 + " previous mode= " + previousMode);
882 switch (mode) {
896 // we have LOHS requests, and this is an issue. return incompatible mode for
919 mLog.trace("updateInterfaceIpStateInternal: unknown mode %").c(mode).flush();
939 // for softap mode and restart softap with the tethering config.
949 * Internal method to start softap mode. Callers of this method should have already checked
952 private boolean startSoftApInternal(WifiConfiguration wifiConfig, int mode) {
953 mLog.trace("startSoftApInternal uid=% mode=%")
954 .c(Binder.getCallingUid()).c(mode).flush();
958 SoftApModeConfiguration softApConfig = new SoftApModeConfiguration(mode, wifiConfig);
983 // for softap mode and restart softap with the tethering config.
994 * Internal method to stop softap mode. Callers of this method should have already checked
1008 int currentState, int previousState, int errorCode, String ifaceName, int mode) {
1012 + " ifaceName=" + ifaceName + " mode=" + mode);
1037 // if we are currently in hotspot mode, then trigger onStopped for registered
1115 * softap mode changes.
1127 * LocalOnlyHotspotCallback#ERROR_TETHERING_DISALLOWED} or an incompatible mode failure reason
1154 throw new SecurityException("Location mode is not enabled.");
2073 // Permission review mode, trigger a user prompt
2086 * Observes settings changes to scan always mode.