/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/util/ |
H A D | PartialInputStream.java | 50 public int read(byte b[], int off, int len) throws IOException {
argument 51 len = Math.min(len, getBytesLeft());
52 return super.read(b, off, len); //To change body of overridden methods use File | Settings | File Templates.
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis2/ |
H A D | Visualization2RS.java | 51 int len = 0; 54 len = mVizData.length; 57 if (len == 0) { 67 if (len > outlen) len = outlen; 75 for(int i = 0; i < len; i++) {
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
H A D | ProgressCallbackEntity.java | 60 int len = totalLen - pos; 61 if (len > DEFAULT_PIECE_SIZE) { 62 len = DEFAULT_PIECE_SIZE; 64 outstream.write(mContent, pos, len); 67 pos += len;
|
/packages/apps/Email/emailcommon/src/org/apache/commons/io/output/ |
H A D | CountingOutputStream.java | 65 * @param len the maximum number of bytes to write
69 public void write(byte[] b, int off, int len) throws IOException {
argument 70 count += len;
71 super.write(b, off, len);
|
H A D | TeeOutputStream.java | 58 * @param len The number of bytes to write
61 public synchronized void write(byte[] b, int off, int len) throws IOException {
argument 62 super.write(b, off, len);
63 this.branch.write(b, off, len);
|
H A D | NullOutputStream.java | 42 * @param len The number of bytes to write
44 public void write(byte[] b, int off, int len) {
argument
|
H A D | ThresholdingOutputStream.java | 116 * Writes <code>len</code> bytes from the specified byte array starting at
121 * @param len The number of bytes to write.
125 public void write(byte b[], int off, int len) throws IOException
argument 127 checkThreshold(len);
128 getStream().write(b, off, len);
129 written += len;
|
H A D | ByteArrayOutputStream.java | 137 * @param len The number of bytes to write
140 public void write(byte[] b, int off, int len) {
argument 143 || (len < 0)
144 || ((off + len) > b.length)
145 || ((off + len) < 0)) {
147 } else if (len == 0) {
151 int newcount = count + len;
152 int remaining = len;
156 System.arraycopy(b, off + len - remaining, currentBuffer, inBufferPos, part);
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis3/ |
H A D | Visualization3RS.java | 76 int len = 0; 81 len = mVizData.length / 2; 83 if (len == 0) { 91 len /= 2; // the bins are comprised of 2 values each 93 if (len > mAnalyzer.length) len = mAnalyzer.length; 100 for (int i = 1; i < len - 1; i++) { 126 cnt += len;
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
H A D | ndfdic.c | 74 static NJ_UINT16 convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, NJ_UINT16 size); 151 static NJ_UINT16 convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, NJ_UINT16 size) argument 174 for (i = 0; i < len; i++) { 360 NJ_UINT16 len; local 377 len = DATA_YOMI_SIZE(data)/sizeof(NJ_CHAR); 380 if (size < ((len + NJ_TERM_LEN) * sizeof(NJ_CHAR))) { 384 for (j = 0; j < len; j++) { 392 len = convert_to_yomi(loc->handle, area, DATA_YOMI_SIZE(data), stroke, size); 395 if (size < ((len + NJ_TERM_LEN) * sizeof(NJ_CHAR))) { 399 return len; 407 NJ_UINT16 len, j; local [all...] |
H A D | necode.c | 39 NJ_INT16 nje_convert_hira_to_kata(NJ_CHAR *hira, NJ_CHAR *kata, NJ_UINT16 len) argument 46 while (pnt < len) {
|
/packages/apps/Email/emailcommon/src/org/apache/commons/io/input/ |
H A D | AutoCloseInputStream.java | 106 * @param len maximum number of bytes to read
110 public int read(byte[] b, int off, int len) throws IOException {
argument 111 int n = in.read(b, off, len);
|
H A D | CountingInputStream.java | 68 * @param len the maximum number of bytes to read
73 public int read(byte[] b, int off, int len) throws IOException {
argument 74 int found = super.read(b, off, len);
|
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/ |
H A D | RootInputStream.java | 90 public int read(byte[] b, int off, int len) throws IOException {
argument 95 int n = is.read(b, off, len);
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | Duration.java | 60 int len = str.length(); 64 if (len < 1) { 77 if (len < index) { 90 for (; index < len; index++) {
|
/packages/apps/Exchange/src/com/android/exchange/utility/ |
H A D | Duration.java | 49 int len = str.length(); 53 if (len < 1) { 65 if (len < index) { 78 for (; index < len; index++) {
|
/packages/inputmethods/PinyinIME/jni/include/ |
H A D | sync.h | 52 // len, length of lemmas string 54 int put_lemmas(char16 * lemmas, int len);
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
H A D | Duration.java | 58 int len = str.length(); 62 if (len < 1) { 75 if (len < index) { 88 for (; index < len; index++) {
|
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/decoder/ |
H A D | Base64InputStream.java | 104 private void decodeAndEnqueue(int len) {
argument 112 // for the most common case of len==4
113 if (len == 4) {
119 } else if (len == 3) {
124 } else { // len == 2
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
H A D | Base64InputStream.java | 130 private void decodeAndEnqueue(int len) {
argument 138 // for the most common case of len==4
139 if (len == 4) {
145 } else if (len == 3) {
150 } else { // len == 2
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | BinaryDictionary.java | 155 int len = 0; 156 while (len < MAX_WORD_LENGTH && mOutputChars_bigrams[start + len] != 0) { 157 ++len; 159 if (len > 0) { 160 callback.addWord(mOutputChars_bigrams, start, len, mBigramScores[j], 175 int len = 0; 176 while (len < MAX_WORD_LENGTH && mOutputChars[start + len] != 0) { 177 ++len; [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | LevenshteinSuggestionFormatter.java | 101 final int len = seq.length(); 104 Token[] tokens = new Token[len]; 106 while (pos < len) { 107 while (pos < len && (chars[pos] == ' ' || chars[pos] == '\t')) { 111 while (pos < len && !(chars[pos] == ' ' || chars[pos] == '\t')) {
|
/packages/apps/Phone/src/com/android/phone/ |
H A D | SpecialCharSequenceMgr.java | 147 int len = input.length(); 148 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { 150 Uri.parse("android_secret_code://" + input.substring(4, len - 4))); 169 int len = input.length(); 170 if ((len > 1) && (len < 5) && (input.endsWith("#"))) { 172 int index = Integer.parseInt(input.substring(0, len-1));
|
/packages/experimental/procstatlog/ |
H A D | procstatlog.c | 63 static void unspace(char *dest, const char *src, int len) { argument 64 while (len-- > 0) { 81 int len = read(fd, buf, sizeof(buf)); local 82 if (len < 0) { 90 while (len > 0 && isspace(buf[len - 1])) --len; 91 data->value = malloc(len + 1); 92 memcpy(data->value, buf, len); 93 data->value[len] 110 int len = read(fd, buf, sizeof(buf) - 1); local 165 int len = read(fd, buf, sizeof(buf) - 1); local 250 int len = read(fd, cmdline, sizeof(cmdline) - 1); local [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
H A D | RecipientsEditor.java | 112 int len = getText().length(); 114 return end == len; 198 int len = s.length(); 200 if (len == 0) { 204 s.setSpan(new Annotation("number", c.getNumber()), 0, len, 363 int len = text.length(); 366 while (i < len) { 374 return len; 409 int len = sp.length(); 414 while (i < len [all...] |