Lines Matching refs:i
107 for (int i = 0; i < (int)property->mTypes.size(); i++) { in OnPackageAdded() local
108 types.push_back(property->mTypes[i]->getHashCode()); in OnPackageAdded()
217 for (int i = 0; i < (int)inputMethodProperties.size(); i++) { in OnAdvanceToNext() local
218 imeId = inputMethodProperties[i]->mImeId; in OnAdvanceToNext()
226 firstEnabledProperty = inputMethodProperties[i]; in OnAdvanceToNext()
290 for (int i = 0; i < size; i++) { in Dump() local
291 dprintf(fd, " [%d] ImeId = %s\n", i, Utils::to_utf8(imeList[i]).c_str()); in Dump()
292 std::vector<int> hashCodeList = inputMethodSetting.GetEnabledKeyboardTypes(imeList[i]); in Dump()
321 for (int i = 0; i < (int)inputMethodProperties.size(); i++) { in GetCurrentInputMethod() local
322 if (currentImeId == inputMethodProperties[i]->mImeId) { in GetCurrentInputMethod()
323 return inputMethodProperties[i]; in GetCurrentInputMethod()
339 for (int i = 0; i < (int)inputMethodProperties.size(); i++) { in GetSecurityInputMethod() local
340 InputMethodProperty *imp = inputMethodProperties[i]; in GetSecurityInputMethod()
351 for (int j = 0; j < (int)inputMethodProperties[i]->mTypes.size(); j++) { in GetSecurityInputMethod()
352 std::u16string language = inputMethodProperties[i]->mTypes[j]->getLanguage(); in GetSecurityInputMethod()
373 for (int i = 0; i < (int)inputMethodProperties.size(); i++) { in GetNextInputMethod() local
374 imeId = inputMethodProperties[i]->mImeId; in GetNextInputMethod()
379 return inputMethodProperties[i]; in GetNextInputMethod()
381 firstEnabledProperty = inputMethodProperties[i]; in GetNextInputMethod()
404 for (int i = 0; i < (int)inputMethodProperties.size(); i++) { in ListInputMethodEnabled() local
405 if (enabledInputMethods.find(inputMethodProperties[i]->mImeId) != std::string::npos) { in ListInputMethodEnabled()
406 properties->push_back(inputMethodProperties[i]); in ListInputMethodEnabled()
418 for (int i = 0; i < (int)inputMethodProperties.size(); i++) { in ListInputMethod() local
419 properties->push_back(inputMethodProperties[i]); in ListInputMethod()
431 for (int i = 0; i < (int)inputMethodProperties.size(); i++) { in ListKeyboardType() local
432 if (imeId == inputMethodProperties[i]->mImeId) { in ListKeyboardType()
433 for (int j = 0; j < (int)inputMethodProperties[i]->mTypes.size(); j++) { in ListKeyboardType()
434 types->push_back(inputMethodProperties[i]->mTypes[j]); in ListKeyboardType()
450 for (int i = 0; i < (int)inputMethodProperties.size(); i++) { in GetInputMethodProperty() local
451 if (inputMethodProperties[i]->mImeId == imeId) { in GetInputMethodProperty()
452 return inputMethodProperties[i]; in GetInputMethodProperty()
466 for (int i = 0; i < (int)property->mTypes.size(); i++) { in GetKeyboardTypeLanguage() local
467 if (property->mTypes[i]->getHashCode() == hashCode) { in GetKeyboardTypeLanguage()
468 return property->mTypes[i]->getLanguage(); in GetKeyboardTypeLanguage()
480 for (int i = 0; i < (int)inputMethodProperties.size(); i++) { in InitInputMethodSetting() local
481 if (CheckIfSecurityIme(*inputMethodProperties[i]) == true) { in InitInputMethodSetting()
485 for (int j = 0; j < (int)inputMethodProperties[i]->mTypes.size(); j++) { in InitInputMethodSetting()
486 types.push_back(inputMethodProperties[i]->mTypes[j]->getHashCode()); in InitInputMethodSetting()
488 inputMethodSetting.AddEnabledInputMethod(inputMethodProperties[i]->mImeId, types); in InitInputMethodSetting()
521 for (int i = 0; i < (int)inputMethodProperties.size(); i++) { in ResetCurrentInputMethod() local
522 imeId = inputMethodProperties[i]->mImeId; in ResetCurrentInputMethod()
527 firstEnabledIme = inputMethodProperties[i]; in ResetCurrentInputMethod()
532 … std::u16string language = GetKeyboardTypeLanguage(inputMethodProperties[i], hashCodeList[j]); in ResetCurrentInputMethod()
563 for (int i = 0; i < (int)inputMethodProperties.size(); i++) { in GetImeId() local
564 if (inputMethodProperties[i]->mPackageName == packageName) { in GetImeId()
565 return inputMethodProperties[i]->mImeId; in GetImeId()