Searched defs:encodedEntry (Results 1 - 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
H A Dprobability_entry_test.cpp31 const uint64_t encodedEntry = entry.encode(false /* hasHistoricalInfo */); local
33 ProbabilityEntry::decode(encodedEntry, false /* hasHistoricalInfo */);
34 EXPECT_EQ(0xFF0Aull, encodedEntry);
47 const uint64_t encodedEntry = entry.encode(true /* hasHistoricalInfo */); local
48 EXPECT_EQ(0xF03FFFFFFFABCDull, encodedEntry);
50 ProbabilityEntry::decode(encodedEntry, true /* hasHistoricalInfo */);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
H A Dprobability_entry.h101 uint64_t encodedEntry = static_cast<uint8_t>(mFlags); local
103 encodedEntry = (encodedEntry << (Ver4DictConstants::TIME_STAMP_FIELD_SIZE * CHAR_BIT))
105 encodedEntry = (encodedEntry << (Ver4DictConstants::WORD_LEVEL_FIELD_SIZE * CHAR_BIT))
107 encodedEntry = (encodedEntry << (Ver4DictConstants::WORD_COUNT_FIELD_SIZE * CHAR_BIT))
110 encodedEntry = (encodedEntry << (Ver4DictConstants::PROBABILITY_SIZE * CHAR_BIT))
113 return encodedEntry;
116 decode(const uint64_t encodedEntry, const bool hasHistoricalInfo) argument
152 readFromEncodedEntry(const uint64_t encodedEntry, const int size, const int pos) argument
[all...]

Completed in 446 milliseconds