/frameworks/av/drm/mediadrm/plugins/mock/ |
D | MockDrmCryptoPlugin.h | 34 bool isCryptoSchemeSupported(const uint8_t uuid[16]); 36 status_t createDrmPlugin(const uint8_t uuid[16], DrmPlugin **plugin); 44 bool isCryptoSchemeSupported(const uint8_t uuid[16]) const; 46 const uint8_t uuid[16], const void *data, size_t size, 58 status_t openSession(Vector<uint8_t> &sessionId); 59 status_t closeSession(Vector<uint8_t> const &sessionId); 61 status_t getKeyRequest(Vector<uint8_t> const &sessionId, 62 Vector<uint8_t> const &initData, 65 Vector<uint8_t> &request, String8 &defaultUrl); 67 status_t provideKeyResponse(Vector<uint8_t> const &sessionId, [all …]
|
D | MockDrmCryptoPlugin.cpp | 40 const uint8_t mock_uuid[16] = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 46 bool MockDrmFactory::isCryptoSchemeSupported(const uint8_t uuid[16]) in isCryptoSchemeSupported() 59 status_t MockDrmFactory::createDrmPlugin(const uint8_t uuid[16], DrmPlugin **plugin) in createDrmPlugin() 66 bool MockCryptoFactory::isCryptoSchemeSupported(const uint8_t uuid[16]) const in isCryptoSchemeSupported() 71 status_t MockCryptoFactory::createPlugin(const uint8_t uuid[16], const void *data, in createPlugin() 81 status_t MockDrmPlugin::openSession(Vector<uint8_t> &sessionId) in openSession() 88 sessionId.appendArray((uint8_t *)&r, sizeof(long)); in openSession() 96 status_t MockDrmPlugin::closeSession(Vector<uint8_t> const &sessionId) in closeSession() 110 status_t MockDrmPlugin::getKeyRequest(Vector<uint8_t> const &sessionId, in getKeyRequest() 111 Vector<uint8_t> const &initData, in getKeyRequest() [all …]
|
/frameworks/av/include/media/ |
D | IDrm.h | 35 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16], const String8 &mimeType) = 0; 37 virtual status_t createPlugin(const uint8_t uuid[16]) = 0; 41 virtual status_t openSession(Vector<uint8_t> &sessionId) = 0; 43 virtual status_t closeSession(Vector<uint8_t> const &sessionId) = 0; 46 getKeyRequest(Vector<uint8_t> const &sessionId, 47 Vector<uint8_t> const &initData, 50 Vector<uint8_t> &request, String8 &defaultUrl) = 0; 52 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId, 53 Vector<uint8_t> const &response, 54 Vector<uint8_t> &keySetId) = 0; [all …]
|
/frameworks/av/media/libmediaplayerservice/ |
D | Drm.h | 40 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16], const String8 &mimeType); 42 virtual status_t createPlugin(const uint8_t uuid[16]); 46 virtual status_t openSession(Vector<uint8_t> &sessionId); 48 virtual status_t closeSession(Vector<uint8_t> const &sessionId); 51 getKeyRequest(Vector<uint8_t> const &sessionId, 52 Vector<uint8_t> const &initData, 55 Vector<uint8_t> &request, String8 &defaultUrl); 57 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId, 58 Vector<uint8_t> const &response, 59 Vector<uint8_t> &keySetId); [all …]
|
D | Drm.cpp | 46 KeyedVector<Vector<uint8_t>, String8> Drm::mUUIDToLibraryPathMap; 50 static bool operator<(const Vector<uint8_t> &lhs, const Vector<uint8_t> &rhs) { in operator <() 97 Vector<uint8_t> const *sessionId, in sendEvent() 98 Vector<uint8_t> const *data) in sendEvent() 138 void Drm::findFactoryForScheme(const uint8_t uuid[16]) { in findFactoryForScheme() 146 Vector<uint8_t> uuidVector; in findFactoryForScheme() 193 bool Drm::loadLibraryForScheme(const String8 &path, const uint8_t uuid[16]) { in loadLibraryForScheme() 226 bool Drm::isCryptoSchemeSupported(const uint8_t uuid[16], const String8 &mimeType) { in isCryptoSchemeSupported() 244 status_t Drm::createPlugin(const uint8_t uuid[16]) { in createPlugin() 281 status_t Drm::openSession(Vector<uint8_t> &sessionId) { in openSession() [all …]
|
/frameworks/native/include/media/drm/ |
D | DrmAPI.h | 61 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16]) = 0; 70 const uint8_t uuid[16], DrmPlugin **plugin) = 0; 101 virtual status_t openSession(Vector<uint8_t> &sessionId) = 0; 104 virtual status_t closeSession(Vector<uint8_t> const &sessionId) = 0; 134 getKeyRequest(Vector<uint8_t> const &scope, 135 Vector<uint8_t> const &initData, 138 Vector<uint8_t> &request, String8 &defaultUrl) = 0; 154 virtual status_t provideKeyResponse(Vector<uint8_t> const &scope, 155 Vector<uint8_t> const &response, 156 Vector<uint8_t> &keySetId) = 0; [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/ |
D | DrmPlugin.h | 46 virtual status_t openSession(Vector<uint8_t>& sessionId); 48 virtual status_t closeSession(const Vector<uint8_t>& sessionId); 51 const Vector<uint8_t>& scope, 52 const Vector<uint8_t>& initData, 56 Vector<uint8_t>& request, 60 const Vector<uint8_t>& scope, 61 const Vector<uint8_t>& response, 62 Vector<uint8_t>& keySetId); 64 virtual status_t removeKeys(const Vector<uint8_t>& sessionId) { in removeKeys() 70 const Vector<uint8_t>& sessionId, in restoreKeys() [all …]
|
/frameworks/av/media/libstagefright/yuv/ |
D | YUVImage.cpp | 32 uint8_t *buffer = new uint8_t[numberOfBytes]; in YUVImage() 39 YUVImage::YUVImage(YUVFormat yuvFormat, int32_t width, int32_t height, uint8_t *buffer) { in YUVImage() 66 mYdata = (uint8_t *)mBuffer; in initializeYUVPointers() 73 mYdata = (uint8_t *)mBuffer; in initializeYUVPointers() 132 uint8_t* YUVImage::getYAddress(int32_t offset) const { in getYAddress() 136 uint8_t* YUVImage::getUAddress(int32_t offset) const { in getUAddress() 140 uint8_t* YUVImage::getVAddress(int32_t offset) const { in getVAddress() 145 uint8_t **yAddr, uint8_t **uAddr, uint8_t **vAddr) const { in getYUVAddresses() 164 uint8_t *yPtr, uint8_t *uPtr, uint8_t *vPtr) const { in getPixelValue() 167 uint8_t *yAddr; in getPixelValue() [all …]
|
D | YUVCanvas.cpp | 34 void YUVCanvas::FillYUV(uint8_t yValue, uint8_t uValue, uint8_t vValue) { in FillYUV() 43 uint8_t yValue, uint8_t uValue, uint8_t vValue) { in FillYUVRectangle() 74 uint8_t yValue; in CopyImageRect() 75 uint8_t uValue; in CopyImageRect() 76 uint8_t vValue; in CopyImageRect() 94 uint8_t yValue; in downsample() 95 uint8_t uValue; in downsample() 96 uint8_t vValue; in downsample()
|
/frameworks/av/include/media/stagefright/ |
D | YUVImage.h | 60 YUVImage(YUVFormat yuvFormat, int32_t width, int32_t height, uint8_t *buffer); 81 uint8_t *yPtr, uint8_t *uPtr, uint8_t *vPtr) const; 87 uint8_t yValue, uint8_t uValue, uint8_t vValue); 109 void yuv2rgb(uint8_t yValue, uint8_t uValue, uint8_t vValue, 110 uint8_t *r, uint8_t *g, uint8_t *b) const; 124 uint8_t *mBuffer; 130 uint8_t *mYdata; 134 uint8_t *mUdata; 138 uint8_t *mVdata; 162 uint8_t* getYAddress(int32_t offset) const; [all …]
|
/frameworks/av/include/ndk/ |
D | NdkMediaDrm.h | 43 const uint8_t *ptr; 81 AMediaDrmEventType eventType, int extra, const uint8_t *data, size_t dataSize); 92 bool AMediaDrm_isCryptoSchemeSupported(const uint8_t *uuid, const char *mimeType); 98 AMediaDrm* AMediaDrm_createByUUID(const uint8_t *uuid); 202 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType, 204 const uint8_t **keyRequest, size_t *keyRequestSize); 224 const uint8_t *response, size_t responseSize, AMediaDrmKeySetId *keySetId); 275 media_status_t AMediaDrm_getProvisionRequest(AMediaDrm *, const uint8_t **provisionRequest, 291 const uint8_t *response, size_t responseSize); 385 const uint8_t *value, size_t valueSize); [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/tests/ |
D | InitDataParserUnittest.cpp | 40 status_t attemptParse(const Vector<uint8_t>& initData, in attemptParse() 42 Vector<uint8_t>* licenseRequest) { in attemptParse() 47 void attemptParseExpectingSuccess(const Vector<uint8_t>& initData, in attemptParseExpectingSuccess() 52 Vector<uint8_t> request; in attemptParseExpectingSuccess() 70 void attemptParseExpectingFailure(const Vector<uint8_t>& initData, in attemptParseExpectingFailure() 72 Vector<uint8_t> request; in attemptParseExpectingFailure() 79 uint8_t pssh[52] = { in TEST_F() 90 Vector<uint8_t> initData; in TEST_F() 100 uint8_t pssh[84] = { in TEST_F() 115 Vector<uint8_t> initData; in TEST_F() [all …]
|
D | AesCtrDecryptorUnittest.cpp | 31 typedef uint8_t Key[kBlockSize]; 33 status_t attemptDecrypt(const Key& key, const Iv& iv, const uint8_t* source, in attemptDecrypt() 34 uint8_t* destination, const SubSample* subSamples, in attemptDecrypt() 36 Vector<uint8_t> keyVector; in attemptDecrypt() 46 const uint8_t* encrypted, in attemptDecryptExpectingSuccess() 47 const uint8_t* decrypted, in attemptDecryptExpectingSuccess() 50 uint8_t outputBuffer[totalSize] = {}; in attemptDecryptExpectingSuccess() 75 uint8_t encrypted[kTotalSize] = { in TEST_F() 86 uint8_t decrypted[kTotalSize] = { in TEST_F() 120 uint8_t encrypted[kTotalSize] = { in TEST_F() [all …]
|
/frameworks/base/core/jni/ |
D | android_nfc.h | 37 uint8_t Flags; 38 uint8_t Tnf; 39 uint8_t TypeLength; 40 uint8_t *Type; 41 uint8_t IdLength; 42 uint8_t *Id; 44 uint8_t *PayloadData; 47 uint16_t phFriNfc_NdefRecord_GetRecords(uint8_t* pBuffer, 49 uint8_t* pRawRecords[ ], 50 uint8_t IsChunked[ ], [all …]
|
/frameworks/rs/ |
D | rsStream.h | 29 IStream(const uint8_t *, bool use64); 55 inline uint8_t loadU8() { in loadU8() 56 uint8_t tmp = reinterpret_cast<const uint8_t *>(&mData[mPos])[0]; in loadU8() 57 mPos += sizeof(uint8_t); in loadU8() 73 const uint8_t * getPtr() const { in getPtr() 77 const uint8_t * mData; 103 mData[mPos++] = (uint8_t)(v & 0xff); in addI32() 104 mData[mPos++] = (uint8_t)((v >> 8) & 0xff); in addI32() 105 mData[mPos++] = (uint8_t)((v >> 16) & 0xff); in addI32() 106 mData[mPos++] = (uint8_t)((v >> 24) & 0xff); in addI32() [all …]
|
D | rsStream.cpp | 24 IStream::IStream(const uint8_t *buf, bool use64) { in IStream() 55 mData = (uint8_t*)malloc(len); in OStream() 80 mData[mPos++] = (uint8_t)(v & 0xff); in addOffset() 81 mData[mPos++] = (uint8_t)((v >> 8) & 0xff); in addOffset() 82 mData[mPos++] = (uint8_t)((v >> 16) & 0xff); in addOffset() 83 mData[mPos++] = (uint8_t)((v >> 24) & 0xff); in addOffset() 84 mData[mPos++] = (uint8_t)((v >> 32) & 0xff); in addOffset() 85 mData[mPos++] = (uint8_t)((v >> 40) & 0xff); in addOffset() 86 mData[mPos++] = (uint8_t)((v >> 48) & 0xff); in addOffset() 87 mData[mPos++] = (uint8_t)((v >> 56) & 0xff); in addOffset() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | YuvToJpegEncoder.h | 45 uint8_t* yuv, int* offsets) = 0; 55 void deinterleaveYuv(uint8_t* yuv, int width, int height, 56 uint8_t*& yPlanar, uint8_t*& uPlanar, uint8_t*& vPlanar); 57 void deinterleave(uint8_t* vuPlanar, uint8_t* uRows, uint8_t* vRows, 59 void compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets); 69 void compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets); 70 void deinterleave(uint8_t* yuv, uint8_t* yRows, uint8_t* uRows, 71 uint8_t* vRows, int rowIndex, int width, int height);
|
D | YuvToJpegEncoder.cpp | 43 compress(&cinfo, (uint8_t*) inYuv, offsets); in encode() 72 uint8_t* yuv, int* offsets) { in compress() 84 uint8_t* yPlanar = yuv + offsets[0]; in compress() 85 uint8_t* vuPlanar = yuv + offsets[1]; //width * height; in compress() 86 uint8_t* uRows = new uint8_t [8 * (width >> 1)]; in compress() 87 uint8_t* vRows = new uint8_t [8 * (width >> 1)]; in compress() 115 void Yuv420SpToJpegEncoder::deinterleave(uint8_t* vuPlanar, uint8_t* uRows, in deinterleave() 116 uint8_t* vRows, int rowIndex, int width, int height) { in deinterleave() 121 uint8_t* vu = vuPlanar + offset; in deinterleave() 148 uint8_t* yuv, int* offsets) { in compress() [all …]
|
/frameworks/av/media/libmedia/ |
D | IDrm.cpp | 75 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16], const String8 &mimeType) { in isCryptoSchemeSupported() 85 virtual status_t createPlugin(const uint8_t uuid[16]) { in createPlugin() 103 virtual status_t openSession(Vector<uint8_t> &sessionId) { in openSession() 113 virtual status_t closeSession(Vector<uint8_t> const &sessionId) { in closeSession() 124 getKeyRequest(Vector<uint8_t> const &sessionId, in getKeyRequest() 125 Vector<uint8_t> const &initData, in getKeyRequest() 128 Vector<uint8_t> &request, String8 &defaultUrl) { in getKeyRequest() 150 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId, in provideKeyResponse() 151 Vector<uint8_t> const &response, in provideKeyResponse() 152 Vector<uint8_t> &keySetId) { in provideKeyResponse() [all …]
|
/frameworks/base/libs/common_time/ |
D | common_time_server_packets.h | 54 ssize_t serializePacket(uint8_t* data, uint32_t length); 73 ssize_t serializeHeader(uint8_t* data, uint32_t length); 74 ssize_t deserializeHeader(const uint8_t* data, uint32_t length); 85 uint8_t senderDevicePriority; 93 ssize_t serializePacket(uint8_t* data, uint32_t length); 94 ssize_t deserializePacket(const uint8_t* data, uint32_t length); 101 uint8_t devicePriority; 108 ssize_t serializePacket(uint8_t* data, uint32_t length); 109 ssize_t deserializePacket(const uint8_t* data, uint32_t length); 124 ssize_t serializePacket(uint8_t* data, uint32_t length); [all …]
|
/frameworks/av/media/mtp/ |
D | MtpStringBuffer.cpp | 106 uint8_t* dest = mBuffer; in set() 110 *dest++ = (uint8_t)(0xE0 | (ch >> 12)); in set() 111 *dest++ = (uint8_t)(0x80 | ((ch >> 6) & 0x3F)); in set() 112 *dest++ = (uint8_t)(0x80 | (ch & 0x3F)); in set() 114 *dest++ = (uint8_t)(0xC0 | (ch >> 6)); in set() 115 *dest++ = (uint8_t)(0x80 | (ch & 0x3F)); in set() 127 uint8_t count; in readFromPacket() 131 uint8_t* dest = mBuffer; in readFromPacket() 138 *dest++ = (uint8_t)(0xE0 | (ch >> 12)); in readFromPacket() 139 *dest++ = (uint8_t)(0x80 | ((ch >> 6) & 0x3F)); in readFromPacket() [all …]
|
D | MtpDataPacket.cpp | 54 bool MtpDataPacket::getUInt8(uint8_t& value) { in getUInt8() 123 uint8_t value; in getAUInt8() 231 mBuffer[mOffset++] = (uint8_t)value; in putInt8() 236 void MtpDataPacket::putUInt8(uint8_t value) { in putUInt8() 238 mBuffer[mOffset++] = (uint8_t)value; in putUInt8() 245 mBuffer[mOffset++] = (uint8_t)(value & 0xFF); in putInt16() 246 mBuffer[mOffset++] = (uint8_t)((value >> 8) & 0xFF); in putInt16() 253 mBuffer[mOffset++] = (uint8_t)(value & 0xFF); in putUInt16() 254 mBuffer[mOffset++] = (uint8_t)((value >> 8) & 0xFF); in putUInt16() 261 mBuffer[mOffset++] = (uint8_t)(value & 0xFF); in putInt32() [all …]
|
/frameworks/av/media/ndk/ |
D | NdkMediaDrm.cpp | 36 typedef Vector<uint8_t> idvec_t; 54 Vector<uint8_t> mKeyRequest; 55 Vector<uint8_t> mProvisionRequest; 58 Vector<uint8_t> mPropertyByteArray; 59 List<Vector<uint8_t> > mSecureStops; 71 uint8_t *sessionIdData = new uint8_t[sessionIdSize]; in notify() 78 uint8_t *data = NULL; in notify() 80 data = new uint8_t[dataSize]; in notify() 246 Vector<uint8_t> session; in AMediaDrm_openSession() 277 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType, in AMediaDrm_getKeyRequest() [all …]
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmElement.h | 33 virtual int serializePayloadSize(uint8_t *buf); 34 virtual void serializePayload(uint8_t *buf)=0; 36 uint64_t serializeInto(uint8_t *buf); 37 uint8_t *serialize(uint64_t& size); 72 const uint8_t *data, 79 void serializePayload(uint8_t *buf); 86 void serializePayload(uint8_t *buf); 92 void serializePayload(uint8_t *buf); 98 void serializePayload(uint8_t *buf); 108 void serializePayload(uint8_t *buf); [all …]
|
/frameworks/base/libs/hwui/utils/ |
D | Blur.cpp | 95 const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) { in horizontal() 101 const uint8_t* input = source + y * width; in horizontal() 102 uint8_t* output = dest + y * width; in horizontal() 109 const uint8_t *i = input + (x - radius); in horizontal() 132 *output = (uint8_t)blurredPixel; in horizontal() 139 const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) { in vertical() 144 uint8_t* output = dest + y * width; in vertical() 149 const uint8_t* input = source + x; in vertical() 152 const uint8_t *i = input + ((y - radius) * width); in vertical() 170 const uint8_t *i = input + validH * width; in vertical() [all …]
|