Searched defs:len (Results 1 - 25 of 309) 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/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/base/tools/aapt2/io/
H A DFile.cpp24 IFile* IFile::CreateFileSegment(size_t offset, size_t len) { argument
25 FileSegment* file_segment = new FileSegment(this, offset, len);
H A DFile.h51 IFile* CreateFileSegment(size_t offset, size_t len);
70 explicit FileSegment(IFile* file, size_t offset, size_t len) argument
71 : file_(file), offset_(offset), len_(len) {}
/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/native/cmds/installd/
H A Dglobals.h35 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:__anon1824
/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.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);
/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.java61 * @param len the length of the line
65 char[] chars, int cstart, int len) {
66 if (len == 0) {
74 for (int i = lstart + 1, e = lstart + len; i < e; ++i) {
83 int visLen = len;
99 if (visLen != len) {
139 if (visLen < len) {
141 ld[++n] = (len - visLen) | (baseLevel << Layout.RUN_LEVEL_SHIFT);
64 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/
H A DUtil.cpp33 void ReadUtf16StringFromDevice(const uint16_t* src, size_t len, std::string* out) { argument
35 while (*src && len != 0) {
40 --len;
/frameworks/base/libs/androidfw/tests/
H A DAttributeFinder_test.cpp27 MockAttributeFinder(const uint32_t* attrs, int len) argument
28 : BackTrackingAttributeFinder(0, len) {
29 attrs_ = new uint32_t[len];
30 memcpy(attrs_, attrs, sizeof(*attrs) * len);
H A DLoadedArsc_test.cpp164 size_t len; local
165 const char16_t* type_name16 = entry.type_string_ref.string16(&len);
167 ASSERT_NE(0u, len);
169 size_t utf8_len = utf16_to_utf8_length(type_name16, len);
172 utf16_to_utf8(type_name16, len, &*type_name.begin(), utf8_len + 1);
/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/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
/frameworks/native/libs/gui/view/
H A DSurface.cpp87 size_t len; local
88 const char16_t* str = parcel->readString16Inplace(&len);
90 return String16(str, 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) {

Completed in 534 milliseconds

1234567891011>>