/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiEntryListPreferenceController.java | 67 WifiEntry wifiEntry = dialog.getWifiEntry(); 69 wifiEntry.connect( 70 new WifiEntryConnectCallback(wifiEntry, 104 WifiEntry wifiEntry = mWifiEntries.get(i); in updateState() local 109 createWifiEntryPreference(wifiEntry, /* connected= */ true)); in updateState() 112 createWifiEntryPreference(wifiEntry, /* connected= */ false)); in updateState() 164 private WifiEntryPreference createWifiEntryPreference(WifiEntry wifiEntry, boolean connected) { in createWifiEntryPreference() argument 165 LOG.d("Adding preference for " + WifiUtil.getKey(wifiEntry)); in createWifiEntryPreference() 166 WifiEntryPreference wifiEntryPreference = new WifiEntryPreference(getContext(), wifiEntry); in createWifiEntryPreference() 169 if (!connected || wifiEntry.isPrimaryNetwork()) { in createWifiEntryPreference() [all …]
|
D | WifiUtil.java | 161 public static String getKey(WifiEntry wifiEntry) { in getKey() argument 162 return String.valueOf(wifiEntry.hashCode()); in getKey() 248 public static WifiConfiguration getWifiConfig(@NonNull WifiEntry wifiEntry, in getWifiConfig() argument 251 if (wifiEntry.getWifiConfiguration() == null) { in getWifiConfig() 252 wifiConfig.SSID = "\"" + wifiEntry.getSsid() + "\""; in getWifiConfig() 254 wifiConfig.networkId = wifiEntry.getWifiConfiguration().networkId; in getWifiConfig() 255 wifiConfig.hiddenSSID = wifiEntry.getWifiConfiguration().hiddenSSID; in getWifiConfig() 258 return finishWifiConfig(wifiConfig, wifiEntry.getSecurity(), password); in getWifiConfig() 318 public static boolean isWifiEntryConnectedOrConnecting(WifiEntry wifiEntry) { in isWifiEntryConnectedOrConnecting() argument 319 if (wifiEntry == null) { in isWifiEntryConnectedOrConnecting() [all …]
|
D | CarWifiManager.java | 145 for (WifiEntry wifiEntry : mWifiTracker.getWifiEntries()) { in getWifiEntries() 147 if (shouldIncludeWifiEntry(wifiEntry, onlySaved)) { in getWifiEntries() 148 wifiEntries.add(wifiEntry); in getWifiEntries() 155 private boolean shouldIncludeWifiEntry(WifiEntry wifiEntry, boolean onlySaved) { in shouldIncludeWifiEntry() argument 156 boolean reachable = wifiEntry.getLevel() != WifiEntry.WIFI_LEVEL_UNREACHABLE; in shouldIncludeWifiEntry() 158 ? reachable && wifiEntry.isSaved() in shouldIncludeWifiEntry()
|
D | WifiEntryPreference.java | 49 public WifiEntryPreference(Context context, WifiEntry wifiEntry) { in WifiEntryPreference() argument 51 LOG.d("creating preference for: " + wifiEntry); in WifiEntryPreference() 57 mWifiEntry = wifiEntry; in WifiEntryPreference() 60 mWifiInfoProvider = new WifiInfoProvider(context, wifiEntry); in WifiEntryPreference() 61 setKey(wifiEntry.getKey()); in WifiEntryPreference()
|
/packages/apps/Settings/src/com/android/settings/wifi/slice/ |
D | WifiSliceItem.java | 58 public WifiSliceItem(Context context, WifiEntry wifiEntry) { in WifiSliceItem() argument 60 mKey = wifiEntry.getKey(); in WifiSliceItem() 61 mTitle = wifiEntry.getTitle(); in WifiSliceItem() 62 mSecurity = wifiEntry.getSecurity(); in WifiSliceItem() 63 mConnectedState = wifiEntry.getConnectedState(); in WifiSliceItem() 64 mLevel = wifiEntry.getLevel(); in WifiSliceItem() 65 mShouldShowXLevelIcon = wifiEntry.shouldShowXLevelIcon(); in WifiSliceItem() 66 mShouldEditBeforeConnect = wifiEntry.shouldEditBeforeConnect(); in WifiSliceItem() 67 mHasInternetAccess = wifiEntry.hasInternetAccess(); in WifiSliceItem() 68 mSummary = wifiEntry.getSummary(false /* concise */); in WifiSliceItem() [all …]
|
D | WifiScanWorker.java | 139 for (WifiEntry wifiEntry : mWifiPickerTracker.getWifiEntries()) { in getWifiEntry() 140 if (TextUtils.equals(key, wifiEntry.getKey())) { in getWifiEntry() 141 keyWifiEntry = wifiEntry; in getWifiEntry() 163 for (WifiEntry wifiEntry : mWifiPickerTracker.getWifiEntries()) { in updateResults() 167 if (wifiEntry.getLevel() != WifiEntry.WIFI_LEVEL_UNREACHABLE) { in updateResults() 168 wifiEntry.setListener(this); in updateResults() 169 resultList.add(new WifiSliceItem(getContext(), wifiEntry)); in updateResults()
|
D | ConnectToWifiHandler.java | 60 final WifiEntry wifiEntry = worker.getWifiEntry(key); in onReceive() local 61 if (wifiEntry == null) { in onReceive() 64 wifiEntry.connect(new WifiEntryConnectCallback(context, wifiEntry)); in onReceive()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | NetworkProviderSettings.java | 669 void addModifyMenuIfSuitable(ContextMenu menu, WifiEntry wifiEntry) { in addModifyMenuIfSuitable() argument 670 if (mIsAdmin && wifiEntry.isSaved() in addModifyMenuIfSuitable() 671 && wifiEntry.getConnectedState() != WifiEntry.CONNECTED_STATE_CONNECTED) { in addModifyMenuIfSuitable() 748 private void launchWifiDppConfiguratorActivity(WifiEntry wifiEntry) { in launchWifiDppConfiguratorActivity() argument 750 mWifiManager, wifiEntry); in launchWifiDppConfiguratorActivity() 765 private void showDialog(WifiEntry wifiEntry, int dialogMode) { in showDialog() argument 766 if (WifiUtils.isNetworkLockedDown(getActivity(), wifiEntry.getWifiConfiguration()) in showDialog() 767 && wifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED) { in showDialog() 779 mDialogWifiEntry = wifiEntry; in showDialog() 780 mDialogWifiEntryKey = wifiEntry.getKey(); in showDialog() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/ |
D | WifiNetworkListFragmentTest.java | 95 final WifiEntry wifiEntry = mock(WifiEntry.class); in onSavedWifiEntriesChanged_openSavedWifiEntry_onlyAddNetworkPreference() local 96 when(wifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_NONE); in onSavedWifiEntriesChanged_openSavedWifiEntry_onlyAddNetworkPreference() 98 .thenReturn(Arrays.asList(wifiEntry)); in onSavedWifiEntriesChanged_openSavedWifiEntry_onlyAddNetworkPreference() 108 final WifiEntry wifiEntry = mock(WifiEntry.class); in onSavedWifiEntriesChanged_pskSavedWifiEntry_add2Preferences() local 109 when(wifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in onSavedWifiEntriesChanged_pskSavedWifiEntry_add2Preferences() 111 .thenReturn(Arrays.asList(wifiEntry)); in onSavedWifiEntriesChanged_pskSavedWifiEntry_add2Preferences() 120 final WifiEntry wifiEntry = mock(WifiEntry.class); in onSavedWifiEntriesChanged_saeSavedWifiEntry_add2Preferences() local 121 when(wifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_SAE); in onSavedWifiEntriesChanged_saeSavedWifiEntry_add2Preferences() 123 .thenReturn(Arrays.asList(wifiEntry)); in onSavedWifiEntriesChanged_saeSavedWifiEntry_add2Preferences() 132 final WifiEntry wifiEntry = mock(WifiEntry.class); in onPreferenceClick_validWifiEntryPreference_onChooseNetwork() local [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/details2/ |
D | WifiPrivacyPageProvider.kt | 76 val wifiEntry = remember { in <lambda>() constant 79 WifiPrivacyPage(wifiEntry) in <lambda>() 89 fun WifiPrivacyPage(wifiEntry: WifiEntry) { in WifiPrivacyPage() 90 val isSelectable: Boolean = wifiEntry.canSetPrivacy() in WifiPrivacyPage() 98 val textsSelectedId = rememberSaveable { mutableIntStateOf(wifiEntry.privacy) } in WifiPrivacyPage() 111 onSelectedChange(wifiEntry, it) in WifiPrivacyPage() 116 wifiEntry.wifiConfiguration?.let { in WifiPrivacyPage() 153 fun onSelectedChange(wifiEntry: WifiEntry, privacy: Int) { in onSelectedChange() 154 if (wifiEntry.privacy == privacy) { in onSelectedChange() 158 wifiEntry.setPrivacy(privacy) in onSelectedChange() [all …]
|
D | CertificateDetailsPreferenceController.kt | 49 private lateinit var wifiEntry: WifiEntry in <lambda>() variable 52 wifiEntry = entry in <lambda>() 56 return if (Flags.androidVWifiApi() && isCertificateDetailsAvailable(wifiEntry)) AVAILABLE in <lambda>() 69 val validationMethod = wifiEntry.certificateInfo!!.validationMethod in <lambda>() 75 val aliasesSize = wifiEntry.certificateInfo?.caCertificateAliases?.size in <lambda>() 92 getCertX509(wifiEntry)?.let { in <lambda>() 102 private fun getCertX509(wifiEntry: WifiEntry): X509Certificate? { in <lambda>() 104 wifiEntry.certificateInfo?.caCertificateAliases?.get(0) in <lambda>() 154 private fun isCertificateDetailsAvailable(wifiEntry: WifiEntry): Boolean { in <lambda>() 155 val validationMethod = wifiEntry.certificateInfo?.validationMethod in <lambda>()
|
D | ServerNamePreferenceController.kt | 33 private lateinit var wifiEntry: WifiEntry variable 36 wifiEntry = entry in setWifiEntry() 40 return if (Flags.androidVWifiApi() && wifiEntry.certificateInfo?.domain != null) AVAILABLE in getAvailabilityStatus() 53 override val summary = { wifiEntry.certificateInfo?.domain ?: "" } in ServerName()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | LongPressWifiEntryPreference.java | 35 public LongPressWifiEntryPreference(Context context, WifiEntry wifiEntry, Fragment fragment) { in LongPressWifiEntryPreference() argument 36 super(context, wifiEntry); in LongPressWifiEntryPreference() 59 WifiEntry wifiEntry = getWifiEntry(); in shouldEnabled() local 60 if (wifiEntry == null) return false; in shouldEnabled() 62 boolean enabled = wifiEntry.canConnect(); in shouldEnabled() 64 if (!enabled && (wifiEntry.canDisconnect() || wifiEntry.isSaved())) { in shouldEnabled()
|
D | WifiUtils.java | 173 public static WifiConfiguration getWifiConfig(WifiEntry wifiEntry, ScanResult scanResult) { in getWifiConfig() argument 174 if (wifiEntry == null && scanResult == null) { in getWifiConfig() 182 if (wifiEntry == null) { in getWifiConfig() 186 if (wifiEntry.getWifiConfiguration() == null) { in getWifiConfig() 187 config.SSID = "\"" + wifiEntry.getSsid() + "\""; in getWifiConfig() 189 config.networkId = wifiEntry.getWifiConfiguration().networkId; in getWifiConfig() 190 config.hiddenSSID = wifiEntry.getWifiConfiguration().hiddenSSID; in getWifiConfig() 192 security = wifiEntry.getSecurity(); in getWifiConfig()
|
D | WifiDialogActivity.java | 247 final WifiEntry wifiEntry = dialog.getController().getWifiEntry(); in onForget() local 248 if (wifiEntry != null && wifiEntry.canForget()) { in onForget() 249 wifiEntry.forget(null /* callback */); in onForget() 289 final WifiEntry wifiEntry = dialog.getController().getWifiEntry(); in onSubmit() 293 if (config == null && wifiEntry != null && wifiEntry.canConnect()) { in onSubmit() 294 wifiEntry.connect(null /* callback */); in onSubmit()
|
D | WifiEntryPreference.java | 77 public WifiEntryPreference(@NonNull Context context, @NonNull WifiEntry wifiEntry) { in WifiEntryPreference() argument 78 this(context, wifiEntry, new WifiUtils.InternetIconInjector(context)); in WifiEntryPreference() 82 WifiEntryPreference(@NonNull Context context, @NonNull WifiEntry wifiEntry, in WifiEntryPreference() argument 89 setWifiEntry(wifiEntry); in WifiEntryPreference() 97 public void setWifiEntry(@NonNull WifiEntry wifiEntry) { in setWifiEntry() argument 98 mWifiEntry = wifiEntry; in setWifiEntry()
|
D | WifiDialog2.kt | 42 val wifiEntry: WifiEntry?, constant 80 controller = WifiConfigController2(this, view, wifiEntry, mode, hideMeteredAndPrivacy) in getController() 89 if (wifiEntry == null) { in getController() 130 if (WifiUtils.isNetworkLockedDown(context, wifiEntry!!.wifiConfiguration)) { in onClick()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | WifiUtils.java | 31 static int getConnectionStatus(WifiEntry wifiEntry) { in getConnectionStatus() argument 32 if (wifiEntry.canSignIn()) { in getConnectionStatus() 34 } else if (wifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED) { in getConnectionStatus() 35 return wifiEntry.hasInternetAccess() in getConnectionStatus() 37 } else if (wifiEntry.shouldEditBeforeConnect()) { in getConnectionStatus() 39 } else if (wifiEntry.isSaved()) { in getConnectionStatus()
|
D | WifiConnectionActivity.java | 169 WifiEntry wifiEntry = DataBinder.getData( in onCreate() local 177 userChoiceInfo.setWifiEntry(wifiEntry); in onCreate() 179 wifiEntry.isSaved() in onCreate() 180 ? wifiEntry.getWifiConfiguration() in onCreate() 181 : WifiConfigHelper.getConfiguration(wifiEntry.getSsid(), in onCreate() 182 AccessPoint.getSecurity(wifiEntry))); in onCreate() 183 userChoiceInfo.setWifiSecurity(AccessPoint.getSecurity(wifiEntry)); in onCreate() 185 if (wifiEntry.shouldEditBeforeConnect()) { in onCreate() 187 } else if (wifiEntry.isSaved()) { in onCreate()
|
/packages/apps/Settings/src/com/android/settings/wifi/details/ |
D | WifiNetworkDetailsFragment.java | 197 final WifiEntry wifiEntry = mNetworkDetailsTracker.getWifiEntry(); in onCreateDialog() local 201 wifiEntry, in onCreateDialog() 251 final WifiEntry wifiEntry = mNetworkDetailsTracker.getWifiEntry(); in createPreferenceControllers() local 254 getWifiNetworkDetailsViewModel().setWifiEntry(wifiEntry); in createPreferenceControllers() 259 wifiSecondSummaryController2.setWifiEntry(wifiEntry); in createPreferenceControllers() 263 wifiEntry, in createPreferenceControllers() 275 wifiAutoConnectPreferenceController2.setWifiEntry(wifiEntry); in createPreferenceControllers() 280 addDevicePreferenceController2.setWifiEntry(wifiEntry); in createPreferenceControllers() 284 new WifiMeteredPreferenceController2(context, wifiEntry); in createPreferenceControllers() 289 privacyController2.setWifiEntry(wifiEntry); in createPreferenceControllers() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | ConnectState.java | 184 WifiEntry wifiEntry = getEntryForNetworkId(easyConnectNetworkId); in proceedDependOnNetworkState() local 185 if (wifiEntry != null) { in proceedDependOnNetworkState() 186 startConnect(wifiEntry); in proceedDependOnNetworkState() 191 WifiEntry wifiEntry = getEntryForConfiguration(); in proceedDependOnNetworkState() local 192 if (wifiEntry != null) { in proceedDependOnNetworkState() 193 startConnect(wifiEntry); in proceedDependOnNetworkState() 247 private void startConnect(WifiEntry wifiEntry) { in startConnect() argument 250 if (wifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED) { in startConnect() 256 wifiEntry.connect(status -> { in startConnect() 265 if (config.networkId == wifiEntry.getWifiConfiguration().networkId) { in startConnect() [all …]
|
D | UserChoiceInfo.java | 58 private WifiEntry wifiEntry; field in UserChoiceInfo 199 return wifiEntry; in getWifiEntry() 202 public void setWifiEntry(WifiEntry wifiEntry) { in setWifiEntry() argument 203 this.wifiEntry = wifiEntry; in setWifiEntry()
|
/packages/apps/Settings/src/com/android/settings/wifi/savedaccesspoints2/ |
D | SavedAccessPointsPreferenceController2.java | 98 WifiEntry wifiEntry = mWifiEntries.stream() in updatePreference() local 102 if (wifiEntry != null) { in updatePreference() 103 pref.setWifiEntry(wifiEntry); in updatePreference() 114 for (WifiEntry wifiEntry : mWifiEntries) { in updatePreference() 115 if (mPreferenceGroup.findPreference(wifiEntry.getKey()) == null) { in updatePreference() 116 WifiEntryPreference preference = new WifiEntryPreference(mContext, wifiEntry); in updatePreference() 117 preference.setKey(wifiEntry.getKey()); in updatePreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/ |
D | ConnectToWifiHandlerTest.java | 69 final WifiEntry wifiEntry = mock(WifiEntry.class); in onReceive_nonNullKeyAndUri_shouldConnectWifintry() local 70 when(mWifiScanWorker.getWifiEntry(key)).thenReturn(wifiEntry); in onReceive_nonNullKeyAndUri_shouldConnectWifintry() 74 verify(wifiEntry).connect(any()); in onReceive_nonNullKeyAndUri_shouldConnectWifintry() 80 final WifiEntry wifiEntry = mock(WifiEntry.class); in onConnectResult_failNoConfig_shouldStartActivity() local 81 when(wifiEntry.getKey()).thenReturn(key); in onConnectResult_failNoConfig_shouldStartActivity() 83 spy(new ConnectToWifiHandler.WifiEntryConnectCallback(mContext, wifiEntry)); in onConnectResult_failNoConfig_shouldStartActivity()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/ |
D | WifiDialog2Test.kt | 54 wifiEntry = mockWifiEntry, in <lambda>() 63 wifiEntry = mockWifiEntry, in <lambda>() 77 wifiEntry = mockWifiEntry, in <lambda>() 86 wifiEntry = mockWifiEntry, in <lambda>()
|