Searched refs:pos (Results 26 - 50 of 216) sorted by relevance

123456789

/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DMessageCursor.java78 int pos = -1;
79 while (moveToPosition(++pos)) {
89 int pos = -1;
90 while (moveToPosition(++pos)) {
98 int pos = -1;
99 while (moveToPosition(++pos)) {
120 int pos = -1;
122 while (moveToPosition(++pos) && pos < stopAt) {
154 int pos
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
H A Dbinary_dictionary_bigrams_iterator.h28 const DictionaryBigramsStructurePolicy *const bigramsStructurePolicy, const int pos)
29 : mBigramsStructurePolicy(bigramsStructurePolicy), mPos(pos),
31 mHasNext(pos != NOT_A_DICT_POS) {}
27 BinaryDictionaryBigramsIterator( const DictionaryBigramsStructurePolicy *const bigramsStructurePolicy, const int pos) argument
H A Dbigram_dictionary.cpp101 int pos = getBigramListPositionForWord(prevWord, prevWordLength, local
104 if (NOT_A_DICT_POS == pos) {
106 pos = getBigramListPositionForWord(prevWord, prevWordLength,
110 if (NOT_A_DICT_POS == pos) return 0;
116 mDictionaryStructurePolicy->getBigramsStructurePolicy(), pos);
147 int pos = mDictionaryStructurePolicy->getTerminalNodePositionOfWord(prevWord, prevWordLength, local
149 if (NOT_A_DICT_POS == pos) return NOT_A_DICT_POS;
150 return mDictionaryStructurePolicy->getBigramsPositionOfPtNode(pos);
155 int pos = getBigramListPositionForWord(word0, length0, false /* forceLowerCaseSearch */); local
157 if (NOT_A_DICT_POS == pos) retur
[all...]
/packages/inputmethods/PinyinIME/jni/share/
H A Dmatrixsearch.cpp471 for (PoolPosType pos = 0; pos < dmi_pool_used_; pos++) {
472 debug_print_dmi(pos, 1);
480 size_t MatrixSearch::delsearch(size_t pos, bool is_pos_in_splid, argument
485 size_t reset_pos = pos;
488 if (pys_decoded_len_ <= pos) {
489 del_in_pys(pos, 1);
506 if (is_pos_in_splid && spl_id_num_ <= pos)
515 if (fixed_lmas_ > 0 && pos < spl_start
714 uint16 pos = 0; local
945 is_split_at(uint16 pos) argument
1504 uint16 pos = dep->splids_extended; local
[all...]
H A Dngram.cpp64 for (size_t pos = 0; pos < num; pos++) {
66 idx = qsearch_nearest(code_book, freqs[pos], 0, kCodeBookSize - 1);
67 if (idx != code_idx[pos])
69 code_idx[pos] = idx;
86 for (size_t pos = 0; pos < num; pos++) {
87 ret += distance(freqs[pos], code_boo
[all...]
H A Ddictbuilder.cpp282 for (size_t pos = 0; pos < str_len; pos++) {
283 if (!hz_in_hanzis_list(hzs, hzs_len, str[pos]))
294 for (size_t pos = 0; pos < lemma_num_; pos++) {
296 top_lmas_[0] = lemma_arr_[pos];
301 if (lemma_arr_[pos].freq > top_lmas_[top_lmas_num_ - 1].freq) {
310 top_lmas_[move_pos - 2].freq > lemma_arr_[pos]
[all...]
H A Dsplparser.cpp148 for (uint16 pos = 0; pos < idx_num; pos++) {
149 if (spl_trie_->is_half_id_yunmu(spl_idx[pos])) {
150 spl_trie_->half_to_full(spl_idx[pos], spl_idx + pos);
151 if (pos == idx_num - 1) {
277 for (uint16 pos = 0; pos < idx_num; pos
[all...]
/packages/apps/Exchange/src/com/android/exchange/
H A DMockParserStream.java32 int pos = 0; field in class:MockParserStream
42 return array[pos++];
/packages/apps/Email/src/com/android/email/mail/store/imap/
H A DImapMemoryLiteral.java38 int pos = 0;
39 while (pos < mData.length) {
40 int read = in.read(mData, pos, mData.length - pos);
44 pos += read;
46 if (pos != mData.length) {
/packages/apps/Mms/src/com/android/mms/transaction/
H A DProgressCallbackEntity.java58 int pos = 0, totalLen = mContent.length;
59 while (pos < totalLen) {
60 int len = totalLen - pos;
64 outstream.write(mContent, pos, len);
67 pos += len;
69 broadcastProgressIfNeeded(100 * pos / totalLen);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeySpecParser.java95 for (int pos = 0; pos < size; pos++) {
96 final char c = text.charAt(pos);
99 if (pos - start > 0) {
103 list.add(text.substring(start, pos));
106 start = pos + 1;
109 pos++;
141 for (int pos = 0; pos < lengt
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
H A DEOLConvertingInputStream.java46 private int pos = 0; field in class:EOLConvertingInputStream
95 if (callback != null && pos++ == nextTenPctPos) {
98 callback.report(pos);
107 pos--;
117 pos = size;
H A DMimeStreamParser.java256 int pos = 0;
258 while (pos < sb.length()) {
259 while (pos < sb.length() && sb.charAt(pos) != '\r') {
260 pos++;
262 if (pos < sb.length() - 1 && sb.charAt(pos + 1) != '\n') {
263 pos++;
267 if (pos >= sb.length() - 2 || fieldChars.get(sb.charAt(pos
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DConversationPositionTracker.java82 int pos = calculatePosition();
83 if (!isDataLoaded() || pos < 0) {
88 pos--;
89 while (pos >= 0) {
90 final Conversation candidate = conversationAtPosition(pos);
94 pos--;
104 int pos = calculatePosition();
105 if (!isDataLoaded() || pos < 0) {
110 pos++;
111 while (pos < getCoun
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
H A DAddressListParserTokenManager.java30 private final int jjStopStringLiteralDfa_0(int pos, long active0) argument
32 switch (pos)
38 private final int jjStartNfa_0(int pos, long active0) argument
40 return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1);
42 private final int jjStopAtPos(int pos, int kind) argument
45 jjmatchedPos = pos;
46 return pos + 1;
48 private final int jjStartNfaWithStates_0(int pos, int kind, int state) argument
51 jjmatchedPos = pos;
212 jjStopStringLiteralDfa_2(int pos, long active0) argument
220 jjStartNfa_2(int pos, long active0) argument
224 jjStartNfaWithStates_2(int pos, int kind, int state) argument
336 jjStopStringLiteralDfa_4(int pos, long active0) argument
344 jjStartNfa_4(int pos, long active0) argument
348 jjStartNfaWithStates_4(int pos, int kind, int state) argument
470 jjStopStringLiteralDfa_3(int pos, long active0) argument
478 jjStartNfa_3(int pos, long active0) argument
482 jjStartNfaWithStates_3(int pos, int kind, int state) argument
591 jjStopStringLiteralDfa_1(int pos, long active0) argument
599 jjStartNfa_1(int pos, long active0) argument
603 jjStartNfaWithStates_1(int pos, int kind, int state) argument
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/
H A Dpatricia_trie_reading_utils.h30 static int getPtNodeArraySizeAndAdvancePosition(const uint8_t *const buffer, int *const pos);
32 static NodeFlags getFlagsAndAdvancePosition(const uint8_t *const buffer, int *const pos);
34 static int getCodePointAndAdvancePosition(const uint8_t *const buffer, int *const pos);
38 const int maxLength, int *const outBuffer, int *const pos);
42 const int maxLength, int *const pos);
44 static int readProbabilityAndAdvancePosition(const uint8_t *const buffer, int *const pos);
47 const NodeFlags flags, int *const pos);
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DComposingText.java97 * @param pos Position (<0 : the tail segment)
101 public StrSegment getStrSegment(int layer, int pos) { argument
104 if (pos < 0) {
105 pos = strLayer.size() - 1;
107 if (pos >= strLayer.size() || pos < 0) {
110 return strLayer.get(pos);
284 int pos = mCursor[i-1] - 1;
285 StrSegment tmp = new StrSegment(str.string, pos, pos);
491 included(int layer, int pos) argument
514 setCursor(int layer, int pos) argument
[all...]
/packages/apps/Email/src/com/android/email/mail/transport/
H A DDiscourseLogger.java89 int pos = mPos;
91 String s = mBuffer[pos];
95 pos = (pos + 1) % mBufferSize;
96 } while (pos != start);
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
H A DJarUtils.java67 final int pos = path.lastIndexOf('/');
68 final String dirName = (pos >= 0) ? path.substring(0, pos) : "";
69 final String name = (pos >= 0) ? path.substring(pos + 1) : path;
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
H A DContentTypeParserTokenManager.java31 private final int jjStopStringLiteralDfa_0(int pos, long active0) argument
33 switch (pos)
39 private final int jjStartNfa_0(int pos, long active0) argument
41 return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1);
43 private final int jjStopAtPos(int pos, int kind) argument
46 jjmatchedPos = pos;
47 return pos + 1;
49 private final int jjStartNfaWithStates_0(int pos, int kind, int state) argument
52 jjmatchedPos = pos;
226 jjStopStringLiteralDfa_1(int pos, long active0) argument
234 jjStartNfa_1(int pos, long active0) argument
238 jjStartNfaWithStates_1(int pos, int kind, int state) argument
347 jjStopStringLiteralDfa_3(int pos, long active0) argument
355 jjStartNfa_3(int pos, long active0) argument
359 jjStartNfaWithStates_3(int pos, int kind, int state) argument
481 jjStopStringLiteralDfa_2(int pos, long active0) argument
489 jjStartNfa_2(int pos, long active0) argument
493 jjStartNfaWithStates_2(int pos, int kind, int state) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/data/
H A DCameraDataAdapter.java143 int pos = findDataByContentUri(uri);
145 if (pos != -1) {
147 updateData(pos, newData);
164 int pos = findDataByContentUri(uri);
166 if (pos != -1) {
169 updateData(pos, newData);
210 int pos = findDataByContentUri(contentUri);
211 if (pos == -1) {
215 LocalData data = mImages.get(pos);
218 updateData(pos, refreshedDat
223 updateData(final int pos, LocalData data) argument
[all...]
H A DFixedFirstDataAdapter.java75 int pos = mAdapter.findDataByContentUri(uri);
76 if (pos != -1) {
77 return pos + 1;
83 public void updateData(int pos, LocalData data) { argument
84 if (pos == 0) {
100 mAdapter.updateData(pos - 1, data);
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
H A DDictionaryBackupAgent.java210 int pos = 0;
211 while (pos + 4 < dictionary.length) {
212 int length = readInt(dictionary, pos);
213 pos += 4;
214 if (pos + length > dictionary.length) {
217 String line = new String(dictionary, pos, length);
218 pos += length;
260 * @param pos current pos in array
264 private int writeInt(byte[] out, int pos, in argument
272 readInt(byte[] in, int pos) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDetailPhotoSetter.java72 final int[] pos = new int[2];
73 v.getLocationOnScreen(pos);
77 rect.left = (int) (pos[0] * appScale + 0.5f);
78 rect.top = (int) (pos[1] * appScale + 0.5f);
79 rect.right = (int) ((pos[0] + v.getWidth()) * appScale + 0.5f);
80 rect.bottom = (int) ((pos[1] + v.getHeight()) * appScale + 0.5f);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestionCursorWrapper.java49 public void moveTo(int pos) { argument
51 mCursor.moveTo(pos);

Completed in 434 milliseconds

123456789