/frameworks/wilhelm/src/ |
H A D | data.c | 193 size_t len = strlen((const char *) pDataLocator->mURI.URI); local 194 SLchar *myURI = (SLchar *) malloc(len + 1); 198 memcpy(myURI, pDataLocator->mURI.URI, len + 1); 201 if ('\0' != myURI[len]) { 485 size_t len = strlen((const char *) pDataFormat->mMIME.mimeType); local 486 SLchar *myMIME = (SLchar *) malloc(len + 1); 490 memcpy(myMIME, pDataFormat->mMIME.mimeType, len + 1); 492 if ('\0' != myMIME[len]) {
|
/frameworks/av/libvideoeditor/osal/src/ |
H A D | M4OSA_FileCommon.c | 331 M4OSA_UInt32 len, size_needed, size_given; local 339 len = wcslen(w_str); 340 size_needed = len+1; 350 for (i=0; i<len; i++) 354 pBufferOut[len]=0;
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerFactory.cpp | 210 size_t len = strlen(url); local 211 if (len >= 5 && !strcasecmp(".m3u8", &url[len - 5])) { 260 int len = strlen(FILE_EXTS[i]); local 261 int start = lenURL - len; 263 if (!strncasecmp(url + start, FILE_EXTS[i], len)) {
|
/frameworks/av/media/libstagefright/ |
H A D | DRMExtractor.cpp | 133 size_t len = (*buffer)->range_length(); local 137 DrmBuffer encryptedDrmBuffer(src, len); 139 decryptedDrmBuffer.length = len; 140 decryptedDrmBuffer.data = new char[len]; 163 len = decryptedDrmBuffer.length; 164 while (srcOffset < len) { 165 CHECK(srcOffset + mNALLengthSize <= len); 189 if (srcOffset + nalLength > len) { 213 CHECK_EQ(srcOffset, len);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_decoder.c | 132 len length of the buffer in bytes 151 u32 h264bsdDecode(storage_t *pStorage, u8 *byteStrm, u32 len, u32 picId, argument 170 ASSERT(len); 184 tmp = h264bsdExtractNalUnit(byteStrm, len, &strm, readBytes);
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AMPEG4ElementaryAssembler.cpp | 50 size_t len = local 53 if (len >= keyLen + 1 && s[keyLen] == '=' 55 value->setTo(&s[keyLen + 1], len - keyLen - 1);
|
/frameworks/base/cmds/installd/ |
H A D | installd.h | 88 size_t len; member in struct:__anon948
|
/frameworks/base/cmds/servicemanager/ |
H A D | service_manager.c | 97 unsigned len; member in struct:svcinfo 103 struct svcinfo *find_svc(uint16_t *s16, unsigned len) argument 108 if ((len == si->len) && 109 !memcmp(s16, si->name, len * sizeof(uint16_t))) { 132 void *do_find_service(struct binder_state *bs, uint16_t *s, unsigned len, unsigned uid) argument 135 si = find_svc(s, len); 154 uint16_t *s, unsigned len, 161 if (!ptr || (len == 0) || (len > 12 153 do_add_service(struct binder_state *bs, uint16_t *s, unsigned len, void *ptr, unsigned uid, int allow_isolated) argument 208 unsigned len; local [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | TypedArray.java | 730 /*package*/ TypedArray(Resources resources, int[] data, int[] indices, int len) { argument 734 mLength = len;
|
/frameworks/base/core/java/android/text/format/ |
H A D | DateFormat.java | 476 private static int skipQuotedText(CharSequence s, int i, int len) { argument 477 if (i + 1 < len && s.charAt(i + 1) == QUOTE) { 485 while (i < len) { 491 if (i + 1 < len && s.charAt(i + 1) == QUOTE) { 517 int len = inFormat.length(); 519 for (int i = 0; i < len; i += count) { 526 count = appendQuotedText(s, i, len); 527 len = s.length(); 531 while ((i + count < len) && (s.charAt(i + count) == c)) { 601 len 667 appendQuotedText(SpannableStringBuilder s, int i, int len) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | Base64.java | 88 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/core/java/com/android/internal/util/ |
H A D | FastXmlSerializer.java | 134 private void escapeAndAppendString(char[] buf, int start, int len) throws IOException { argument 137 int end = start+len; 345 public XmlSerializer text(char[] buf, int start, int len) throws IOException, argument 351 escapeAndAppendString(buf, start, len);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapRegionDecoder.cpp | 55 size_t len; local 58 while ((len = stream->read(data + streamLen, 60 streamLen += len;
|
H A D | HarfbuzzSkia.cpp | 191 HB_Error harfbuzzSkiaGetTable(void* font, const HB_Tag tag, HB_Byte* buffer, HB_UInt* len) argument 204 *len = tableSize; 208 if (*len < tableSize)
|
/frameworks/base/core/jni/ |
H A D | android_emoji_EmojiFactory.cpp | 129 jsize len = env->GetStringLength(name); local 130 String8 str(String16(jchars, len));
|
H A D | android_util_EventLog.cpp | 74 jint len = strlen(str); local 75 const int 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...] |
H A D | android_util_XmlBlock.cpp | 36 jint off, jint len) 44 if (off < 0 || off >= bLen || len < 0 || len > bLen || (off+len) > bLen) { 50 ResXMLTree* osb = new ResXMLTree(b+off, len, true); 34 android_content_XmlBlock_nativeCreate(JNIEnv* env, jobject clazz, jbyteArray bArray, jint off, jint len) argument
|
/frameworks/base/media/java/android/drm/mobile1/ |
H A D | DrmRawContent.java | 128 * @param len the length of raw data can be read. 131 public DrmRawContent(InputStream inRawdata, int len, String mimeTypeStr) throws DrmException, IOException { argument 136 inDataLen = len; 145 if (len <= 0) 146 throw new IllegalArgumentException("len must be > 0"); 284 int len = nativeGetContentLength(); 286 if (JNI_DRM_FAILURE == len) 290 if (JNI_DRM_UNKNOWN_DATA_LEN == len) 293 int availableLen = len - offset; 324 public int read(byte[] b, int off, int len) throw argument 394 nativeConstructDrmContent(InputStream data, int len, int mimeType) argument 428 nativeReadContent(byte[] buf, int bufOff, int len, int mediaOff) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaScanner.cpp | 310 long len = *((long*)data); local 312 jbyteArray array = env->NewByteArray(len); 315 memcpy(bytes, data + 4, len);
|
/frameworks/base/media/libdrm/mobile1/src/objmng/ |
H A D | drm_i18n.c | 220 int32_t len; local 226 len = charsToConvert = mbsLen > bufSizeInWideChar ? bufSizeInWideChar : mbsLen; 227 if (len < 0) 229 while (len--) { 380 int32_t len; local 386 len = charsToConvert = (mbsLen / 2) > bufSizeInWideChar ? bufSizeInWideChar : (mbsLen / 2); 387 while (len--) { 414 int32_t len; local 420 len = charsToConvert = (mbsLen / 2) > bufSizeInWideChar ? bufSizeInWideChar : (mbsLen / 2); 421 while (len [all...] |
H A D | drm_rights_manager.c | 22 static int32_t drm_getString(uint8_t* string, int32_t len, int32_t handle) argument 26 for (i = 0; i < len; i++) { 579 uint64_t i, len, wlen = DRM_ONE_AES_BLOCK_LEN, curLen, restLen; local 588 len = 2 * DRM_ONE_AES_BLOCK_LEN; 590 len = restLen; 592 memcpy(dbuf, Buffer, (size_t)len); 593 restLen -= len; 594 Buffer += len; 596 if (len < 2 * DRM_ONE_AES_BLOCK_LEN) { /* The original file is less than one block in length */ 597 len 673 int32_t len = DRM_TWO_AES_BLOCK_LEN; local [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | SerializedFrame.java | 97 public final void write(byte b[], int off, int len) { argument 98 ensureFit(len); 99 System.arraycopy(b, off, mBuffer, mOffset, len); 100 mOffset += len; 144 public final int read(byte[] b, int off, int len) { argument 148 if ((mPos + len) > mSize) { 149 len = mSize - mPos; 151 System.arraycopy(mBuffer, mPos, b, off, len); 152 mPos += len; 153 return len; [all...] |
/frameworks/base/media/tests/players/ |
H A D | invoke_mock_media_player.cpp | 111 const size_t len = request.dataAvail(); local 113 reply->setData(static_cast<const uint8_t*>(request.readInplace(len)), len); local
|
/frameworks/base/obex/javax/obex/ |
H A D | ApplicationParameter.java | 116 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/java/com/android/server/pm/ |
H A D | Installer.java | 87 private boolean readBytes(byte buffer[], int len) { argument 89 if (len < 0) 91 while (off != len) { 93 count = mIn.read(buffer, off, len - off); 105 Slog.i(TAG, "read " + len + " bytes"); 107 if (off == len) 114 int len; 118 len = (((int) buf[0]) & 0xff) | ((((int) buf[1]) & 0xff) << 8); 119 if ((len < 1) || (len > 102 [all...] |