Search in sources :

Example 6 with WifiP2pPreferenceController

use of com.android.settings.wifi.p2p.WifiP2pPreferenceController in project android_packages_apps_Settings by SudaMod.

the class ConfigureWifiSettings method getPreferenceControllers.

@Override
protected List<AbstractPreferenceController> getPreferenceControllers(Context context) {
    final NetworkScoreManagerWrapper networkScoreManagerWrapper = new NetworkScoreManagerWrapper(context.getSystemService(NetworkScoreManager.class));
    mWifiWakeupPreferenceController = new WifiWakeupPreferenceController(context, getLifecycle());
    mUseOpenWifiPreferenceController = new UseOpenWifiPreferenceController(context, this, networkScoreManagerWrapper, getLifecycle());
    final WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(mWifiWakeupPreferenceController);
    controllers.add(new NetworkScorerPickerPreferenceController(context, networkScoreManagerWrapper));
    controllers.add(new NotifyOpenNetworksPreferenceController(context, getLifecycle()));
    controllers.add(mUseOpenWifiPreferenceController);
    controllers.add(new WifiInfoPreferenceController(context, getLifecycle(), wifiManager));
    controllers.add(new CellularFallbackPreferenceController(context));
    controllers.add(new WifiP2pPreferenceController(context, getLifecycle(), wifiManager));
    controllers.add(new WifiCallingPreferenceController(context));
    controllers.add(new WpsPreferenceController(context, getLifecycle(), wifiManager, getFragmentManager()));
    return controllers;
}
Also used : WifiManager(android.net.wifi.WifiManager) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) NetworkScorerPickerPreferenceController(com.android.settings.network.NetworkScorerPickerPreferenceController) WifiP2pPreferenceController(com.android.settings.wifi.p2p.WifiP2pPreferenceController) ArrayList(java.util.ArrayList) WifiCallingPreferenceController(com.android.settings.network.WifiCallingPreferenceController) NetworkScoreManager(android.net.NetworkScoreManager) NetworkScoreManagerWrapper(com.android.settings.network.NetworkScoreManagerWrapper)

Example 7 with WifiP2pPreferenceController

use of com.android.settings.wifi.p2p.WifiP2pPreferenceController in project platform_packages_apps_Settings by BlissRoms.

the class ConfigureWifiSettings method getPreferenceControllers.

@Override
protected List<AbstractPreferenceController> getPreferenceControllers(Context context) {
    final NetworkScoreManagerWrapper networkScoreManagerWrapper = new NetworkScoreManagerWrapper(context.getSystemService(NetworkScoreManager.class));
    mWifiWakeupPreferenceController = new WifiWakeupPreferenceController(context, getLifecycle());
    mUseOpenWifiPreferenceController = new UseOpenWifiPreferenceController(context, this, networkScoreManagerWrapper, getLifecycle());
    final WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(mWifiWakeupPreferenceController);
    controllers.add(new NetworkScorerPickerPreferenceController(context, networkScoreManagerWrapper));
    controllers.add(new NotifyOpenNetworksPreferenceController(context, getLifecycle()));
    controllers.add(mUseOpenWifiPreferenceController);
    controllers.add(new WifiInfoPreferenceController(context, getLifecycle(), wifiManager));
    controllers.add(new CellularFallbackPreferenceController(context));
    controllers.add(new WifiP2pPreferenceController(context, getLifecycle(), wifiManager));
    controllers.add(new WifiCallingPreferenceController(context));
    controllers.add(new WpsPreferenceController(context, getLifecycle(), wifiManager, getFragmentManager()));
    return controllers;
}
Also used : WifiManager(android.net.wifi.WifiManager) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) NetworkScorerPickerPreferenceController(com.android.settings.network.NetworkScorerPickerPreferenceController) WifiP2pPreferenceController(com.android.settings.wifi.p2p.WifiP2pPreferenceController) ArrayList(java.util.ArrayList) WifiCallingPreferenceController(com.android.settings.network.WifiCallingPreferenceController) NetworkScoreManager(android.net.NetworkScoreManager) NetworkScoreManagerWrapper(com.android.settings.network.NetworkScoreManagerWrapper)

Example 8 with WifiP2pPreferenceController

use of com.android.settings.wifi.p2p.WifiP2pPreferenceController in project android_packages_apps_Settings by DirtyUnicorns.

the class ConfigureWifiSettings method getPreferenceControllers.

