Home | History | Annotate | Download | only in server

Lines Matching refs:sci

163         public void setCurrentSpellChecker(@Nullable SpellCheckerInfo sci) {
164 if (sci != null) {
165 putSelectedSpellChecker(sci.getId());
199 final SpellCheckerInfo sci = new SpellCheckerInfo(mContext, ri);
200 if (sci.getSubtypeCount() <= 0) {
205 mSpellCheckerList.add(sci);
206 mSpellCheckerMap.put(sci.getId(), sci);
361 SpellCheckerInfo sci = tsd.getCurrentSpellChecker();
362 if (sci == null) {
363 sci = findAvailSystemSpellCheckerLocked(null, tsd);
365 // available. In this case, "sci" is the first one in the available spell
367 setCurrentSpellCheckerLocked(sci, tsd);
384 SpellCheckerInfo sci = tsd.getCurrentSpellChecker();
390 if (sci == null) {
391 sci = findAvailSystemSpellCheckerLocked(null, tsd);
393 // available. In this case, "sci" is the first one in the available spell
395 setCurrentSpellCheckerLocked(sci, tsd);
397 final String packageName = sci.getPackageName();
405 || (availSci != null && !availSci.getId().equals(sci.getId()))) {
436 for (SpellCheckerInfo sci : tsd.mSpellCheckerList) {
437 if ((sci.getServiceInfo().applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) {
438 spellCheckerList.add(sci);
449 final SpellCheckerInfo sci = spellCheckerList.get(i);
450 if (prefPackage.equals(sci.getPackageName())) {
452 Slog.d(TAG, "findAvailSystemSpellCheckerLocked: " + sci.getPackageName());
454 return sci;
515 final SpellCheckerInfo sci;
528 sci = tsd.getCurrentSpellChecker();
531 if (sci == null || sci.getSubtypeCount() == 0) {
562 for (int i = 0; i < sci.getSubtypeCount(); ++i) {
563 final SpellCheckerSubtype scs = sci.getSubtypeAt(i);
608 final SpellCheckerInfo sci = spellCheckerMap.get(sciId);
616 bindGroup = startSpellCheckerServiceInnerLocked(sci, tsd);
716 private void setCurrentSpellCheckerLocked(@Nullable SpellCheckerInfo sci, TextServicesData tsd) {
717 final String sciId = (sci != null) ? sci.getId() : "";
723 tsd.setCurrentSpellChecker(sci);