Search in sources :

Example 1 with UptimePreferenceController

use of com.android.settings.deviceinfo.UptimePreferenceController in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class MyDeviceInfoFragment method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, MyDeviceInfoFragment fragment, Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new SimStatusPreferenceController(context, fragment));
    controllers.add(new IpAddressPreferenceController(context, lifecycle));
    controllers.add(new WifiMacAddressPreferenceController(context, lifecycle));
    controllers.add(new BluetoothAddressPreferenceController(context, lifecycle));
    controllers.add(new RegulatoryInfoPreferenceController(context));
    controllers.add(new SafetyInfoPreferenceController(context));
    controllers.add(new ManualPreferenceController(context));
    controllers.add(new FeedbackPreferenceController(fragment, context));
    controllers.add(new FccEquipmentIdPreferenceController(context));
    controllers.add(new UptimePreferenceController(context, lifecycle));
    return controllers;
}
Also used : SimStatusPreferenceController(com.android.settings.deviceinfo.simstatus.SimStatusPreferenceController) UptimePreferenceController(com.android.settings.deviceinfo.UptimePreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) ArrayList(java.util.ArrayList) ManualPreferenceController(com.android.settings.deviceinfo.ManualPreferenceController) BluetoothAddressPreferenceController(com.android.settings.deviceinfo.BluetoothAddressPreferenceController) FccEquipmentIdPreferenceController(com.android.settings.deviceinfo.FccEquipmentIdPreferenceController) WifiMacAddressPreferenceController(com.android.settings.deviceinfo.WifiMacAddressPreferenceController) FeedbackPreferenceController(com.android.settings.deviceinfo.FeedbackPreferenceController) RegulatoryInfoPreferenceController(com.android.settings.deviceinfo.RegulatoryInfoPreferenceController) SafetyInfoPreferenceController(com.android.settings.deviceinfo.SafetyInfoPreferenceController) IpAddressPreferenceController(com.android.settings.deviceinfo.IpAddressPreferenceController)

Aggregations

BluetoothAddressPreferenceController (com.android.settings.deviceinfo.BluetoothAddressPreferenceController)1 FccEquipmentIdPreferenceController (com.android.settings.deviceinfo.FccEquipmentIdPreferenceController)1 FeedbackPreferenceController (com.android.settings.deviceinfo.FeedbackPreferenceController)1 IpAddressPreferenceController (com.android.settings.deviceinfo.IpAddressPreferenceController)1 ManualPreferenceController (com.android.settings.deviceinfo.ManualPreferenceController)1 RegulatoryInfoPreferenceController (com.android.settings.deviceinfo.RegulatoryInfoPreferenceController)1 SafetyInfoPreferenceController (com.android.settings.deviceinfo.SafetyInfoPreferenceController)1 UptimePreferenceController (com.android.settings.deviceinfo.UptimePreferenceController)1 WifiMacAddressPreferenceController (com.android.settings.deviceinfo.WifiMacAddressPreferenceController)1 SimStatusPreferenceController (com.android.settings.deviceinfo.simstatus.SimStatusPreferenceController)1 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)1 ArrayList (java.util.ArrayList)1