Home | History | Annotate | Download | only in clearkey

Lines Matching refs:initData

43 android::status_t InitDataParser::parse(const Vector<uint8_t>& initData,
49 android::status_t res = parsePssh(initData, &keyIds);
55 if (initData.size() != kKeyIdSize) {
58 keyIds.push(initData.array());
72 android::status_t InitDataParser::parsePssh(const Vector<uint8_t>& initData,
77 uint32_t expectedSize = initData.size();
79 if (memcmp(&initData[readPosition], &expectedSize,
87 if (memcmp(&initData[readPosition], psshIdentifier,
95 if (memcmp(&initData[readPosition], psshVersion1,
102 if (!isClearKeyUUID(&initData[readPosition])) {
109 memcpy(&keyIdCount, &initData[readPosition], sizeof(keyIdCount));
113 initData.size() - sizeof(uint32_t)) {
120 keyIds->push(&initData[keyIdPosition]);