Searched defs:buffer (Results 1 - 25 of 102) sorted by relevance

12345

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/
H A Dver4_patricia_trie_reading_utils.cpp24 const uint8_t *const buffer, int *pos) {
25 return ByteArrayUtils::readUint32AndAdvancePosition(buffer, pos);
23 getTerminalIdAndAdvancePosition( const uint8_t *const buffer, int *pos) argument
H A Dver4_pt_node_array_reader.h29 Ver4PtNodeArrayReader(const BufferWithExtendableBuffer *const buffer) : mBuffer(buffer) {}; argument
H A Dver4_patricia_trie_node_reader.h36 Ver4PatriciaTrieNodeReader(const BufferWithExtendableBuffer *const buffer, argument
39 : mBuffer(buffer), mLanguageModelDictContent(languageModelDictContent),
/packages/apps/OMA-DM/engine/dmlib/dmengine/oma_toolkit/hdr/
H A Dmd5.h51 unsigned char buffer[64]; /* input buffer */ member in struct:__anon95
/packages/apps/OMA-DM/engine/dmlib/dmengine/oma_toolkit/sml/xpt/hdr/
H A Dmd5.h41 unsigned char buffer[64]; /* input buffer */ member in struct:__anon121
/packages/apps/OMA-DM/engine/dmlib/tool-src/servercred/hdr/
H A Dmd5.h41 unsigned char buffer[64]; /* input buffer */ member in struct:__anon157
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/
H A Dver4_patricia_trie_reading_utils.cpp33 const uint8_t *const buffer, int *pos) {
34 return ByteArrayUtils::readUint32AndAdvancePosition(buffer, pos);
32 getTerminalIdAndAdvancePosition( const uint8_t *const buffer, int *pos) argument
H A Dver4_pt_node_array_reader.h42 Ver4PtNodeArrayReader(const BufferWithExtendableBuffer *const buffer) : mBuffer(buffer) {}; argument
H A Dver4_patricia_trie_node_reader.h53 Ver4PatriciaTrieNodeReader(const BufferWithExtendableBuffer *const buffer, argument
56 : mBuffer(buffer), mProbabilityDictContent(probabilityDictContent),
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/content/
H A Dterminal_position_lookup_table.h34 TerminalPositionLookupTable(uint8_t *const buffer, const int bufferSize) argument
35 : SingleDictContent(buffer, bufferSize),
H A Dsingle_dict_content.h33 SingleDictContent(uint8_t *const buffer, const int bufferSize) argument
34 : mExpandableContentBuffer(ReadWriteByteArrayView(buffer, bufferSize),
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DFakeInputStream.java44 public int read(byte[] buffer, int offset, int length) { argument
45 Arrays.checkOffsetAndCount(buffer.length, offset, length);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DCountingOutputStream.java39 public void write(byte[] buffer, int offset, int count) throws IOException { argument
40 mOutputStream.write(buffer, offset, count);
/packages/apps/Nfc/nci/jni/
H A DDataQueue.cpp116 ** buffer: array to store the data.
117 ** bufferMaxLen: maximum size of the buffer.
123 bool DataQueue::dequeue (UINT8* buffer, UINT16 bufferMaxLen, UINT16& actualLen) argument
130 if (header && buffer && (bufferMaxLen>0))
134 //caller's buffer is big enough to store all data
137 memcpy (buffer, src, actualLen);
144 //caller's buffer is too small
147 memcpy (buffer, src, actualLen);
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/
H A Ddynamic_pt_updating_helper.h35 DynamicPtUpdatingHelper(BufferWithExtendableBuffer *const buffer, argument
37 : mBuffer(buffer), mPtNodeReader(ptNodeReader), mPtNodeWriter(ptNodeWriter) {}
H A Ddynamic_pt_reading_utils.cpp36 /* static */ int DynamicPtReadingUtils::getForwardLinkPosition(const uint8_t *const buffer, argument
39 return ByteArrayUtils::readSint24AndAdvancePosition(buffer, &linkAddressPos);
43 const uint8_t *const buffer, int *const pos) {
44 return ByteArrayUtils::readSint24AndAdvancePosition(buffer, pos);
59 const uint8_t *const buffer, int *const pos) {
61 const int offset = ByteArrayUtils::readSint24AndAdvancePosition(buffer, pos);
42 getParentPtNodePosOffsetAndAdvancePosition( const uint8_t *const buffer, int *const pos) argument
58 readChildrenPositionAndAdvancePosition( const uint8_t *const buffer, int *const pos) argument
H A Ddynamic_pt_writing_utils.h33 static bool writeEmptyDictionary(BufferWithExtendableBuffer *const buffer, const int rootPos);
36 BufferWithExtendableBuffer *const buffer, const int forwardLinkPos,
39 static bool writePtNodeArraySizeAndAdvancePosition(BufferWithExtendableBuffer *const buffer,
42 static bool writeFlags(BufferWithExtendableBuffer *const buffer, argument
46 return writeFlagsAndAdvancePosition(buffer, nodeFlags, &writingPos);
49 static bool writeFlagsAndAdvancePosition(BufferWithExtendableBuffer *const buffer,
53 static bool writeParentPosOffsetAndAdvancePosition(BufferWithExtendableBuffer *const buffer,
56 static bool writeCodePointsAndAdvancePosition(BufferWithExtendableBuffer *const buffer,
59 static bool writeChildrenPositionAndAdvancePosition(BufferWithExtendableBuffer *const buffer,
75 static bool writeDictOffset(BufferWithExtendableBuffer *const buffer, cons
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DNinePatchChunk.java37 private static void readIntArray(int[] data, ByteBuffer buffer) { argument
39 data[i] = buffer.getInt();
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DInterruptableOutputStream.java43 public void write(byte[] buffer, int offset, int count) throws IOException { argument
48 mOutputStream.write(buffer, offset, bytesCount);
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
H A DUnboundedFifoByteBuffer.java26 * UnboundedFifoByteBuffer is a very efficient buffer implementation.
44 * This buffer prevents null objects from being added.
57 protected byte[] buffer; field in class:UnboundedFifoByteBuffer
77 * @param initialSize the initial size of the buffer
84 buffer = new byte[initialSize + 1];
90 * Returns the number of elements stored in the buffer.
92 * @return this buffer's size
98 size = buffer.length - head + tail;
107 * Returns true if this buffer is empty; false otherwise.
109 * @return true if this buffer i
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
H A Dmmapped_buffer.h56 AK_FORCE_INLINE MmappedBuffer(uint8_t *const buffer, const int bufferSize, argument
59 : mByteArrayView(buffer, bufferSize), mMmappedBuffer(mmappedBuffer),
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DByteArrayDictBuffer.java22 * This class provides an implementation for the FusionDictionary buffer interface that is backed
29 public ByteArrayDictBuffer(final byte[] buffer) { argument
30 mBuffer = buffer;
/packages/services/Telephony/common/src/com/android/services/telephony/common/
H A DAudioMode.java37 StringBuffer buffer = new StringBuffer();
39 listAppend(buffer, "EARPIECE");
42 listAppend(buffer, "BLUETOOTH");
45 listAppend(buffer, "WIRED_HEADSET");
48 listAppend(buffer, "SPEAKER");
51 return buffer.toString();
54 private static void listAppend(StringBuffer buffer, String str) { argument
55 if (buffer.length() > 0) {
56 buffer.append(", ");
58 buffer
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
H A DFormatUtils.java113 public static void copyToCharArrayBuffer(String text, CharArrayBuffer buffer) { argument
115 char[] data = buffer.data;
117 buffer.data = text.toCharArray();
121 buffer.sizeCopied = text.length();
123 buffer.sizeCopied = 0;
129 public static String charArrayBufferToString(CharArrayBuffer buffer) { argument
130 return new String(buffer.data, 0, buffer.sizeCopied);
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/format/
H A DFormatUtilsTests.java46 // This requires a resize of the actual buffer.
58 CharArrayBuffer buffer = new CharArrayBuffer(20);
59 FormatUtils.copyToCharArrayBuffer(text, buffer);
60 assertEquals(text, FormatUtils.charArrayBufferToString(buffer));
64 * Checks that copying into the char array buffer copies the values correctly.
66 private void checkCopyToCharArrayBuffer(CharArrayBuffer buffer, String value, int length) { argument
67 FormatUtils.copyToCharArrayBuffer(value, buffer);
68 assertEquals(length, buffer.sizeCopied);
70 assertEquals(value.charAt(index), buffer.data[index]);

Completed in 9167 milliseconds

12345