/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | stream.c | 40 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 D | TemporaryBuffer.java | 25 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 D | File.cpp | 24 IFile* IFile::CreateFileSegment(size_t offset, size_t len) { argument 25 FileSegment* file_segment = new FileSegment(this, offset, len);
|
H A D | File.h | 53 IFile* CreateFileSegment(size_t offset, size_t len); 72 explicit FileSegment(IFile* file, size_t offset, size_t len) argument 73 : file_(file), offset_(offset), len_(len) {}
|
/frameworks/compile/libbcc/lib/ |
H A D | Properties.h | 29 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/minikin/libs/minikin/ |
H A D | LineBreakerUtil.cpp | 30 const size_t len = str.size(); local 31 out.resize(len); 36 for (size_t i = 0; i <= len; i++) { 37 if (i == len || str[i] == CHAR_NBSP) { 48 if (i < len) {
|
H A D | LayoutUtils.cpp | 51 size_t getPrevWordBreakForCache(const uint16_t* chars, size_t offset, size_t len) { argument 53 if (offset > len) offset = len; 66 * Return offset of next word break. It is either > offset or == len. 68 size_t getNextWordBreakForCache(const uint16_t* chars, size_t offset, size_t len) { argument 69 if (offset >= len) return len; 73 for (size_t i = offset + 1; i < len; i++) { 81 return len;
|
/frameworks/native/opengl/tests/angeles/ |
H A D | cams.h | 43 unsigned char len; // length multiplier member in struct:__anon1796
|
/frameworks/rs/driver/ |
H A D | rsdMesh.cpp | 41 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 D | SDL.cpp | 24 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 D | mphtogen.c | 31 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 D | TiffEntry.cpp | 148 size_t len = count; local 150 len = MAX_PRINT_STRING_LENGTH; 152 output.append(typed_data, len);
|
/frameworks/av/media/libmedia/ |
H A D | StringArray.cpp | 63 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/foundation/ |
H A D | AStringUtils.cpp | 23 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/mtp/ |
H A D | MtpDevHandle.cpp | 43 int MtpDevHandle::read(void *data, size_t len) { argument 44 return ::read(mFd, data, len); 47 int MtpDevHandle::write(const void *data, size_t len) { argument 48 return ::write(mFd, data, len);
|
/frameworks/base/cmds/incident_helper/src/parsers/ |
H A D | SystemPropertiesParser.cpp | 30 int len = (int)name.length(); local 31 char cstr[len + 1]; 33 for (int i = 0; i < len; i++) {
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | ProgressReporterTest.java | 34 private void assertRange(int start, int len) { argument 37 assertEquals("len", len, range[1]);
|
/frameworks/base/libs/androidfw/ |
H A D | Util.cpp | 33 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 D | AttributeFinder_test.cpp | 27 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);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ByteBufferInputStream.java | 39 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 D | com_android_server_PersistentDataBlockService.cpp | 52 uint64_t len = get_block_device_size(fd); local 55 range[1] = len; 64 range[1] = len;
|
/frameworks/base/tools/aapt2/format/ |
H A D | Container_test.cpp | 70 size_t len; local 71 ASSERT_TRUE(entry->GetResFileOffsets(&pb_new_file, &offset, &len)) << entry->GetError(); 73 EXPECT_THAT(output_str.substr(static_cast<size_t>(offset), len), StrEq(expected_data));
|
/frameworks/base/tools/aapt2/format/binary/ |
H A D | XmlFlattener_test.cpp | 90 size_t len; 91 EXPECT_THAT(tree.getNamespacePrefix(&len), StrEq(u"test")); 92 EXPECT_THAT(tree.getNamespaceUri(&len), StrEq(u"http://com.test")); 95 EXPECT_THAT(tree.getElementNamespace(&len), IsNull()); 96 EXPECT_THAT(tree.getElementName(&len), StrEq(u"View")); 99 EXPECT_THAT(tree.getAttributeNamespace(0, &len), IsNull()); 100 EXPECT_THAT(tree.getAttributeName(0, &len), StrEq(u"attr")); 106 EXPECT_THAT(tree.getElementNamespace(&len), IsNull()); 107 EXPECT_THAT(tree.getElementName(&len), StrEq(u"Layout")); 110 EXPECT_THAT(tree.getAttributeNamespace(0, &len), StrE 299 size_t len; local 367 size_t len; local 530 size_t len; local [all...] |
/frameworks/layoutlib/bridge/src/android/content/res/ |
H A D | TypedArray_Delegate.java | 32 /*package*/ static TypedArray obtain(Resources res, int len) { argument 33 return BridgeTypedArray.obtain(res, len);
|
/frameworks/native/libs/gui/view/ |
H A D | Surface.cpp | 75 size_t len; local 76 const char16_t* str = parcel->readString16Inplace(&len); 78 return String16(str, len);
|