Home
last modified time | relevance | path

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

12345678910>>...62

/frameworks/ml/nn/runtime/test/generated/maskrcnn/
Dmaskrcnn2go_quantized_const_data.cpp1 const uint8_t buffer_0[] = {0};
3 const uint8_t buffer_1[] = {1};
5 const uint8_t buffer_6[] = {0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0};
7 const uint8_t buffer_9[] = {
33 const uint8_t buffer_10[] = {166, 94, 0, 0, 64, 47, 0, 0, 100, 13, 0, 0, 183, 249, 255, 255,
38 const uint8_t buffer_11[] = {1, 0, 0, 0};
40 const uint8_t buffer_12[] = {2, 0, 0, 0};
42 const uint8_t buffer_14[] = {
59 const uint8_t buffer_15[] = {206, 249, 255, 255, 218, 9, 0, 0, 147, 2, 0, 0, 240,
65 const uint8_t buffer_16[] = {0, 0, 0, 0};
[all …]
/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/drm/libmediadrm/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.h56 inline bool operator==(const Vector<uint8_t> &l, const Vector<uint8_t> &r) {
66 explicit DrmSessionClient(DrmHal* drm, const Vector<uint8_t>& sessionId) in DrmSessionClient()
73 const Vector<uint8_t> mSessionId;
89 virtual status_t isCryptoSchemeSupported(const uint8_t uuid[16],
94 virtual status_t createPlugin(const uint8_t uuid[16],
100 Vector<uint8_t> &sessionId);
102 virtual status_t closeSession(Vector<uint8_t> const &sessionId);
105 getKeyRequest(Vector<uint8_t> const &sessionId,
106 Vector<uint8_t> const &initData,
109 Vector<uint8_t> &request, String8 &defaultUrl,
[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/native/cmds/idlcli/vibrator/
DCommandPerform.cpp30 static_assert(static_cast<uint8_t>(V1_0::EffectStrength::LIGHT) ==
31 static_cast<uint8_t>(aidl::EffectStrength::LIGHT));
32 static_assert(static_cast<uint8_t>(V1_0::EffectStrength::MEDIUM) ==
33 static_cast<uint8_t>(aidl::EffectStrength::MEDIUM));
34 static_assert(static_cast<uint8_t>(V1_0::EffectStrength::STRONG) ==
35 static_cast<uint8_t>(aidl::EffectStrength::STRONG));
36 static_assert(static_cast<uint8_t>(V1_3::Effect::CLICK) ==
37 static_cast<uint8_t>(aidl::Effect::CLICK));
38 static_assert(static_cast<uint8_t>(V1_3::Effect::DOUBLE_CLICK) ==
39 static_cast<uint8_t>(aidl::Effect::DOUBLE_CLICK));
[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);
180 bool AMediaDrm_isCryptoSchemeSupported(const uint8_t *uuid,
189 AMediaDrm* AMediaDrm_createByUUID(const uint8_t *uuid) __INTRODUCED_IN(21);
297 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType,
299 const uint8_t **keyRequest, size_t *keyRequestSize) __INTRODUCED_IN(21);
320 const uint8_t *response, size_t responseSize,
381 media_status_t AMediaDrm_getProvisionRequest(AMediaDrm *, const uint8_t **provisionRequest,
399 const uint8_t *response, size_t responseSize) __INTRODUCED_IN(21);
505 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 …]
/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/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/av/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp36 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 …]
/frameworks/ml/nn/runtime/test/generated/spec_V1_2/
Dquantized_lstm.example.cpp18 .data = TestBuffer::createFromVector<uint8_t>({166, 179, 50, 150}), in get_test_model()
28 … .data = TestBuffer::createFromVector<uint8_t>({146, 250, 235, 171, 10, 218, 171, 108}), in get_test_model()
38 … .data = TestBuffer::createFromVector<uint8_t>({24, 50, 132, 179, 158, 110, 3, 169}), in get_test_model()
48 … .data = TestBuffer::createFromVector<uint8_t>({133, 34, 29, 49, 206, 109, 54, 183}), in get_test_model()
58 … .data = TestBuffer::createFromVector<uint8_t>({195, 187, 11, 99, 109, 10, 218, 48}), in get_test_model()
68 ….data = TestBuffer::createFromVector<uint8_t>({254, 206, 77, 168, 71, 20, 215, 6, 223, 7, 118, 225… in get_test_model()
78 ….data = TestBuffer::createFromVector<uint8_t>({137, 240, 103, 52, 68, 51, 237, 112, 0, 220, 89, 23… in get_test_model()
88 ….data = TestBuffer::createFromVector<uint8_t>({172, 60, 205, 65, 14, 0, 140, 168, 240, 223, 133, 5… in get_test_model()
98 ….data = TestBuffer::createFromVector<uint8_t>({106, 214, 67, 23, 59, 158, 45, 3, 119, 132, 49, 205… in get_test_model()
158 … .data = TestBuffer::createFromVector<uint8_t>({136, 150, 140, 115, 135, 152, 138, 112}), in get_test_model()
[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 …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDrm.h41 DrmUUID(const uint8_t uuid_in[UUID_SIZE]) { in DrmUUID()
45 const uint8_t *ptr() const { in ptr()
53 static String8 toHexString(const uint8_t uuid_in[UUID_SIZE]) { in toHexString()
57 static String8 arrayToHex(const uint8_t *array, int bytes) { in arrayToHex()
67 uint8_t uuid[UUID_SIZE];
84 static sp<ICrypto> createCryptoAndPlugin(const uint8_t uuid[16],
85 const Vector<uint8_t> &drmSessionId, status_t &status);
93 static const uint8_t kBlockSize = 16; // AES_BLOCK_SIZE
97 uint8_t key[kBlockSize];
98 uint8_t iv[kBlockSize];
[all …]

12345678910>>...62