Searched refs:len (Results 1 - 25 of 106) sorted by relevance

12345

/packages/apps/Email/src/org/apache/james/mime4j/util/
H A DPartialInputStream.java50 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.
H A DPositionInputStream.java81 public int read(byte b[], int off, int len) throws IOException { argument
82 final int c = inputStream.read(b, off, len);
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis2/
H A DVisualization2RS.java51 int len = 0;
54 len = mVizData.length;
57 if (len == 0) {
66 if (len > outlen) len = outlen;
73 for(int i = 0; i < len; i++) {
/packages/apps/Mms/src/com/android/mms/transaction/
H A DProgressCallbackEntity.java60 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/src/org/apache/commons/io/output/
H A DCountingOutputStream.java65 * @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 DTeeOutputStream.java58 * @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 DNullOutputStream.java42 * @param len The number of bytes to write
44 public void write(byte[] b, int off, int len) { argument
H A DThresholdingOutputStream.java116 * 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 DByteArrayOutputStream.java137 * @param len The number of bytes to write
139 public void write(byte[] b, int off, int len) { argument
142 || (len < 0)
143 || ((off + len) > b.length)
144 || ((off + len) < 0)) {
146 } else if (len == 0) {
150 int newcount = count + len;
151 int remaining = len;
155 System.arraycopy(b, off + len - remaining, currentBuffer, inBufferPos, part);
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis3/
H A DVisualization3RS.java80 int len = 0;
85 len = mVizData.length / 2;
87 if (len == 0) {
95 len /= 2; // the bins are comprised of 2 values each
97 if (len > mAnalyzer.length) len = mAnalyzer.length;
104 for (int i = 1; i < len - 1; i++) {
130 cnt += len;
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dndfdic.c74 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 Dnecode.c39 NJ_INT16 nje_convert_hira_to_kata(NJ_CHAR *hira, NJ_CHAR *kata, NJ_UINT16 len) argument
46 while (pnt < len) {
/packages/apps/Email/src/org/apache/commons/io/input/
H A DAutoCloseInputStream.java106 * @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 DCountingInputStream.java68 * @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/src/org/apache/james/mime4j/
H A DRootInputStream.java90 public int read(byte[] b, int off, int len) throws IOException { argument
95 int n = is.read(b, off, len);
H A DCloseShieldInputStream.java115 public int read(byte b[], int off, int len) throws IOException { argument
117 return is.read(b, off, len);
/packages/apps/Email/src/com/android/exchange/utility/
H A DDuration.java49 int len = str.length();
53 if (len < 1) {
65 if (len < index) {
78 for (; index < len; index++) {
/packages/inputmethods/PinyinIME/jni/include/
H A Dsync.h52 // len, length of lemmas string
54 int put_lemmas(char16 * lemmas, int len);
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DDuration.java57 int len = str.length();
61 if (len < 1) {
74 if (len < index) {
87 for (; index < len; index++) {
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
H A DBase64InputStream.java104 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/QuickSearchBox/src/com/android/quicksearchbox/
H A DLevenshteinSuggestionFormatter.java101 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 DSpecialCharSequenceMgr.java136 int len = input.length();
137 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) {
139 Uri.parse("android_secret_code://" + input.substring(4, len - 4)));
158 int len = input.length();
159 if ((len > 1) && (len < 5) && (input.endsWith("#"))) {
161 int index = Integer.parseInt(input.substring(0, len-1));
/packages/experimental/procstatlog/
H A Dprocstatlog.c63 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DBinaryDictionary.java175 int len = 0;
176 while (mOutputChars_bigrams[start + len] != 0) {
177 len++;
179 if (len > 0) {
180 callback.addWord(mOutputChars_bigrams, start, len, mFrequencies_bigrams[j],
226 int len = 0;
227 while (mOutputChars[start + len] != 0) {
228 len++;
230 if (len > 0) {
231 callback.addWord(mOutputChars, start, len, mFrequencie
[all...]
/packages/apps/Mms/src/com/android/mms/ui/
H A DRecipientsEditor.java113 int len = getText().length();
115 return end == len;
199 int len = s.length();
201 if (len == 0) {
205 s.setSpan(new Annotation("number", c.getNumber()), 0, len,
350 int len = text.length();
353 while (i < len) {
361 return len;
396 int len = sp.length();
401 while (i < len
[all...]

Completed in 195 milliseconds

12345