Lines Matching refs:InputType
19 import android.text.InputType;
22 public final class InputTypeUtils implements InputType {
34 InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS,
35 InputType.TYPE_TEXT_VARIATION_PASSWORD,
36 InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD,
37 InputType.TYPE_TEXT_VARIATION_WEB_PASSWORD };
44 private static boolean isWebEditTextInputType(final int inputType) {
45 return inputType == (TYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_WEB_EDIT_TEXT);
48 private static boolean isWebPasswordInputType(final int inputType) {
50 && inputType == WEB_TEXT_PASSWORD_INPUT_TYPE;
53 private static boolean isWebEmailAddressInputType(final int inputType) {
55 && inputType == WEB_TEXT_EMAIL_ADDRESS_INPUT_TYPE;
58 private static boolean isNumberPasswordInputType(final int inputType) {
60 && inputType == NUMBER_PASSWORD_INPUT_TYPE;
63 private static boolean isTextPasswordInputType(final int inputType) {
64 return inputType == TEXT_PASSWORD_INPUT_TYPE;
76 public static boolean isWebInputType(final int inputType) {
78 inputType & (TYPE_MASK_CLASS | TYPE_MASK_VARIATION);
84 public static boolean isPasswordInputType(final int inputType) {
86 inputType & (TYPE_MASK_CLASS | TYPE_MASK_VARIATION);
92 public static boolean isVisiblePasswordInputType(final int inputType) {
94 inputType & (TYPE_MASK_CLASS | TYPE_MASK_VARIATION);
98 public static boolean isAutoSpaceFriendlyType(final int inputType) {
99 if (TYPE_CLASS_TEXT != (TYPE_MASK_CLASS & inputType)) return false;
100 final int variation = TYPE_MASK_VARIATION & inputType;