/frameworks/base/media/jni/ |
H A D | android_media_MediaMetadataRetriever.cpp | 322 unsigned int len = mediaAlbumArt->mSize; local 324 jbyteArray array = env->NewByteArray(len); 330 memcpy(bytes, data, len);
|
/frameworks/base/media/libdrm/mobile1/src/objmng/ |
H A D | drm_file.c | 49 static int calcDirSize(char *path, int len, uint8_t includeSubdirs); 125 * so param len is needed. 127 * @param len length of the path buffer, not the path string length 131 static int calcDirSize(char *path, int len, uint8_t includeSubdirs) argument 142 if((dirPathLen + 2) >= MAXPATHLEN || (dirPathLen + 2) >= len) 168 if ((int)(strlen(ent->d_name) + dirPathLen + 1) < len) 187 ret = calcDirSize(path, len, includeSubdirs); 299 int len = strlen(ent->d_name); local 301 if ( (len + *iteration) > entrySize) 326 for (idx = 0; idx < len; [all...] |
/frameworks/base/media/libdrm/mobile1/src/xml/ |
H A D | xml_tinyparser.c | 584 int32_t WBXML_GetUintVar(const uint8_t *const buffer, int32_t *len) argument 596 *len = byteLen + 1; 607 int32_t num, len; local 611 if (UINTVAR_INVALID == (num = WBXML_GetUintVar(buffer, &len))) 613 buffer += len; 615 if (UINTVAR_INVALID == (num = WBXML_GetUintVar(buffer, &len))) 617 buffer += len; 619 if (UINTVAR_INVALID == (num = WBXML_GetUintVar(buffer, &len))) 621 buffer += len; 674 int32_t num, len; local [all...] |
/frameworks/av/libvideoeditor/lvpp/ |
H A D | VideoEditorAudioPlayer.cpp | 674 M4OSA_UInt32 len = mInputBuffer->range_length(); local 681 ALOGV("mix with background malloc to do len %d", len); 683 bgFrame.m_dataAddress = (M4OSA_UInt16*)M4OSA_32bitAlignedMalloc( len, 1, 685 bgFrame.m_bufferSize = len; 687 mixFrame.m_dataAddress = (M4OSA_UInt16*)M4OSA_32bitAlignedMalloc(len, 1, 689 mixFrame.m_bufferSize = len; 698 (mBGAudioPCMFileTrimmedLength - len)) { 722 (M4OSA_UInt32*)&len); 751 mBGAudioPCMFileSeekPoint += len; [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayer.cpp | 104 size_t len = strlen(url); local 105 if (len >= 5 && !strcasecmp(".m3u8", &url[len - 5])) {
|
/frameworks/av/media/libstagefright/ |
H A D | MP3Extractor.cpp | 74 size_t len = local 80 len += 10; 82 *inout_pos += len;
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | transform.c | 439 Word16 len, /*!< Length of input vector */ 446 for(i=0; i<len; i++){ 438 getScalefactorOfShortVectorStride(const Word16 *vector, Word16 len, Word16 stride) argument
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | MyTransmitter.h | 60 size_t len = local 63 if (len >= keyLen + 1 && s[keyLen] == '=' && !strncmp(s, key, keyLen)) { 64 value->setTo(&s[keyLen + 1], len - keyLen - 1);
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraClient.cpp | 113 size_t len = snprintf(buffer, SIZE, "Client[%d] (%p) PID: %d\n", local 117 len = (len > SIZE - 1) ? SIZE - 1 : len; 118 write(fd, buffer, len);
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 155 status_t BootAnimation::initTexture(void* buffer, size_t len) argument 160 SkMemoryStream stream(buffer, len);
|
/frameworks/base/core/jni/ |
H A D | android_os_Debug.cpp | 123 int len, nameLen; local 149 len = strlen(line); 150 if (len < 1) return; 151 line[--len] = 0; 328 int len = snprintf(compare, 128, "proc %d", getpid()); local 335 } while (strncmp(compare, line, len)); 338 len = snprintf(compare, 128, " %s: ", stat); 344 } while (strncmp(compare, line, len)); 347 char* ptr = line + len;
|
H A D | android_os_Parcel.cpp | 281 int32_t len = parcel->readInt32(); local 284 if (len >= 0 && len <= (int32_t)parcel->dataAvail()) { 285 ret = env->NewByteArray(len); 290 const void* data = parcel->readInplace(len); 291 memcpy(a2, data, len); 341 size_t len; local 342 const char16_t* str = parcel->readString16Inplace(&len); 344 return env->NewString(str, len);
|
H A D | android_text_format_Time.cpp | 399 jsize len = env->GetStringLength(strObj); local 400 if (len < 8) { 433 if (len > 8) { 456 if (len > 15) { 480 jsize len = env->GetStringLength(strObj); local 481 if (len < 10) { 520 if (len >= 19) { 553 if (tz_index < len && s[tz_index] == '.') { 556 } while (tz_index < len 562 if (len > tz_inde [all...] |
H A D | com_google_android_gles_jni_EGLImpl.cpp | 94 jsize len = _env->GetArrayLength(attrib_list); local 95 if (len < 1) { 99 _env->GetIntArrayRegion(attrib_list, len-1, 1, &item); 128 int len = _env->GetArrayLength(major_minor); local 129 if (len) { 132 if (len >= 1) base[0] = 1; 133 if (len >= 2) base[1] = 0; 150 int len = _env->GetArrayLength(value); local 151 if (len) { 170 int len local [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
H A D | Allocation.java | 620 private void data1DChecks(int off, int count, int len, int dataSize) { argument 632 if(len < dataSize) {
|
/frameworks/base/libs/androidfw/ |
H A D | BackupHelpers.cpp | 474 int len = strlen(key) + strlen(value) + 4; local 475 if (len > 9) len++; 476 if (len > 99) len++; 477 if (len > 999) len++; 481 return sprintf(buf, "%d %s=%s\n", len, key, value); 638 int len; local 640 // size header -- calc len i 830 int len; local 851 compare_file(const char* path, const unsigned char* data, int len) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | ShapeCache.h | 428 size_t len = strlen(name); local 429 mName = new char[len + 1]; 431 mName[len] = '\0';
|
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 186 void Font::render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, argument 189 render(paint, text, start, len, numGlyphs, x, y, BITMAP, bitmap, 192 render(paint, text, start, len, numGlyphs, x, y, FRAMEBUFFER, NULL, 197 void Font::render(SkPaint* paint, const char *text, uint32_t start, uint32_t len, argument 199 render(paint, text, start, len, numGlyphs, x, y, FRAMEBUFFER, NULL, 203 void Font::render(SkPaint* paint, const char *text, uint32_t start, uint32_t len, argument 205 if (numGlyphs == 0 || text == NULL || len == 0) { 223 float textWidth = SkScalarToFloat(paint->measureText(text, len)); 253 void Font::measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len, argument 260 render(paint, text, start, len, numGlyph 284 render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
H A D | TestEventHandler.java | 368 * @param len The length of the data 370 public void data(byte[] data, int len) { argument 374 Log.v(LOGTAG, "TestEventHandler: data() " + len + " bytes"); 383 Log.v(LOGTAG, new String(data, 0, len)); 386 if (expectDataLength == len) { 390 expectDataLength+" got:"+len); 396 for (int i = 0; i < len; i++) { 681 public void expectData(int len) { argument 683 expectDataLength = len; 686 public void expectData(byte[] data, int len) { argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | ZipFile.cpp | 1220 status_t ZipFile::EndOfCentralDir::readBuf(const unsigned char* buf, int len) argument 1225 if (len < kEOCDLen) { 1228 kEOCDLen, len); 1247 if (kEOCDLen + mCommentLen > len) { 1248 ALOGD("EOCD(%d) + comment(%d) exceeds len (%d)\n", 1249 kEOCDLen, mCommentLen, len);
|
/frameworks/base/tools/aidl/ |
H A D | aidl.cpp | 127 int len; local 142 len = end-text; 144 char* rv = (char*)malloc(len+1); 145 memcpy(rv, text, len); 146 rv[len] = '\0'; 169 size_t len; local 182 len = fn.length(); 183 if (fn[len-1] != OS_PATH_SEPARATOR) { 194 len = expected.length(); 195 for (size_t i=0; i<len; 685 size_t len = packageStr.length(); local 729 size_t len = path.length(); local 1034 int len = s.length(); local [all...] |
/frameworks/native/libs/utils/ |
H A D | Unicode.cpp | 201 size_t len = utf32_codepoint_utf8_length(*cur_utf32); local 202 utf32_codepoint_to_utf8((uint8_t *)cur, *cur_utf32++, len); 203 cur += len; 352 const size_t len = utf32_codepoint_utf8_length(utf32); local 353 utf32_codepoint_to_utf8((uint8_t*)cur, utf32, len); 354 cur += len; 516 //printf("Char at %p: len=%d, utf-16=%p\n", src, length, (void*)result); 524 /* Validate that the UTF-8 is the correct len */
|
H A D | ZipFileRO.cpp | 81 #define kLFHLen 30 // excluding variable-len fields 86 #define kCDELen 46 // excluding variable-len fields 404 /*static*/ unsigned int ZipFileRO::computeHash(const char* str, int len) argument 408 while (len--)
|
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/ |
H A D | Allocation.java | 512 private void data1DChecks(int off, int count, int len, int dataSize) { argument 524 if(len < dataSize) {
|
/frameworks/support/renderscript/v8/rs_support/ |
H A D | rsContext.cpp | 335 void Context::assignName(ObjectBase *obj, const char *name, uint32_t len) { argument 337 obj->setName(name, len); 359 uint32_t subID, size_t len, bool waitForSpace) const { 361 return mIO.sendToClient(cmdID, subID, data, len, waitForSpace); 358 sendMessageToClient(const void *data, RsMessageToClientType cmdID, uint32_t subID, size_t len, bool waitForSpace) const argument
|