/frameworks/base/core/java/android/util/ |
H A D | StringBuilderPrinter.java | 37 int len = x.length(); 38 if (len <= 0 || x.charAt(len-1) != '\n') {
|
H A D | Base64OutputStream.java | 98 public void write(byte[] b, int off, int len) throws IOException { argument 99 if (len <= 0) return; 101 internalWrite(b, off, len, false); 136 private void internalWrite(byte[] b, int off, int len, boolean finish) throws IOException { argument 137 coder.output = embiggen(coder.output, coder.maxOutputSize(len)); 138 if (!coder.process(b, off, len, finish)) { 145 * If b.length is at least len, return b. Otherwise return a new 146 * byte array of length len. 148 private byte[] embiggen(byte[] b, int len) { argument 149 if (b == null || b.length < len) { [all...] |
H A D | Base64.java | 88 public abstract boolean process(byte[] input, int offset, int len, boolean finish); argument 95 public abstract int maxOutputSize(int len); argument 148 * @param len the number of bytes of input to decode 155 public static byte[] decode(byte[] input, int offset, int len, int flags) { argument 158 Decoder decoder = new Decoder(flags, new byte[len*3/4]); 160 if (!decoder.process(input, offset, len, true)) { 251 * len} bytes could decode to. 253 public int maxOutputSize(int len) { argument 254 return len * 3/4 + 10; 263 public boolean process(byte[] input, int offset, int len, boolea argument 475 encodeToString(byte[] input, int offset, int len, int flags) argument 509 encode(byte[] input, int offset, int len, int flags) argument 599 maxOutputSize(int len) argument 603 process(byte[] input, int offset, int len, boolean finish) argument [all...] |
/frameworks/base/media/java/android/drm/mobile1/ |
H A D | DrmRawContent.java | 128 * @param len the length of raw data can be read. 131 public DrmRawContent(InputStream inRawdata, int len, String mimeTypeStr) throws DrmException, IOException { argument 136 inDataLen = len; 145 if (len <= 0) 146 throw new IllegalArgumentException("len must be > 0"); 284 int len = nativeGetContentLength(); 286 if (JNI_DRM_FAILURE == len) 290 if (JNI_DRM_UNKNOWN_DATA_LEN == len) 293 int availableLen = len - offset; 324 public int read(byte[] b, int off, int len) throw argument 394 nativeConstructDrmContent(InputStream data, int len, int mimeType) argument 428 nativeReadContent(byte[] buf, int bufOff, int len, int mediaOff) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | TemporaryBuffer.java | 23 /* package */ static char[] obtain(int len) { argument 31 if (buf == null || buf.length < len) 32 buf = new char[ArrayUtils.idealCharArraySize(len)];
|
/frameworks/base/opengl/tests/angeles/ |
H A D | cams.h | 43 unsigned char len; // length multiplier member in struct:__anon394
|
/frameworks/base/include/utils/ |
H A D | Buffer.h | 32 void ensureCapacity(int len); 35 makeRoomFor(int len) argument 37 if (len + used >= bufsiz) { 38 bufsiz = (len + used) * 3/2 + 2; 83 append(const char *s, int len) argument 85 makeRoomFor(len); 87 memcpy(buf + used, s, len); 88 used += len;
|
/frameworks/base/awt/javax/imageio/stream/ |
H A D | ImageOutputStream.java | 63 * @param len 68 void write(byte[] b, int off, int len) throws IOException; argument 194 * Writes a len number of short values from the specified array to the 201 * @param len 206 void writeShorts(short[] s, int off, int len) throws IOException; argument 209 * Writes a len number of chars to the stream. 215 * @param len 220 void writeChars(char[] c, int off, int len) throws IOException; argument 223 * Writes a len number of integer values from the specified array to the 230 * @param len 235 writeInts(int[] i, int off, int len) argument 250 writeLongs(long[] l, int off, int len) argument 265 writeFloats(float[] f, int off, int len) argument 280 writeDoubles(double[] d, int off, int len) argument [all...] |
H A D | ImageInputStream.java | 74 * Reads the number of bytes specified by len parameter from the stream and 81 * @param len 87 int read(byte[] b, int off, int len) throws IOException; argument 90 * Reads the number of bytes specified by len parameter from the stream, and 96 * @param len 101 void readBytes(IIOByteBuffer buf, int len) throws IOException; argument 230 * @param len 235 void readFully(byte[] b, int off, int len) throws IOException; argument 256 * @param len 261 void readFully(short[] s, int off, int len) throw argument 276 readFully(char[] c, int off, int len) argument 291 readFully(int[] i, int off, int len) argument 306 readFully(long[] l, int off, int len) argument 321 readFully(float[] f, int off, int len) argument 336 readFully(double[] d, int off, int len) argument [all...] |
H A D | ImageOutputStreamImpl.java | 53 public abstract void write(byte[] b, int off, int len) throws IOException; argument 119 public void writeShorts(short[] s, int off, int len) throws IOException { argument 124 public void writeChars(char[] c, int off, int len) throws IOException { argument 129 public void writeInts(int[] i, int off, int len) throws IOException { argument 134 public void writeLongs(long[] l, int off, int len) throws IOException { argument 139 public void writeFloats(float[] f, int off, int len) throws IOException { argument 144 public void writeDoubles(double[] d, int off, int len) throws IOException { argument
|
H A D | FileImageOutputStream.java | 77 public void write(byte[] b, int off, int len) throws IOException { argument 81 file.write(b, off, len); 82 streamPos += len; 96 public int read(byte[] b, int off, int len) throws IOException { argument 98 int rt = file.read(b, off, len);
|
H A D | MemoryCacheImageOutputStream.java | 66 public void write(byte[] b, int off, int len) throws IOException { argument 69 ramc.putData(b, off, len, streamPos); 70 streamPos += len; 85 public int read(byte[] b, int off, int len) throws IOException { argument 88 int res = ramc.getData(b, off, len, streamPos);
|
H A D | ImageInputStreamImpl.java | 98 public abstract int read(byte[] b, int off, int len) throws IOException; argument 100 public void readBytes(IIOByteBuffer buf, int len) throws IOException { argument 105 byte[] b = new byte[len]; 106 len = read(b, 0, b.length); 110 buf.setLength(len); 194 public void readFully(byte[] b, int off, int len) throws IOException { argument 203 public void readFully(short[] s, int off, int len) throws IOException { argument 208 public void readFully(char[] c, int off, int len) throws IOException { argument 213 public void readFully(int[] i, int off, int len) throws IOException { argument 218 public void readFully(long[] l, int off, int len) throw argument 223 readFully(float[] f, int off, int len) argument 228 readFully(double[] d, int off, int len) argument [all...] |
/frameworks/base/obex/javax/obex/ |
H A D | ApplicationParameter.java | 116 public void addAPPHeader(byte tag, byte len, byte[] value) { argument 117 if ((mLength + len + 2) > mMaxLength) { 118 byte[] array_tmp = new byte[mLength + 4 * len]; 121 mMaxLength = mLength + 4 * len; 124 mArray[mLength++] = len; 125 System.arraycopy(value, 0, mArray, mLength, len); 126 mLength += len;
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | ATResponseParser.java | 98 int len = line.length(); 104 if (next >= len) { 117 if (next >= len) { 122 while (c != '"' && next < len) { 129 if (next < len && line.charAt(next++) != ',') { 139 if (next == len) { 155 int len; 156 len = line.length(); 157 while (next < len && Character.isWhitespace(c)) {
|
/frameworks/base/media/libdrm/mobile2/include/util/xml/ |
H A D | ExpatWrapper.h | 40 * @param len The length of the buffer. 44 int decode(const char* buf, int len, int isFinal); 59 virtual void dataHandler(const XML_Char *s, int len); 75 static void dataHandlerCallback(void *userData, const XML_Char *s, int len);
|
/frameworks/base/core/jni/ |
H A D | android_util_EventLog.cpp | 77 jint len = strlen(str); local 78 const int max = sizeof(buf) - sizeof(len) - 2; // Type byte, final newline 79 if (len > max) len = max; 82 memcpy(&buf[1], &len, sizeof(len)); 83 memcpy(&buf[1 + sizeof(len)], str, len); 84 buf[1 + sizeof(len) + len] 110 jint len = strlen(str); local 187 int len = read(fd, buf, sizeof(buf)); local 209 jsize len = sizeof(*entry) + entry->len; local [all...] |
H A D | android_os_SystemProperties.cpp | 29 int len; local 42 len = property_get(key, buf, ""); 43 if ((len <= 0) && (defJ != NULL)) { 45 } else if (len >= 0) { 66 int len; local 79 len = property_get(key, buf, ""); 80 if (len > 0) { 95 int len; local 108 len = property_get(key, buf, ""); 109 if (len > 124 int len; local [all...] |
/frameworks/base/libs/surfaceflinger_client/ |
H A D | LayerState.cpp | 27 size_t len = transparentRegion.write(NULL, 0); local 28 err = output.writeInt32(len); 31 void* buf = output.writeInplace(len); 34 err = transparentRegion.write(buf, len); 47 size_t len = input.readInt32(); local 48 void const* buf = input.readInplace(len);
|
/frameworks/base/libs/utils/ |
H A D | StringArray.cpp | 63 int len = strlen(str); local 64 mArray[mCurrent] = new char[len+1]; 65 memcpy(mArray[mCurrent], str, len+1); 107 int len = strlen(str); local 108 mArray[idx] = new char[len+1]; 109 memcpy(mArray[idx], str, len+1);
|
/frameworks/base/core/java/android/os/ |
H A D | FileUtils.java | 169 int len; 176 len = input.read(data); 177 } while (len == data.length); 179 if (last == null && len <= 0) return ""; 180 if (last == null) return new String(data, 0, len); 181 if (len > 0) { 183 System.arraycopy(last, len, last, 0, last.length - len); 184 System.arraycopy(data, 0, last, last.length - len, len); [all...] |
/frameworks/base/cmds/servicemanager/ |
H A D | service_manager.c | 93 unsigned len; member in struct:svcinfo 99 struct svcinfo *find_svc(uint16_t *s16, unsigned len) argument 104 if ((len == si->len) && 105 !memcmp(s16, si->name, len * sizeof(uint16_t))) { 128 void *do_find_service(struct binder_state *bs, uint16_t *s, unsigned len) argument 131 si = find_svc(s, len); 142 uint16_t *s, unsigned len, 148 if (!ptr || (len == 0) || (len > 12 141 do_add_service(struct binder_state *bs, uint16_t *s, unsigned len, void *ptr, unsigned uid) argument 194 unsigned len; local [all...] |
/frameworks/base/common/tools/ |
H A D | make-iana-tld-pattern.py | 36 if (len(self.words) == 0) and (len(self.letters) == 0): 52 if len(self.words) != 0: 68 if len(self.words) > 0 and len(self.letters) > 0: 71 if len(self.letters) == 1: 73 elif len(self.letters) > 0: 81 if len(self.words) != 0: 91 length = len(line) 140 if len(domai [all...] |
/frameworks/base/tools/aidl/ |
H A D | options.cpp | 56 int len = strlen(s); local 58 if (len > 1) { 61 if (len > 2) { 69 if (len > 2) { 77 if (len > 2) { 85 if (len > 2) { 92 else if (len == 2 && s[1] == 'b') { 101 // len <= 1
|
/frameworks/base/media/libdrm/mobile2/src/util/xml/ |
H A D | ExpatWrapper.cpp | 40 int ExpatWrapper::decode(const char* buf, int len, int isFinal) argument 42 return ::XML_Parse(mParser, buf, len, isFinal); 59 void ExpatWrapper::dataHandlerCallback(void *userData, const XML_Char *s, int len) argument 61 ((ExpatWrapper *)userData)->dataHandler(s, len); 75 void ExpatWrapper::dataHandler(const XML_Char *s, int len) argument
|