Home
last modified time | relevance | path

Searched refs:bufferLen (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/media/libdrm/mobile1/src/parser/
Dparser_rel.c231 static int32_t drm_getRightValue(uint8_t * buffer, int32_t bufferLen, in drm_getRightValue() argument
285 ret = WBXML_DOM_getNode(buffer, bufferLen, sProperty); in drm_getRightValue()
302 ret = WBXML_DOM_getNode(buffer, bufferLen, sProperty); in drm_getRightValue()
326 WBXML_DOM_getNodeValue(buffer, bufferLen, sProperty, (uint8_t **)&pValue, in drm_getRightValue()
420 WBXML_DOM_getNodeValue(buffer, bufferLen, sProperty, (uint8_t **)&pValue, in drm_getRightValue()
462 WBXML_DOM_getNodeValue(buffer, bufferLen, sProperty, (uint8_t **)&pValue, in drm_getRightValue()
484 WBXML_DOM_getNodeValue(buffer, bufferLen, sProperty, (uint8_t **)&pValue, in drm_getRightValue()
507 int32_t drm_relParser(uint8_t* buffer, int32_t bufferLen, int32_t Format, T_DRM_Rights* pRights) in drm_relParser() argument
518 if (NULL != drm_strnstr(buffer, (uint8_t *)HEADERS_CONTENT_ID, bufferLen)) in drm_relParser()
580 drm_getRightValue(buffer, bufferLen, pRights, (uint8_t *)"play", 0)) in drm_relParser()
[all …]
Dparser_dm.c67 int32_t drm_parseDM(const uint8_t *buffer, int32_t bufferLen, T_DRM_DM_Info *pDmInfo) in drm_parseDM() argument
75 if (NULL == buffer || bufferLen <= 0 || NULL == pDmInfo) in drm_parseDM()
79 pBufferEnd = buffer + bufferLen; in drm_parseDM()
80 leftLen = bufferLen; in drm_parseDM()
83 pStart = drm_strnstr(buffer, (uint8_t *)"--", bufferLen); in drm_parseDM()
Dparser_dcf.c45 int32_t drm_dcfParser(uint8_t *buffer, int32_t bufferLen, T_DRM_DCF_Info *pDcfInfo, in drm_dcfParser() argument
53 if (NULL == buffer || bufferLen <= 0 || NULL == pDcfInfo) in drm_dcfParser()
/frameworks/base/media/libdrm/mobile1/src/xml/
Dxml_tinyparser.c476 uint8_t *WBXML_DOM_getNode(uint8_t *buffer, int32_t bufferLen, in WBXML_DOM_getNode() argument
486 while (i < bufferLen) { in WBXML_DOM_getNode()
501 while (i < bufferLen && buffer[i] != WBXML_ATTR_END) in WBXML_DOM_getNode()
503 if (i >= bufferLen) in WBXML_DOM_getNode()
511 while (i < bufferLen && buffer[i] != WBXML_END) in WBXML_DOM_getNode()
513 if (i >= bufferLen) in WBXML_DOM_getNode()
519 if (i >= bufferLen) { in WBXML_DOM_getNode()
529 uint8_t *WBXML_DOM_getNodeValue(uint8_t *buffer, int32_t bufferLen, in WBXML_DOM_getNodeValue() argument
539 pEnd = buffer + bufferLen; in WBXML_DOM_getNodeValue()
540 buffer = WBXML_DOM_getNode(buffer, bufferLen, node); in WBXML_DOM_getNodeValue()
[all …]
/frameworks/base/media/libdrm/mobile1/src/objmng/
Ddrm_rights_manager.c450 int32_t bufferLen; in drm_updateUidTxtWhenDelete() local
465 bufferLen = DRM_file_getFileLength(nameUcs2, nameLen); in drm_updateUidTxtWhenDelete()
466 if (bufferLen <= 0) in drm_updateUidTxtWhenDelete()
469 buffer = (uint8_t *)malloc(bufferLen); in drm_updateUidTxtWhenDelete()
485 bufferLen -= strlen((char *)idStr); in drm_updateUidTxtWhenDelete()
486 fileRes = DRM_file_read(handle, buffer, bufferLen); in drm_updateUidTxtWhenDelete()
487 buffer[bufferLen] = '\0'; in drm_updateUidTxtWhenDelete()
505 movLen = bufferLen - (pEnd - buffer); in drm_updateUidTxtWhenDelete()
507 bufferLen -= (pEnd - pStart); in drm_updateUidTxtWhenDelete()
526 DRM_file_write(handle, buffer, bufferLen); in drm_updateUidTxtWhenDelete()
/frameworks/base/media/libdrm/mobile1/include/xml/
Dxml_tinyParser.h122 uint8_t *WBXML_DOM_getNode(uint8_t *buffer, int32_t bufferLen,
124 uint8_t *WBXML_DOM_getNodeValue(uint8_t *buffer, int32_t bufferLen,
131 int32_t bufferLen);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DSmsMessage.java645 int bufferLen; in constructUserData() local
652 bufferLen = pdu.length - offset; in constructUserData()
658 bufferLen = userDataLength - (hasUserDataHeader ? (userDataHeaderLength + 1) : 0); in constructUserData()
659 if (bufferLen < 0) { in constructUserData()
660 bufferLen = 0; in constructUserData()
664 userData = new byte[bufferLen]; in constructUserData()
/frameworks/support/renderscript/v8/rs_support/
DrsThreadIO.cpp197 uint32_t *usrID, size_t bufferLen) { in getClientPayload() argument
201 if (bufferLen < mLastClientHeader.bytes) { in getClientPayload()
DrsThreadIO.h65 …geToClientType getClientPayload(void *data, size_t *receiveLen, uint32_t *subID, size_t bufferLen);
DrsContext.h97 …ToClientType getMessageToClient(void *data, size_t *receiveLen, uint32_t *subID, size_t bufferLen);
DrsContext.cpp354 …pe Context::getMessageToClient(void *data, size_t *receiveLen, uint32_t *subID, size_t bufferLen) { in getMessageToClient() argument
355 return (RsMessageToClientType)mIO.getClientPayload(data, receiveLen, subID, bufferLen); in getMessageToClient()
/frameworks/rs/
DrsThreadIO.cpp197 uint32_t *usrID, size_t bufferLen) { in getClientPayload() argument
201 if (bufferLen < mLastClientHeader.bytes) { in getClientPayload()
DrsContext.cpp193 uint32_t bufferLen = strlen(buffer); in displayDebugStats() local
199 mStateFont.renderText(buffer, bufferLen, 5, getHeight() - 6); in displayDebugStats()
202 mStateFont.renderText(buffer, bufferLen, 4, getHeight() - 7); in displayDebugStats()
640 …pe Context::getMessageToClient(void *data, size_t *receiveLen, uint32_t *subID, size_t bufferLen) { in getMessageToClient() argument
641 return (RsMessageToClientType)mIO.getClientPayload(data, receiveLen, subID, bufferLen); in getMessageToClient()
DrsThreadIO.h65 …geToClientType getClientPayload(void *data, size_t *receiveLen, uint32_t *subID, size_t bufferLen);
DrsContext.h135 …ToClientType getMessageToClient(void *data, size_t *receiveLen, uint32_t *subID, size_t bufferLen);
/frameworks/base/media/libdrm/mobile1/include/parser/
Dparser_dm.h95 int32_t drm_parseDM(const uint8_t* buffer, int32_t bufferLen, T_DRM_DM_Info* pDmInfo);
Dparser_dcf.h84 int32_t drm_dcfParser(uint8_t *buffer, int32_t bufferLen, T_DRM_DCF_Info *pDcfInfo,
Dparser_rel.h117 int32_t drm_relParser(uint8_t* buffer, int32_t bufferLen, int32_t Format, T_DRM_Rights* pRights);
/frameworks/av/drm/common/
DIDrmManagerService.cpp94 const int bufferLen = data.readInt32(); in readDecryptHandleFromParcelData() local
95 if (INVALID_BUFFER_LENGTH != bufferLen) { in readDecryptHandleFromParcelData()
97 handle->decryptInfo->decryptBufferLength = bufferLen; in readDecryptHandleFromParcelData()