Search in sources :

Example 1 with DefaultAutofillPreferenceController

use of com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController in project android_packages_apps_Settings by DirtyUnicorns.

the class LanguageAndInputSettings method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(@NonNull Context context, @Nullable Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    // Language
    controllers.add(new PhoneLanguagePreferenceController(context));
    controllers.add(new SpellCheckerPreferenceController(context));
    controllers.add(new UserDictionaryPreferenceController(context));
    controllers.add(new TtsPreferenceController(context, new TtsEngines(context)));
    // Input
    controllers.add(new VirtualKeyboardPreferenceController(context));
    controllers.add(new PhysicalKeyboardPreferenceController(context, lifecycle));
    final GameControllerPreferenceController gameControllerPreferenceController = new GameControllerPreferenceController(context);
    if (lifecycle != null) {
        lifecycle.addObserver(gameControllerPreferenceController);
    }
    controllers.add(gameControllerPreferenceController);
    controllers.add(new DefaultAutofillPreferenceController(context));
    return controllers;
}
Also used : VirtualKeyboardPreferenceController(com.android.settings.inputmethod.VirtualKeyboardPreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) SpellCheckerPreferenceController(com.android.settings.inputmethod.SpellCheckerPreferenceController) ArrayList(java.util.ArrayList) PhysicalKeyboardPreferenceController(com.android.settings.inputmethod.PhysicalKeyboardPreferenceController) TtsEngines(android.speech.tts.TtsEngines) DefaultAutofillPreferenceController(com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController) GameControllerPreferenceController(com.android.settings.inputmethod.GameControllerPreferenceController)

Example 2 with DefaultAutofillPreferenceController

use of com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController in project android_packages_apps_Settings by LineageOS.

the class LanguageAndInputSettings method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(@NonNull Context context, @Nullable Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    // Language
    controllers.add(new PhoneLanguagePreferenceController(context));
    controllers.add(new SpellCheckerPreferenceController(context));
    controllers.add(new UserDictionaryPreferenceController(context));
    controllers.add(new TtsPreferenceController(context, new TtsEngines(context)));
    // Input
    controllers.add(new VirtualKeyboardPreferenceController(context));
    controllers.add(new PhysicalKeyboardPreferenceController(context, lifecycle));
    final GameControllerPreferenceController gameControllerPreferenceController = new GameControllerPreferenceController(context);
    if (lifecycle != null) {
        lifecycle.addObserver(gameControllerPreferenceController);
    }
    controllers.add(gameControllerPreferenceController);
    controllers.add(new DefaultAutofillPreferenceController(context));
    return controllers;
}
Also used : VirtualKeyboardPreferenceController(com.android.settings.inputmethod.VirtualKeyboardPreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) SpellCheckerPreferenceController(com.android.settings.inputmethod.SpellCheckerPreferenceController) ArrayList(java.util.ArrayList) PhysicalKeyboardPreferenceController(com.android.settings.inputmethod.PhysicalKeyboardPreferenceController) TtsEngines(android.speech.tts.TtsEngines) DefaultAutofillPreferenceController(com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController) GameControllerPreferenceController(com.android.settings.inputmethod.GameControllerPreferenceController)

Example 3 with DefaultAutofillPreferenceController

use of com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController in project android_packages_apps_Settings by crdroidandroid.

the class LanguageAndInputSettings method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(@NonNull Context context, @Nullable Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    // Language
    controllers.add(new PhoneLanguagePreferenceController(context));
    controllers.add(new SpellCheckerPreferenceController(context));
    controllers.add(new UserDictionaryPreferenceController(context));
    controllers.add(new TtsPreferenceController(context, new TtsEngines(context)));
    // Input
    controllers.add(new VirtualKeyboardPreferenceController(context));
    controllers.add(new PhysicalKeyboardPreferenceController(context, lifecycle));
    final GameControllerPreferenceController gameControllerPreferenceController = new GameControllerPreferenceController(context);
    if (lifecycle != null) {
        lifecycle.addObserver(gameControllerPreferenceController);
    }
    controllers.add(gameControllerPreferenceController);
    controllers.add(new DefaultAutofillPreferenceController(context));
    return controllers;
}
Also used : VirtualKeyboardPreferenceController(com.android.settings.inputmethod.VirtualKeyboardPreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) SpellCheckerPreferenceController(com.android.settings.inputmethod.SpellCheckerPreferenceController) ArrayList(java.util.ArrayList) PhysicalKeyboardPreferenceController(com.android.settings.inputmethod.PhysicalKeyboardPreferenceController) TtsEngines(android.speech.tts.TtsEngines) DefaultAutofillPreferenceController(com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController) GameControllerPreferenceController(com.android.settings.inputmethod.GameControllerPreferenceController)

