Home
last modified time | relevance | path

Searched refs:pssh (Results 1 – 8 of 8) sorted by relevance

/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/
DInitDataParserUnittest.cpp79 uint8_t pssh[52] = { in TEST_F() local
91 initData.appendArray(pssh, 52); in TEST_F()
100 uint8_t pssh[84] = { in TEST_F() local
116 initData.appendArray(pssh, 84); in TEST_F()
141 uint8_t pssh[16] = { in TEST_F() local
148 initData.appendArray(pssh, 16); in TEST_F()
164 uint8_t pssh[52] = { in TEST_F() local
176 initData.appendArray(pssh, 52); in TEST_F()
182 uint8_t pssh[52] = { in TEST_F() local
194 initData.appendArray(pssh, 52); in TEST_F()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDrm.cpp89 Vector<DrmUUID> NuPlayerDrm::parsePSSH(const void *pssh, size_t psshsize) in parsePSSH() argument
103 const uint8_t *data = (const uint8_t*)pssh; in parsePSSH()
151 Vector<DrmUUID> NuPlayerDrm::getSupportedDrmSchemes(const void *pssh, size_t psshsize) in getSupportedDrmSchemes() argument
153 Vector<DrmUUID> psshDRMs = parsePSSH(pssh, psshsize); in getSupportedDrmSchemes()
212 void NuPlayerDrm::retrieveDrmInfo(const void *pssh, size_t psshsize, Parcel *parcel) in retrieveDrmInfo() argument
216 parcel->writeByteArray(psshsize, (const uint8_t*)pssh); in retrieveDrmInfo()
219 DrmUUID::arrayToHex((uint8_t*)pssh, psshsize).string()); in retrieveDrmInfo()
222 Vector<DrmUUID> supportedDRMs = getSupportedDrmSchemes(pssh, psshsize); in retrieveDrmInfo()
DNuPlayerDrm.h78 static Vector<DrmUUID> parsePSSH(const void *pssh, size_t psshsize);
79 static Vector<DrmUUID> getSupportedDrmSchemes(const void *pssh, size_t psshsize);
87 static void retrieveDrmInfo(const void *pssh, size_t psshsize, Parcel *parcel);
DGenericSource.cpp1696 const void *pssh; in checkDrmInfo() local
1699 if (!mFileMeta->findData(kKeyPssh, &type, &pssh, &psshsize)) { in checkDrmInfo()
1705 NuPlayerDrm::retrieveDrmInfo(pssh, psshsize, &parcel); in checkDrmInfo()
/frameworks/av/media/libstagefright/
DNuMediaExtractor.cpp290 const void *pssh; in getFileFormat() local
292 if (meta->findData(kKeyPssh, &type, &pssh, &psshsize)) { in getFileFormat()
294 memcpy(buf->data(), pssh, psshsize); in getFileFormat()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp1379 PsshInfo pssh; in parseChunk() local
1381 if (mDataSource->readAt(data_offset + 4, &pssh.uuid, 16) < 16) { in parseChunk()
1389 pssh.datalen = ntohl(psshdatalen); in parseChunk()
1390 ALOGV("pssh data size: %d", pssh.datalen); in parseChunk()
1391 if (chunk_size < 20 || pssh.datalen > chunk_size - 20) { in parseChunk()
1396 pssh.data = new (std::nothrow) uint8_t[pssh.datalen]; in parseChunk()
1397 if (pssh.data == NULL) { in parseChunk()
1400 ALOGV("allocated pssh @ %p", pssh.data); in parseChunk()
1401 ssize_t requested = (ssize_t) pssh.datalen; in parseChunk()
1402 if (mDataSource->readAt(data_offset + 24, pssh.data, requested) < requested) { in parseChunk()
[all …]
/frameworks/base/media/java/android/media/
DMediaPlayer.java5056 byte[] pssh = new byte[psshsize]; in DrmInfo()
5057 parcel.readByteArray(pssh); in DrmInfo()
5059 Log.v(TAG, "DrmInfo() PSSH: " + arrToHex(pssh)); in DrmInfo()
5060 mapPssh = parsePSSH(pssh, psshsize); in DrmInfo()
5102 private Map<UUID, byte[]> parsePSSH(byte[] pssh, int psshsize) { in parsePSSH() argument
5119 byte[] subset = Arrays.copyOfRange(pssh, i, i + UUID_SIZE); in parsePSSH()
5131 subset = Arrays.copyOfRange(pssh, i, i+DATALEN_SIZE); in parsePSSH()
5146 byte[] data = Arrays.copyOfRange(pssh, i, i+datalen); in parsePSSH()
/frameworks/av/media/extractors/fuzzers/
Dmp4_extractor_fuzzer.dict71 kw70="pssh"