Home
last modified time | relevance | path

Searched refs:uint8_t (Results 1 – 25 of 1758) sorted by relevance

12345678910>>...71

/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.h34 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 …]
DMockDrmCryptoPlugin.cpp40 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/include/mediadrm/
DIDrm.h37 virtual status_t isCryptoSchemeSupported(const uint8_t uuid[16],
42 virtual status_t createPlugin(const uint8_t uuid[16],
48 Vector<uint8_t> &sessionId) = 0;
50 virtual status_t closeSession(Vector<uint8_t> const &sessionId) = 0;
53 getKeyRequest(Vector<uint8_t> const &sessionId,
54 Vector<uint8_t> const &initData,
57 Vector<uint8_t> &request, String8 &defaultUrl,
60 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId,
61 Vector<uint8_t> const &response,
62 Vector<uint8_t> &keySetId) = 0;
[all …]
DDrmHal.h54 inline bool operator==(const Vector<uint8_t> &l, const Vector<uint8_t> &r) {
67 virtual status_t isCryptoSchemeSupported(const uint8_t uuid[16],
72 virtual status_t createPlugin(const uint8_t uuid[16],
78 Vector<uint8_t> &sessionId);
80 virtual status_t closeSession(Vector<uint8_t> const &sessionId);
83 getKeyRequest(Vector<uint8_t> const &sessionId,
84 Vector<uint8_t> const &initData,
87 Vector<uint8_t> &request, String8 &defaultUrl,
90 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId,
91 Vector<uint8_t> const &response,
[all …]
/frameworks/av/media/libmedia/include/media/
DIDrm.h37 virtual status_t isCryptoSchemeSupported(const uint8_t uuid[16],
42 virtual status_t createPlugin(const uint8_t uuid[16],
48 Vector<uint8_t> &sessionId) = 0;
50 virtual status_t closeSession(Vector<uint8_t> const &sessionId) = 0;
53 getKeyRequest(Vector<uint8_t> const &sessionId,
54 Vector<uint8_t> const &initData,
57 Vector<uint8_t> &request, String8 &defaultUrl,
60 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId,
61 Vector<uint8_t> const &response,
62 Vector<uint8_t> &keySetId) = 0;
[all …]
DDrmHal.h54 inline bool operator==(const Vector<uint8_t> &l, const Vector<uint8_t> &r) {
67 virtual status_t isCryptoSchemeSupported(const uint8_t uuid[16],
72 virtual status_t createPlugin(const uint8_t uuid[16],
78 Vector<uint8_t> &sessionId);
80 virtual status_t closeSession(Vector<uint8_t> const &sessionId);
83 getKeyRequest(Vector<uint8_t> const &sessionId,
84 Vector<uint8_t> const &initData,
87 Vector<uint8_t> &request, String8 &defaultUrl,
90 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId,
91 Vector<uint8_t> const &response,
[all …]
/frameworks/native/headers/media_plugin/media/drm/
DDrmAPI.h61 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/
DNinePatch_test.cpp35 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/av/drm/mediadrm/plugins/clearkey/default/include/
DDrmPlugin.h46 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/drm/mediadrm/plugins/clearkey/hidl/include/
DDrmPlugin.h78 Return<Status> closeSession(const hidl_vec<uint8_t>& sessionId) override;
81 const hidl_vec<uint8_t>& scope,
82 const hidl_vec<uint8_t>& initData,
89 const hidl_vec<uint8_t>& scope,
90 const hidl_vec<uint8_t>& initData,
97 const hidl_vec<uint8_t>& scope,
98 const hidl_vec<uint8_t>& initData,
105 const hidl_vec<uint8_t>& scope,
106 const hidl_vec<uint8_t>& response,
109 Return<Status> removeKeys(const hidl_vec<uint8_t>& sessionId) { in removeKeys()
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DYUVImage.h60 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/default/tests/
DAesCtrDecryptorUnittest.cpp31 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 …]
DInitDataParserUnittest.cpp40 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/av/media/ndk/include/media/
DNdkMediaDrm.h51 const uint8_t *ptr;
159 AMediaDrmEventType eventType, int extra, const uint8_t *data, size_t dataSize);
178 bool AMediaDrm_isCryptoSchemeSupported(const uint8_t *uuid,
185 AMediaDrm* AMediaDrm_createByUUID(const uint8_t *uuid) __INTRODUCED_IN(21);
279 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType,
281 const uint8_t **keyRequest, size_t *keyRequestSize) __INTRODUCED_IN(21);
301 const uint8_t *response, size_t responseSize,
354 media_status_t AMediaDrm_getProvisionRequest(AMediaDrm *, const uint8_t **provisionRequest,
370 const uint8_t *response, size_t responseSize) __INTRODUCED_IN(21);
464 const uint8_t *value, size_t valueSize) __INTRODUCED_IN(21);
[all …]
/frameworks/rs/
DrsStream.h29 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 …]
DrsStream.cpp24 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/protoutil/src/
DEncodedBuffer.cpp100 uint8_t* buf = mBuffers[i]; in ~EncodedBuffer()
105 inline uint8_t*
131 uint8_t*
136 uint8_t* buf = NULL; in writeBuffer()
138 buf = (uint8_t*)malloc(mChunkSize); in writeBuffer()
154 EncodedBuffer::writeRawByte(uint8_t val) in writeRawByte()
167 writeRawByte((uint8_t) val); in writeRawVarint64()
170 writeRawByte((uint8_t)((val & 0x7F) | 0x80)); in writeRawVarint64()
186 writeRawByte((uint8_t) val); in writeRawFixed32()
187 writeRawByte((uint8_t) (val>>8)); in writeRawFixed32()
[all …]
Dprotobuf.cpp22 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/base/core/jni/android/graphics/
DYuvToJpegEncoder.h45 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/include/android/util/
Dprotobuf.h26 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/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp288 const uint8_t *src_y = (const uint8_t *)data + mCropTop * mStride + mCropLeft; in render()
289 const uint8_t *src_u = (const uint8_t *)data + mStride * mHeight + mCropTop * mStride / 4; in render()
290 const uint8_t *src_v = (const uint8_t *)src_u + mStride * mHeight / 4; in render()
292 uint8_t *dst_y = (uint8_t *)dst; in render()
296 uint8_t *dst_v = dst_y + dst_y_size; in render()
297 uint8_t *dst_u = dst_v + dst_c_size; in render()
320 const uint8_t *src_y = (const uint8_t *)data + mCropTop * mStride + mCropLeft * 2; in render()
321 const uint8_t *src_u = (const uint8_t *)data + mStride * mHeight + mCropTop * mStride / 4; in render()
322 const uint8_t *src_v = (const uint8_t *)src_u + mStride * mHeight / 4; in render()
324 uint8_t *dst_y = (uint8_t *)dst; in render()
[all …]
/frameworks/av/services/camera/libcameraservice/tests/
DNV12Compressor.h52 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/minikin/libs/minikin/
DLocale.h41 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 {
168 static const uint8_t kBopomofoFlag = 1u;
169 static const uint8_t kHanFlag = 1u << 1;
170 static const uint8_t kHangulFlag = 1u << 2;
171 static const uint8_t kHiraganaFlag = 1u << 3;
172 static const uint8_t kKatakanaFlag = 1u << 4;
[all …]
/frameworks/ml/nn/runtime/test/generated/models/
Dquantized_lstm.model.cpp193 static uint8_t inputToInputWeights1_init[] = {146, 250, 235, 171, 10, 218, 171, 108}; in CreateModel_2()
194 model->setOperandValue(inputToInputWeights1, inputToInputWeights1_init, sizeof(uint8_t) * 8); in CreateModel_2()
195 static uint8_t inputToForgetWeights1_init[] = {24, 50, 132, 179, 158, 110, 3, 169}; in CreateModel_2()
196 model->setOperandValue(inputToForgetWeights1, inputToForgetWeights1_init, sizeof(uint8_t) * 8); in CreateModel_2()
197 static uint8_t inputToCellWeights1_init[] = {133, 34, 29, 49, 206, 109, 54, 183}; in CreateModel_2()
198 model->setOperandValue(inputToCellWeights1, inputToCellWeights1_init, sizeof(uint8_t) * 8); in CreateModel_2()
199 static uint8_t inputToOutputWeights1_init[] = {195, 187, 11, 99, 109, 10, 218, 48}; in CreateModel_2()
200 model->setOperandValue(inputToOutputWeights1, inputToOutputWeights1_init, sizeof(uint8_t) * 8); in CreateModel_2()
201 …static uint8_t recurrentToInputWeights1_init[] = {254, 206, 77, 168, 71, 20, 215, 6, 223, 7, 118, … in CreateModel_2()
202 …model->setOperandValue(recurrentToInputWeights1, recurrentToInputWeights1_init, sizeof(uint8_t) * … in CreateModel_2()
[all …]
/frameworks/minikin/tests/unittest/
DCmapCoverageTest.cpp33 size_t writeU8(uint8_t x, uint8_t* out, size_t offset) { in writeU8()
38 size_t writeU16(uint16_t x, uint8_t* out, size_t offset) { in writeU16()
44 size_t writeI16(int16_t sx, uint8_t* out, size_t offset) { in writeI16()
48 size_t writeU24(uint32_t x, uint8_t* out, size_t offset) { in writeU24()
55 size_t writeU32(uint32_t x, uint8_t* out, size_t offset) { in writeU32()
66 static std::vector<uint8_t> buildCmapFormat4Table(const std::vector<uint16_t>& ranges) { in buildCmapFormat4Table()
75 std::vector<uint8_t> out(finalLength); in buildCmapFormat4Table()
118 static std::vector<uint8_t> buildCmapFormat12Table(const std::vector<uint32_t>& ranges) { in buildCmapFormat12Table()
125 std::vector<uint8_t> out(finalLength); in buildCmapFormat12Table()
154 std::vector<uint8_t> getDefaultUVSAsBinary() const { in getDefaultUVSAsBinary()
[all …]

12345678910>>...71