Example 4 with DefaultAutofillPreferenceController

use of com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController in project android_packages_apps_Settings by SudaMod.

the class LanguageAndInputSettings method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(@NonNull Context context, @Nullable Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    // Language
    controllers.add(new PhoneLanguagePreferenceController(context));
    controllers.add(new SpellCheckerPreferenceController(context));
    controllers.add(new UserDictionaryPreferenceController(context));
    controllers.add(new TtsPreferenceController(context, new TtsEngines(context)));
    // Input
    controllers.add(new VirtualKeyboardPreferenceController(context));
    controllers.add(new PhysicalKeyboardPreferenceController(context, lifecycle));
    final GameControllerPreferenceController gameControllerPreferenceController = new GameControllerPreferenceController(context);
    if (lifecycle != null) {
        lifecycle.addObserver(gameControllerPreferenceController);
    }
    controllers.add(gameControllerPreferenceController);
    controllers.add(new DefaultAutofillPreferenceController(context));
    return controllers;
}
Also used : VirtualKeyboardPreferenceController(com.android.settings.inputmethod.VirtualKeyboardPreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) SpellCheckerPreferenceController(com.android.settings.inputmethod.SpellCheckerPreferenceController) ArrayList(java.util.ArrayList) PhysicalKeyboardPreferenceController(com.android.settings.inputmethod.PhysicalKeyboardPreferenceController) TtsEngines(android.speech.tts.TtsEngines) DefaultAutofillPreferenceController(com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController) GameControllerPreferenceController(com.android.settings.inputmethod.GameControllerPreferenceController)

Example 5 with DefaultAutofillPreferenceController

use of com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController in project platform_packages_apps_Settings by BlissRoms.

the class LanguageAndInputSettings method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(@NonNull Context context, @Nullable Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    // Language
    controllers.add(new PhoneLanguagePreferenceController(context));
    controllers.add(new SpellCheckerPreferenceController(context));
    controllers.add(new UserDictionaryPreferenceController(context));
    controllers.add(new TtsPreferenceController(context, new TtsEngines(context)));
    // Input
    controllers.add(new VirtualKeyboardPreferenceController(context));
    controllers.add(new PhysicalKeyboardPreferenceController(context, lifecycle));
    final GameControllerPreferenceController gameControllerPreferenceController = new GameControllerPreferenceController(context);
    if (lifecycle != null) {
        lifecycle.addObserver(gameControllerPreferenceController);
    }
    controllers.add(gameControllerPreferenceController);
    controllers.add(new DefaultAutofillPreferenceController(context));
    return controllers;
}
Also used : VirtualKeyboardPreferenceController(com.android.settings.inputmethod.VirtualKeyboardPreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) SpellCheckerPreferenceController(com.android.settings.inputmethod.SpellCheckerPreferenceController) ArrayList(java.util.ArrayList) PhysicalKeyboardPreferenceController(com.android.settings.inputmethod.PhysicalKeyboardPreferenceController) TtsEngines(android.speech.tts.TtsEngines) DefaultAutofillPreferenceController(com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController) GameControllerPreferenceController(com.android.settings.inputmethod.GameControllerPreferenceController)

Aggregations

DefaultAutofillPreferenceController (com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController)6 TtsEngines (android.speech.tts.TtsEngines)5 GameControllerPreferenceController (com.android.settings.inputmethod.GameControllerPreferenceController)5 PhysicalKeyboardPreferenceController (com.android.settings.inputmethod.PhysicalKeyboardPreferenceController)5 SpellCheckerPreferenceController (com.android.settings.inputmethod.SpellCheckerPreferenceController)5 VirtualKeyboardPreferenceController (com.android.settings.inputmethod.VirtualKeyboardPreferenceController)5 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)5 ArrayList (java.util.ArrayList)5 DefaultWorkAutofillPreferenceController (com.android.settings.applications.defaultapps.DefaultWorkAutofillPreferenceController)1