/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/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 | 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 | 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 | 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/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);
|
H A D | CloseShieldInputStream.java | 115 public int read(byte b[], int off, int len) throws IOException {
argument 117 return is.read(b, off, len);
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
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) {
|
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 | ndapi.c | 482 NJ_UINT16 len; local 502 len = NJ_GET_YLEN_FROM_STEM(&result->word); 504 if (size < ((len + NJ_TERM_LEN) * sizeof(NJ_CHAR))) { 508 if (len == 0) { 512 nj_strncpy(stroke, result->word.yomi, len); 513 *(stroke + len) = NJ_CHAR_NUL; 514 return len;
|
/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/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.
|
H A D | PositionInputStream.java | 81 public int read(byte b[], int off, int len) throws IOException {
argument 82 final int c = inputStream.read(b, off, len);
|
/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
|
H A D | AttachmentLoader.java | 105 * @param len the number of expected bytes we're going to read 108 public void readChunked(InputStream inputStream, OutputStream outputStream, int len) argument 111 int length = len; 117 mService.userLog("Expected attachment length: ", len); 220 int len = resp.getLength(); 221 if (len != 0) { 222 // len > 0 means that Content-Length was set in the headers 223 // len < 0 means "chunked" transfer-encoding 224 readChunked(is, os, (len < 0) ? mAttachmentSize : len); [all...] |
/packages/inputmethods/PinyinIME/jni/share/ |
H A D | sync.cpp | 70 int Sync::put_lemmas(char16 * lemmas, int len) { argument 71 return userdict_->put_lemmas_no_sync_from_utf16le_string(lemmas, len);
|
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/address/ |
H A D | Builder.java | 218 private int len;
field in class:Builder.ChildNodeIterator 222 this.len = simpleNode.jjtGetNumChildren();
231 return index < len;
|
/packages/experimental/droiddreamclean/ |
H A D | droiddreamclean.c | 111 int len; local 125 len = (strlen(pkg)-8 < MAX_PACKAGE_NAME_LENGTH)?(strlen(pkg)-8):MAX_PACKAGE_NAME_LENGTH; 126 strncpy(installed_packages[num_packages], (pkg+8), len);
|
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/address/parser/ |
H A D | SimpleCharStream.java | 383 public char[] GetSuffix(int len) argument 385 char[] ret = new char[len]; 387 if ((bufpos + 1) >= len) 388 System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); 391 System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, 392 len - bufpos - 1); 393 System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); 412 int len; 416 len [all...] |
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/contenttype/parser/ |
H A D | SimpleCharStream.java | 383 public char[] GetSuffix(int len) argument 385 char[] ret = new char[len]; 387 if ((bufpos + 1) >= len) 388 System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); 391 System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, 392 len - bufpos - 1); 393 System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); 412 int len; 416 len [all...] |
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/datetime/parser/ |
H A D | SimpleCharStream.java | 383 public char[] GetSuffix(int len) argument 385 char[] ret = new char[len]; 387 if ((bufpos + 1) >= len) 388 System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); 391 System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, 392 len - bufpos - 1); 393 System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); 412 int len; 416 len [all...] |
/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/providers/DownloadProvider/tests/src/tests/http/ |
H A D | MockWebServer.java | 345 @Override public void write(byte[] buffer, int offset, int len) { argument 346 numBytesReceived += len; 347 super.write(buffer, offset, Math.min(len, bodyLimit - count));
|