Home
last modified time | relevance | path

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

12345678910>>...36

/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/media/libmedia/include/media/
DIDrm.h35 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16], const String8 &mimeType) = 0;
37 virtual status_t createPlugin(const uint8_t uuid[16],
42 virtual status_t openSession(Vector<uint8_t> &sessionId) = 0;
44 virtual status_t closeSession(Vector<uint8_t> const &sessionId) = 0;
47 getKeyRequest(Vector<uint8_t> const &sessionId,
48 Vector<uint8_t> const &initData,
51 Vector<uint8_t> &request, String8 &defaultUrl,
54 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId,
55 Vector<uint8_t> const &response,
56 Vector<uint8_t> &keySetId) = 0;
[all …]
DDrm.h41 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16], const String8 &mimeType);
43 virtual status_t createPlugin(const uint8_t uuid[16], const String8 &appPackageName);
47 virtual status_t openSession(Vector<uint8_t> &sessionId);
49 virtual status_t closeSession(Vector<uint8_t> const &sessionId);
52 getKeyRequest(Vector<uint8_t> const &sessionId,
53 Vector<uint8_t> const &initData,
56 Vector<uint8_t> &request, String8 &defaultUrl,
59 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId,
60 Vector<uint8_t> const &response,
61 Vector<uint8_t> &keySetId);
[all …]
DDrmHal.h50 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16], const String8 &mimeType);
52 virtual status_t createPlugin(const uint8_t uuid[16],
57 virtual status_t openSession(Vector<uint8_t> &sessionId);
59 virtual status_t closeSession(Vector<uint8_t> const &sessionId);
62 getKeyRequest(Vector<uint8_t> const &sessionId,
63 Vector<uint8_t> const &initData,
66 Vector<uint8_t> &request, String8 &defaultUrl,
69 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId,
70 Vector<uint8_t> const &response,
71 Vector<uint8_t> &keySetId);
[all …]
/frameworks/av/include/media/
DIDrm.h35 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16], const String8 &mimeType) = 0;
37 virtual status_t createPlugin(const uint8_t uuid[16],
42 virtual status_t openSession(Vector<uint8_t> &sessionId) = 0;
44 virtual status_t closeSession(Vector<uint8_t> const &sessionId) = 0;
47 getKeyRequest(Vector<uint8_t> const &sessionId,
48 Vector<uint8_t> const &initData,
51 Vector<uint8_t> &request, String8 &defaultUrl,
54 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId,
55 Vector<uint8_t> const &response,
56 Vector<uint8_t> &keySetId) = 0;
[all …]
DDrm.h41 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16], const String8 &mimeType);
43 virtual status_t createPlugin(const uint8_t uuid[16], const String8 &appPackageName);
47 virtual status_t openSession(Vector<uint8_t> &sessionId);
49 virtual status_t closeSession(Vector<uint8_t> const &sessionId);
52 getKeyRequest(Vector<uint8_t> const &sessionId,
53 Vector<uint8_t> const &initData,
56 Vector<uint8_t> &request, String8 &defaultUrl,
59 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId,
60 Vector<uint8_t> const &response,
61 Vector<uint8_t> &keySetId);
[all …]
DDrmHal.h50 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16], const String8 &mimeType);
52 virtual status_t createPlugin(const uint8_t uuid[16],
57 virtual status_t openSession(Vector<uint8_t> &sessionId);
59 virtual status_t closeSession(Vector<uint8_t> const &sessionId);
62 getKeyRequest(Vector<uint8_t> const &sessionId,
63 Vector<uint8_t> const &initData,
66 Vector<uint8_t> &request, String8 &defaultUrl,
69 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId,
70 Vector<uint8_t> const &response,
71 Vector<uint8_t> &keySetId);
[all …]
/frameworks/native/include/media/drm/
DDrmAPI.h61 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16]) = 0;
70 const uint8_t uuid[16], DrmPlugin **plugin) = 0;
122 Vector<uint8_t> mKeyId;
131 virtual status_t openSession(Vector<uint8_t> &sessionId) = 0;
134 virtual status_t closeSession(Vector<uint8_t> const &sessionId) = 0;
164 getKeyRequest(Vector<uint8_t> const &scope,
165 Vector<uint8_t> const &initData,
168 Vector<uint8_t> &request, String8 &defaultUrl,
185 virtual status_t provideKeyResponse(Vector<uint8_t> const &scope,
186 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/
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/media/libstagefright/include/
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/include/ndk/
DNdkMediaDrm.h46 const uint8_t *ptr;
84 AMediaDrmEventType eventType, int extra, const uint8_t *data, size_t dataSize);
95 bool AMediaDrm_isCryptoSchemeSupported(const uint8_t *uuid, const char *mimeType);
101 AMediaDrm* AMediaDrm_createByUUID(const uint8_t *uuid);
204 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType,
206 const uint8_t **keyRequest, size_t *keyRequestSize);
226 const uint8_t *response, size_t responseSize, AMediaDrmKeySetId *keySetId);
277 media_status_t AMediaDrm_getProvisionRequest(AMediaDrm *, const uint8_t **provisionRequest,
293 const uint8_t *response, size_t responseSize);
387 const uint8_t *value, size_t valueSize);
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/tests/
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 …]
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()
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/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/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/av/drm/libmediadrm/
DDrm.cpp49 KeyedVector<Vector<uint8_t>, String8> Drm::mUUIDToLibraryPathMap;
54 static bool operator<(const Vector<uint8_t> &lhs, const Vector<uint8_t> &rhs) { in operator <()
67 virtual bool reclaimSession(const Vector<uint8_t>& sessionId) { in reclaimSession()
128 Vector<uint8_t> const *sessionId, in sendEvent()
129 Vector<uint8_t> const *data) in sendEvent()
145 void Drm::sendExpirationUpdate(Vector<uint8_t> const *sessionId, in sendExpirationUpdate()
162 void Drm::sendKeysChange(Vector<uint8_t> const *sessionId, in sendKeysChange()
201 void Drm::findFactoryForScheme(const uint8_t uuid[16]) { in findFactoryForScheme()
209 Vector<uint8_t> uuidVector; in findFactoryForScheme()
256 bool Drm::loadLibraryForScheme(const String8 &path, const uint8_t uuid[16]) { in loadLibraryForScheme()
[all …]
DDrmHal.cpp71 static const Vector<uint8_t> toVector(const hidl_vec<uint8_t> &vec) { in toVector()
72 Vector<uint8_t> vector; in toVector()
74 return *const_cast<const Vector<uint8_t> *>(&vector); in toVector()
77 static hidl_vec<uint8_t> toHidlVec(const Vector<uint8_t> &vector) { in toHidlVec()
78 hidl_vec<uint8_t> vec; in toHidlVec()
79 vec.setToExternal(const_cast<uint8_t *>(vector.array()), vector.size()); in toHidlVec()
114 static List<Vector<uint8_t>> toSecureStops(const hidl_vec<SecureStop>& in toSecureStops()
116 List<Vector<uint8_t>> secureStops; in toSecureStops()
168 virtual bool reclaimSession(const Vector<uint8_t>& sessionId) { in reclaimSession()
178 toHidlVec(sessionId), hidl_vec<uint8_t>()); in reclaimSession()
[all …]
DIDrm.cpp77 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16], const String8 &mimeType) { in isCryptoSchemeSupported()
91 virtual status_t createPlugin(const uint8_t uuid[16], in createPlugin()
117 virtual status_t openSession(Vector<uint8_t> &sessionId) { in openSession()
130 virtual status_t closeSession(Vector<uint8_t> const &sessionId) { in closeSession()
144 getKeyRequest(Vector<uint8_t> const &sessionId, in getKeyRequest()
145 Vector<uint8_t> const &initData, in getKeyRequest()
148 Vector<uint8_t> &request, String8 &defaultUrl, in getKeyRequest()
176 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId, in provideKeyResponse()
177 Vector<uint8_t> const &response, in provideKeyResponse()
178 Vector<uint8_t> &keySetId) { in provideKeyResponse()
[all …]
/frameworks/minikin/libs/minikin/
DFontLanguage.h41 enum EmojiStyle : uint8_t {
110 static const uint8_t kBopomofoFlag = 1u;
111 static const uint8_t kHanFlag = 1u << 1;
112 static const uint8_t kHangulFlag = 1u << 2;
113 static const uint8_t kHiraganaFlag = 1u << 3;
114 static const uint8_t kKatakanaFlag = 1u << 4;
115 static const uint8_t kSimplifiedChineseFlag = 1u << 5;
116 static const uint8_t kTraditionalChineseFlag = 1u << 6;
117 uint8_t mSubScriptBits;
121 static uint8_t scriptToSubScriptBits(uint32_t script);
[all …]
/frameworks/base/libs/common_time/
Dcommon_time_server_packets.h54 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/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 …]
/frameworks/av/media/mtp/
DMtpStringBuffer.cpp106 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 …]

12345678910>>...36