Home
last modified time | relevance | path

Searched refs:mViewItemMap (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiHotspotSecurityViewModel.java53 protected Map<Integer, ViewItem> mViewItemMap = new HashMap<>(); field in WifiHotspotSecurityViewModel
63 mViewItemMap.put(SECURITY_TYPE_WPA3_SAE, new ViewItem(KEY_SECURITY_WPA3)); in WifiHotspotSecurityViewModel()
64 mViewItemMap.put(SECURITY_TYPE_WPA3_SAE_TRANSITION, new ViewItem(KEY_SECURITY_WPA2_WPA3)); in WifiHotspotSecurityViewModel()
65 mViewItemMap.put(SECURITY_TYPE_WPA2_PSK, new ViewItem(KEY_SECURITY_WPA2)); in WifiHotspotSecurityViewModel()
66 mViewItemMap.put(SECURITY_TYPE_OPEN, new ViewItem(KEY_SECURITY_NONE)); in WifiHotspotSecurityViewModel()
82 for (Map.Entry<Integer, ViewItem> entry : mViewItemMap.entrySet()) { in onSecurityTypeChanged()
91 for (Map.Entry<Integer, ViewItem> entry : mViewItemMap.entrySet()) { in onSpeedTypeChanged()
104 for (Map.Entry<Integer, ViewItem> entry : mViewItemMap.entrySet()) { in handleRadioButtonClicked()
129 mViewInfoListData.setValue(mViewItemMap.values().stream().toList()); in updateViewItemListData()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DWifiHotspotSecuritySettingsTest.java63 Map<Integer, WifiHotspotSecurityViewModel.ViewItem> mViewItemMap = new HashMap<>(); field in WifiHotspotSecuritySettingsTest
77 mViewItemMap.put(SECURITY_TYPE_WPA3_SAE, mViewItemWpa3); in setUp()
78 mViewItemMap.put(SECURITY_TYPE_WPA3_SAE_TRANSITION, mViewItemWpa2Wpa3); in setUp()
79 mViewItemMap.put(SECURITY_TYPE_WPA2_PSK, mViewItemWpa2); in setUp()
80 mViewItemMap.put(SECURITY_TYPE_OPEN, mViewItemNone); in setUp()
100 mSettings.onViewItemListDataChanged(mViewItemMap.values().stream().toList()); in onViewItemListDataChanged_checkedWpa3_setViewItemCorrectly()
109 mSettings.onViewItemListDataChanged(mViewItemMap.values().stream().toList()); in onViewItemListDataChanged_checkedWpa2Wpa3_setViewItemCorrectly()
118 mSettings.onViewItemListDataChanged(mViewItemMap.values().stream().toList()); in onViewItemListDataChanged_checkedWpa2_setViewItemCorrectly()
127 mSettings.onViewItemListDataChanged(mViewItemMap.values().stream().toList()); in onViewItemListDataChanged_checkedNone_setViewItemCorrectly()
141 mSettings.onViewItemListDataChanged(mViewItemMap.values().stream().toList()); in onViewItemListDataChanged_enabledWpa3Only_setViewItemCorrectly()
DWifiHotspotSecurityViewModelTest.java198 assertThat(mViewModel.mViewItemMap.get(SECURITY_TYPE_WPA3_SAE).mIsChecked) in assertItemChecked()
200 assertThat(mViewModel.mViewItemMap.get(SECURITY_TYPE_WPA3_SAE_TRANSITION).mIsChecked) in assertItemChecked()
202 assertThat(mViewModel.mViewItemMap.get(SECURITY_TYPE_WPA2_PSK).mIsChecked) in assertItemChecked()
204 assertThat(mViewModel.mViewItemMap.get(SECURITY_TYPE_OPEN).mIsChecked) in assertItemChecked()
210 assertThat(mViewModel.mViewItemMap.get(SECURITY_TYPE_WPA3_SAE).mIsEnabled) in assertItemEnabled()
212 assertThat(mViewModel.mViewItemMap.get(SECURITY_TYPE_WPA3_SAE_TRANSITION).mIsEnabled) in assertItemEnabled()
214 assertThat(mViewModel.mViewItemMap.get(SECURITY_TYPE_WPA2_PSK).mIsEnabled) in assertItemEnabled()
216 assertThat(mViewModel.mViewItemMap.get(SECURITY_TYPE_OPEN).mIsEnabled) in assertItemEnabled()