/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | LongPressWifiEntryPreferenceTest.java | 56 WifiEntry mWifiEntry; field in LongPressWifiEntryPreferenceTest 63 when(mWifiEntry.canConnect()).thenReturn(true); in setUp() 64 when(mWifiEntry.canDisconnect()).thenReturn(false); in setUp() 65 when(mWifiEntry.isSaved()).thenReturn(false); in setUp() 67 mPreference = spy(new LongPressWifiEntryPreference(mContext, mWifiEntry, mFragment)); in setUp() 73 when(mWifiEntry.canConnect()).thenReturn(true); in shouldEnabled_canConnect_returnTrue() 81 when(mWifiEntry.canConnect()).thenReturn(false); in shouldEnabled_canNotConnect_returnFalse() 89 when(mWifiEntry.canConnect()).thenReturn(false); in shouldEnabled_canNotConnectButCanDisconnect_returnTrue() 90 when(mWifiEntry.canDisconnect()).thenReturn(true); in shouldEnabled_canNotConnectButCanDisconnect_returnTrue() 98 when(mWifiEntry.canConnect()).thenReturn(false); in shouldEnabled_canNotConnectButIsSaved_returnTrue() [all …]
|
D | WifiConfigController2Test.java | 93 private WifiEntry mWifiEntry; field in WifiConfigController2Test 144 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in setUp() 160 WifiEntry mWifiEntry, int modeConnect, boolean hideMeteredAndPrivacy) { in createController() argument 161 mController = new WifiConfigController2(mConfigUiBase, mView, mWifiEntry, in createController() 198 createController(mWifiEntry, WifiConfigUiBase2.MODE_CONNECT, false); in isSubmittable_noSSID_shouldReturnFalse() 207 createController(mWifiEntry, WifiConfigUiBase2.MODE_CONNECT, false); in isSubmittable_longPsk_shouldReturnFalse() 216 createController(mWifiEntry, WifiConfigUiBase2.MODE_CONNECT, false); in isSubmittable_shortPsk_shouldReturnFalse() 225 createController(mWifiEntry, WifiConfigUiBase2.MODE_CONNECT, false); in isSubmittable_goodPsk_shouldReturnTrue() 234 createController(mWifiEntry, WifiConfigUiBase2.MODE_CONNECT, false); in isSubmittable_hexPsk_shouldReturnTrue() 243 createController(mWifiEntry, WifiConfigUiBase2.MODE_CONNECT, false); in isSubmittable_savedConfigZeroLengthPassword_shouldReturnTrue() [all …]
|
D | WifiDialogActivityTest.java | 83 WifiEntry mWifiEntry; field in WifiDialogActivityTest 101 when(mWifiConfiguration2.getWifiEntry()).thenReturn(mWifiEntry); in setUp() 102 when(mWifiEntry.canConnect()).thenReturn(true); in setUp() 171 verify(mWifiEntry).connect(any()); in onSubmit2_whenConnectForCallerIsTrue_shouldConnectToNetwork() 195 verify(mWifiEntry, never()).connect(any()); in onSubmit2_whenConnectForCallerIsFalse_shouldNotConnectToNetwork()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/ |
D | AccessPoint.java | 77 private final WifiEntry mWifiEntry; field in AccessPoint 92 mWifiEntry = wifiEntry; in AccessPoint() 100 return mWifiEntry; in getWifiEntry() 105 return WifiEntry.WIFI_PICKER_COMPARATOR.compare(mWifiEntry, other.mWifiEntry); in compareTo() 116 return mWifiEntry.hashCode(); in hashCode() 121 return mWifiEntry.toString(); in toString() 150 return getKey(getSsidStr(), mWifiEntry.getMacAddress(), getSecurity()); in getKey() 154 return mWifiEntry.getWifiConfiguration(); in getConfig() 166 return mWifiEntry.getLevel(); in getLevel() 173 return mWifiEntry.isMetered(); in isMetered() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/ |
D | WifiDetailsFragment.java | 50 private WifiEntry mWifiEntry; field in WifiDetailsFragment 79 mWifiEntry = mNetworkDetailsTracker.getWifiEntry(); in onAttach() 80 LOG.d("Creating WifiInfoProvider for " + mWifiEntry); in onAttach() 82 mWifiInfoProvider = new WifiInfoProvider(getContext(), mWifiEntry); in onAttach() 89 .init(mWifiEntry, mWifiInfoProvider)); in onAttach() 93 .init(mWifiEntry, mWifiInfoProvider)); in onAttach() 96 .init(mWifiEntry, mWifiInfoProvider)); in onAttach() 98 .init(mWifiEntry, mWifiInfoProvider)); in onAttach() 100 .init(mWifiEntry, mWifiInfoProvider)); in onAttach() 102 .init(mWifiEntry, mWifiInfoProvider)); in onAttach() [all …]
|
D | WifiDetailsBasePreferenceController.java | 46 private WifiEntry mWifiEntry; field in WifiDetailsBasePreferenceController 59 mWifiEntry = wifiEntry; in init() 66 return mWifiEntry; in getWifiEntry()
|
D | WifiInfoProvider.java | 80 private final WifiEntry mWifiEntry; field in WifiInfoProvider 137 mWifiEntry = wifiEntry; in WifiInfoProvider() 138 mWifiEntry.setListener(this); in WifiInfoProvider() 143 mWifiConfig = mWifiEntry.getWifiConfiguration(); in WifiInfoProvider()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiEntryPreference.java | 71 private WifiEntry mWifiEntry; field in WifiEntryPreference 98 mWifiEntry = wifiEntry; in setWifiEntry() 99 mWifiEntry.setListener(this); in setWifiEntry() 104 return mWifiEntry; in getWifiEntry() 110 if (mWifiEntry.isVerboseSummaryEnabled()) { in onBindViewHolder() 131 if (mWifiEntry.getHelpUriString() != null in onBindViewHolder() 132 && mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_DISCONNECTED) { in onBindViewHolder() 159 setTitle(mWifiEntry.getTitle()); in refresh() 160 if (mWifiEntry instanceof HotspotNetworkEntry) { in refresh() 161 updateHotspotIcon(((HotspotNetworkEntry) mWifiEntry).getDeviceType()); in refresh() [all …]
|
D | WifiConfigController2.java | 111 private final WifiEntry mWifiEntry; field in WifiConfigController2 260 mWifiEntry = wifiEntry; in WifiConfigController2() 327 if (mWifiEntry == null) { // new network in initWifiConfigController2() 331 mConfigUi.setTitle(mWifiEntry.getTitle()); in initWifiConfigController2() 336 if (mWifiEntry.isSaved()) { in initWifiConfigController2() 337 WifiConfiguration config = mWifiEntry.getWifiConfiguration(); in initWifiConfigController2() 394 if ((!mWifiEntry.isSaved() in initWifiConfigController2() 395 && mWifiEntry.getConnectedState() != WifiEntry.CONNECTED_STATE_CONNECTED in initWifiConfigController2() 396 && !mWifiEntry.isSubscription()) in initWifiConfigController2() 421 if (mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_DISCONNECTED in initWifiConfigController2() [all …]
|
D | ConfigureWifiEntryFragment.java | 72 private WifiEntry mWifiEntry; field in ConfigureWifiEntryFragment 82 mWifiEntry = mNetworkDetailsTracker.getWifiEntry(); in onAttach() 115 mUiController = new WifiConfigController2(this, rootView, mWifiEntry, getMode()); in onCreateView()
|
/packages/apps/Settings/src/com/android/settings/wifi/details2/ |
D | WifiDetailPreferenceController2.java | 156 private final WifiEntry mWifiEntry; field in WifiDetailPreferenceController2 277 if (!mWifiEntry.isSaved() && network.equals(mNetwork)) { 317 mWifiEntry = wifiEntry; in WifiDetailPreferenceController2() 318 mWifiEntry.setListener(this); in WifiDetailPreferenceController2() 402 return mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED; in updateCaptivePortalButton() 463 .setLabel(mWifiEntry.getTitle()) in refreshEntityHeader() 464 .setSummary(mWifiEntry.getSummary()) in refreshEntityHeader() 471 if (mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED) { in updateNetworkInfo() 541 Drawable drawable = getWifiDrawable(mWifiEntry); in refreshEntryHeaderIcon() 558 if (mWifiEntry.getLevel() == WifiEntry.WIFI_LEVEL_UNREACHABLE) { in getWifiDrawable() [all …]
|
D | WifiMeteredPreferenceController2.java | 37 private final WifiEntry mWifiEntry; field in WifiMeteredPreferenceController2 41 mWifiEntry = wifiEntry; in WifiMeteredPreferenceController2() 48 preference.setSelectable(mWifiEntry.canSetMeteredChoice()); in updateState() 60 if (mWifiEntry.isSaved() || mWifiEntry.isSubscription()) { in onPreferenceChange() 61 mWifiEntry.setMeteredChoice(Integer.parseInt((String) newValue)); in onPreferenceChange() 72 if (mWifiEntry.isSaved() || mWifiEntry.isSubscription()) { in getMeteredOverride() 74 return mWifiEntry.getMeteredChoice(); in getMeteredOverride()
|
D | WifiPrivacyPreferenceController2.java | 40 private WifiEntry mWifiEntry; field in WifiPrivacyPreferenceController2 49 mWifiEntry = wifiEntry; in setWifiEntry() 62 final boolean isSelectable = mWifiEntry.canSetPrivacy(); in updateState() 76 if (mWifiEntry.getPrivacy() == privacy) { in onPreferenceChange() 80 mWifiEntry.setPrivacy(privacy); in onPreferenceChange() 84 if (mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED) { in onPreferenceChange() 85 mWifiEntry.disconnect(null /* callback */); in onPreferenceChange() 86 mWifiEntry.connect(null /* callback */); in onPreferenceChange() 94 return mWifiEntry.getPrivacy(); in getRandomizationValue()
|
D | WifiAutoConnectPreferenceController2.java | 33 private WifiEntry mWifiEntry; field in WifiAutoConnectPreferenceController2 40 mWifiEntry = wifiEntry; in setWifiEntry() 45 return mWifiEntry.canSetAutoJoinEnabled() ? AVAILABLE : CONDITIONALLY_UNAVAILABLE; in getAvailabilityStatus() 50 return mWifiEntry.isAutoJoinEnabled(); in isChecked() 55 mWifiEntry.setAutoJoinEnabled(isChecked); in setChecked()
|
D | WifiSubscriptionDetailPreferenceController2.java | 32 private WifiEntry mWifiEntry; field in WifiSubscriptionDetailPreferenceController2 39 mWifiEntry = wifiEntry; in setWifiEntry() 44 return mWifiEntry.canManageSubscription() ? AVAILABLE : CONDITIONALLY_UNAVAILABLE; in getAvailabilityStatus() 50 mWifiEntry.manageSubscription(); in handlePreferenceTreeClick()
|
D | AddDevicePreferenceController2.java | 39 private WifiEntry mWifiEntry; field in AddDevicePreferenceController2 49 mWifiEntry = wifiEntry; in setWifiEntry() 54 return mWifiEntry.canEasyConnect() ? AVAILABLE : CONDITIONALLY_UNAVAILABLE; in getAvailabilityStatus() 69 mWifiManager, mWifiEntry); in launchWifiDppConfiguratorQrCodeScanner()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiEntryPreference.java | 44 private final WifiEntry mWifiEntry; field in WifiEntryPreference 57 mWifiEntry = wifiEntry; in WifiEntryPreference() 58 mWifiEntry.setListener(this); in WifiEntryPreference() 71 return mWifiEntry; in getWifiEntry() 80 setTitle(mWifiEntry.getTitle()); in refresh() 81 setSummary(mWifiEntry.getSummary(/* concise= */ false)); in refresh() 86 if (mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED in getWifiEntryIcon() 90 mRestrictedSignalDrawable.setLevel(mWifiEntry.getLevel()); in getWifiEntryIcon() 99 WifiUtil.isOpenNetwork(mWifiEntry.getSecurity()) in getWifiEntryIcon() 103 drawable.setLevel(mWifiEntry.getLevel()); in getWifiEntryIcon()
|
D | WifiPasswordDialog.java | 39 private final WifiEntry mWifiEntry; field in WifiPasswordDialog 57 mWifiEntry = wifiEntry; in WifiPasswordDialog() 63 mDialogTitle = mWifiEntry.getTitle(); in onCreate() 111 return mWifiEntry; in getWifiEntry() 118 return WifiUtil.getWifiConfig(mWifiEntry, mEditText.getText().toString()); in getConfig()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | NetworkProviderSettingsTest.java | 132 private WifiEntry mWifiEntry; field in NetworkProviderSettingsTest 341 when(mWifiEntry.canDisconnect()).thenReturn(true); in onCreateContextMenu_shouldHaveForgetAndDisconnectMenuForConnectedWifiEntry() 342 when(mWifiEntry.canForget()).thenReturn(true); in onCreateContextMenu_shouldHaveForgetAndDisconnectMenuForConnectedWifiEntry() 343 when(mWifiEntry.isSaved()).thenReturn(true); in onCreateContextMenu_shouldHaveForgetAndDisconnectMenuForConnectedWifiEntry() 344 when(mWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTED); in onCreateContextMenu_shouldHaveForgetAndDisconnectMenuForConnectedWifiEntry() 347 mNetworkProviderSettings.createLongPressWifiEntryPreference(mWifiEntry); in onCreateContextMenu_shouldHaveForgetAndDisconnectMenuForConnectedWifiEntry() 363 when(mWifiEntry.canDisconnect()).thenReturn(true); in onCreateContextMenu_canShare_shouldHaveShareMenuForConnectedWifiEntry() 364 when(mWifiEntry.canShare()).thenReturn(true); in onCreateContextMenu_canShare_shouldHaveShareMenuForConnectedWifiEntry() 365 when(mWifiEntry.canForget()).thenReturn(true); in onCreateContextMenu_canShare_shouldHaveShareMenuForConnectedWifiEntry() 366 when(mWifiEntry.isSaved()).thenReturn(true); in onCreateContextMenu_canShare_shouldHaveShareMenuForConnectedWifiEntry() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/ |
D | WifiAutoConnectPreferenceController2Test.java | 42 private WifiEntry mWifiEntry; field in WifiAutoConnectPreferenceController2Test 48 mController.setWifiEntry(mWifiEntry); in setUp() 54 when(mWifiEntry.canSetAutoJoinEnabled()).thenReturn(true); in getAvailabilityStatus_shouldFollowCanSetAutoJoinEnabled() 59 when(mWifiEntry.canSetAutoJoinEnabled()).thenReturn(false); in getAvailabilityStatus_shouldFollowCanSetAutoJoinEnabled() 67 when(mWifiEntry.isAutoJoinEnabled()).thenReturn(true); in isChecked_shouldFollowIsAutoJoinEnabled() 72 when(mWifiEntry.isAutoJoinEnabled()).thenReturn(false); in isChecked_shouldFollowIsAutoJoinEnabled() 82 verify(mWifiEntry).setAutoJoinEnabled(true); in setChecked_shouldSetAutoJoinEnabled() 87 verify(mWifiEntry).setAutoJoinEnabled(false); in setChecked_shouldSetAutoJoinEnabled()
|
D | WifiSecondSummaryController2Test.java | 41 private WifiEntry mWifiEntry; field in WifiSecondSummaryController2Test 52 when(mWifiEntry.getSecondSummary()).thenReturn("test"); in getAvailabilityStatus_showWhenSummaryAvailable() 53 mController.setWifiEntry(mWifiEntry); in getAvailabilityStatus_showWhenSummaryAvailable() 58 when(mWifiEntry.getSecondSummary()).thenReturn(""); in getAvailabilityStatus_showWhenSummaryAvailable() 59 mController.setWifiEntry(mWifiEntry); in getAvailabilityStatus_showWhenSummaryAvailable()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/ |
D | WifiDppQrCodeScannerFragmentTest.java | 63 WifiEntry mWifiEntry; field in WifiDppQrCodeScannerFragmentTest 73 when(mWifiEntry.getSsid()).thenReturn(WIFI_SSID); in setUp() 74 when(mWifiPickerTracker.getWifiEntries()).thenReturn(Arrays.asList(mWifiEntry)); in setUp() 82 when(mWifiEntry.getSsid()).thenReturn("diff-wifi-ssid"); in canConnectWifi_noAvailableWifiMatch_returnTrue() 83 when(mWifiEntry.canConnect()).thenReturn(false); in canConnectWifi_noAvailableWifiMatch_returnTrue() 90 when(mWifiEntry.canConnect()).thenReturn(true); in canConnectWifi_wifiCanConnect_returnTrue() 97 when(mWifiEntry.canConnect()).thenReturn(false); in canConnectWifi_wifiCanNotConnect_returnFalseAndShowError()
|
D | WifiDppUtilsTest.java | 52 private WifiEntry mWifiEntry; field in WifiDppUtilsTest 71 when(mWifiEntry.canEasyConnect()).thenReturn(true); in getConfiguratorQrCodeScannerIntentOrNull_hiddenSsidNetwork_hasHiddenSsidExtra() 72 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in getConfiguratorQrCodeScannerIntentOrNull_hiddenSsidNetwork_hasHiddenSsidExtra() 73 when(mWifiEntry.getWifiConfiguration()).thenReturn(mWifiConfiguration); in getConfiguratorQrCodeScannerIntentOrNull_hiddenSsidNetwork_hasHiddenSsidExtra() 80 .getConfiguratorQrCodeScannerIntentOrNull(mContext, mWifiManager, mWifiEntry); in getConfiguratorQrCodeScannerIntentOrNull_hiddenSsidNetwork_hasHiddenSsidExtra()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/savedaccesspoints2/ |
D | SavedAccessPointsPreferenceController2Test.java | 73 private WifiEntry mWifiEntry; field in SavedAccessPointsPreferenceController2Test 84 when(mWifiEntry.getKey()).thenReturn(TEST_KEY); in setUp() 85 when(mWifiEntry.getTitle()).thenReturn(TEST_TITLE); in setUp() 101 mController.mWifiEntries = Arrays.asList(mWifiEntry); in getAvailability_oneSavedAccessPoint_shouldAvailable() 110 mController.displayPreference(mPreferenceScreen, Arrays.asList(mWifiEntry)); in displayPreference_newWifiEntry_addPreference() 125 mController.displayPreference(mPreferenceScreen, Arrays.asList(mWifiEntry)); in displayPreference_sameWifiEntry_preferenceSetWifiEntry() 127 verify(mWifiEntryPreference).setWifiEntry(mWifiEntry); in displayPreference_sameWifiEntry_preferenceSetWifiEntry()
|
/packages/apps/Settings/src/com/android/settings/wifi/slice/ |
D | ConnectToWifiHandler.java | 75 final WifiEntry mWifiEntry; field in ConnectToWifiHandler.WifiEntryConnectCallback 79 mWifiEntry = connectWifiEntry; in WifiEntryConnectCallback() 86 .putExtra(WifiDialogActivity.KEY_CHOSEN_WIFIENTRY_KEY, mWifiEntry.getKey()); in onConnectResult()
|