Search in sources :

Example 6 with BuildNumberPreferenceController

use of com.android.settings.deviceinfo.BuildNumberPreferenceController in project platform_packages_apps_Settings by BlissRoms.

the class DeviceInfoSettings method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Activity activity, Fragment fragment, Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new BuildNumberPreferenceController(context, activity, fragment, lifecycle));
    controllers.add(new AdditionalSystemUpdatePreferenceController(context));
    controllers.add(new ManualPreferenceController(context));
    controllers.add(new FeedbackPreferenceController(fragment, context));
    controllers.add(new KernelVersionPreferenceController(context));
    controllers.add(new BasebandVersionPreferenceController(context));
    controllers.add(new FirmwareVersionPreferenceController(context, lifecycle));
    // controllers.add(new RegulatoryInfoPreferenceController(context));
    controllers.add(new DeviceModelPreferenceController(context, fragment));
    controllers.add(new SecurityPatchPreferenceController(context));
    controllers.add(new FccEquipmentIdPreferenceController(context));
    controllers.add(new SELinuxStatusPreferenceController(context));
    controllers.add(new SafetyInfoPreferenceController(context));
    controllers.add(new BlissVersionPreferenceController(context));
    return controllers;
}
Also used : AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) ArrayList(java.util.ArrayList) BlissVersionPreferenceController(com.android.settings.deviceinfo.BlissVersionPreferenceController) ManualPreferenceController(com.android.settings.deviceinfo.ManualPreferenceController) SecurityPatchPreferenceController(com.android.settings.deviceinfo.SecurityPatchPreferenceController) BasebandVersionPreferenceController(com.android.settings.deviceinfo.BasebandVersionPreferenceController) AdditionalSystemUpdatePreferenceController(com.android.settings.deviceinfo.AdditionalSystemUpdatePreferenceController) KernelVersionPreferenceController(com.android.settings.deviceinfo.KernelVersionPreferenceController) FccEquipmentIdPreferenceController(com.android.settings.deviceinfo.FccEquipmentIdPreferenceController) BuildNumberPreferenceController(com.android.settings.deviceinfo.BuildNumberPreferenceController) FeedbackPreferenceController(com.android.settings.deviceinfo.FeedbackPreferenceController) FirmwareVersionPreferenceController(com.android.settings.deviceinfo.FirmwareVersionPreferenceController) SafetyInfoPreferenceController(com.android.settings.deviceinfo.SafetyInfoPreferenceController) SELinuxStatusPreferenceController(com.android.settings.deviceinfo.SELinuxStatusPreferenceController) DeviceModelPreferenceController(com.android.settings.deviceinfo.DeviceModelPreferenceController)

Example 7 with BuildNumberPreferenceController

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

the class MyDeviceInfoFragmentTest method onActivityResult_shouldCallBuildNumberPreferenceController.

@Test
public void onActivityResult_shouldCallBuildNumberPreferenceController() {
    final BuildNumberPreferenceController controller = mock(BuildNumberPreferenceController.class);
    ReflectionHelpers.setField(mSettings, "mBuildNumberPreferenceController", controller);
    final int requestCode = 1;
    final int resultCode = 2;
    final Intent data = new Intent();
    mSettings.onActivityResult(requestCode, resultCode, data);
    verify(controller).onActivityResult(requestCode, resultCode, data);
}
Also used : BuildNumberPreferenceController(com.android.settings.deviceinfo.BuildNumberPreferenceController) Intent(android.content.Intent) Test(org.junit.Test)

Example 8 with BuildNumberPreferenceController

use of com.android.settings.deviceinfo.BuildNumberPreferenceController in project android_packages_apps_Settings by LineageOS.

the class DeviceInfoSettings method onActivityResult.

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    final BuildNumberPreferenceController buildNumberPreferenceController = getPreferenceController(BuildNumberPreferenceController.class);
    if (buildNumberPreferenceController.onActivityResult(requestCode, resultCode, data)) {
        return;
    }
    super.onActivityResult(requestCode, resultCode, data);
}
Also used : BuildNumberPreferenceController(com.android.settings.deviceinfo.BuildNumberPreferenceController)

Example 9 with BuildNumberPreferenceController

use of com.android.settings.deviceinfo.BuildNumberPreferenceController in project android_packages_apps_Settings by omnirom.

the class DeviceInfoSettings method onActivityResult.

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    final BuildNumberPreferenceController buildNumberPreferenceController = getPreferenceController(BuildNumberPreferenceController.class);
    if (buildNumberPreferenceController.onActivityResult(requestCode, resultCode, data)) {
        return;
    }
    super.onActivityResult(requestCode, resultCode, data);
}
Also used : BuildNumberPreferenceController(com.android.settings.deviceinfo.BuildNumberPreferenceController)

