OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:DictBuffer
(Results
1 - 11
of
11
) sorted by null
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
ByteArrayDictBuffer.java
19
import com.android.inputmethod.latin.makedict.BinaryDictDecoderUtils.
DictBuffer
;
25
public final class ByteArrayDictBuffer implements
DictBuffer
{
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
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
,
91
protected static int readVersion(final
DictBuffer
dictBuffer
)
[
all
...]
DictDecoder.java
20
import com.android.inputmethod.latin.makedict.BinaryDictDecoderUtils.
DictBuffer
;
127
* Opens the dictionary file and makes
DictBuffer
.
141
public
DictBuffer
getDictionaryBuffer(final File file)
155
public
DictBuffer
getDictionaryBuffer(final File file)
184
public
DictBuffer
getDictionaryBuffer(final File file)
211
public
DictBuffer
getDictionaryBuffer(final File file)
Ver4DictDecoder.java
21
import com.android.inputmethod.latin.makedict.BinaryDictDecoderUtils.
DictBuffer
;
51
protected
DictBuffer
mDictBuffer;
52
private
DictBuffer
mFrequencyBuffer;
53
private
DictBuffer
mTerminalAddressTableBuffer;
54
private
DictBuffer
mBigramBuffer;
55
private
DictBuffer
mShortcutBuffer;
122
/* package */
DictBuffer
getDictBuffer() {
161
protected static int readFrequency(final
DictBuffer
frequencyBuffer, final int terminalId) {
166
protected static int readTerminalId(final
DictBuffer
dictBuffer
) {
[
all
...]
Ver3DictDecoder.java
21
import com.android.inputmethod.latin.makedict.BinaryDictDecoderUtils.
DictBuffer
;
51
private static int readFrequency(final
DictBuffer
dictBuffer
) {
52
return
dictBuffer
.readUnsignedByte();
58
protected
DictBuffer
mDictBuffer;
90
/* package */
DictBuffer
getDictBuffer() {
95
/* package */
DictBuffer
openAndGetDictBuffer() throws FileNotFoundException, IOException {
BinaryDictDecoderUtils.java
57
public interface
DictBuffer
{
70
public static final class ByteBufferDictBuffer implements
DictBuffer
{
245
* Reads a string from a
DictBuffer
. This is the converse of the above method.
247
static String readString(final
DictBuffer
dictBuffer
) {
249
int character = readChar(
dictBuffer
);
252
character = readChar(
dictBuffer
);
262
* @param
dictBuffer
the buffer, positioned over an encoded character.
265
static int readChar(final
DictBuffer
dictBuffer
) {
[
all
...]
DynamicBinaryDictIOUtils.java
21
import com.android.inputmethod.latin.makedict.BinaryDictDecoderUtils.
DictBuffer
;
60
final
DictBuffer
dictBuffer
= dictUpdater.getDictBuffer();
61
final int originalPosition =
dictBuffer
.position();
62
dictBuffer
.position(ptNodeOriginAddress);
66
final int flags =
dictBuffer
.readUnsignedByte();
71
dictBuffer
.position(originalPosition);
78
BinaryDictIOUtils.writeSInt24ToBuffer(
dictBuffer
, parentOffset);
79
dictBuffer
.position(originalPosition);
119
final
DictBuffer
dictBuffer = dictUpdater.getDictBuffer()
[
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
...]
BinaryDictDecoderEncoderTests.java
26
import com.android.inputmethod.latin.makedict.BinaryDictDecoderUtils.
DictBuffer
;
347
final
DictBuffer
dictBuffer
= new ByteArrayDictBuffer(buffer);
352
dictBuffer
.position(0);
353
final String str = CharEncoding.readString(
dictBuffer
);
Completed in 116 milliseconds