/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | ndfdic.c | 74 static NJ_UINT16 convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, … 151 static NJ_UINT16 convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, … in convert_to_yomi() argument 174 for (i = 0; i < len; i++) { in convert_to_yomi() 360 NJ_UINT16 len; in njd_f_get_stroke() local 377 len = DATA_YOMI_SIZE(data)/sizeof(NJ_CHAR); in njd_f_get_stroke() 380 if (size < ((len + NJ_TERM_LEN) * sizeof(NJ_CHAR))) { in njd_f_get_stroke() 384 for (j = 0; j < len; j++) { in njd_f_get_stroke() 392 len = convert_to_yomi(loc->handle, area, DATA_YOMI_SIZE(data), stroke, size); in njd_f_get_stroke() 395 if (size < ((len + NJ_TERM_LEN) * sizeof(NJ_CHAR))) { in njd_f_get_stroke() 399 return len; in njd_f_get_stroke() [all …]
|
/packages/experimental/procstatlog/ |
D | procstatlog.c | 63 static void unspace(char *dest, const char *src, int len) { in unspace() argument 64 while (len-- > 0) { in unspace() 81 int len = read(fd, buf, sizeof(buf)); in read_data() local 82 if (len < 0) { in read_data() 90 while (len > 0 && isspace(buf[len - 1])) --len; in read_data() 91 data->value = malloc(len + 1); in read_data() 92 memcpy(data->value, buf, len); in read_data() 93 data->value[len] = '\0'; in read_data() 110 int len = read(fd, buf, sizeof(buf) - 1); in read_lines() local 111 if (len < 0) { in read_lines() [all …]
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis2/ |
D | Visualization2RS.java | 51 int len = 0; in update() local 54 len = mVizData.length; in update() 57 if (len == 0) { in update() 67 if (len > outlen) len = outlen; in update() 75 for(int i = 0; i < len; i++) { in update()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | BinaryDictionary.java | 129 int len = 0; in getBigrams() local 130 while (len < MAX_WORD_LENGTH && mOutputChars_bigrams[start + len] != 0) { in getBigrams() 131 ++len; in getBigrams() 133 if (len > 0) { in getBigrams() 134 callback.addWord(mOutputChars_bigrams, start, len, mBigramScores[j], in getBigrams() 150 int len = 0; in getWords() local 151 while (len < MAX_WORD_LENGTH && mOutputChars[start + len] != 0) { in getWords() 152 ++len; in getWords() 154 if (len > 0) { in getWords() 155 callback.addWord(mOutputChars, start, len, mScores[j], mDicTypeId, in getWords()
|
D | ContactsBinaryDictionary.java | 166 int len = name.codePointCount(0, name.length()); in addName() local 169 for (int i = 0; i < len; i++) { in addName() 171 int end = getWordEndPosition(name, len, i); in addName() 193 private static int getWordEndPosition(String string, int len, int startIndex) { in getWordEndPosition() argument 196 for (end = startIndex + 1; end < len; end += Character.charCount(cp)) { in getWordEndPosition() 265 int len = name.codePointCount(0, name.length()); in isNameInDictionary() local 267 for (int i = 0; i < len; i++) { in isNameInDictionary() 269 int end = getWordEndPosition(name, len, i); in isNameInDictionary()
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis3/ |
D | Visualization3RS.java | 76 int len = 0; in update() local 81 len = mVizData.length / 2; in update() 83 if (len == 0) { in update() 91 len /= 2; // the bins are comprised of 2 values each in update() 93 if (len > mAnalyzer.length) len = mAnalyzer.length; in update() 100 for (int i = 1; i < len - 1; i++) { in update() 126 cnt += len; in update()
|
/packages/apps/Email/src/org/apache/commons/io/output/ |
D | ByteArrayOutputStream.java | 140 public void write(byte[] b, int off, int len) { in write() argument 143 || (len < 0) in write() 144 || ((off + len) > b.length) in write() 145 || ((off + len) < 0)) { in write() 147 } else if (len == 0) { in write() 151 int newcount = count + len; in write() 152 int remaining = len; in write() 156 System.arraycopy(b, off + len - remaining, currentBuffer, inBufferPos, part); in write()
|
D | ThresholdingOutputStream.java | 125 public void write(byte b[], int off, int len) throws IOException in write() argument 127 checkThreshold(len); in write() 128 getStream().write(b, off, len); in write() 129 written += len; in write()
|
D | TeeOutputStream.java | 61 public synchronized void write(byte[] b, int off, int len) throws IOException { in write() argument 62 super.write(b, off, len); in write() 63 this.branch.write(b, off, len); in write()
|
D | CountingOutputStream.java | 69 public void write(byte[] b, int off, int len) throws IOException { in write() argument 70 count += len; in write() 71 super.write(b, off, len); in write()
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
D | ProgressCallbackEntity.java | 60 int len = totalLen - pos; in writeTo() local 61 if (len > DEFAULT_PIECE_SIZE) { in writeTo() 62 len = DEFAULT_PIECE_SIZE; in writeTo() 64 outstream.write(mContent, pos, len); in writeTo() 67 pos += len; in writeTo()
|
/packages/apps/Email/src/org/apache/james/mime4j/field/contenttype/parser/ |
D | SimpleCharStream.java | 383 public char[] GetSuffix(int len) in GetSuffix() argument 385 char[] ret = new char[len]; in GetSuffix() 387 if ((bufpos + 1) >= len) in GetSuffix() 388 System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); in GetSuffix() 391 System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, in GetSuffix() 392 len - bufpos - 1); in GetSuffix() 393 System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); in GetSuffix() 412 int len; in adjustBeginLineColumn() local 416 len = bufpos - tokenBegin + inBuf + 1; in adjustBeginLineColumn() 420 len = bufsize - tokenBegin + bufpos + 1 + inBuf; in adjustBeginLineColumn() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/parser/ |
D | SimpleCharStream.java | 383 public char[] GetSuffix(int len) in GetSuffix() argument 385 char[] ret = new char[len]; in GetSuffix() 387 if ((bufpos + 1) >= len) in GetSuffix() 388 System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); in GetSuffix() 391 System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, in GetSuffix() 392 len - bufpos - 1); in GetSuffix() 393 System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); in GetSuffix() 412 int len; in adjustBeginLineColumn() local 416 len = bufpos - tokenBegin + inBuf + 1; in adjustBeginLineColumn() 420 len = bufsize - tokenBegin + bufpos + 1 + inBuf; in adjustBeginLineColumn() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/ |
D | SimpleCharStream.java | 383 public char[] GetSuffix(int len) in GetSuffix() argument 385 char[] ret = new char[len]; in GetSuffix() 387 if ((bufpos + 1) >= len) in GetSuffix() 388 System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); in GetSuffix() 391 System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, in GetSuffix() 392 len - bufpos - 1); in GetSuffix() 393 System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); in GetSuffix() 412 int len; in adjustBeginLineColumn() local 416 len = bufpos - tokenBegin + inBuf + 1; in adjustBeginLineColumn() 420 len = bufsize - tokenBegin + bufpos + 1 + inBuf; in adjustBeginLineColumn() [all …]
|
/packages/apps/Phone/src/com/android/phone/ |
D | SpecialCharSequenceMgr.java | 149 int len = input.length(); in handleSecretCode() local 150 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { in handleSecretCode() 152 Uri.parse("android_secret_code://" + input.substring(4, len - 4))); in handleSecretCode() 171 int len = input.length(); in handleAdnEntry() local 172 if ((len > 1) && (len < 5) && (input.endsWith("#"))) { in handleAdnEntry() 174 int index = Integer.parseInt(input.substring(0, len-1)); in handleAdnEntry()
|
/packages/apps/Email/src/org/apache/james/mime4j/util/ |
D | PartialInputStream.java | 50 public int read(byte b[], int off, int len) throws IOException { in read() argument 51 len = Math.min(len, getBytesLeft()); in read() 52 …return super.read(b, off, len); //To change body of overridden methods use File | Settings | Fi… in read()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | RecipientsEditor.java | 154 int len = getText().length(); in enoughToFilter() local 156 return end == len; in enoughToFilter() 240 int len = s.length(); in contactToToken() local 242 if (len == 0) { in contactToToken() 246 s.setSpan(new Annotation("number", c.getNumber()), 0, len, in contactToToken() 412 int len = text.length(); in findTokenEnd() local 415 while (i < len) { in findTokenEnd() 423 return len; in findTokenEnd() 454 int len = sp.length(); in getNumbers() local 459 while (i < len + 1) { in getNumbers() [all …]
|
D | RecipientsAdapter.java | 114 int len = out.length(); in convertToString() local 117 out.setSpan(new Annotation("name", name), 0, len, in convertToString() 120 out.setSpan(new Annotation("name", number), 0, len, in convertToString() 125 out.setSpan(new Annotation("person_id", person_id), 0, len, in convertToString() 127 out.setSpan(new Annotation("label", displayLabel.toString()), 0, len, in convertToString() 129 out.setSpan(new Annotation("number", number), 0, len, in convertToString() 230 int len = cons.length(); in usefulAsDigits() local 232 for (int i = 0; i < len; i++) { in usefulAsDigits()
|
/packages/inputmethods/PinyinIME/jni/android/ |
D | com_android_inputmethod_pinyin_PinyinDecoderService.cpp | 137 size_t len; in nativeImGetPyStr() local 138 len = im_get_spl_start_pos(spl_start); in nativeImGetPyStr() 161 size_t len; in nativeImGetSplStart() local 164 len = im_get_spl_start_pos(spl_start); in nativeImGetSplStart() 166 jintArray arr = (*env).NewIntArray(len + 2); in nativeImGetSplStart() 169 arr_body[0] = len; // element 0 is used to store the length of buffer. in nativeImGetSplStart() 170 for (size_t i = 0; i <= len; i++) in nativeImGetSplStart() 275 int len = (size_t)(*env).GetStringLength(tomerge); in nativeSyncPutLemmas() local 277 int added = sync_worker.put_lemmas(ptr, len); in nativeSyncPutLemmas() 286 int len = sync_worker.get_lemmas(retbuf, RET_BUF_LEN); in nativeSyncGetLemmas() local [all …]
|
/packages/inputmethods/PinyinIME/jni/share/ |
D | dictlist.cpp | 140 for (size_t len = last_hz_len; len < current_hz_len - 1; len++) { in calculate_size() local 141 start_pos_[len] = start_pos_[len - 1]; in calculate_size() 142 start_id_[len] = start_id_[len - 1]; in calculate_size() 300 for (uint16 len = 0; len <= i; len++) { in get_lemma_str() local 301 str_buf[len] = buf[len]; in get_lemma_str()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
D | AttachmentLoader.java | 110 public void readChunked(InputStream inputStream, OutputStream outputStream, int len) in readChunked() argument 113 int length = len; in readChunked() 119 mService.userLog("Expected attachment length: ", len); in readChunked() 222 int len = resp.getLength(); in loadAttachment() local 223 if (len != 0) { in loadAttachment() 226 readChunked(is, os, (len < 0) ? mAttachmentSize : len); in loadAttachment()
|
D | Base64InputStream.java | 130 private void decodeAndEnqueue(int len) { in decodeAndEnqueue() argument 139 if (len == 4) { in decodeAndEnqueue() 145 } else if (len == 3) { in decodeAndEnqueue()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | LevenshteinSuggestionFormatter.java | 101 final int len = seq.length(); in tokenize() local 104 Token[] tokens = new Token[len]; in tokenize() 106 while (pos < len) { in tokenize() 107 while (pos < len && (chars[pos] == ' ' || chars[pos] == '\t')) { in tokenize() 111 while (pos < len && !(chars[pos] == ' ' || chars[pos] == '\t')) { in tokenize()
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/ |
D | Visualization5RS.java | 321 int len = 0; in updateWave() local 325 len = mVizData.length; in updateWave() 331 if (len > 0) { in updateWave() 332 for (int i = 0; i < len; i++) { in updateWave() 339 volt = volt / len; in updateWave() 383 if (len == 0) { in updateWave() 393 len /= 4; in updateWave() 394 if (len > outlen) len = outlen; in updateWave() 395 for(int i = 0; i < len; i++) { in updateWave()
|
/packages/apps/Email/src/org/apache/commons/io/ |
D | FilenameUtils.java | 404 int len = basePath.length(); in concat() local 405 if (len == 0) { in concat() 408 char ch = basePath.charAt(len - 1); in concat() 496 int len = filename.length(); in getPrefixLength() local 497 if (len == 0) { in getPrefixLength() 504 if (len == 1) { in getPrefixLength() 514 return len + 1; // return a length greater than the input in getPrefixLength() 524 if (len == 2 || isSeparator(filename.charAt(2)) == false) { in getPrefixLength() 623 int len = getPrefixLength(filename); in getPrefix() local 624 if (len < 0) { in getPrefix() [all …]
|