Example 10 with BuildNumberPreferenceController

use of com.android.settings.deviceinfo.BuildNumberPreferenceController in project android_packages_apps_Settings by DirtyUnicorns.

the class DeviceInfoSettings method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Activity activity, Fragment fragment, Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new BuildNumberPreferenceController(context, activity, fragment, lifecycle));
    controllers.add(new AdditionalSystemUpdatePreferenceController(context));
    controllers.add(new ManualPreferenceController(context));
    // controllers.add(new FeedbackPreferenceController(fragment, context));
    controllers.add(new KernelVersionPreferenceController(context));
    controllers.add(new BasebandVersionPreferenceController(context));
    controllers.add(new ChangelogPreferenceController(context));
    controllers.add(new FirmwareVersionPreferenceController(context, lifecycle));
    // controllers.add(new RegulatoryInfoPreferenceController(context));
    controllers.add(new DeviceModelPreferenceController(context, fragment));
    controllers.add(new SecurityPatchPreferenceController(context));
    controllers.add(new FccEquipmentIdPreferenceController(context));
    controllers.add(new SELinuxStatusPreferenceController(context));
    controllers.add(new SafetyInfoPreferenceController(context));
    controllers.add(new ROMVersionPreferenceController(context));
    return controllers;
}
Also used : ChangelogPreferenceController(com.android.settings.deviceinfo.ChangelogPreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) ArrayList(java.util.ArrayList) ManualPreferenceController(com.android.settings.deviceinfo.ManualPreferenceController) SecurityPatchPreferenceController(com.android.settings.deviceinfo.SecurityPatchPreferenceController) ROMVersionPreferenceController(com.android.settings.deviceinfo.ROMVersionPreferenceController) BasebandVersionPreferenceController(com.android.settings.deviceinfo.BasebandVersionPreferenceController) AdditionalSystemUpdatePreferenceController(com.android.settings.deviceinfo.AdditionalSystemUpdatePreferenceController) KernelVersionPreferenceController(com.android.settings.deviceinfo.KernelVersionPreferenceController) FccEquipmentIdPreferenceController(com.android.settings.deviceinfo.FccEquipmentIdPreferenceController) BuildNumberPreferenceController(com.android.settings.deviceinfo.BuildNumberPreferenceController) FirmwareVersionPreferenceController(com.android.settings.deviceinfo.FirmwareVersionPreferenceController) SafetyInfoPreferenceController(com.android.settings.deviceinfo.SafetyInfoPreferenceController) SELinuxStatusPreferenceController(com.android.settings.deviceinfo.SELinuxStatusPreferenceController) DeviceModelPreferenceController(com.android.settings.deviceinfo.DeviceModelPreferenceController)

Aggregations

BuildNumberPreferenceController (com.android.settings.deviceinfo.BuildNumberPreferenceController)14 AdditionalSystemUpdatePreferenceController (com.android.settings.deviceinfo.AdditionalSystemUpdatePreferenceController)6 BasebandVersionPreferenceController (com.android.settings.deviceinfo.BasebandVersionPreferenceController)6 DeviceModelPreferenceController (com.android.settings.deviceinfo.DeviceModelPreferenceController)6 FccEquipmentIdPreferenceController (com.android.settings.deviceinfo.FccEquipmentIdPreferenceController)6 FirmwareVersionPreferenceController (com.android.settings.deviceinfo.FirmwareVersionPreferenceController)6 KernelVersionPreferenceController (com.android.settings.deviceinfo.KernelVersionPreferenceController)6 ManualPreferenceController (com.android.settings.deviceinfo.ManualPreferenceController)6 SELinuxStatusPreferenceController (com.android.settings.deviceinfo.SELinuxStatusPreferenceController)6 SafetyInfoPreferenceController (com.android.settings.deviceinfo.SafetyInfoPreferenceController)6 SecurityPatchPreferenceController (com.android.settings.deviceinfo.SecurityPatchPreferenceController)6 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)6 ArrayList (java.util.ArrayList)6 FeedbackPreferenceController (com.android.settings.deviceinfo.FeedbackPreferenceController)5 RegulatoryInfoPreferenceController (com.android.settings.deviceinfo.RegulatoryInfoPreferenceController)4 Intent (android.content.Intent)2 Test (org.junit.Test)2 BlissVersionPreferenceController (com.android.settings.deviceinfo.BlissVersionPreferenceController)1 ChangelogPreferenceController (com.android.settings.deviceinfo.ChangelogPreferenceController)1 OmniVersionPreferenceController (com.android.settings.deviceinfo.OmniVersionPreferenceController)1