Search in sources :

Example 1 with SpellCheckerPreferenceController

use of com.android.settings.inputmethod.SpellCheckerPreferenceController 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 SpellCheckerPreferenceController

use of com.android.settings.inputmethod.SpellCheckerPreferenceController in project Resurrection_packages_apps_Settings by ResurrectionRemix.

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));
    // Input
    final VirtualKeyboardPreferenceController virtualKeyboardPreferenceController = new VirtualKeyboardPreferenceController(context);
    final PhysicalKeyboardPreferenceController physicalKeyboardPreferenceController = new PhysicalKeyboardPreferenceController(context, lifecycle);
    controllers.add(virtualKeyboardPreferenceController);
    controllers.add(physicalKeyboardPreferenceController);
    controllers.add(new PreferenceCategoryController(context, KEY_KEYBOARDS_CATEGORY).setChildren(Arrays.asList(virtualKeyboardPreferenceController, physicalKeyboardPreferenceController)));
    // Pointer and Tts
    final TtsPreferenceController ttsPreferenceController = new TtsPreferenceController(context, KEY_TEXT_TO_SPEECH);
    controllers.add(ttsPreferenceController);
    final PointerSpeedController pointerController = new PointerSpeedController(context);
    controllers.add(pointerController);
    controllers.add(new PreferenceCategoryController(context, KEY_POINTER_AND_TTS_CATEGORY).setChildren(Arrays.asList(pointerController, ttsPreferenceController)));
    // Input Assistance
    controllers.add(new SpellCheckerPreferenceController(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) PreferenceCategoryController(com.android.settings.widget.PreferenceCategoryController)

Example 3 with SpellCheckerPreferenceController

use of com.android.settings.inputmethod.SpellCheckerPreferenceController in project android_packages_apps_Settings by omnirom.

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));
    // Input
    final VirtualKeyboardPreferenceController virtualKeyboardPreferenceController = new VirtualKeyboardPreferenceController(context);
    final PhysicalKeyboardPreferenceController physicalKeyboardPreferenceController = new PhysicalKeyboardPreferenceController(context, lifecycle);
    controllers.add(virtualKeyboardPreferenceController);
    controllers.add(physicalKeyboardPreferenceController);
    controllers.add(new PreferenceCategoryController(context, KEY_KEYBOARDS_CATEGORY).setChildren(Arrays.asList(virtualKeyboardPreferenceController, physicalKeyboardPreferenceController)));
    // Pointer and Tts
    final TtsPreferenceController ttsPreferenceController = new TtsPreferenceController(context, KEY_TEXT_TO_SPEECH);
    controllers.add(ttsPreferenceController);
    final PointerSpeedController pointerController = new PointerSpeedController(context);
    controllers.add(pointerController);
    controllers.add(new PreferenceCategoryController(context, KEY_POINTER_AND_TTS_CATEGORY).setChildren(Arrays.asList(pointerController, ttsPreferenceController)));
    // Input Assistance
    controllers.add(new SpellCheckerPreferenceController(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) PreferenceCategoryController(com.android.settings.widget.PreferenceCategoryController)

Example 4 with SpellCheckerPreferenceController

use of com.android.settings.inputmethod.SpellCheckerPreferenceController 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 5 with SpellCheckerPreferenceController

use of com.android.settings.inputmethod.SpellCheckerPreferenceController 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)

Aggregations

PhysicalKeyboardPreferenceController (com.android.settings.inputmethod.PhysicalKeyboardPreferenceController)7 SpellCheckerPreferenceController (com.android.settings.inputmethod.SpellCheckerPreferenceController)7 VirtualKeyboardPreferenceController (com.android.settings.inputmethod.VirtualKeyboardPreferenceController)7 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)7 ArrayList (java.util.ArrayList)7 TtsEngines (android.speech.tts.TtsEngines)5 DefaultAutofillPreferenceController (com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController)5 GameControllerPreferenceController (com.android.settings.inputmethod.GameControllerPreferenceController)5 PreferenceCategoryController (com.android.settings.widget.PreferenceCategoryController)2