/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], 45 bool isCryptoSchemeSupported(const uint8_t uuid[16]) const; 47 const uint8_t uuid[16], const void *data, size_t size, 59 status_t openSession(Vector<uint8_t> &sessionId); 60 status_t closeSession(Vector<uint8_t> const &sessionId); 62 status_t getKeyRequest(Vector<uint8_t> const &sessionId, 63 Vector<uint8_t> const &initData, 66 Vector<uint8_t> &request, String8 &defaultUrl, 69 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], in createDrmPlugin() 67 bool MockCryptoFactory::isCryptoSchemeSupported(const uint8_t uuid[16]) const in isCryptoSchemeSupported() 72 status_t MockCryptoFactory::createPlugin(const uint8_t /* uuid */[16], in createPlugin() 83 status_t MockDrmPlugin::openSession(Vector<uint8_t> &sessionId) in openSession() 90 sessionId.appendArray((uint8_t *)&r, sizeof(long)); in openSession() 98 status_t MockDrmPlugin::closeSession(Vector<uint8_t> const &sessionId) in closeSession() 112 status_t MockDrmPlugin::getKeyRequest(Vector<uint8_t> const &sessionId, in getKeyRequest() 113 Vector<uint8_t> const &initData, in getKeyRequest() [all …]
|
/frameworks/av/drm/libmediadrm/include/mediadrm/ |
D | IDrm.h | 45 virtual status_t isCryptoSchemeSupported(const uint8_t uuid[16], 50 virtual status_t createPlugin(const uint8_t uuid[16], 56 Vector<uint8_t> &sessionId) = 0; 58 virtual status_t closeSession(Vector<uint8_t> const &sessionId) = 0; 61 getKeyRequest(Vector<uint8_t> const &sessionId, 62 Vector<uint8_t> const &initData, 65 Vector<uint8_t> &request, String8 &defaultUrl, 68 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId, 69 Vector<uint8_t> const &response, 70 Vector<uint8_t> &keySetId) = 0; [all …]
|
D | DrmHal.h | 58 inline bool operator==(const Vector<uint8_t> &l, const Vector<uint8_t> &r) { 73 virtual status_t isCryptoSchemeSupported(const uint8_t uuid[16], 78 virtual status_t createPlugin(const uint8_t uuid[16], 84 Vector<uint8_t> &sessionId); 86 virtual status_t closeSession(Vector<uint8_t> const &sessionId); 89 getKeyRequest(Vector<uint8_t> const &sessionId, 90 Vector<uint8_t> const &initData, 93 Vector<uint8_t> &request, String8 &defaultUrl, 96 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId, 97 Vector<uint8_t> const &response, [all …]
|
/frameworks/native/headers/media_plugin/media/drm/ |
D | DrmAPI.h | 61 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16]) = 0; 70 const uint8_t uuid[16], DrmPlugin **plugin) = 0; 126 Vector<uint8_t> mKeyId; 198 virtual status_t openSession(Vector<uint8_t> &sessionId) = 0; 201 virtual status_t closeSession(Vector<uint8_t> const &sessionId) = 0; 231 getKeyRequest(Vector<uint8_t> const &scope, 232 Vector<uint8_t> const &initData, 235 Vector<uint8_t> &request, String8 &defaultUrl, 252 virtual status_t provideKeyResponse(Vector<uint8_t> const &scope, 253 Vector<uint8_t> const &response, [all …]
|
/frameworks/base/tools/aapt2/compile/ |
D | NinePatch_test.cpp | 35 static uint8_t* k2x2[] = { 36 (uint8_t*)WHITE WHITE, (uint8_t*)WHITE WHITE, 39 static uint8_t* kMixedNeutralColor3x3[] = { 40 (uint8_t*)WHITE BLACK TRANS, (uint8_t*)TRANS RED TRANS, 41 (uint8_t*)WHITE WHITE WHITE, 44 static uint8_t* kTransparentNeutralColor3x3[] = { 45 (uint8_t*)TRANS BLACK TRANS, (uint8_t*)BLACK RED BLACK, 46 (uint8_t*)TRANS BLACK TRANS, 49 static uint8_t* kSingleStretch7x6[] = { 50 (uint8_t*)WHITE WHITE BLACK BLACK BLACK WHITE WHITE, [all …]
|
/frameworks/native/libs/vr/libpdx/fuzz/ |
D | serialization_fuzzer.cpp | 55 void FuzzSerializeDeserialize(const uint8_t* data, size_t size) { in FuzzSerializeDeserialize() 62 uint8_t u8_val = fdp.ConsumeIntegral<uint8_t>(); in FuzzSerializeDeserialize() 73 std::vector<uint8_t> vec_val = in FuzzSerializeDeserialize() 74 fdp.ConsumeBytes<uint8_t>(fdp.remaining_bytes()); in FuzzSerializeDeserialize() 111 void FuzzDeserializeUint8(const uint8_t* data, size_t size) { in FuzzDeserializeUint8() 113 Payload buffer = {ENCODING_TYPE_UINT8, fdp.ConsumeIntegral<uint8_t>()}; in FuzzDeserializeUint8() 114 std::uint8_t result; in FuzzDeserializeUint8() 118 void FuzzDeserializeUint16(const uint8_t* data, size_t size) { in FuzzDeserializeUint16() 120 Payload buffer = {ENCODING_TYPE_UINT16, fdp.ConsumeIntegral<uint8_t>(), in FuzzDeserializeUint16() 121 fdp.ConsumeIntegral<uint8_t>()}; in FuzzDeserializeUint16() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/ |
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>& mimeType, 56 Vector<uint8_t>& request, 61 const Vector<uint8_t>& scope, 62 const Vector<uint8_t>& response, 63 Vector<uint8_t>& keySetId); 65 virtual status_t removeKeys(const Vector<uint8_t>& sessionId) { in removeKeys() 74 const Vector<uint8_t>& sessionId, in restoreKeys() [all …]
|
/frameworks/av/media/libstagefright/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/drm/mediadrm/plugins/clearkey/hidl/include/ |
D | DrmPlugin.h | 81 Return<Status> closeSession(const hidl_vec<uint8_t>& sessionId) override; 84 const hidl_vec<uint8_t>& scope, 85 const hidl_vec<uint8_t>& initData, 92 const hidl_vec<uint8_t>& scope, 93 const hidl_vec<uint8_t>& initData, 100 const hidl_vec<uint8_t>& scope, 101 const hidl_vec<uint8_t>& initData, 108 const hidl_vec<uint8_t>& scope, 109 const hidl_vec<uint8_t>& response, 112 Return<Status> removeKeys(const hidl_vec<uint8_t>& sessionId) { in removeKeys() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/ |
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() 37 keyVector.appendArray(key, sizeof(key) / sizeof(uint8_t)); in attemptDecrypt() 46 const uint8_t* encrypted, in attemptDecryptExpectingSuccess() 47 const uint8_t* decrypted, in attemptDecryptExpectingSuccess() 50 uint8_t outputBuffer[totalSize] = {}; in attemptDecryptExpectingSuccess() 70 uint8_t source[kTotalSize] = { 0 }; in TEST_F() 71 uint8_t destination[kTotalSize] = { 0 }; in TEST_F() [all …]
|
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 …]
|
/frameworks/native/libs/gralloc/types/fuzzer/ |
D | main.cpp | 30 const std::vector<GrallocTypesDecode>& decodes, uint8_t instruction, in doFuzz() 31 const std::vector<uint8_t>& input) { in doFuzz() 33 ::android::hardware::hidl_vec<uint8_t> vec; in doFuzz() 34 vec.setToExternal(const_cast<uint8_t*>(input.data()), input.size(), false /*shouldOwn*/); in doFuzz() 38 uint8_t decodeIdx = instruction % decodes.size(); in doFuzz() 46 size_t fillInMetadataType(const std::vector<uint8_t>& input, MetadataType* outMetadataType) { in fillInMetadataType() 55 uint8_t nameLen = *(input.data() + size); in fillInMetadataType() 67 const std::vector<GrallocTypesVendorHelperDecode>& decodes, uint8_t instruction, in doFuzzVendorHelper() 68 const std::vector<uint8_t>& input) { in doFuzzVendorHelper() 76 ::android::hardware::hidl_vec<uint8_t> vec; in doFuzzVendorHelper() [all …]
|
/frameworks/av/media/ndk/include/media/ |
D | NdkMediaDrm.h | 51 const uint8_t *ptr; 159 AMediaDrmEventType eventType, int extra, const uint8_t *data, size_t dataSize); 178 bool AMediaDrm_isCryptoSchemeSupported(const uint8_t *uuid, 187 AMediaDrm* AMediaDrm_createByUUID(const uint8_t *uuid) __INTRODUCED_IN(21); 295 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType, 297 const uint8_t **keyRequest, size_t *keyRequestSize) __INTRODUCED_IN(21); 318 const uint8_t *response, size_t responseSize, 379 media_status_t AMediaDrm_getProvisionRequest(AMediaDrm *, const uint8_t **provisionRequest, 397 const uint8_t *response, size_t responseSize) __INTRODUCED_IN(21); 503 const uint8_t *value, size_t valueSize) __INTRODUCED_IN(21); [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/libs/hwui/jni/ |
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);
|
/frameworks/base/libs/protoutil/src/ |
D | EncodedBuffer.cpp | 103 uint8_t* buf = mBuffers[i]; in ~EncodedBuffer() 108 inline uint8_t* 134 uint8_t* 139 uint8_t* buf = NULL; in writeBuffer() 143 buf = (uint8_t*)mmap(NULL, mChunkSize, PROT_READ | PROT_WRITE, in writeBuffer() 160 EncodedBuffer::writeRawByte(uint8_t val) in writeRawByte() 173 writeRawByte((uint8_t) val); in writeRawVarint64() 176 writeRawByte((uint8_t)((val & 0x7F) | 0x80)); in writeRawVarint64() 192 writeRawByte((uint8_t) val); in writeRawFixed32() 193 writeRawByte((uint8_t) (val>>8)); in writeRawFixed32() [all …]
|
D | protobuf.cpp | 22 uint8_t 25 return (uint8_t) (varint & WIRE_TYPE_MASK); in read_wire_type() 45 uint8_t* 46 write_raw_varint(uint8_t* buf, uint64_t val) in write_raw_varint() 48 uint8_t* p = buf; in write_raw_varint() 51 *p++ = (uint8_t)val; in write_raw_varint() 54 *p++ = (uint8_t)((val & 0x7F) | 0x80); in write_raw_varint() 60 uint8_t* 61 write_length_delimited_tag_header(uint8_t* buf, uint32_t fieldId, size_t size) in write_length_delimited_tag_header()
|
/frameworks/native/cmds/idlcli/vibrator/ |
D | CommandPerform.cpp | 35 static_assert(static_cast<uint8_t>(V1_0::EffectStrength::LIGHT) == 36 static_cast<uint8_t>(aidl::EffectStrength::LIGHT)); 37 static_assert(static_cast<uint8_t>(V1_0::EffectStrength::MEDIUM) == 38 static_cast<uint8_t>(aidl::EffectStrength::MEDIUM)); 39 static_assert(static_cast<uint8_t>(V1_0::EffectStrength::STRONG) == 40 static_cast<uint8_t>(aidl::EffectStrength::STRONG)); 41 static_assert(static_cast<uint8_t>(V1_3::Effect::CLICK) == 42 static_cast<uint8_t>(aidl::Effect::CLICK)); 43 static_assert(static_cast<uint8_t>(V1_3::Effect::DOUBLE_CLICK) == 44 static_cast<uint8_t>(aidl::Effect::DOUBLE_CLICK)); [all …]
|
/frameworks/base/libs/protoutil/include/android/util/ |
D | protobuf.h | 26 const uint8_t WIRE_TYPE_MASK = (1 << FIELD_ID_SHIFT) - 1; 28 const uint8_t WIRE_TYPE_VARINT = 0; 29 const uint8_t WIRE_TYPE_FIXED64 = 1; 30 const uint8_t WIRE_TYPE_LENGTH_DELIMITED = 2; 31 const uint8_t WIRE_TYPE_FIXED32 = 5; 36 uint8_t read_wire_type(uint32_t varint); 52 uint8_t* write_raw_varint(uint8_t* buf, uint64_t val); 58 uint8_t* write_length_delimited_tag_header(uint8_t* buf, uint32_t fieldId, size_t size);
|
/frameworks/av/services/camera/libcameraservice/tests/ |
D | NV12Compressor.h | 52 static android::status_t findJpegSize(uint8_t *jpegBuffer, size_t maxSize, 55 static android::status_t getExifOrientation(uint8_t *jpegBuffer, 62 static android::status_t getJpegImageDimensions(uint8_t *jpegBuffer, size_t jpegBufferSize, 86 static const uint8_t kMarker = 0xFF; // First byte of marker 87 static const uint8_t kStartOfImage = 0xD8; // Start of Image 88 static const uint8_t kEndOfImage = 0xD9; // End of Image 89 static const uint8_t kStartOfFrame = 0xC0; // Start of Frame 92 uint8_t marker[kMarkerLength]; 98 uint8_t precision; 104 static bool checkStartOfFrame(uint8_t* buf) { in checkStartOfFrame() [all …]
|
/frameworks/av/drm/libmediadrm/fuzzer/ |
D | mediadrm_fuzzer.cpp | 43 static const uint8_t kInvalidUUID[16] = {0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80, 46 static const uint8_t kCommonPsshBoxUUID[16] = {0x10, 0x77, 0xEF, 0xEC, 0xC0, 0xB2, 0x4D, 0x02, 49 static const uint8_t kClearKeyUUID[16] = {0xE2, 0x71, 0x9D, 0x58, 0xA9, 0x85, 0xB3, 0xC9, 87 const hardware::hidl_vec<uint8_t> &sessionId UNUSED_PARAM, in sendEvent() 88 const hardware::hidl_vec<uint8_t> &data UNUSED_PARAM) override {} in sendEvent() 90 void sendExpirationUpdate(const hardware::hidl_vec<uint8_t> &sessionId UNUSED_PARAM, in sendExpirationUpdate() 93 void sendKeysChange(const hardware::hidl_vec<uint8_t> &sessionId UNUSED_PARAM, in sendKeysChange() 97 void sendSessionLostState(const hardware::hidl_vec<uint8_t> &) override {} in sendSessionLostState() 106 void process(const uint8_t *data, size_t size); 109 void invokeDrm(const uint8_t *data, size_t size); [all …]
|
/frameworks/minikin/libs/minikin/ |
D | Locale.h | 41 enum class SubtagBits : uint8_t { 52 return static_cast<SubtagBits>(static_cast<uint8_t>(l) & static_cast<uint8_t>(r)); 55 return static_cast<SubtagBits>(static_cast<uint8_t>(l) | static_cast<uint8_t>(r)); 59 enum class EmojiStyle : uint8_t { 67 enum class LineBreakStyle : uint8_t { 178 static const uint8_t kBopomofoFlag = 1u; 179 static const uint8_t kHanFlag = 1u << 1; 180 static const uint8_t kHangulFlag = 1u << 2; 181 static const uint8_t kHiraganaFlag = 1u << 3; 182 static const uint8_t kKatakanaFlag = 1u << 4; [all …]
|
/frameworks/av/media/libstagefright/colorconversion/ |
D | SoftwareRenderer.cpp | 36 uint8_t **dst_y, uint8_t **dst_u, uint8_t **dst_v) { in initDstYUV() 37 *dst_y = (uint8_t *)ycbcr.y + cropTop * ycbcr.ystride + cropLeft; in initDstYUV() 40 *dst_v = (uint8_t *)ycbcr.cr + c_offset; in initDstYUV() 41 *dst_u = (uint8_t *)ycbcr.cb + c_offset; in initDstYUV() 304 const uint8_t *src_y = (const uint8_t *)data + mCropTop * mStride + mCropLeft; in render() 305 const uint8_t *src_u = (const uint8_t *)data + mStride * mHeight + mCropTop * mStride / 4; in render() 306 const uint8_t *src_v = (const uint8_t *)src_u + mStride * mHeight / 4; in render() 308 uint8_t *dst_y, *dst_u, *dst_v; in render() 328 const uint8_t *src_y = (const uint8_t *)data + mCropTop * mStride + mCropLeft * 2; in render() 329 const uint8_t *src_u = (const uint8_t *)data + mStride * mHeight + mCropTop * mStride / 4; in render() [all …]
|