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

1234567891011>>

/frameworks/rs/
H A DrsCompatibilityLib.cpp23 int len; local
25 len = __system_property_get(key, value);
26 if (len > 0) {
27 return len;
31 len = strlen(default_value);
32 memcpy(value, default_value, len + 1);
34 return len;
H A DrsCppUtils.cpp27 const char * rsuCopyString(const char *name, size_t len) { argument
28 char *n = new char[len+1];
29 memcpy(n, name, len);
30 n[len] = 0;
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/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/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 = new char[ArrayUtils.idealCharArraySize(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:__anon1520
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicBlend.cpp135 uint32_t len = (x2 - x1) >> 3; local
136 rsdIntrinsicBlendSrcOver_K(out, in, len);
137 x1 += len << 3;
138 out += len << 3;
139 in += len << 3;
154 uint32_t len = (x2 - x1) >> 3; local
155 rsdIntrinsicBlendDstOver_K(out, in, len);
156 x1 += len << 3;
157 out += len << 3;
158 in += len <<
173 uint32_t len = (x2 - x1) >> 3; local
191 uint32_t len = (x2 - x1) >> 3; local
209 uint32_t len = (x2 - x1) >> 3; local
227 uint32_t len = (x2 - x1) >> 3; local
245 uint32_t len = (x2 - x1) >> 3; local
265 uint32_t len = (x2 - x1) >> 3; local
285 uint32_t len = (x2 - x1) >> 3; local
309 uint32_t len = (x2 - x1) >> 3; local
402 uint32_t len = (x2 - x1) >> 3; local
423 uint32_t len = (x2 - x1) >> 3; local
[all...]
/frameworks/webview/chromium/tools/
H A Drun_webview_cts.py77 test_results = '%d passes; %d failures' % (len(passes), len(failures))
80 if len(unexpected_passes) > 0:
86 if len(unexpected_failures) > 0:
91 unexpected_failures_count = len(unexpected_failures)
92 unexpected_passes_count = len(unexpected_passes)
106 if len(passes) + len(failures) < 100:
/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/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++) {
/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/base/core/jni/
H A Dandroid_util_EventLog.cpp74 uint32_t len = strlen(str); local
75 size_t max = sizeof(buf) - sizeof(len) - 2; // Type byte, final newline
76 if (len > max) len = max;
79 memcpy(&buf[1], &len, sizeof(len));
80 memcpy(&buf[1 + sizeof(len)], str, len);
81 buf[1 + sizeof(len) + len]
107 jint len = strlen(str); local
184 int len = read(fd, buf, sizeof(buf)); local
206 jsize len = sizeof(*entry) + entry->len; local
[all...]
/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/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);
/frameworks/base/core/java/android/text/
H A DMeasuredText.java96 int len = end - start;
97 mLen = len;
100 if (mWidths == null || mWidths.length < len) {
101 mWidths = new float[ArrayUtils.idealFloatArraySize(len)];
103 if (mChars == null || mChars.length < len) {
104 mChars = new char[ArrayUtils.idealCharArraySize(len)];
118 if (endInPara > len) endInPara = len;
128 TextUtils.doesNotNeedBidi(mChars, 0, len)) {
132 if (mLevels == null || mLevels.length < len) {
153 addStyleRun(TextPaint paint, int len, Paint.FontMetricsInt fm) argument
184 addStyleRun(TextPaint paint, MetricAffectingSpan[] spans, int len, Paint.FontMetricsInt fm) argument
[all...]
/frameworks/native/cmds/servicemanager/
H A Dservice_manager.c99 unsigned len; member in struct:svcinfo
105 struct svcinfo *find_svc(uint16_t *s16, unsigned len) argument
110 if ((len == si->len) &&
111 !memcmp(s16, si->name, len * sizeof(uint16_t))) {
134 void *do_find_service(struct binder_state *bs, uint16_t *s, unsigned len, unsigned uid) argument
137 si = find_svc(s, len);
156 uint16_t *s, unsigned len,
163 if (!ptr || (len == 0) || (len > 12
155 do_add_service(struct binder_state *bs, uint16_t *s, unsigned len, void *ptr, unsigned uid, int allow_isolated) argument
210 unsigned len; local
[all...]

Completed in 587 milliseconds

1234567891011>>