Searched refs:pos (Results 1 - 25 of 217) sorted by relevance

123456789

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
H A Dbuffer_with_extendable_buffer.cpp27 int *const pos) {
33 if (!checkAndPrepareWriting(*pos, size)) {
36 const bool usesAdditionalBuffer = isInAdditionalBuffer(*pos);
39 *pos -= mOriginalBufferSize;
41 ByteArrayUtils::writeUintAndAdvancePosition(buffer, data, size, pos);
43 *pos += mOriginalBufferSize;
49 const int codePointCount, const bool writesTerminator ,int *const pos) {
52 if (!checkAndPrepareWriting(*pos, size)) {
55 const bool usesAdditionalBuffer = isInAdditionalBuffer(*pos);
58 *pos
26 writeUintAndAdvancePosition(const uint32_t data, const int size, int *const pos) argument
48 writeCodePointsAndAdvancePosition(const int *const codePoints, const int codePointCount, const bool writesTerminator ,int *const pos) argument
78 checkAndPrepareWriting(const int pos, const int size) argument
[all...]
H A Dbyte_array_utils.h37 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
130 readCodePoint(const uint8_t *const buffer, const int pos) argument
135 readCodePointAndAdvancePosition( const uint8_t *const buffer, int *const pos) argument
157 readStringAndAdvancePosition(const uint8_t *const buffer, const int maxLength, int *const outBuffer, int *const pos) argument
169 advancePositionToBehindString( const uint8_t *const buffer, const int maxLength, int *const pos) argument
183 writeCodePointsAndAdvancePosition(uint8_t *const buffer, const int *const codePoints, const int codePointCount, const bool writesTerminator, int *const pos) argument
234 writeUint32AndAdvancePosition(uint8_t *const buffer, const uint32_t data, int *const pos) argument
242 writeUint24AndAdvancePosition(uint8_t *const buffer, const uint32_t data, int *const pos) argument
249 writeUint16AndAdvancePosition(uint8_t *const buffer, const uint16_t data, int *const pos) argument
255 writeUint8AndAdvancePosition(uint8_t *const buffer, const uint8_t data, int *const pos) argument
[all...]
/packages/apps/Camera/jni/feature_stab/db_vlvm/
H A Ddb_utilities_indexing.h97 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/apps/Camera2/jni/feature_stab/db_vlvm/
H A Ddb_utilities_indexing.h97 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/apps/LegacyCamera/jni/feature_stab/db_vlvm/
H A Ddb_utilities_indexing.h97 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/PinyinIME/jni/share/
H A Dutf16char.cpp33 size_t pos = 0; local
34 while ((char16)' ' == utf16_str[pos] || (char16)'\n' == utf16_str[pos]
35 || (char16)'\t' == utf16_str[pos])
36 pos++;
38 utf16_str += pos;
39 pos = 0;
41 while ((char16)'\0' != utf16_str[pos] && (char16)' ' != utf16_str[pos]
42 && (char16)'\n' != utf16_str[pos]
68 size_t pos = 0; local
104 size_t pos = 0; local
112 size_t pos = 0; local
[all...]
H A Dlpicache.cpp62 for (uint16 pos = 0; pos < num; pos++)
63 lpi_cache_this[pos] = lpi_items[pos];
75 for (uint16 pos = 0; pos < lpi_max; pos++) {
76 lpi_items[pos] = lpi_cache_this[pos];
[all...]
H A Dspellingtable.cpp82 for (size_t pos = 0; pos < spelling_size_; pos++) {
83 if ('\0' == spelling_str[pos])
85 hash_pos += (size_t)spelling_str[pos];
141 for (size_t pos = 0; pos < kNotSupportNum; pos++) {
142 if (strcmp(spelling_str, kNotSupportList[pos]) == 0) {
227 for (size_t pos
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/shortcut/
H A Dshortcut_list_policy.h35 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(mShortcutsBuf, pos);
57 mShortcutsBuf, maxCodePointCount, outCodePoint, pos);
61 void skipAllShortcuts(int *const pos) const {
63 ::getShortcutListSizeAndForwardPointer(mShortcutsBuf, pos);
64 *pos += shortcutListSize;
H A Dshortcut_list_reading_utils.cpp35 int *const pos) {
36 return ByteArrayUtils::readUint8AndAdvancePosition(dictRoot, pos);
40 const uint8_t *const dictRoot, int *const pos) {
42 return ByteArrayUtils::readUint16AndAdvancePosition(dictRoot, pos)
47 const uint8_t *const dictRoot, const int maxLength, int *const outWord, int *const pos) {
48 return ByteArrayUtils::readStringAndAdvancePosition(dictRoot, maxLength, outWord, pos);
34 getFlagsAndForwardPointer(const uint8_t *const dictRoot, int *const pos) argument
39 getShortcutListSizeAndForwardPointer( const uint8_t *const dictRoot, int *const pos) argument
46 readShortcutTarget( const uint8_t *const dictRoot, const int maxLength, int *const outWord, int *const pos) argument
H A Ddynamic_shortcut_list_policy.h39 int getStartPos(const int pos) const {
40 if (pos == NOT_A_DICT_POS) {
43 return pos + ShortcutListReadingUtils::getShortcutListSizeFieldSize();
48 int *const pos) const {
49 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(*pos);
52 *pos -= mBuffer->getOriginalBufferSize();
55 ShortcutListReadingUtils::getFlagsAndForwardPointer(buffer, pos);
64 buffer, maxCodePointCount, outCodePoint, pos);
67 *pos += mBuffer->getOriginalBufferSize();
71 void skipAllShortcuts(int *const pos) cons
[all...]
H A Dshortcut_list_reading_utils.h30 static ShortcutFlags getFlagsAndForwardPointer(const uint8_t *const dictRoot, int *const pos);
42 static int getShortcutListSizeAndForwardPointer(const uint8_t *const dictRoot, int *const pos);
48 static AK_FORCE_INLINE void skipShortcuts(const uint8_t *const dictRoot, int *const pos) { argument
49 const int shortcutListSize = getShortcutListSizeAndForwardPointer(dictRoot, pos);
50 *pos += shortcutListSize;
58 int *const outWord, int *const pos);
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/
H A Dpatricia_trie_reading_utils.cpp46 const uint8_t *const buffer, int *const pos) {
47 const uint8_t firstByte = ByteArrayUtils::readUint8AndAdvancePosition(buffer, pos);
52 buffer, pos);
57 const uint8_t *const buffer, int *const pos) {
58 return ByteArrayUtils::readUint8AndAdvancePosition(buffer, pos);
62 int *const pos) {
63 return ByteArrayUtils::readCodePointAndAdvancePosition(buffer, pos);
68 const NodeFlags flags, const int maxLength, int *const outBuffer, int *const pos) {
72 pos);
74 const int codePoint = getCodePointAndAdvancePosition(buffer, pos);
45 getPtNodeArraySizeAndAdvancePosition( const uint8_t *const buffer, int *const pos) argument
56 getFlagsAndAdvancePosition( const uint8_t *const buffer, int *const pos) argument
61 getCodePointAndAdvancePosition(const uint8_t *const buffer, int *const pos) argument
67 getCharsAndAdvancePosition(const uint8_t *const buffer, const NodeFlags flags, const int maxLength, int *const outBuffer, int *const pos) argument
92 skipCharacters(const uint8_t *const buffer, const NodeFlags flags, const int maxLength, int *const pos) argument
106 readProbabilityAndAdvancePosition(const uint8_t *const buffer, int *const pos) argument
111 readChildrenPositionAndAdvancePosition( const uint8_t *const buffer, const NodeFlags flags, int *const pos) argument
[all...]
H A Ddynamic_patricia_trie_node_reader.cpp38 int pos = ptNodePos; local
41 pos -= mBuffer->getOriginalBufferSize();
43 mFlags = PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos);
46 &pos);
50 dictBuf, mFlags, maxCodePointCount, outCodePoints, &pos);
53 dictBuf, mFlags, MAX_WORD_LENGTH, &pos);
56 mProbabilityFieldPos = pos;
60 mProbability = PatriciaTrieReadingUtils::readProbabilityAndAdvancePosition(dictBuf, &pos);
65 mChildrenPosFieldPos = pos;
70 dictBuf, &pos);
[all...]
H A Dpatricia_trie_policy.cpp35 AKLOGE("Children PtNode array position is invalid. pos: %d, dict size: %d",
44 AKLOGE("Child PtNode position is invalid. pos: %d, dict size: %d, childCount: %d / %d",
74 int pos = getRootPosition(); local
87 mDictRoot, &pos); ptNodeCount > 0; --ptNodeCount) {
88 const int startPos = pos;
90 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(mDictRoot, &pos);
92 mDictRoot, &pos);
99 mDictRoot, &pos);
106 mDictRoot, &pos);
111 &pos);
237 int pos = getRootPosition(); local
338 int pos = ptNodePos; local
360 int pos = ptNodePos; local
380 int pos = ptNodePos; local
401 int pos = ptNodePos; local
[all...]
H A Ddynamic_patricia_trie_reading_utils.cpp38 const int pos) {
39 int linkAddressPos = pos;
44 const uint8_t *const buffer, int *const pos) {
45 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);
37 getForwardLinkPosition(const uint8_t *const buffer, const int pos) argument
43 getParentPtNodePosOffsetAndAdvancePosition( const uint8_t *const buffer, int *const pos) argument
58 readChildrenPositionAndAdvancePosition( const uint8_t *const buffer, int *const pos) argument
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/policy/
H A Ddictionary_shortcuts_structure_policy.h31 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 Ddictionary_bigrams_structure_policy.h32 bool *const outHasNext, int *const pos) const = 0;
33 virtual void skipAllBigrams(int *const pos) const = 0;
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DZoomControlBar.java62 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/src/suggest/policyimpl/dictionary/bigram/
H A Dbigram_list_policy.h35 int *const pos) const {
38 outBigramPos, pos);
43 void skipAllBigrams(int *const pos) const {
44 BigramListReadWriteUtils::skipExistingBigrams(mBigramsBuf, pos);
/packages/apps/UnifiedEmail/src/com/android/mail/lib/html/parser/
H A DHtmlParser.java201 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/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
H A DHtmlParser.java201 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/PinyinIME/src/com/android/inputmethod/pinyin/
H A DSkbTemplate.java135 int pos = 0;
136 while (pos < size) {
137 if (mKeyIconRecords.get(pos).keyCode >= keyCode) break;
138 pos++;
140 mKeyIconRecords.add(pos, iconRecord);
145 int pos = 0;
146 while (pos < size) {
147 KeyIconRecord iconRecord = mKeyIconRecords.get(pos);
149 pos++;
162 int pos
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DInputSmoother.java41 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 DLevenshteinSuggestionFormatter.java100 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...]

Completed in 814 milliseconds

123456789