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

1234567891011>>

/frameworks/base/core/java/android/util/
H A DStringBuilderPrinter.java37 int len = x.length();
38 if (len <= 0 || x.charAt(len-1) != '\n') {
H A DBase64OutputStream.java98 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 DBase64.java88 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 DDrmRawContent.java128 * @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 DTemporaryBuffer.java23 /* 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 Dcams.h43 unsigned char len; // length multiplier member in struct:__anon394
/frameworks/base/include/utils/
H A DBuffer.h32 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 DImageOutputStream.java63 * @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 DImageInputStream.java74 * 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 DImageOutputStreamImpl.java53 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 DFileImageOutputStream.java77 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 DMemoryCacheImageOutputStream.java66 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 DImageInputStreamImpl.java98 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 DApplicationParameter.java116 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 DATResponseParser.java98 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 DExpatWrapper.h40 * @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 Dandroid_util_EventLog.cpp77 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 Dandroid_os_SystemProperties.cpp29 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 DLayerState.cpp27 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 DStringArray.cpp63 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 DFileUtils.java169 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 Dservice_manager.c93 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 Dmake-iana-tld-pattern.py36 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 Doptions.cpp56 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 DExpatWrapper.cpp40 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

Completed in 285 milliseconds

1234567891011>>