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

1234567891011>>

/frameworks/rs/
H A DrsCompatibilityLib.cpp23 int len; local
25 len = __system_property_get(key, value);
27 len = 0;
29 if (len > 0) {
30 return len;
34 len = strlen(default_value);
35 memcpy(value, default_value, len + 1);
37 return len;
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/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/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/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:__anon1452
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicBlend.cpp149 uint32_t len = (x2 - x1) >> 3; local
150 rsdIntrinsicBlendSrcOver_K(out, in, len);
151 x1 += len << 3;
152 out += len << 3;
153 in += len << 3;
168 uint32_t len = (x2 - x1) >> 3; local
169 rsdIntrinsicBlendDstOver_K(out, in, len);
170 x1 += len << 3;
171 out += len << 3;
172 in += len <<
187 uint32_t len = (x2 - x1) >> 3; local
205 uint32_t len = (x2 - x1) >> 3; local
223 uint32_t len = (x2 - x1) >> 3; local
241 uint32_t len = (x2 - x1) >> 3; local
259 uint32_t len = (x2 - x1) >> 3; local
282 uint32_t len = (x2 - x1) >> 3; local
304 uint32_t len = (x2 - x1) >> 3; local
328 uint32_t len = (x2 - x1) >> 3; local
421 uint32_t len = (x2 - x1) >> 3; local
442 uint32_t len = (x2 - x1) >> 3; local
[all...]
/frameworks/base/tools/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/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/services/core/jni/
H A Dcom_android_server_ConsumerIrService.cpp73 int len; local
75 len = dev->get_num_carrier_freqs(dev);
76 if (len <= 0)
79 ranges = new consumerir_freq_range_t[len];
81 len = dev->get_carrier_freqs(dev, len, ranges);
82 if (len <= 0) {
88 ScopedIntArrayRW freqsOut(env, env->NewIntArray(len*2));
94 for (i = 0; i < len; i++) {
H A Dcom_android_server_am_BatteryStatsService.cpp112 int len; local
117 len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "%d" : ":%d", irq);
128 len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "Abort" : ":Abort");
133 if (len >= 0 && len < remainreasonlen) {
134 mergedreasonpos += len;
135 remainreasonlen -= len;
153 len = snprintf(mergedreasonpos, remainreasonlen, ":%s", pos);
154 if (len >= 0 && len < remainreasonle
[all...]
/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/av/media/libstagefright/codecs/avc/enc/src/
H A Dvlc_encode.cpp151 uint code, len; local
186 len = totCoeffTrailOne[vlcnum][TrailingOnes][TotalCoeff][0];
188 status = BitstreamWriteBits(stream, len, code);
205 uint code, len; local
207 len = totCoeffTrailOneChrom[TrailingOnes][TotalCoeff][0];
209 status = BitstreamWriteBits(stream, len, code);
254 int len, code; local
257 len = lenTotalZeros[TotalCoeff-1][total_zeros];
260 status = BitstreamWriteBits(stream, len, code);
282 int len, cod local
318 int len, code; local
[all...]
/frameworks/native/opengl/libs/tools/
H A Dgltracegen38 my $len = scalar(@args);
40 for (my $num = 0; $num < $len; $num++) {
52 for (my $num = 0; $num < $len; $num++) {
70 for (my $num = 0; $num < $len; $num++) {
/frameworks/wilhelm/src/desktop/
H A DSDL.c24 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);
/frameworks/native/cmds/servicemanager/
H A Dservice_manager.c134 size_t len; member in struct:svcinfo
140 struct svcinfo *find_svc(const uint16_t *s16, size_t len) argument
145 if ((len == si->len) &&
146 !memcmp(s16, si->name, len * sizeof(uint16_t))) {
157 ALOGI("service '%s' died\n", str8(si->name, si->len));
170 uint32_t do_find_service(struct binder_state *bs, const uint16_t *s, size_t len, uid_t uid, pid_t spid) argument
172 struct svcinfo *si = find_svc(s, len);
187 if (!svc_can_find(s, len, spid)) {
195 const uint16_t *s, size_t len,
194 do_add_service(struct binder_state *bs, const uint16_t *s, size_t len, uint32_t handle, uid_t uid, int allow_isolated, pid_t spid) argument
251 size_t len; local
341 audit_callback(void *data, security_class_t cls, char *buf, size_t len) argument
[all...]
/frameworks/av/media/libmedia/
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);

Completed in 1097 milliseconds

1234567891011>>