Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 227) sorted by relevance

12345678910

/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlParser.java201 int pos; in parse() local
205 pos = scanText(i, clipEnd); in parse()
206 X.assertTrue(pos > i || state != State.IN_TEXT); // Must make progress. in parse()
210 pos = scanTag(i, end); in parse()
211 X.assertTrue(pos > i); // Must make progress in parse()
215 pos = scanComment(i, end); in parse()
217 X.assertTrue(pos > i); // Must make progress in parse()
221 pos = scanCDATA(i, end); in parse()
222 X.assertTrue(pos > i || state != State.IN_CDATA); // Must make progress in parse()
229 i = pos; in parse()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
Dbyte_array_utils.h37 const uint32_t data, const int size, int *const pos) { in writeUintAndAdvancePosition() argument
42 ByteArrayUtils::writeUint8AndAdvancePosition(buffer, data, pos); in writeUintAndAdvancePosition()
45 ByteArrayUtils::writeUint16AndAdvancePosition(buffer, data, pos); in writeUintAndAdvancePosition()
48 ByteArrayUtils::writeUint24AndAdvancePosition(buffer, data, pos); in writeUintAndAdvancePosition()
51 ByteArrayUtils::writeUint32AndAdvancePosition(buffer, data, pos); in writeUintAndAdvancePosition()
63 static AK_FORCE_INLINE uint32_t readUint32(const uint8_t *const buffer, const int pos) { in readUint32() argument
64 return (buffer[pos] << 24) ^ (buffer[pos + 1] << 16) in readUint32()
65 ^ (buffer[pos + 2] << 8) ^ buffer[pos + 3]; in readUint32()
68 static AK_FORCE_INLINE uint32_t readUint24(const uint8_t *const buffer, const int pos) { in readUint24() argument
69 return (buffer[pos] << 16) ^ (buffer[pos + 1] << 8) ^ buffer[pos + 2]; in readUint24()
[all …]
Dbuffer_with_extendable_buffer.cpp26 uint32_t BufferWithExtendableBuffer::readUint(const int size, const int pos) const { in readUint()
27 const bool readingPosIsInAdditionalBuffer = isInAdditionalBuffer(pos); in readUint()
28 const int posInBuffer = readingPosIsInAdditionalBuffer ? pos - mOriginalBuffer.size() : pos; in readUint()
33 int *const pos) const { in readUintAndAdvancePosition()
34 const int value = readUint(size, *pos); in readUintAndAdvancePosition()
35 *pos += size; in readUintAndAdvancePosition()
40 int *const outCodePoints, int *outCodePointCount, int *const pos) const { in readCodePointsAndAdvancePosition()
41 const bool readingPosIsInAdditionalBuffer = isInAdditionalBuffer(*pos); in readCodePointsAndAdvancePosition()
43 *pos -= mOriginalBuffer.size(); in readCodePointsAndAdvancePosition()
46 getBuffer(readingPosIsInAdditionalBuffer), maxCodePointCount, outCodePoints, pos); in readCodePointsAndAdvancePosition()
[all …]
/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_utilities_indexing.h97 int pos; in db_MaxIndex3() local
99 best=s[0];pos=0; in db_MaxIndex3()
100 if(s[1]>best){best=s[1];pos=1;} in db_MaxIndex3()
101 if(s[2]>best){best=s[2];pos=2;} in db_MaxIndex3()
102 return(pos); in db_MaxIndex3()
108 int pos; in db_MaxIndex4() local
110 best=s[0];pos=0; in db_MaxIndex4()
111 if(s[1]>best){best=s[1];pos=1;} in db_MaxIndex4()
112 if(s[2]>best){best=s[2];pos=2;} in db_MaxIndex4()
113 if(s[3]>best){best=s[3];pos=3;} in db_MaxIndex4()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_indexing.h97 int pos; in db_MaxIndex3() local
99 best=s[0];pos=0; in db_MaxIndex3()
100 if(s[1]>best){best=s[1];pos=1;} in db_MaxIndex3()
101 if(s[2]>best){best=s[2];pos=2;} in db_MaxIndex3()
102 return(pos); in db_MaxIndex3()
108 int pos; in db_MaxIndex4() local
110 best=s[0];pos=0; in db_MaxIndex4()
111 if(s[1]>best){best=s[1];pos=1;} in db_MaxIndex4()
112 if(s[2]>best){best=s[2];pos=2;} in db_MaxIndex4()
113 if(s[3]>best){best=s[3];pos=3;} in db_MaxIndex4()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
DAddressListParserTokenManager.java30 private final int jjStopStringLiteralDfa_0(int pos, long active0) in jjStopStringLiteralDfa_0() argument
32 switch (pos) in jjStopStringLiteralDfa_0()
38 private final int jjStartNfa_0(int pos, long active0) in jjStartNfa_0() argument
40 return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1); in jjStartNfa_0()
42 private final int jjStopAtPos(int pos, int kind) in jjStopAtPos() argument
45 jjmatchedPos = pos; in jjStopAtPos()
46 return pos + 1; in jjStopAtPos()
48 private final int jjStartNfaWithStates_0(int pos, int kind, int state) in jjStartNfaWithStates_0() argument
51 jjmatchedPos = pos; in jjStartNfaWithStates_0()
53 catch(java.io.IOException e) { return pos + 1; } in jjStartNfaWithStates_0()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
DContentTypeParserTokenManager.java31 private final int jjStopStringLiteralDfa_0(int pos, long active0) in jjStopStringLiteralDfa_0() argument
33 switch (pos) in jjStopStringLiteralDfa_0()
39 private final int jjStartNfa_0(int pos, long active0) in jjStartNfa_0() argument
41 return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1); in jjStartNfa_0()
43 private final int jjStopAtPos(int pos, int kind) in jjStopAtPos() argument
46 jjmatchedPos = pos; in jjStopAtPos()
47 return pos + 1; in jjStopAtPos()
49 private final int jjStartNfaWithStates_0(int pos, int kind, int state) in jjStartNfaWithStates_0() argument
52 jjmatchedPos = pos; in jjStartNfaWithStates_0()
54 catch(java.io.IOException e) { return pos + 1; } in jjStartNfaWithStates_0()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
DDateTimeParserTokenManager.java32 private final int jjStopStringLiteralDfa_0(int pos, long active0) in jjStopStringLiteralDfa_0() argument
34 switch (pos) in jjStopStringLiteralDfa_0()
58 private final int jjStartNfa_0(int pos, long active0) in jjStartNfa_0() argument
60 return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1); in jjStartNfa_0()
62 private final int jjStopAtPos(int pos, int kind) in jjStopAtPos() argument
65 jjmatchedPos = pos; in jjStopAtPos()
66 return pos + 1; in jjStopAtPos()
68 private final int jjStartNfaWithStates_0(int pos, int kind, int state) in jjStartNfaWithStates_0() argument
71 jjmatchedPos = pos; in jjStartNfaWithStates_0()
73 catch(java.io.IOException e) { return pos + 1; } in jjStartNfaWithStates_0()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/
Dpatricia_trie_reading_utils.cpp48 const uint8_t *const buffer, int *const pos) { in getPtNodeArraySizeAndAdvancePosition() argument
49 const uint8_t firstByte = ByteArrayUtils::readUint8AndAdvancePosition(buffer, pos); in getPtNodeArraySizeAndAdvancePosition()
54 buffer, pos); in getPtNodeArraySizeAndAdvancePosition()
59 const uint8_t *const buffer, int *const pos) { in getFlagsAndAdvancePosition() argument
60 return ByteArrayUtils::readUint8AndAdvancePosition(buffer, pos); in getFlagsAndAdvancePosition()
64 int *const pos) { in getCodePointAndAdvancePosition() argument
65 return ByteArrayUtils::readCodePointAndAdvancePosition(buffer, pos); in getCodePointAndAdvancePosition()
70 const NodeFlags flags, const int maxLength, int *const outBuffer, int *const pos) { in getCharsAndAdvancePosition() argument
74 pos); in getCharsAndAdvancePosition()
76 const int codePoint = getCodePointAndAdvancePosition(buffer, pos); in getCharsAndAdvancePosition()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/
Dpatricia_trie_policy.cpp81 int pos = getRootPosition(); in getCodePointsAndProbabilityAndReturnCodePointCount() local
93 if (pos < 0 || pos >= mDictBufferSize) { in getCodePointsAndProbabilityAndReturnCodePointCount()
95 pos, mDictBufferSize); in getCodePointsAndProbabilityAndReturnCodePointCount()
102 mDictRoot, &pos); ptNodeCount > 0; --ptNodeCount) { in getCodePointsAndProbabilityAndReturnCodePointCount()
103 const int startPos = pos; in getCodePointsAndProbabilityAndReturnCodePointCount()
104 if (pos < 0 || pos >= mDictBufferSize) { in getCodePointsAndProbabilityAndReturnCodePointCount()
105 AKLOGE("PtNode position is invalid. pos: %d, dict size: %d", pos, mDictBufferSize); in getCodePointsAndProbabilityAndReturnCodePointCount()
112 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(mDictRoot, &pos); in getCodePointsAndProbabilityAndReturnCodePointCount()
114 mDictRoot, &pos); in getCodePointsAndProbabilityAndReturnCodePointCount()
121 mDictRoot, &pos); in getCodePointsAndProbabilityAndReturnCodePointCount()
[all …]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DComposingText.java101 public StrSegment getStrSegment(int layer, int pos) { in getStrSegment() argument
104 if (pos < 0) { in getStrSegment()
105 pos = strLayer.size() - 1; in getStrSegment()
107 if (pos >= strLayer.size() || pos < 0) { in getStrSegment()
110 return strLayer.get(pos); in getStrSegment()
284 int pos = mCursor[i-1] - 1; in insertStrSegment() local
285 StrSegment tmp = new StrSegment(str.string, pos, pos); in insertStrSegment()
491 private int included(int layer, int pos) { in included() argument
492 if (pos == 0) { in included()
500 if (ss.from <= pos && pos <= ss.to) { in included()
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndbdic.c123 NJ_UINT16 pos, j, bit_all; in get_stem_hindo() local
135 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_hindo()
136 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_hindo()
152 NJ_UINT16 pos, j, bit_all; in get_stem_next() local
169 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_next()
170 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_next()
183 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_next()
184 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_next()
213 NJ_UINT16 pos, j, bit_all = 0; in get_stem_word() local
230 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_word()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControlBar.java62 int pos; // the relative position in the zoom slider bar in getSliderPosition() local
64 pos = mWidth - mTotalIconWidth - x; in getSliderPosition()
66 pos = x - mTotalIconWidth; in getSliderPosition()
68 if (pos < 0) pos = 0; in getSliderPosition()
69 if (pos > mSliderLength) pos = mSliderLength; in getSliderPosition()
70 return pos; in getSliderPosition()
98 int pos = getSliderPosition((int) event.getX()); in dispatchTouchEvent() local
102 int delta = mSliderPosition - pos; in dispatchTouchEvent()
109 performZoom(1.0d * pos / mSliderLength); in dispatchTouchEvent()
110 mSliderPosition = pos; in dispatchTouchEvent()
[all …]
/packages/inputmethods/LatinIME/native/jni/tests/suggest/policyimpl/dictionary/utils/
Dbuffer_with_extendable_buffer_test.cpp28 int pos = 0; in TEST() local
31 EXPECT_TRUE(buffer.writeUint(data_1, 1 /* size */, pos)); in TEST()
32 EXPECT_EQ(data_1, buffer.readUint(1, pos)); in TEST()
33 pos += 1; in TEST()
36 EXPECT_TRUE(buffer.writeUint(data_2, 2 /* size */, pos)); in TEST()
37 EXPECT_EQ(data_2, buffer.readUint(2, pos)); in TEST()
38 pos += 2; in TEST()
41 EXPECT_TRUE(buffer.writeUint(data_3, 3 /* size */, pos)); in TEST()
42 EXPECT_EQ(data_3, buffer.readUint(3, pos)); in TEST()
43 pos += 3; in TEST()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardTextsSet.java75 for (int pos = start; pos < size; pos++) { in searchTextNameEnd()
76 final char c = text.charAt(pos); in searchTextNameEnd()
81 return pos; in searchTextNameEnd()
107 for (int pos = 0; pos < size; pos++) { in resolveTextReference()
108 final char c = text.charAt(pos); in resolveTextReference()
109 if (text.startsWith(PREFIX_TEXT, pos)) { in resolveTextReference()
111 sb = new StringBuilder(text.substring(0, pos)); in resolveTextReference()
113 final int end = searchTextNameEnd(text, pos + prefixLen); in resolveTextReference()
114 final String name = text.substring(pos + prefixLen, end); in resolveTextReference()
116 pos = end - 1; in resolveTextReference()
[all …]
DKeySpecParser.java81 for (int pos = 0; pos < length; pos++) { in parseEscape()
82 final char c = text.charAt(pos); in parseEscape()
83 if (c == BACKSLASH && pos + 1 < length) { in parseEscape()
85 pos++; in parseEscape()
86 sb.append(text.charAt(pos)); in parseEscape()
107 for (int pos = 0; pos < length; pos++) { in indexOfLabelEnd()
108 final char c = keySpec.charAt(pos); in indexOfLabelEnd()
109 if (c == BACKSLASH && pos + 1 < length) { in indexOfLabelEnd()
111 pos++; in indexOfLabelEnd()
113 return pos; in indexOfLabelEnd()
/packages/apps/Gallery/src/com/android/camera/
DViewImage.java483 void setImage(int pos, boolean showControls) { in setImage() argument
484 mCurrentPosition = pos; in setImage()
486 Bitmap b = mCache.getBitmap(pos); in setImage()
488 IImage image = mAllImages.getImageAt(pos); in setImage()
498 public boolean wantsThumbnail(int pos, int offset) { in setImage()
499 return !mCache.hasBitmap(pos + offset); in setImage()
502 public boolean wantsFullImage(int pos, int offset) { in setImage()
506 public int fullImageSizeToUse(int pos, int offset) { in setImage()
521 public void imageLoaded(int pos, int offset, RotateBitmap bitmap, in setImage()
526 if (pos != mCurrentPosition) { in setImage()
[all …]
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java211 int pos = 0; in restoreDictionary() local
212 while (pos + 4 < dictionary.length) { in restoreDictionary()
213 int length = readInt(dictionary, pos); in restoreDictionary()
214 pos += 4; in restoreDictionary()
215 if (pos + length > dictionary.length) { in restoreDictionary()
218 String line = new String(dictionary, pos, length); in restoreDictionary()
219 pos += length; in restoreDictionary()
283 private int writeInt(byte[] out, int pos, int value) { in writeInt() argument
284 out[pos + 0] = (byte) ((value >> 24) & 0xFF); in writeInt()
285 out[pos + 1] = (byte) ((value >> 16) & 0xFF); in writeInt()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMessageCursor.java82 int pos = -1; in isConversationStarred() local
83 while (moveToPosition(++pos)) { in isConversationStarred()
93 int pos = -1; in isConversationRead() local
94 while (moveToPosition(++pos)) { in isConversationRead()
102 int pos = -1; in markMessagesRead() local
103 while (moveToPosition(++pos)) { in markMessagesRead()
113 int pos = -1; in getMessageForId() local
114 while (moveToPosition(++pos)) { in getMessageForId()
139 int pos = -1; in getStateHashCode() local
141 while (moveToPosition(++pos) && pos < stopAt) { in getStateHashCode()
[all …]
/packages/apps/Music/src/com/android/music/
DMediaPlaybackService.java520 int pos = mPreferences.getInt("curpos", 0); in reloadQueue() local
521 if (pos < 0 || pos >= mPlayListLen) { in reloadQueue()
526 mPlayPos = pos; in reloadQueue()
1048 int pos = getNextPosition(false); in openCurrentAndNext() local
1049 if (pos < 0) { in openCurrentAndNext()
1057 mPlayPos = pos; in openCurrentAndNext()
1059 mPlayPos = pos; in openCurrentAndNext()
1306 Integer pos = mHistory.remove(histsize - 1); in prev() local
1307 mPlayPos = pos.intValue(); in prev()
1415 int pos = getNextPosition(force); in gotoNext() local
[all …]
/packages/wallpapers/Galaxy4/res/raw/
Dspacecloud_vs.glsl12 vec4 pos;
13 pos.x = t*x + s*y;
14 pos.y = s*x - t*y;
15 pos.z = ATTRIB_position.z;
16 pos.w = 1.0;
17 pos.y = pos.y * 0.5;
18 gl_Position = UNI_MVP * pos;
19 pointSize = 170.0-(pos.y*pos.y*1.2*1.2 + pos.x*pos.x)*400.0;
/packages/apps/Camera2/src/com/android/camera/data/
DCameraDataAdapter.java180 int pos = findDataByContentUri(uri); in addData() local
181 if (pos != -1) { in addData()
184 updateData(pos, newData); in addData()
231 final int pos = findDataByContentUri(uri); in refresh() local
232 if (pos == -1) { in refresh()
236 LocalData data = mImages.get(pos); in refresh()
241 mListener.onDataRemoved(pos, data); in refresh()
244 updateData(pos, refreshedData); in refresh()
248 public void updateData(final int pos, LocalData data) { in updateData() argument
249 mImages.set(pos, data); in updateData()
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DCharMatcher.java843 int pos = indexIn(string);
844 if (pos == -1) {
854 pos++;
856 if (pos == chars.length) {
859 if (matches(chars[pos])) {
862 chars[pos - spread] = chars[pos];
863 pos++;
867 return new String(chars, 0, pos - spread);
902 int pos = indexIn(string);
903 if (pos == -1) {
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
DMimeStreamParser.java256 int pos = 0; in parseHeader() local
258 while (pos < sb.length()) { in parseHeader()
259 while (pos < sb.length() && sb.charAt(pos) != '\r') { in parseHeader()
260 pos++; in parseHeader()
262 if (pos < sb.length() - 1 && sb.charAt(pos + 1) != '\n') { in parseHeader()
263 pos++; in parseHeader()
267 if (pos >= sb.length() - 2 || fieldChars.get(sb.charAt(pos + 2))) { in parseHeader()
273 String field = sb.substring(start, pos); in parseHeader()
274 start = pos + 2; in parseHeader()
305 pos += 2; in parseHeader()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DLevenshteinSuggestionFormatter.java100 int pos = 0; in tokenize() local
106 while (pos < len) { in tokenize()
107 while (pos < len && (chars[pos] == ' ' || chars[pos] == '\t')) { in tokenize()
108 pos++; in tokenize()
110 int start = pos; in tokenize()
111 while (pos < len && !(chars[pos] == ' ' || chars[pos] == '\t')) { in tokenize()
112 pos++; in tokenize()
114 int end = pos; in tokenize()

12345678910