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

1234567891011>>

/frameworks/compile/libbcc/lib/
H A DProperties.h29 int len; local
30 len = __system_property_get(key, value);
31 if (len > 0) {
32 return len;
36 len = strlen(default_value);
37 memcpy(value, default_value, len + 1);
39 return len;
/frameworks/base/core/java/com/android/internal/alsa/
H A DLineTokenizer.java33 int len = line.length();
35 for (; offset < len; offset++) {
42 return offset < len ? offset : kTokenNotFound;
46 int len = line.length();
48 for (; offset < len; offset++) {
55 return offset < len ? offset : kTokenNotFound;
/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/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { argument
44 len = Math.min(len, mBuf.remaining());
45 mBuf.get(bytes, off, len);
46 return len;
/frameworks/av/media/libstagefright/foundation/
H A DAStringUtils.cpp23 int AStringUtils::Compare(const char *a, const char *b, size_t len, bool ignoreCase) { argument
24 // this method relies on a trailing '\0' if a or b are shorter than len
25 return ignoreCase ? strncasecmp(a, b, len) : strncmp(a, b, len);
38 if (strLen < globIx || Compare(str, glob, globIx /* len */, ignoreCase)) {
50 size_t len = globIx - start; local
55 if (ix + len > strLen) {
58 const char *tail = str + strLen - len;
59 return !Compare(tail, pattern, len, ignoreCase);
62 while (ix + len <
[all...]
/frameworks/rs/cpp/
H A DrsCppUtils.cpp35 const char * rsuCopyString(const char *name, size_t len) { argument
36 char *n = new char[len+1];
37 memcpy(n, name, len);
38 n[len] = 0;
104 int len; local
105 len = __system_property_get(key, value);
106 if (len > 0) {
107 return len;
111 len = strlen(default_value);
112 memcpy(value, default_value, len
[all...]
/frameworks/rs/
H A DrsCppUtils.cpp35 const char * rsuCopyString(const char *name, size_t len) { argument
36 char *n = new char[len+1];
37 memcpy(n, name, len);
38 n[len] = 0;
104 int len; local
105 len = __system_property_get(key, value);
106 if (len > 0) {
107 return len;
111 len = strlen(default_value);
112 memcpy(value, default_value, len
[all...]
H A DrsStream.cpp47 uint32_t len = loadU32(); local
48 const char *s = rsuCopyString((const char *)&mData[mPos], len);
49 mPos += len;
54 OStream::OStream(uint64_t len, bool use64) { argument
55 mData = (uint8_t*)malloc(len);
56 mLength = len;
93 void OStream::addString(const char *s, size_t len) { argument
94 addU32(len);
95 if (mPos + len*sizeof(char) >= mLength) {
99 memcpy(stringData, s, len);
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dstream.c40 int len; local
41 len = MIN(Frame_Maxsize - stream->frame_storelen, stream->set_len);
42 pMemOP->Copy(VO_INDEX_ENC_AMRWB, stream->frame_ptr_bk + stream->frame_storelen , stream->set_ptr, len);
43 stream->set_len -= len;
44 stream->set_ptr += len;
45 stream->framebuffer_len = stream->frame_storelen + len;
47 stream->used_len += len;
/frameworks/wilhelm/tools/mphtogen/
H A Dmphtogen.c31 unsigned len = 0; local
33 if (len > 0) {
35 ++len;
37 if (len > 78) {
39 len = 0;
42 len += 3;
44 if (len > 0) {
/frameworks/base/core/java/com/android/internal/util/
H A DLineBreakBufferedWriter.java118 public void write(char[] buf, int off, int len) { argument
119 while (bufferIndex + len > bufferSize) {
141 len -= nextNewLine + 1;
154 len -= rest;
159 if (len > 0) {
161 appendToBuffer(buf, off, len);
162 for (int i = len - 1; i >= 0; i--) {
164 lastNewline = bufferIndex - len + i;
172 public void write(String s, int off, int len) { argument
173 while (bufferIndex + len > bufferSiz
232 appendToBuffer(char[] buf, int off, int len) argument
247 appendToBuffer(String s, int off, int len) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DTemporaryBuffer.java25 public static char[] obtain(int len) { argument
33 if (buf == null || buf.length < len) {
34 buf = ArrayUtils.newUnpaddedCharArray(len);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_byte_stream.h50 u32 h264bsdExtractNalUnit(u8 *pByteStream, u32 len, strmData_t *pStrmData,
H A Dh264bsd_byte_stream.c68 len length of the stream buffer (in bytes)
80 u32 h264bsdExtractNalUnit(u8 *pByteStream, u32 len, strmData_t *pStrmData, argument
97 ASSERT(len);
98 ASSERT(len < BYTE_STREAM_ERROR);
102 if (len > 3 && pByteStream[0] == 0x00 && pByteStream[1] == 0x00 &&
115 if (byteCount == len)
118 *readBytes = len;
162 if (byteCount == len)
175 pStrmData->strmBuffSize = len;
/frameworks/native/opengl/tests/angeles/
H A Dcams.h43 unsigned char len; // length multiplier member in struct:__anon1919
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicBlend.cpp145 uint32_t len = (x2 - x1) >> 3; local
146 rsdIntrinsicBlendSrcOver_K(out, in, len);
147 x1 += len << 3;
148 out += len << 3;
149 in += len << 3;
164 uint32_t len = (x2 - x1) >> 3; local
165 rsdIntrinsicBlendDstOver_K(out, in, len);
166 x1 += len << 3;
167 out += len << 3;
168 in += len <<
183 uint32_t len = (x2 - x1) >> 3; local
201 uint32_t len = (x2 - x1) >> 3; local
219 uint32_t len = (x2 - x1) >> 3; local
237 uint32_t len = (x2 - x1) >> 3; local
255 uint32_t len = (x2 - x1) >> 3; local
275 uint32_t len = (x2 - x1) >> 3; local
296 uint32_t len = (x2 - x1) >> 3; local
320 uint32_t len = (x2 - x1) >> 3; local
413 uint32_t len = (x2 - x1) >> 3; local
434 uint32_t len = (x2 - x1) >> 3; local
[all...]
/frameworks/layoutlib/bridge/src/android/content/res/
H A DTypedArray_Delegate.java32 /*package*/ static TypedArray obtain(Resources res, int len) { argument
33 return BridgeTypedArray.obtain(res, len);
/frameworks/minikin/libs/minikin/
H A DLayoutUtils.cpp55 const uint16_t* chars, size_t offset, size_t len) {
57 if (offset > len) offset = len;
70 * Return offset of next word break. It is either > offset or == len.
73 const uint16_t* chars, size_t offset, size_t len) {
74 if (offset >= len) return len;
78 for (size_t i = offset + 1; i < len; i++) {
86 return len;
54 getPrevWordBreakForCache( const uint16_t* chars, size_t offset, size_t len) argument
72 getNextWordBreakForCache( const uint16_t* chars, size_t offset, size_t len) argument
H A DLayoutUtils.h37 const uint16_t* chars, size_t offset, size_t len);
40 * Return offset of next word break. It is either > offset or == len.
47 const uint16_t* chars, size_t offset, size_t len);
/frameworks/base/obex/javax/obex/
H A DApplicationParameter.java144 public void addAPPHeader(byte tag, byte len, byte[] value) { argument
145 if ((mLength + len + 2) > mMaxLength) {
146 byte[] array_tmp = new byte[mLength + 4 * len];
149 mMaxLength = mLength + 4 * len;
152 mArray[mLength++] = len;
153 System.arraycopy(value, 0, mArray, mLength, len);
154 mLength += len;
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
H A DAoapInterface.java97 int len = conn.controlTransfer(
100 if (len != 2) {
108 int len = conn.controlTransfer(
112 if (len != buffer.length) {
120 int len = conn.controlTransfer(
123 if (len < 0) {
124 throw new RuntimeException("control transfer for accessory start failed:" + len);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DATResponseParser.java98 int len = mLine.length();
104 if (mNext >= len) {
117 if (mNext >= len) {
122 while (c != '"' && mNext < len) {
129 if (mNext < len && mLine.charAt(mNext++) != ',') {
139 if (mNext == len) {
155 int len;
156 len = mLine.length();
157 while (mNext < len && Character.isWhitespace(c)) {
/frameworks/wilhelm/src/desktop/
H A DSDL.cpp24 static void SDLCALL SDL_callback(void *context, Uint8 *stream, int len) argument
26 assert(len > 0);
36 IOutputMixExt_FillBuffer(OutputMixExt, stream, (SLuint32) len);
38 memset(stream, 0, (size_t) len);

Completed in 601 milliseconds

1234567891011>>