Lines Matching refs:context
57 public boolean init(final Context context, final PreferenceScreen prefScreen) { in init() argument
58 mContext = context; in init()
59 mImm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); in init()
60 mImi = getMyImi(context, mImm); in init()
64 mSubtypeEnablerPreference = new Preference(context); in init()
69 final CharSequence title = getSubtypeEnablerTitle(context); in init()
79 context.startActivity(intent); in init()
88 private static InputMethodInfo getMyImi(Context context, InputMethodManager imm) { in getMyImi() argument
92 if (imis.get(i).getPackageName().equals(context.getPackageName())) { in getMyImi()
100 Context context, InputMethodManager imm, InputMethodInfo imi) { in getEnabledSubtypesLabel() argument
101 if (context == null || imm == null || imi == null) return null; in getEnabledSubtypesLabel()
110 sb.append(subtype.getDisplayName(context, imi.getPackageName(), in getEnabledSubtypesLabel()
172 private CharSequence getSubtypeEnablerTitle(Context context) { in getSubtypeEnablerTitle() argument
174 return context.getString(mSubtypeEnablerTitleRes); in getSubtypeEnablerTitle()