Home
last modified time | relevance | path

Searched refs:firstOrDefault (Results 1 – 4 of 4) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/tests/utils/
Dint_array_view_test.cpp131 EXPECT_EQ(3, intArrayView.firstOrDefault(10)); in TEST()
132 EXPECT_EQ(10, intArrayView.limit(0).firstOrDefault(10)); in TEST()
133 EXPECT_EQ(-10, intArrayView.limit(0).firstOrDefault(-10)); in TEST()
134 EXPECT_EQ(10, intArrayView.skip(6).firstOrDefault(10)); in TEST()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Dint_array_view.h118 AK_FORCE_INLINE int firstOrDefault(const int defaultValue) const { in firstOrDefault() function
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp200 if (prevWordIds.firstOrDefault(NOT_A_DICT_POS) == NOT_A_DICT_POS) { in iterateNgramEntries()
430 if (prevWordIds.firstOrDefault(NOT_A_WORD_ID) == NOT_A_WORD_ID) { in removeNgramEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp403 if (prevWordIds.firstOrDefault(NOT_A_WORD_ID) == NOT_A_WORD_ID) { in updateEntriesForWordWithNgramContext()