Searched defs:len (Results 1 - 25 of 268) sorted by relevance

1234567891011

/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/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 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;
/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/minikin/libs/minikin/
H A DLayoutUtils.cpp44 const uint16_t* chars, size_t offset, size_t len) {
46 if (offset > len) offset = len;
59 * Return offset of next word break. It is either > offset or == len.
62 const uint16_t* chars, size_t offset, size_t len) {
63 if (offset >= len) return len;
67 for (size_t i = offset + 1; i < len; i++) {
75 return len;
43 getPrevWordBreakForCache( const uint16_t* chars, size_t offset, size_t len) argument
61 getNextWordBreakForCache( const uint16_t* chars, size_t offset, size_t len) argument
/frameworks/native/cmds/installd/
H A Dglobals.h30 size_t len; member in struct:android::installd::dir_rec_t
/frameworks/native/opengl/tests/angeles/
H A Dcams.h43 unsigned char len; // length multiplier member in struct:__anon1512
/frameworks/rs/driver/
H A DrsdMesh.cpp41 void rsdMeshDraw(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len) { argument
49 drv->renderPrimitiveRange(rsc, primIndex, start, len);
/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/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/av/media/img_utils/src/
H A DTiffEntry.cpp148 size_t len = count; local
150 len = MAX_PRINT_STRING_LENGTH;
152 output.append(typed_data, 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/av/media/libstagefright/codecs/on2/h264dec/source/
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/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/base/core/java/android/text/
H A DAndroidBidi.java58 * @param len the length of the line
62 char[] chars, int cstart, int len) {
63 if (len == 0) {
71 for (int i = lstart + 1, e = lstart + len; i < e; ++i) {
80 int visLen = len;
96 if (visLen != len) {
136 if (visLen < len) {
138 ld[++n] = (len - visLen) | (baseLevel << Layout.RUN_LEVEL_SHIFT);
61 directions(int dir, byte[] levels, int lstart, char[] chars, int cstart, int len) argument
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DProgressReporterTest.java34 private void assertRange(int start, int len) { argument
37 assertEquals("len", len, range[1]);
/frameworks/base/libs/androidfw/tests/
H A DAttributeFinder_test.cpp25 MockAttributeFinder(const uint32_t* attrs, int len) argument
26 : BackTrackingAttributeFinder(0, len) {
27 mAttrs = new uint32_t[len];
28 memcpy(mAttrs, attrs, sizeof(*attrs) * len);
/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/base/services/core/jni/
H A Dcom_android_server_PersistentDataBlockService.cpp52 uint64_t len = get_block_device_size(fd); local
55 range[1] = len;
64 range[1] = len;
/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/opt/net/voip/src/jni/rtp/
H A DRtpStream.cpp49 socklen_t len = sizeof(ss); local
51 getsockname(socket, (sockaddr *)&ss, &len) != 0) {
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DByteArrayPool.java87 * @param len the minimum size, in bytes, of the requested buffer. The returned buffer may be
91 public synchronized byte[] getBuf(int len) { argument
94 if (buf.length >= len) {
101 return new byte[len];
/frameworks/av/camera/camera2/
H A DCaptureRequest.cpp58 size_t len; local
59 const char16_t* className = parcel->readString16Inplace(&len);
68 const char16_t* name = parcel->readString16Inplace(&len);
/frameworks/base/core/java/android/util/
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...]
/frameworks/base/core/java/com/android/internal/os/
H A DKernelWakelockReader.java67 int len;
86 len = is.read(buffer);
93 if (len > 0) {
94 if (len >= buffer.length) {
98 for (i=0; i<len; i++) {
100 len = i;
105 return parseProcWakelocks(buffer, len, wakeup_sources, staleStats);
112 public KernelWakelockStats parseProcWakelocks(byte[] wlBuffer, int len, boolean wakeup_sources, argument
122 for (i = 0; i < len && wlBuffer[i] != '\n' && wlBuffer[i] != '\0'; i++);
127 while (endIndex < len) {
[all...]

Completed in 1163 milliseconds

1234567891011