OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:dictBuffer
(Results
1 - 6
of
6
) sorted by null
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DynamicBinaryDictIOUtils.java
21
import com.android.inputmethod.latin.makedict.BinaryDictDecoderUtils.
DictBuffer
;
61
final
DictBuffer
dictBuffer
= dictUpdater.getDictBuffer();
62
final int originalPosition =
dictBuffer
.position();
63
dictBuffer
.position(ptNodeOriginAddress);
67
final int flags =
dictBuffer
.readUnsignedByte();
72
dictBuffer
.position(originalPosition);
79
BinaryDictIOUtils.writeSInt24ToBuffer(
dictBuffer
, parentOffset);
80
dictBuffer
.position(originalPosition);
120
final
DictBuffer
dictBuffer = dictUpdater.getDictBuffer()
[
all
...]
AbstractDictDecoder.java
21
import com.android.inputmethod.latin.makedict.BinaryDictDecoderUtils.
DictBuffer
;
35
protected FileHeader readHeader(final
DictBuffer
dictBuffer
)
37
if (
dictBuffer
== null) {
41
final int version = HeaderReader.readVersion(
dictBuffer
);
47
final int optionsFlags = HeaderReader.readOptionFlags(
dictBuffer
);
49
final int headerSize = HeaderReader.readHeaderSize(
dictBuffer
);
55
final HashMap<String, String> attributes = HeaderReader.readAttributes(
dictBuffer
,
92
protected static int readVersion(final
DictBuffer
dictBuffer
)
[
all
...]
BinaryDictIOUtils.java
22
import com.android.inputmethod.latin.makedict.BinaryDictDecoderUtils.
DictBuffer
;
248
static int writeSInt24ToBuffer(final
DictBuffer
dictBuffer
,
251
dictBuffer
.put((byte)(((value < 0 ? 0x80 : 0) | (absValue >> 16)) & 0xFF));
252
dictBuffer
.put((byte)((absValue >> 8) & 0xFF));
253
dictBuffer
.put((byte)(absValue & 0xFF));
291
static void skipString(final
DictBuffer
dictBuffer
,
294
int character = CharEncoding.readChar(
dictBuffer
);
296
character = CharEncoding.readChar(
dictBuffer
);
[
all
...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
Ver3DictDecoderTests.java
19
import com.android.inputmethod.latin.makedict.BinaryDictDecoderUtils.
DictBuffer
;
123
DictBuffer
dictBuffer
= null;
125
dictBuffer
= dictDecoder.openAndGetDictBuffer();
129
assertNotNull("the buffer must not be null",
dictBuffer
);
132
assertEquals(data[i],
dictBuffer
.readUnsignedByte());
BinaryDictIOUtilsTests.java
24
import com.android.inputmethod.latin.makedict.BinaryDictDecoderUtils.
DictBuffer
;
115
final
DictBuffer
dictBuffer
= dictDecoder.getDictBuffer();
116
Log.d(TAG, "Node at " +
dictBuffer
.position());
117
final int count = BinaryDictDecoderUtils.readPtNodeCount(
dictBuffer
);
120
final PtNodeInfo currentInfo = dictDecoder.readPtNode(
dictBuffer
.position(),
125
final int forwardLinkAddress =
dictBuffer
.readUnsignedInt24();
134
final
DictBuffer
dictBuffer
= dictDecoder.getDictBuffer();
135
while (
dictBuffer
.position() < dictBuffer.limit())
[
all
...]