@Override
protected List<AbstractPreferenceController> getPreferenceControllers(Context context) {
    final NetworkScoreManagerWrapper networkScoreManagerWrapper = new NetworkScoreManagerWrapper(context.getSystemService(NetworkScoreManager.class));
    mWifiWakeupPreferenceController = new WifiWakeupPreferenceController(context, getLifecycle());
    mUseOpenWifiPreferenceController = new UseOpenWifiPreferenceController(context, this, networkScoreManagerWrapper, getLifecycle());
    final WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(mWifiWakeupPreferenceController);
    controllers.add(new NetworkScorerPickerPreferenceController(context, networkScoreManagerWrapper));
    controllers.add(new NotifyOpenNetworksPreferenceController(context, getLifecycle()));
    controllers.add(mUseOpenWifiPreferenceController);
    controllers.add(new WifiInfoPreferenceController(context, getLifecycle(), wifiManager));
    controllers.add(new CellularFallbackPreferenceController(context));
    controllers.add(new WifiP2pPreferenceController(context, getLifecycle(), wifiManager));
    controllers.add(new WifiCallingPreferenceController(context));
    controllers.add(new WpsPreferenceController(context, getLifecycle(), wifiManager, getFragmentManager()));
    return controllers;
}
Also used : WifiManager(android.net.wifi.WifiManager) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) NetworkScorerPickerPreferenceController(com.android.settings.network.NetworkScorerPickerPreferenceController) WifiP2pPreferenceController(com.android.settings.wifi.p2p.WifiP2pPreferenceController) ArrayList(java.util.ArrayList) WifiCallingPreferenceController(com.android.settings.network.WifiCallingPreferenceController) NetworkScoreManager(android.net.NetworkScoreManager) NetworkScoreManagerWrapper(com.android.settings.network.NetworkScoreManagerWrapper)

Example 9 with WifiP2pPreferenceController

use of com.android.settings.wifi.p2p.WifiP2pPreferenceController in project android_packages_apps_Settings by crdroidandroid.

the class ConfigureWifiSettings method getPreferenceControllers.

@Override
protected List<AbstractPreferenceController> getPreferenceControllers(Context context) {
    final NetworkScoreManagerWrapper networkScoreManagerWrapper = new NetworkScoreManagerWrapper(context.getSystemService(NetworkScoreManager.class));
    mWifiWakeupPreferenceController = new WifiWakeupPreferenceController(context, getLifecycle());
    mUseOpenWifiPreferenceController = new UseOpenWifiPreferenceController(context, this, networkScoreManagerWrapper, getLifecycle());
    final WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(mWifiWakeupPreferenceController);
    controllers.add(new NetworkScorerPickerPreferenceController(context, networkScoreManagerWrapper));
    controllers.add(new NotifyOpenNetworksPreferenceController(context, getLifecycle()));
    controllers.add(mUseOpenWifiPreferenceController);
    controllers.add(new WifiInfoPreferenceController(context, getLifecycle(), wifiManager));
    controllers.add(new CellularFallbackPreferenceController(context));
    controllers.add(new WifiP2pPreferenceController(context, getLifecycle(), wifiManager));
    controllers.add(new WifiCallingPreferenceController(context));
    controllers.add(new WpsPreferenceController(context, getLifecycle(), wifiManager, getFragmentManager()));
    return controllers;
}
Also used : WifiManager(android.net.wifi.WifiManager) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) NetworkScorerPickerPreferenceController(com.android.settings.network.NetworkScorerPickerPreferenceController) WifiP2pPreferenceController(com.android.settings.wifi.p2p.WifiP2pPreferenceController) ArrayList(java.util.ArrayList) WifiCallingPreferenceController(com.android.settings.network.WifiCallingPreferenceController) NetworkScoreManager(android.net.NetworkScoreManager) NetworkScoreManagerWrapper(com.android.settings.network.NetworkScoreManagerWrapper)

Example 10 with WifiP2pPreferenceController

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

the class ConfigureWifiSettings method createPreferenceControllers.

@Override
protected List<AbstractPreferenceController> createPreferenceControllers(Context context) {
    final WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new WifiP2pPreferenceController(context, getSettingsLifecycle(), wifiManager));
    return controllers;
}
Also used : WifiManager(android.net.wifi.WifiManager) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) WifiP2pPreferenceController(com.android.settings.wifi.p2p.WifiP2pPreferenceController) ArrayList(java.util.ArrayList)

Aggregations

WifiManager (android.net.wifi.WifiManager)11 WifiP2pPreferenceController (com.android.settings.wifi.p2p.WifiP2pPreferenceController)11 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)11 ArrayList (java.util.ArrayList)11 NetworkScoreManager (android.net.NetworkScoreManager)6 NetworkScoreManagerWrapper (com.android.settings.network.NetworkScoreManagerWrapper)6 NetworkScorerPickerPreferenceController (com.android.settings.network.NetworkScorerPickerPreferenceController)6 WifiCallingPreferenceController (com.android.settings.network.WifiCallingPreferenceController)6