/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
H A D | ver4_patricia_trie_reading_utils.cpp | 24 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 D | ver4_patricia_trie_node_reader.cpp | 41 int pos = ptNodePos; local 44 pos -= mBuffer->getOriginalBufferSize(); 47 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); 50 dictBuf, &pos); 56 dictBuf, flags, MAX_WORD_LENGTH, nullptr /* codePointTable */, codePoints, &pos); 60 terminalIdFieldPos = pos; 64 terminalId = Ver4PatriciaTrieReadingUtils::getTerminalIdAndAdvancePosition(dictBuf, &pos); 66 int childrenPosFieldPos = pos; 71 dictBuf, &pos); 76 pos [all...] |
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_utilities_indexing.h | 97 int pos; local 99 best=s[0];pos=0; 100 if(s[1]>best){best=s[1];pos=1;} 101 if(s[2]>best){best=s[2];pos=2;} 102 return(pos); 108 int pos; local 110 best=s[0];pos=0; 111 if(s[1]>best){best=s[1];pos=1;} 112 if(s[2]>best){best=s[2];pos=2;} 113 if(s[3]>best){best=s[3];pos 120 int pos; local 133 int pos; local 147 int pos; local 162 int pos; local 177 int pos; local 194 int pos; local 205 int pos; local [all...] |
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
H A D | ver4_patricia_trie_reading_utils.cpp | 33 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 D | ver4_patricia_trie_node_reader.cpp | 50 int pos = ptNodePos; local 53 pos -= mBuffer->getOriginalBufferSize(); 56 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); 59 dictBuf, &pos); 64 dictBuf, flags, MAX_WORD_LENGTH, mHeaderPolicy->getCodePointTable(), codePoints, &pos); 69 terminalIdFieldPos = pos; 73 terminalId = Ver4PatriciaTrieReadingUtils::getTerminalIdAndAdvancePosition(dictBuf, &pos); 83 int childrenPosFieldPos = pos; 88 dictBuf, &pos); 93 pos [all...] |
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
H A D | byte_array_utils.h | 37 const uint32_t data, const int size, int *const pos) { 42 ByteArrayUtils::writeUint8AndAdvancePosition(buffer, data, pos); 45 ByteArrayUtils::writeUint16AndAdvancePosition(buffer, data, pos); 48 ByteArrayUtils::writeUint24AndAdvancePosition(buffer, data, pos); 51 ByteArrayUtils::writeUint32AndAdvancePosition(buffer, data, pos); 63 static AK_FORCE_INLINE uint32_t readUint32(const uint8_t *const buffer, const int pos) { argument 64 return (buffer[pos] << 24) ^ (buffer[pos + 1] << 16) 65 ^ (buffer[pos + 2] << 8) ^ buffer[pos 36 writeUintAndAdvancePosition(uint8_t *const buffer, const uint32_t data, const int size, int *const pos) argument 68 readUint24(const uint8_t *const buffer, const int pos) argument 72 readUint16(const uint8_t *const buffer, const int pos) argument 76 readUint8(const uint8_t *const buffer, const int pos) argument 80 readUint32AndAdvancePosition( const uint8_t *const buffer, int *const pos) argument 87 readSint24AndAdvancePosition( const uint8_t *const buffer, int *const pos) argument 98 readUint24AndAdvancePosition( const uint8_t *const buffer, int *const pos) argument 105 readUint16AndAdvancePosition( const uint8_t *const buffer, int *const pos) argument 112 readUint8AndAdvancePosition( const uint8_t *const buffer, int *const pos) argument 117 readUint(const uint8_t *const buffer, const int size, const int pos) argument 148 readCodePoint(const uint8_t *const buffer, const int pos) argument 153 readCodePointAndAdvancePosition( const uint8_t *const buffer, const int *const codePointTable, int *const pos) argument 185 readStringAndAdvancePosition(const uint8_t *const buffer, const int maxLength, const int *const codePointTable, int *const outBuffer, int *const pos) argument 198 advancePositionToBehindString( const uint8_t *const buffer, const int maxLength, int *const pos) argument 212 writeCodePointsAndAdvancePosition(uint8_t *const buffer, const int *const codePoints, const int codePointCount, const bool writesTerminator, int *const pos) argument 263 writeUint32AndAdvancePosition(uint8_t *const buffer, const uint32_t data, int *const pos) argument 271 writeUint24AndAdvancePosition(uint8_t *const buffer, const uint32_t data, int *const pos) argument 278 writeUint16AndAdvancePosition(uint8_t *const buffer, const uint16_t data, int *const pos) argument 284 writeUint8AndAdvancePosition(uint8_t *const buffer, const uint8_t data, int *const pos) argument [all...] |
H A D | buffer_with_extendable_buffer.cpp | 26 uint32_t BufferWithExtendableBuffer::readUint(const int size, const int pos) const { 27 const bool readingPosIsInAdditionalBuffer = isInAdditionalBuffer(pos); 28 const int posInBuffer = readingPosIsInAdditionalBuffer ? pos - mOriginalBuffer.size() : pos; 33 int *const pos) const { 34 const uint32_t value = readUint(size, *pos); 35 *pos += size; 40 int *const outCodePoints, int *outCodePointCount, int *const pos) const { 41 const bool readingPosIsInAdditionalBuffer = isInAdditionalBuffer(*pos); 43 *pos 58 writeUint(const uint32_t data, const int size, const int pos) argument 63 writeUintAndAdvancePosition(const uint32_t data, const int size, int *const pos) argument 86 writeCodePointsAndAdvancePosition(const int *const codePoints, const int codePointCount, const bool writesTerminator, int *const pos) argument 118 checkAndPrepareWriting(const int pos, const int size) argument [all...] |
H A D | buffer_with_extendable_buffer.h | 73 uint32_t readUint(const int size, const int pos) const; 75 uint32_t readUintAndAdvancePosition(const int size, int *const pos) const; 78 int *const outCodePoints, int *outCodePointCount, int *const pos) const; 97 bool writeUint(const uint32_t data, const int size, const int pos); 99 bool writeUintAndAdvancePosition(const uint32_t data, const int size, int *const pos); 102 const bool writesTerminator, int *const pos); 120 // Returns if it is possible to write size-bytes from pos. When pos is at the tail position of 122 bool checkAndPrepareWriting(const int pos, const int size);
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/cc/ |
H A D | Cea708Parser.java | 259 int pos = 0; 261 boolean ccValid = (bytes[pos] & 0x04) != 0; 262 int ccType = bytes[pos] & 0x03; 274 mDtvCcPacket.append(bytes[pos + 1]); 275 mDtvCcPacket.append(bytes[pos + 2]); 277 mDtvCcPacket.append(bytes[pos + 1]); 278 mDtvCcPacket.append(bytes[pos + 2]); 288 pos += 3; 295 int pos = 0; 296 int packetSize = data[pos] 368 parseServiceBlockData(byte[] data, int pos) argument 390 parseC0(byte[] data, int pos) argument 446 parseC1(byte[] data, int pos) argument 702 parseG0(byte[] data, int pos) argument 715 parseG1(byte[] data, int pos) argument 724 parseExt1(byte[] data, int pos) argument 744 parseC2(byte[] data, int pos) argument 764 parseC3(byte[] data, int pos) argument 778 parseG2(byte[] data, int pos) argument 798 parseG3(byte[] data, int pos) argument [all...] |
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/shortcut/ |
H A D | shortcut_list_policy.h | 35 int getStartPos(const int pos) const { 36 if (pos == NOT_A_DICT_POS) { 39 int listPos = pos; 46 int *const pos) const { 48 ShortcutListReadingUtils::getFlagsAndForwardPointer(mBuffer, pos); 57 mBuffer, maxCodePointCount, outCodePoint, pos); 61 void skipAllShortcuts(int *const pos) const { 63 ::getShortcutListSizeAndForwardPointer(mBuffer, pos); 64 *pos += shortcutListSize;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/shortcut/ |
H A D | shortcut_list_reading_utils.cpp | 35 int *const pos) { 36 return ByteArrayUtils::readUint8AndAdvancePosition(buffer.data(), pos); 40 const ReadOnlyByteArrayView buffer, int *const pos) { 42 return ByteArrayUtils::readUint16AndAdvancePosition(buffer.data(), pos) 47 const int maxLength, int *const outWord, int *const pos) { 50 nullptr /* codePointTable */, outWord, pos); 34 getFlagsAndForwardPointer(const ReadOnlyByteArrayView buffer, int *const pos) argument 39 getShortcutListSizeAndForwardPointer( const ReadOnlyByteArrayView buffer, int *const pos) argument 46 readShortcutTarget(const ReadOnlyByteArrayView buffer, const int maxLength, int *const outWord, int *const pos) argument
|
H A D | shortcut_list_reading_utils.h | 32 int *const pos); 45 int *const pos); 51 static AK_FORCE_INLINE void skipShortcuts(const ReadOnlyByteArrayView buffer, int *const pos) { argument 52 const int shortcutListSize = getShortcutListSizeAndForwardPointer(buffer, pos); 53 *pos += shortcutListSize; 61 int *const outWord, int *const pos);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/ |
H A D | dictionary_shortcuts_structure_policy.h | 31 virtual int getStartPos(const int pos) const = 0; 35 int *const pos) const = 0; 37 virtual void skipAllShortcuts(int *const pos) const = 0;
|
H A D | dictionary_bigrams_structure_policy.h | 32 bool *const outHasNext, int *const pos) const = 0; 33 virtual bool skipAllBigrams(int *const pos) const = 0;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/bigram/ |
H A D | bigram_list_policy.h | 36 int *const pos) const { 39 outBigramPos, pos)) { 40 AKLOGE("Cannot read bigram entry. bufSize: %zd, pos: %d. ", mBuffer.size(), *pos); 49 bool skipAllBigrams(int *const pos) const { 50 return BigramListReadWriteUtils::skipExistingBigrams(mBuffer, pos);
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/ts/ |
H A D | SectionParser.java | 315 int pos = 0; 316 while (pos + 3 <= data.length()) { 317 if ((data.byteAt(pos) & 0xff) == 0xff) { 323 (((data.byteAt(pos + 1) & 0x0f) << 8) | (data.byteAt(pos + 2) & 0xff)) + 3; 324 if (pos + sectionLength > data.length()) { 328 Log.d(TAG, "parseSections 0x" + Integer.toHexString(data.byteAt(pos) & 0xff)); 330 parseSection(Arrays.copyOfRange(data.buffer(), pos, pos + sectionLength)); 331 pos 868 parseIso639Language(byte[] data, int pos, int limit) argument 889 parseCaptionService(byte[] data, int pos, int limit) argument 930 parseContentAdvisory(byte[] data, int pos, int limit) argument 975 parseLongChannelName(byte[] data, int pos, int limit) argument 990 parseGenre(byte[] data, int pos, int limit) argument 1019 parseAc3AudioStream(byte[] data, int pos, int limit) argument 1159 extractText(byte[] data, int pos) argument [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | ZoomControlBar.java | 62 int pos; // the relative position in the zoom slider bar 64 pos = mWidth - mTotalIconWidth - x; 66 pos = x - mTotalIconWidth; 68 if (pos < 0) pos = 0; 69 if (pos > mSliderLength) pos = mSliderLength; 70 return pos; 98 int pos = getSliderPosition((int) event.getX()); 102 int delta = mSliderPosition - pos; [all...] |
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/ |
H A D | buffer_with_extendable_buffer_test.cpp | 28 int pos = 0; local 31 EXPECT_TRUE(buffer.writeUint(data_1, 1 /* size */, pos)); 32 EXPECT_EQ(data_1, buffer.readUint(1, pos)); 33 pos += 1; 36 EXPECT_TRUE(buffer.writeUint(data_2, 2 /* size */, pos)); 37 EXPECT_EQ(data_2, buffer.readUint(2, pos)); 38 pos += 2; 41 EXPECT_TRUE(buffer.writeUint(data_3, 3 /* size */, pos)); 42 EXPECT_EQ(data_3, buffer.readUint(3, pos)); 43 pos 85 int pos = 0; local [all...] |
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
H A D | HtmlParser.java | 201 int pos; 205 pos = scanText(i, clipEnd); 206 X.assertTrue(pos > i || state != State.IN_TEXT); // Must make progress. 210 pos = scanTag(i, end); 211 X.assertTrue(pos > i); // Must make progress 215 pos = scanComment(i, end); 217 X.assertTrue(pos > i); // Must make progress 221 pos = scanCDATA(i, end); 222 X.assertTrue(pos > i || state != State.IN_CDATA); // Must make progress 229 i = pos; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyboardTextsSet.java | 68 for (int pos = start; pos < size; pos++) { 69 final char c = text.charAt(pos); 74 return pos; 101 for (int pos = 0; pos < size; pos++) { 102 final char c = text.charAt(pos); 103 if (text.startsWith(PREFIX_TEXT, pos)) { 131 expandReference(final String text, final int pos, final String prefix, final StringBuilder sb) argument [all...] |
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/ |
H A D | MpegTsSampleSourceExtractor.java | 222 int pos = offset; 223 if (pos + 2 >= buffer.position()) { 226 boolean processCcDataFlag = (buffer.get(pos) & 64) != 0; 227 int ccCount = buffer.get(pos) & 0x1f; 228 pos += 2; 229 if (!processCcDataFlag || pos + 3 * ccCount >= buffer.position() || ccCount == 0) { 233 mCea708CcBuffer.put(buffer.get(pos + i)); 242 int pos = 0; 243 while (pos + 9 < buffer.position()) { 245 if (buffer.get(pos) [all...] |
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
H A D | patricia_trie_reading_utils.cpp | 48 const uint8_t *const buffer, int *const pos) { 49 const uint8_t firstByte = ByteArrayUtils::readUint8AndAdvancePosition(buffer, pos); 54 buffer, pos); 59 const uint8_t *const buffer, int *const pos) { 60 return ByteArrayUtils::readUint8AndAdvancePosition(buffer, pos); 64 const int *const codePointTable, int *const pos) { 65 return ByteArrayUtils::readCodePointAndAdvancePosition(buffer, codePointTable, pos); 71 int *const outBuffer, int *const pos) { 75 outBuffer, pos); 77 const int codePoint = getCodePointAndAdvancePosition(buffer, codePointTable, pos); 47 getPtNodeArraySizeAndAdvancePosition( const uint8_t *const buffer, int *const pos) argument 58 getFlagsAndAdvancePosition( const uint8_t *const buffer, int *const pos) argument 63 getCodePointAndAdvancePosition(const uint8_t *const buffer, const int *const codePointTable, int *const pos) argument 69 getCharsAndAdvancePosition(const uint8_t *const buffer, const NodeFlags flags, const int maxLength, const int *const codePointTable, int *const outBuffer, int *const pos) argument 95 skipCharacters(const uint8_t *const buffer, const NodeFlags flags, const int maxLength, const int *const codePointTable, int *const pos) argument 109 readProbabilityAndAdvancePosition(const uint8_t *const buffer, int *const pos) argument 114 readChildrenPositionAndAdvancePosition( const uint8_t *const buffer, const NodeFlags flags, int *const pos) argument [all...] |
H A D | dynamic_pt_reading_utils.cpp | 37 const int pos) { 38 int linkAddressPos = pos; 43 const uint8_t *const buffer, int *const pos) { 44 return ByteArrayUtils::readSint24AndAdvancePosition(buffer, pos); 59 const uint8_t *const buffer, int *const pos) { 60 const int base = *pos; 61 const int offset = ByteArrayUtils::readSint24AndAdvancePosition(buffer, pos); 36 getForwardLinkPosition(const uint8_t *const buffer, const int pos) argument 42 getParentPtNodePosOffsetAndAdvancePosition( const uint8_t *const buffer, int *const pos) argument 58 readChildrenPositionAndAdvancePosition( const uint8_t *const buffer, int *const pos) argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | InputSmoother.java | 41 int pos; field in class:InputSmoother.Sample 49 public void onInput(int pos) { argument 63 sample.pos = pos; 83 int prevPos = mRecentSamples.getFirst().pos; 92 totalDistancePx += Math.abs(s.pos - prevPos); 93 prevPos = s.pos;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | LevenshteinSuggestionFormatter.java | 100 int pos = 0; 106 while (pos < len) { 107 while (pos < len && (chars[pos] == ' ' || chars[pos] == '\t')) { 108 pos++; 110 int start = pos; 111 while (pos < len && !(chars[pos] == ' ' || chars[pos] [all...] |