Home
last modified time | relevance | path

Searched refs:tmpBuf (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/media/libdrm/mobile1/src/parser/
Dparser_dcf.c48 uint8_t *tmpBuf; in drm_dcfParser() local
56 tmpBuf = buffer; in drm_dcfParser()
58 pDcfInfo->Version = *(tmpBuf++); in drm_dcfParser()
61 pDcfInfo->ContentTypeLen = *(tmpBuf++); in drm_dcfParser()
62 pDcfInfo->ContentURILen = *(tmpBuf++); in drm_dcfParser()
63 strncpy((char *)pDcfInfo->ContentType, (char *)tmpBuf, pDcfInfo->ContentTypeLen); in drm_dcfParser()
64 tmpBuf += pDcfInfo->ContentTypeLen; in drm_dcfParser()
65 strncpy((char *)pDcfInfo->ContentURI, (char *)tmpBuf, pDcfInfo->ContentURILen); in drm_dcfParser()
66 tmpBuf += pDcfInfo->ContentURILen; in drm_dcfParser()
69 pDcfInfo->HeadersLen = drm_parseUintVar(tmpBuf, &varLen); in drm_dcfParser()
[all …]
Dparser_dm.c133 uint8_t tmpBuf[MAX_CONTENT_ID] = {0}; in drm_parseDM() local
149 strncpy((char *)tmpBuf, (char *)(pTmp + 1), pEnd - pTmp - 1); in drm_parseDM()
151 … if (NULL != (pTmp = (uint8_t *)memchr((char *)tmpBuf, '>', pEnd - pTmp - 1))) { in drm_parseDM()
155 sprintf((char *)pDmInfo->contentID, "%s%s", "cid:", (int8_t *)tmpBuf); in drm_parseDM()
/frameworks/base/tools/aapt/
DZipFile.cpp648 unsigned char tmpBuf[32768]; in copyFpToFp() local
654 count = fread(tmpBuf, 1, sizeof(tmpBuf), srcFp); in copyFpToFp()
660 *pCRC32 = crc32(*pCRC32, tmpBuf, count); in copyFpToFp()
662 if (fwrite(tmpBuf, 1, count, dstFp) != count) { in copyFpToFp()
704 unsigned char tmpBuf[32768]; in copyPartialFpToFp() local
713 readSize = sizeof(tmpBuf); in copyPartialFpToFp()
717 count = fread(tmpBuf, 1, readSize, srcFp); in copyPartialFpToFp()
724 *pCRC32 = crc32(*pCRC32, tmpBuf, count); in copyPartialFpToFp()
726 if (fwrite(tmpBuf, 1, count, dstFp) != count) { in copyPartialFpToFp()