Search in sources :

Example 1 with AssistGestureSettingsPreferenceController

use of com.android.settings.gestures.AssistGestureSettingsPreferenceController in project android_packages_apps_Settings by crdroidandroid.

the class ManageAssist method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new DefaultAssistPreferenceController(context, "default_assist", true));
    controllers.add(new AssistGestureSettingsPreferenceController(context, lifecycle, KEY_ASSIST, true));
    controllers.add(new AssistContextPreferenceController(context, lifecycle));
    controllers.add(new AssistScreenshotPreferenceController(context, lifecycle));
    controllers.add(new AssistFlashScreenPreferenceController(context, lifecycle));
    controllers.add(new DefaultVoiceInputPreferenceController(context, lifecycle));
    return controllers;
}
Also used : AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) ArrayList(java.util.ArrayList) AssistGestureSettingsPreferenceController(com.android.settings.gestures.AssistGestureSettingsPreferenceController)

Example 2 with AssistGestureSettingsPreferenceController

use of com.android.settings.gestures.AssistGestureSettingsPreferenceController in project android_packages_apps_Settings by LineageOS.

the class ManageAssist method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new DefaultAssistPreferenceController(context, "default_assist", true));
    controllers.add(new AssistGestureSettingsPreferenceController(context, lifecycle, KEY_ASSIST, true));
    controllers.add(new AssistContextPreferenceController(context, lifecycle));
    controllers.add(new AssistScreenshotPreferenceController(context, lifecycle));
    controllers.add(new AssistFlashScreenPreferenceController(context, lifecycle));
    controllers.add(new DefaultVoiceInputPreferenceController(context, lifecycle));
    return controllers;
}
Also used : AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) ArrayList(java.util.ArrayList) AssistGestureSettingsPreferenceController(com.android.settings.gestures.AssistGestureSettingsPreferenceController)

Example 3 with AssistGestureSettingsPreferenceController

use of com.android.settings.gestures.AssistGestureSettingsPreferenceController in project android_packages_apps_Settings by omnirom.

the class ManageAssist method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new DefaultAssistPreferenceController(context, "default_assist", true));
    controllers.add(new AssistGestureSettingsPreferenceController(context, lifecycle, KEY_ASSIST, true));
    controllers.add(new AssistContextPreferenceController(context, lifecycle));
    controllers.add(new AssistScreenshotPreferenceController(context, lifecycle));
    controllers.add(new AssistFlashScreenPreferenceController(context, lifecycle));
    controllers.add(new DefaultVoiceInputPreferenceController(context, lifecycle));
    return controllers;
}
Also used : AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) ArrayList(java.util.ArrayList) AssistGestureSettingsPreferenceController(com.android.settings.gestures.AssistGestureSettingsPreferenceController)

Example 4 with AssistGestureSettingsPreferenceController

use of com.android.settings.gestures.AssistGestureSettingsPreferenceController in project android_packages_apps_Settings by DirtyUnicorns.

the class ManageAssist method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new DefaultAssistPreferenceController(context, "default_assist", true));
    controllers.add(new AssistGestureSettingsPreferenceController(context, lifecycle, KEY_ASSIST, true));
    controllers.add(new AssistContextPreferenceController(context, lifecycle));
    controllers.add(new AssistScreenshotPreferenceController(context, lifecycle));
    controllers.add(new AssistFlashScreenPreferenceController(context, lifecycle));
    controllers.add(new DefaultVoiceInputPreferenceController(context, lifecycle));
    return controllers;
}
Also used : AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) ArrayList(java.util.ArrayList) AssistGestureSettingsPreferenceController(com.android.settings.gestures.AssistGestureSettingsPreferenceController)

Example 5 with AssistGestureSettingsPreferenceController

use of com.android.settings.gestures.AssistGestureSettingsPreferenceController in project android_packages_apps_Settings by SudaMod.

the class ManageAssist method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new DefaultAssistPreferenceController(context, "default_assist", true));
    controllers.add(new AssistGestureSettingsPreferenceController(context, lifecycle, KEY_ASSIST, true));
    controllers.add(new AssistContextPreferenceController(context, lifecycle));
    controllers.add(new AssistScreenshotPreferenceController(context, lifecycle));
    controllers.add(new AssistFlashScreenPreferenceController(context, lifecycle));
    controllers.add(new DefaultVoiceInputPreferenceController(context, lifecycle));
    return controllers;
}
Also used : AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) ArrayList(java.util.ArrayList) AssistGestureSettingsPreferenceController(com.android.settings.gestures.AssistGestureSettingsPreferenceController)

Aggregations

AssistGestureSettingsPreferenceController (com.android.settings.gestures.AssistGestureSettingsPreferenceController)6 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)6 ArrayList (java.util.ArrayList)6