Home
last modified time | relevance | path

Searched refs:INVALID_INDEX (Results 1 – 9 of 9) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dtrie_map.cpp23 const int TrieMap::INVALID_INDEX = -1; member in latinime::TrieMap
72 if (terminalEntryIndex == INVALID_INDEX) { in getNextLevelBitmapEntryIndex()
74 return INVALID_INDEX; in getNextLevelBitmapEntryIndex()
82 if (valueEntryIndex == INVALID_INDEX) { in getNextLevelBitmapEntryIndex()
83 return INVALID_INDEX; in getNextLevelBitmapEntryIndex()
86 return INVALID_INDEX; in getNextLevelBitmapEntryIndex()
89 return INVALID_INDEX; in getNextLevelBitmapEntryIndex()
92 return INVALID_INDEX; in getNextLevelBitmapEntryIndex()
121 if (terminalEntryIndex == INVALID_INDEX) { in remove()
167 return Result(entry.getValue(), true, INVALID_INDEX); in iterateNext()
[all …]
Dtrie_map.h76 return mNextLevelBitmapEntryIndex != INVALID_INDEX; in hasNextLevelMap()
100 mKey(0), mValue(0), mIsValid(false), mNextLevelBitmapEntryIndex(INVALID_INDEX) { in TrieMapIterator()
101 if (!trieMap || mBaseBitmapEntryIndex == INVALID_INDEX) { in TrieMapIterator()
153 return TrieMapIterator(nullptr, INVALID_INDEX); in end()
164 static const int INVALID_INDEX; variable
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dtrie_map_test.cpp73 EXPECT_EQ(TrieMap::INVALID_INDEX, result.mNextLevelBitmapEntryIndex); in TEST()
149 EXPECT_NE(TrieMap::INVALID_INDEX, nextLevelBitmapEntryIndex); in TEST()
161 EXPECT_NE(TrieMap::INVALID_INDEX, secondLevel); in TEST()
164 EXPECT_NE(TrieMap::INVALID_INDEX, thirdLevel); in TEST()
175 EXPECT_NE(TrieMap::INVALID_INDEX, secondLevel); in TEST()
184 EXPECT_NE(TrieMap::INVALID_INDEX, secondLevel); in TEST()
188 EXPECT_NE(TrieMap::INVALID_INDEX, thirdLevel); in TEST()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp51 if (nextBitmapEntryIndex == TrieMap::INVALID_INDEX) { in getWordAttributes()
120 if (bitmapEntryIndex == TrieMap::INVALID_INDEX) { in getNgramProbabilityEntry()
137 if (bitmapEntryIndex == TrieMap::INVALID_INDEX) { in setNgramProbabilityEntry()
146 if (bitmapEntryIndex == TrieMap::INVALID_INDEX) { in removeNgramProbabilityEntry()
163 if (!result.mIsValid || result.mNextLevelBitmapEntryIndex == TrieMap::INVALID_INDEX) { in exportAllNgramEntriesRelatedToWord()
300 if (result.mIsValid && result.mNextLevelBitmapEntryIndex != TrieMap::INVALID_INDEX) { in createAndGetBitmapEntryIndex()
309 return TrieMap::INVALID_INDEX; in createAndGetBitmapEntryIndex()
323 return TrieMap::INVALID_INDEX; in getBitmapEntryIndex()
/packages/apps/TV/src/com/android/tv/guide/
DGuideUtils.java27 private static final int INVALID_INDEX = -1; field in GuideUtils
85 int nextFocusIndex = INVALID_INDEX; in findNextFocusedProgram()
112 if (nextFocusIndex != INVALID_INDEX) { in findNextFocusedProgram()
DProgramGrid.java36 private static final int INVALID_INDEX = -1; field in ProgramGrid
247 if (focusedChildIndex == INVALID_INDEX) { in focusFind()
299 return INVALID_INDEX; in getFocusedChildIndex()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/
DHandsFreeProfileOutputPreferenceController.java40 private static final int INVALID_INDEX = -1; field in HandsFreeProfileOutputPreferenceController
63 if (connectedDeviceIndex == INVALID_INDEX) { in onPreferenceChange()
83 return INVALID_INDEX; in getConnectedDeviceIndex()
/packages/apps/Settings/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceController.java40 private static final int INVALID_INDEX = -1; field in HandsFreeProfileOutputPreferenceController
63 if (connectedDeviceIndex == INVALID_INDEX) { in onPreferenceChange()
83 return INVALID_INDEX; in getConnectedDeviceIndex()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DBluetoothCmeError.java35 public static final int INVALID_INDEX = 21; field in BluetoothCmeError