Home
last modified time | relevance | path

Searched refs:mSecurityType (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherSecurityPreferenceController.java47 private int mSecurityType; field in WifiTetherSecurityPreferenceController
77 mSecurityType = getCarSoftApConfig().getSecurityType(); in onCreateInternal()
93 updateSecurityType(mSecurityType); in updatePreferenceOptions()
94 getPreference().setValue(String.valueOf(mSecurityType)); in updatePreferenceOptions()
106 mSharedPreferences.edit().putInt(KEY_SECURITY_TYPE, mSecurityType).commit(); in handlePreferenceChanged()
112 mSecurityType = mSecurityMap.containsKey(newValue) in updateSecurityType()
119 preference.setValue(Integer.toString(mSecurityType)); in updateState()
124 return mSecurityMap.containsKey(mSecurityType) ? mSecurityMap.get(mSecurityType) in getSummary()
DWifiTetherPasswordPreferenceController.java61 private int mSecurityType; field in WifiTetherPasswordPreferenceController
77 mSecurityType = getCarSoftApConfig().getSecurityType(); in onCreateInternal()
87 if (mSecurityType != newSecurityType && newSecurityType != SHARED_SECURITY_TYPE_UNSET) { in onStartInternal()
89 mSecurityType = newSecurityType; in onStartInternal()
134 if (mSecurityType == SoftApConfiguration.SECURITY_TYPE_OPEN) { in getSyncedPassword()
162 if (mSecurityType == SoftApConfiguration.SECURITY_TYPE_OPEN) { in updateApSecurity()
169 .setPassphrase(passwordOrNullIfOpen, mSecurityType) in updateApSecurity()
180 getPreference().setVisible(mSecurityType != SoftApConfiguration.SECURITY_TYPE_OPEN); in updatePasswordDisplay()
DAddWifiFragment.java67 mSecurityType = intent.getIntExtra(
93 private int mSecurityType = WifiEntry.SECURITY_NONE; field in AddWifiFragment
111 mSecurityType = savedInstanceState.getInt(KEY_SECURITY_TYPE, WifiEntry.SECURITY_NONE); in onCreate()
119 mSecurityType, /* password= */ null, /* hidden= */ true, in onCreate()
140 outState.putInt(KEY_SECURITY_TYPE, mSecurityType); in onSaveInstanceState()
160 !TextUtils.isEmpty(mNetworkName) && WifiUtil.isOpenNetwork(mSecurityType)); in setButtonEnabledState()
DWifiEntrySecurity.java33 private final int mSecurityType; field in WifiEntrySecurity
57 mSecurityType = securityType; in WifiEntrySecurity()
61 return mSecurityType; in getSecurityType()
66 switch(mSecurityType) { in toString()
DNetworkPasswordPreferenceController.java59 mSecurityType = intent.getIntExtra(
84 private int mSecurityType = WifiEntry.SECURITY_NONE; field in NetworkPasswordPreferenceController
117 preference.setVisible(!WifiUtil.isOpenNetwork(mSecurityType)); in updateState()
124 WifiUtil.connectToWifiEntry(getContext(), mNetworkName, mSecurityType, in handlePreferenceChanged() local
/packages/modules/Wifi/framework/java/android/net/wifi/
DSecurityParams.java61 private @SecurityType int mSecurityType = WifiConfiguration.SECURITY_TYPE_PSK; field in SecurityParams
140 this.mSecurityType = source.mSecurityType; in SecurityParams()
167 if (this.mSecurityType != that.mSecurityType) return false; in equals()
188 return Objects.hash(mSecurityType, mEnabled, in hashCode()
201 return mSecurityType; in getSecurityType()
211 return type == mSecurityType; in isSecurityType()
221 return params.mSecurityType == mSecurityType; in isSameSecurityType()
433 sbuf.append(" Type: ").append(mSecurityType).append("\n"); in toString()
556 dest.writeInt(mSecurityType); in writeToParcel()
577 params.mSecurityType = in.readInt();
[all …]
DSoftApConfiguration.java303 private final @SecurityType int mSecurityType; field in SoftApConfiguration
487 mSecurityType = securityType; in SoftApConfiguration()
524 && mSecurityType == other.mSecurityType in equals()
557 mSecurityType, in hashCode()
621 dest.writeInt(mSecurityType); in writeToParcel()
922 return mSecurityType; in getSecurityType()
1246 switch (mSecurityType) { in toWifiConfiguration()
1255 Log.e(TAG, "Convert fail, unsupported security type :" + mSecurityType); in toWifiConfiguration()
1296 private int mSecurityType; field in SoftApConfiguration.Builder
1327 mSecurityType = SECURITY_TYPE_OPEN; in Builder()
[all …]
DWifiInfo.java124 private int mSecurityType; field in WifiInfo
513 mSecurityType = -1; in WifiInfo()
559 mSecurityType = -1; in reset()
650 mSecurityType = source.mSecurityType; in WifiInfo()
1551 .append(", Security type: ").append(mSecurityType) in toString()
1667 dest.writeInt(mSecurityType); in writeToParcel()
1730 info.mSecurityType = in.readInt();
1904 && mSecurityType == thatWifiInfo.mSecurityType in equals()
1958 mSecurityType, in hashCode()
1996 mSecurityType = convertWifiConfigurationSecurityType(securityType); in setCurrentSecurityType()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/repository/
DWifiHotspotRepository.java97 protected MutableLiveData<Integer> mSecurityType; field in WifiHotspotRepository
225 if (mSecurityType == null) { in getSecurityType()
227 mSecurityType = new MutableLiveData<>(); in getSecurityType()
229 log("getSecurityType():" + mSecurityType.getValue()); in getSecurityType()
231 return mSecurityType; in getSecurityType()
235 if (mSecurityType == null) { in updateSecurityType()
241 mSecurityType.setValue(securityType); in updateSecurityType()
251 if (mSecurityType == null) { in setSecurityType()
254 if (securityType == mSecurityType.getValue()) { in setSecurityType()
256 + mSecurityType.getValue()); in setSecurityType()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherPasswordPreferenceController.java44 private int mSecurityType; field in WifiTetherPasswordPreferenceController
79 mSecurityType = config.getSecurityType(); in updateDisplay()
124 mSecurityType = securityType; in setSecurityType()
130 return WifiUtils.isHotspotPasswordValid(value, mSecurityType); in isTextValid()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DWifiHotspotSecurityViewModelTest.java65 MutableLiveData<Integer> mSecurityType; field in WifiHotspotSecurityViewModelTest
78 when(mWifiHotspotRepository.getSecurityType()).thenReturn(mSecurityType); in setUp()
87 verify(mSecurityType).observeForever(mViewModel.mSecurityTypeObserver); in constructor_observeDataAndSetAutoRefresh()
95 verify(mSecurityType).removeObserver(mViewModel.mSecurityTypeObserver); in onCleared_removeObserverData()
DWifiTetherViewModelTest.java62 MutableLiveData<Integer> mSecurityType; field in WifiTetherViewModelTest
83 when(mWifiHotspotRepository.getSecurityType()).thenReturn(mSecurityType); in setUp()
107 verify(mSecurityType).removeObserver(mViewModel.mSecurityTypeObserver); in onCleared_removeObservers()
143 verify(mSecurityType).observeForever(mViewModel.mSecurityTypeObserver); in getSecuritySummary_returnNotNull()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/repository/
DWifiHotspotRepositoryTest.java97 private MutableLiveData<Integer> mSecurityType; field in WifiHotspotRepositoryTest
118 mRepository.mSecurityType = mSecurityType; in setUp()
213 mRepository.mSecurityType = null; in refresh_liveDataNotUsed_doNothing()
253 mRepository.mSecurityType = null; in getSecurityType_shouldNotReturnNull()
265 verify(mSecurityType).setValue(SECURITY_TYPE_OPEN); in updateSecurityType_securityTypeOpen_setValueCorrectly()
274 verify(mSecurityType).setValue(SECURITY_TYPE_WPA2_PSK); in updateSecurityType_securityTypeWpa2_setValueCorrectly()
283 verify(mSecurityType).setValue(SECURITY_TYPE_WPA3_SAE_TRANSITION); in updateSecurityType_securityTypeWpa2Wpa3_setValueCorrectly()
292 verify(mSecurityType).setValue(SECURITY_TYPE_WPA3_SAE); in updateSecurityType_securityTypeWpa3_setValueCorrectly()
797 doReturn(securityType).when(mSecurityType).getValue(); in mockConfig()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DWifiInfo.java188 securityType = builder.mSecurityType; in WifiInfo()
219 private String mSecurityType; field in WifiInfo.Builder
250 mSecurityType = securityType; in setSecurityType()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiScoreCard.java775 private SecurityType mSecurityType = null; field in WifiScoreCard.PerBssid
822 return mSecurityType; in getSecurityType()
826 if (!Objects.equals(securityType, mSecurityType)) { in setSecurityType()
827 mSecurityType = securityType; in setSecurityType()
847 if (mSecurityType != null) { in toAccessPoint()
848 builder.setSecurityType(mSecurityType); in toAccessPoint()
863 if (mSecurityType == null) { in merge()
864 mSecurityType = prev; in merge()
865 } else if (!mSecurityType.equals(prev)) { in merge()
868 + "SecurityType changed: " + prev + " to " + mSecurityType); in merge()