use of com.android.settings.deviceinfo.BuildNumberPreferenceController in project android_packages_apps_Settings by crdroidandroid.
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);
}
use of com.android.settings.deviceinfo.BuildNumberPreferenceController in project android_packages_apps_Settings by crdroidandroid.
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));
return controllers;
}
use of com.android.settings.deviceinfo.BuildNumberPreferenceController in project platform_packages_apps_Settings by BlissRoms.
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);
}
use of com.android.settings.deviceinfo.BuildNumberPreferenceController in project android_packages_apps_Settings by omnirom.
the class MyDeviceInfoFragmentTest method onActivityResult_shouldCallBuildNumberPreferenceController.
@Test
public void onActivityResult_shouldCallBuildNumberPreferenceController() {
mMyDeviceInfoFragment = FragmentController.of(new MyDeviceInfoFragment()).create().get();
final BuildNumberPreferenceController controller = mock(BuildNumberPreferenceController.class);
ReflectionHelpers.setField(mMyDeviceInfoFragment, "mBuildNumberPreferenceController", controller);
final int requestCode = 1;
final int resultCode = 2;
final Intent data = new Intent();
mMyDeviceInfoFragment.onActivityResult(requestCode, resultCode, data);
verify(controller).onActivityResult(requestCode, resultCode, data);
}
Aggregations