OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:HeaderReadWriteUtils
(Results
1 - 8
of
8
) sorted by null
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/header/
header_read_write_utils_test.cpp
32
HeaderReadWriteUtils
::insertCharactersIntoVector("", &vector);
36
HeaderReadWriteUtils
::insertCharactersIntoVector(str, &vector);
47
EXPECT_EQ(-1,
HeaderReadWriteUtils
::readIntAttributeValue(&attributeMap, "", -1));
48
EXPECT_EQ(100,
HeaderReadWriteUtils
::readIntAttributeValue(&attributeMap, "abc", 100));
50
HeaderReadWriteUtils
::setIntAttribute(&attributeMap, "abc", 10);
51
EXPECT_EQ(10,
HeaderReadWriteUtils
::readIntAttributeValue(&attributeMap, "abc", 100));
52
HeaderReadWriteUtils
::setIntAttribute(&attributeMap, "abc", 20);
53
EXPECT_EQ(20,
HeaderReadWriteUtils
::readIntAttributeValue(&attributeMap, "abc", 100));
54
HeaderReadWriteUtils
::setIntAttribute(&attributeMap, "abcd", 30);
55
EXPECT_EQ(30,
HeaderReadWriteUtils
::readIntAttributeValue(&attributeMap, "abcd", 100))
[
all
...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
header_read_write_utils.cpp
35
const int
HeaderReadWriteUtils
::LARGEST_INT_DIGIT_COUNT = 11;
37
const int
HeaderReadWriteUtils
::MAX_ATTRIBUTE_KEY_LENGTH = 256;
38
const int
HeaderReadWriteUtils
::MAX_ATTRIBUTE_VALUE_LENGTH = 2048;
40
const int
HeaderReadWriteUtils
::HEADER_MAGIC_NUMBER_SIZE = 4;
41
const int
HeaderReadWriteUtils
::HEADER_DICTIONARY_VERSION_SIZE = 2;
42
const int
HeaderReadWriteUtils
::HEADER_FLAG_SIZE = 2;
43
const int
HeaderReadWriteUtils
::HEADER_SIZE_FIELD_SIZE = 4;
44
const char *const
HeaderReadWriteUtils
::CODE_POINT_TABLE_KEY = "codePointTable";
46
const
HeaderReadWriteUtils
::DictionaryFlags
HeaderReadWriteUtils
::NO_FLAGS = 0
[
all
...]
header_policy.cpp
60
HeaderReadWriteUtils
::insertCharactersIntoVector(key, &keyCodePointVector);
77
return
HeaderReadWriteUtils
::readCodePointVectorAttributeValue(&mAttributeMap, LOCALE_KEY);
81
const int demotionRate =
HeaderReadWriteUtils
::readIntAttributeValue(&mAttributeMap,
90
return
HeaderReadWriteUtils
::readBoolAttributeValue(&mAttributeMap,
100
if (!
HeaderReadWriteUtils
::writeDictionaryVersion(outBuffer, mDictFormatVersion,
104
if (!
HeaderReadWriteUtils
::writeDictionaryFlags(outBuffer, mDictionaryFlags,
110
if (!
HeaderReadWriteUtils
::writeDictionaryHeaderSize(outBuffer, 0 /* size */,
114
if (!
HeaderReadWriteUtils
::writeHeaderAttributes(outBuffer, &attributeMapToWrite,
119
if (!
HeaderReadWriteUtils
::writeDictionaryHeaderSize(outBuffer, writingPos,
138
HeaderReadWriteUtils
::setIntAttribute(outAttributeMap
[
all
...]
header_policy.h
37
mDictionaryFlags(
HeaderReadWriteUtils
::getFlags(dictBuf)),
38
mSize(
HeaderReadWriteUtils
::getHeaderSize(dictBuf)),
43
mIsDecayingDict(
HeaderReadWriteUtils
::readBoolAttributeValue(&mAttributeMap,
45
mDate(
HeaderReadWriteUtils
::readIntAttributeValue(&mAttributeMap,
47
mLastDecayedTime(
HeaderReadWriteUtils
::readIntAttributeValue(&mAttributeMap,
50
mExtendedRegionSize(
HeaderReadWriteUtils
::readIntAttributeValue(&mAttributeMap,
52
mHasHistoricalInfoOfWords(
HeaderReadWriteUtils
::readBoolAttributeValue(
54
mForgettingCurveProbabilityValuesTableId(
HeaderReadWriteUtils
::readIntAttributeValue(
57
mCodePointTable(
HeaderReadWriteUtils
::readCodePointTable(&mAttributeMap)) {}
64
mDictionaryFlags(
HeaderReadWriteUtils
::createAndGetDictionaryFlagsUsingAttributeMap
[
all
...]
header_read_write_utils.h
30
class
HeaderReadWriteUtils
{
96
DISALLOW_IMPLICIT_CONSTRUCTORS(
HeaderReadWriteUtils
);
/packages/inputmethods/LatinIME/native/jni/src/utils/
jni_data_utils.h
57
HeaderReadWriteUtils
::insertCharactersIntoVector(keyChars, &key);
67
HeaderReadWriteUtils
::insertCharactersIntoVector(valueChars, &value);
/packages/inputmethods/LatinIME/native/jni/
com_android_inputmethod_latin_BinaryDictionaryUtils.cpp
45
HeaderReadWriteUtils
::insertCharactersIntoVector(localeChars, &localeCodePoints);
com_android_inputmethod_latin_BinaryDictionary.cpp
79
HeaderReadWriteUtils
::insertCharactersIntoVector(localeChars, &localeCodePoints);
[
all
...]
Completed in 73 milliseconds