/packages/apps/Camera/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/src/ |
H A D | binary_format.h | 36 static int getGroupCountAndForwardPointer(const uint8_t* const dict, int* pos); 37 static uint8_t getFlagsAndForwardPointer(const uint8_t* const dict, int* pos); 38 static int32_t getCharCodeAndForwardPointer(const uint8_t* const dict, int* pos); 39 static int readFrequencyWithoutMovingPointer(const uint8_t* const dict, const int pos); 40 static int skipOtherCharacters(const uint8_t* const dict, const int pos); 41 static int skipAttributes(const uint8_t* const dict, const int pos); 42 static int skipChildrenPosition(const uint8_t flags, const int pos); 43 static int skipFrequency(const uint8_t flags, const int pos); 44 static int skipAllAttributes(const uint8_t* const dict, const uint8_t flags, const int pos); 46 const int pos); 63 getGroupCountAndForwardPointer(const uint8_t* const dict, int* pos) argument 67 getFlagsAndForwardPointer(const uint8_t* const dict, int* pos) argument 71 getCharCodeAndForwardPointer(const uint8_t* const dict, int* pos) argument 90 readFrequencyWithoutMovingPointer(const uint8_t* const dict, const int pos) argument 95 skipOtherCharacters(const uint8_t* const dict, const int pos) argument 121 skipAttributes(const uint8_t* const dict, const int pos) argument 138 skipChildrenPosition(const uint8_t flags, const int pos) argument 142 skipFrequency(const uint8_t flags, const int pos) argument 146 skipAllAttributes(const uint8_t* const dict, const uint8_t flags, const int pos) argument 159 skipChildrenPosAndAttributes(const uint8_t* const dict, const uint8_t flags, const int pos) argument 167 readChildrenPosition(const uint8_t* const dict, const uint8_t flags, const int pos) argument 196 getAttributeAddressAndForwardPointer(const uint8_t* const dict, const uint8_t flags, int *pos) argument 228 int pos = 0; local 314 int pos = 0; local [all...] |
H A D | dictionary.h | 56 static unsigned short getChar(const unsigned char *dict, int *pos); 57 static int getCount(const unsigned char *dict, int *pos); 58 static bool getTerminal(const unsigned char *dict, int *pos); 59 static int getAddress(const unsigned char *dict, int *pos); 60 static int getFreq(const unsigned char *dict, const bool isLatestDictVersion, int *pos); 64 const int pos, unsigned short *c, int *childrenPosition, 86 inline unsigned short Dictionary::getChar(const unsigned char *dict, int *pos) { argument 87 unsigned short ch = (unsigned short) (dict[(*pos)++] & 0xFF); 90 ch = ((dict[*pos] & 0xFF) << 8) | (dict[*pos 96 getCount(const unsigned char *dict, int *pos) argument 100 getTerminal(const unsigned char *dict, int *pos) argument 104 getAddress(const unsigned char *dict, int *pos) argument 117 getFreq(const unsigned char *dict, const bool isLatestDictVersion, int *pos) argument 144 setDictionaryValues(const unsigned char *dict, const bool isLatestDictVersion, const int pos, unsigned short *c,int *childrenPosition, bool *terminal, int *freq) argument [all...] |
H A D | bigram_dictionary.h | 33 int getBigramAddress(int *pos, bool advance); 34 int getBigramFreq(int *pos); 36 bool getFirstBitOfByte(int *pos) { return (DICT[*pos] & 0x80) > 0; } argument 37 bool getSecondBitOfByte(int *pos) { return (DICT[*pos] & 0x40) > 0; } argument
|
H A D | bigram_dictionary.cpp | 115 int pos = BinaryFormat::getTerminalPosition(root, prevWord, prevWordLength); local 117 if (NOT_VALID_WORD == pos) return 0; 118 const int flags = BinaryFormat::getFlagsAndForwardPointer(root, &pos); 121 BinaryFormat::getCharCodeAndForwardPointer(root, &pos); 123 pos = BinaryFormat::skipOtherCharacters(root, pos); 125 pos = BinaryFormat::skipChildrenPosition(flags, pos); 126 pos = BinaryFormat::skipFrequency(flags, pos); [all...] |
H A D | unigram_dictionary.cpp | 339 // Update next sibling pos 471 int pos = startPos; local 472 int32_t character = BinaryFormat::getCharCodeAndForwardPointer(root, &pos); 477 *outPos = hasMultipleChars ? BinaryFormat::skipOtherCharacters(root, pos) : pos; 484 character = BinaryFormat::getCharCodeAndForwardPointer(root, &pos); 488 *outPos = BinaryFormat::skipOtherCharacters(root, pos); 493 character = BinaryFormat::getCharCodeAndForwardPointer(root, &pos); 497 *outPos = pos; 529 int pos local 579 getBigramPosition(int pos, unsigned short *word, int offset, int length) const argument 604 int pos = initialPos; local [all...] |
/packages/inputmethods/PinyinIME/jni/share/ |
H A D | utf16char.cpp | 33 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 D | lpicache.cpp | 62 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 D | spellingtable.cpp | 82 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...] |
H A D | matrixsearch.cpp | 471 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 D | ngram.cpp | 64 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 D | dictbuilder.cpp | 282 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...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | MoreSuggestions.java | 71 int pos = fromPos, rowStartPos = fromPos; 73 while (pos < size) { 74 final CharSequence word = suggestions.getWord(pos); 76 mWidths[pos] = (int)view.getDefaultLabelWidth(word, paint) + padding; 77 final int numColumn = pos - rowStartPos + 1; 81 || !fitInWidth(rowStartPos, pos + 1, columnWidth)) { 85 mNumColumnsInRow[row] = pos - rowStartPos; 86 rowStartPos = pos; 89 mColumnOrders[pos] = pos 131 getNumColumnInRow(int pos) argument 135 getColumnNumber(int pos) argument 141 getX(int pos) argument 146 getY(int pos) argument 151 getWidth(int pos) argument 156 markAsEdgeKey(Key key, int pos) argument 192 getDebugInfo(SuggestedWords suggestions, int pos) argument [all...] |
H A D | SuggestedWords.java | 56 public CharSequence getWord(int pos) { argument 57 return mWords.get(pos); 60 public SuggestedWordInfo getInfo(int pos) { argument 61 return mSuggestedWordInfoList != null ? mSuggestedWordInfoList.get(pos) : null; 163 for (int pos = 1; pos < previousSize; pos++) { 164 final String prevWord = previousSuggestions.getWord(pos).toString(); 185 public CharSequence getWord(int pos) { argument 186 return mWords.get(pos); [all...] |
/packages/apps/Camera/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/PinyinIME/src/com/android/inputmethod/pinyin/ |
H A D | SkbTemplate.java | 135 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/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...] |
/packages/apps/Exchange/src/com/android/exchange/ |
H A D | MockParserStream.java | 32 int pos = 0; field in class:MockParserStream 42 return array[pos++];
|
/packages/apps/Email/src/com/android/email/mail/store/imap/ |
H A D | ImapMemoryLiteral.java | 39 int pos = 0; 40 while (pos < mData.length) { 41 int read = in.read(mData, pos, mData.length - pos); 45 pos += read; 47 if (pos != mData.length) {
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
H A D | ProgressCallbackEntity.java | 58 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/apps/Email/emailcommon/src/org/apache/james/mime4j/field/address/parser/ |
H A D | AddressListParserTokenManager.java | 30 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/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | ComposingText.java | 97 * @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 D | DiscourseLogger.java | 90 int pos = mPos; 92 String s = mBuffer[pos]; 96 pos = (pos + 1) % mBufferSize; 97 } while (pos != start);
|
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/contenttype/parser/ |
H A D | ContentTypeParserTokenManager.java | 31 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | MoreKeySpecParser.java | 77 for (int pos = 0; pos < length; pos++) { 78 final char c = text.charAt(pos); 79 if (c == ESCAPE && pos + 1 < length) { 80 sb.append(text.charAt(++pos)); 96 for (int pos = start; pos < length; pos++) { 97 final char c = moreKeySpec.charAt(pos); [all...] |