Searched refs:len (Results 1 - 25 of 454) 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/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:__anon1380
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicBlend.cpp148 uint32_t len = (x2 - x1) >> 3; local
149 rsdIntrinsicBlendSrcOver_K(out, in, len);
150 x1 += len << 3;
151 out += len << 3;
152 in += len << 3;
167 uint32_t len = (x2 - x1) >> 3; local
168 rsdIntrinsicBlendDstOver_K(out, in, len);
169 x1 += len << 3;
170 out += len << 3;
171 in += len <<
186 uint32_t len = (x2 - x1) >> 3; local
204 uint32_t len = (x2 - x1) >> 3; local
222 uint32_t len = (x2 - x1) >> 3; local
240 uint32_t len = (x2 - x1) >> 3; local
258 uint32_t len = (x2 - x1) >> 3; local
278 uint32_t len = (x2 - x1) >> 3; local
298 uint32_t len = (x2 - x1) >> 3; local
322 uint32_t len = (x2 - x1) >> 3; local
415 uint32_t len = (x2 - x1) >> 3; local
436 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/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/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++) {
/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/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
174 if (!svc_can_find(s, len, spid)) {
176 str8(s, len), uid);
179 si = find_svc(s, len);
196 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
253 size_t len; local
343 audit_callback(void *data, security_class_t cls, char *buf, size_t len) argument
[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);

Completed in 625 milliseconds

1234567891011>>