Search in sources :

Example 1 with WifiConfigController2

use of com.android.settings.wifi.WifiConfigController2 in project android_packages_apps_Settings by omnirom.

the class NetworkProviderSettingsTest method createWifiDialog2.

private WifiDialog2 createWifiDialog2(int mode, WifiConfiguration config) {
    final WifiEntry wifiEntry = mock(WifiEntry.class);
    when(wifiEntry.canConnect()).thenReturn(true);
    final WifiConfigController2 controller = mock(WifiConfigController2.class);
    when(controller.getConfig()).thenReturn(config);
    final WifiDialog2 wifiDialog2 = spy(WifiDialog2.createModal(mContext, null, /* listener */
    wifiEntry, mode));
    when(wifiDialog2.getController()).thenReturn(controller);
    return wifiDialog2;
}
Also used : WifiConfigController2(com.android.settings.wifi.WifiConfigController2) WifiDialog2(com.android.settings.wifi.WifiDialog2) WifiEntry(com.android.wifitrackerlib.WifiEntry)

Aggregations

WifiConfigController2 (com.android.settings.wifi.WifiConfigController2)1 WifiDialog2 (com.android.settings.wifi.WifiDialog2)1 WifiEntry (com.android.wifitrackerlib.WifiEntry)1