Home
last modified time | relevance | path

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

12345678910>>...57

/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/
DDrmHal.h28 virtual status_t isCryptoSchemeSupported(const uint8_t uuid[16],
32 virtual status_t createPlugin(const uint8_t uuid[16],
36 Vector<uint8_t> &sessionId);
37 virtual status_t closeSession(Vector<uint8_t> const &sessionId);
39 getKeyRequest(Vector<uint8_t> const &sessionId,
40 Vector<uint8_t> const &initData,
43 Vector<uint8_t> &request, String8 &defaultUrl,
45 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId,
46 Vector<uint8_t> const &response,
47 Vector<uint8_t> &keySetId);
[all …]
DIDrm.h45 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 …]
DDrmHalAidl.h42 virtual status_t isCryptoSchemeSupported(const uint8_t uuid[16], const String8& mimeType,
44 virtual status_t createPlugin(const uint8_t uuid[16], const String8& appPackageName);
47 Vector<uint8_t>& sessionId);
48 virtual status_t closeSession(Vector<uint8_t> const& sessionId);
49 virtual status_t getKeyRequest(Vector<uint8_t> const& sessionId,
50 Vector<uint8_t> const& initData, String8 const& mimeType,
53 Vector<uint8_t>& request, String8& defaultUrl,
55 virtual status_t provideKeyResponse(Vector<uint8_t> const& sessionId,
56 Vector<uint8_t> const& response, Vector<uint8_t>& keySetId);
57 virtual status_t removeKeys(Vector<uint8_t> const& keySetId);
[all …]
DDrmHalHidl.h53 inline bool operator==(const Vector<uint8_t> &l, const Vector<uint8_t> &r) {
68 virtual status_t isCryptoSchemeSupported(const uint8_t uuid[16],
73 virtual status_t createPlugin(const uint8_t uuid[16],
79 Vector<uint8_t> &sessionId);
81 virtual status_t closeSession(Vector<uint8_t> const &sessionId);
84 getKeyRequest(Vector<uint8_t> const &sessionId,
85 Vector<uint8_t> const &initData,
88 Vector<uint8_t> &request, String8 &defaultUrl,
91 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId,
92 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/native/libs/vr/libpdx/fuzz/
Dserialization_fuzzer.cpp55 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/
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/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/hidl/include/
DDrmPlugin.h81 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/aidl/include/
DDrmPlugin.h45 ::ndk::ScopedAStatus closeSession(const std::vector<uint8_t>& in_sessionId) override;
46 ::ndk::ScopedAStatus decrypt(const std::vector<uint8_t>& in_sessionId,
47 const std::vector<uint8_t>& in_keyId,
48 const std::vector<uint8_t>& in_input,
49 const std::vector<uint8_t>& in_iv,
50 std::vector<uint8_t>* _aidl_return) override;
51 ::ndk::ScopedAStatus encrypt(const std::vector<uint8_t>& in_sessionId,
52 const std::vector<uint8_t>& in_keyId,
53 const std::vector<uint8_t>& in_input,
54 const std::vector<uint8_t>& in_iv,
[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/drm/libmediadrm/
DDrmHal.cpp40 status_t DrmHal::isCryptoSchemeSupported(const uint8_t uuid[16], const String8& mimeType, in isCryptoSchemeSupported()
48 status_t DrmHal::createPlugin(const uint8_t uuid[16], const String8& appPackageName) { in createPlugin()
62 status_t DrmHal::openSession(DrmPlugin::SecurityLevel securityLevel, Vector<uint8_t>& sessionId) { in openSession()
67 status_t DrmHal::closeSession(Vector<uint8_t> const& sessionId) { in closeSession()
72 status_t DrmHal::getKeyRequest(Vector<uint8_t> const& sessionId, Vector<uint8_t> const& initData, in getKeyRequest()
75 Vector<uint8_t>& request, String8& defaultUrl, in getKeyRequest()
84 status_t DrmHal::provideKeyResponse(Vector<uint8_t> const& sessionId, in provideKeyResponse()
85 Vector<uint8_t> const& response, Vector<uint8_t>& keySetId) { in provideKeyResponse()
91 status_t DrmHal::removeKeys(Vector<uint8_t> const& keySetId) { in removeKeys()
96 status_t DrmHal::restoreKeys(Vector<uint8_t> const& sessionId, Vector<uint8_t> const& keySetId) { in restoreKeys()
[all …]
/frameworks/native/libs/gralloc/types/fuzzer/
Dmain.cpp30 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/
DNdkMediaDrm.h51 const uint8_t *ptr;
194 AMediaDrmEventType eventType, int extra, const uint8_t *data, size_t dataSize);
213 bool AMediaDrm_isCryptoSchemeSupported(const uint8_t *uuid,
222 AMediaDrm* AMediaDrm_createByUUID(const uint8_t *uuid) __INTRODUCED_IN(21);
336 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType,
338 const uint8_t **keyRequest, size_t *keyRequestSize) __INTRODUCED_IN(21);
399 const AMediaDrmScope *scope, const uint8_t *init, size_t initSize,
402 size_t numOptionalParameters, const uint8_t **keyRequest,
425 const uint8_t *response, size_t responseSize,
486 media_status_t AMediaDrm_getProvisionRequest(AMediaDrm *, const uint8_t **provisionRequest,
[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 …]
/frameworks/base/libs/hwui/jni/
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/src/
DEncodedBuffer.cpp103 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 …]
/frameworks/native/cmds/idlcli/vibrator/
DCommandPerform.cpp35 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/
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/rs/toolkit/
DRenderScriptToolkit.h192 void blend(BlendingMode mode, const uint8_t* _Nonnull source, uint8_t* _Nonnull dst,
223 void blur(const uint8_t* _Nonnull in, uint8_t* _Nonnull out, size_t sizeX, size_t sizeY,
381 void histogram(const uint8_t* _Nonnull in, int32_t* _Nonnull out, size_t sizeX, size_t sizeY,
412 void histogramDot(const uint8_t* _Nonnull in, int32_t* _Nonnull out, size_t sizeX, size_t sizeY,
442 void lut(const uint8_t* _Nonnull in, uint8_t* _Nonnull out, size_t sizeX, size_t sizeY,
443 const uint8_t* _Nonnull red, const uint8_t* _Nonnull green,
444 const uint8_t* _Nonnull blue, const uint8_t* _Nonnull alpha,
475 void lut3d(const uint8_t* _Nonnull in, uint8_t* _Nonnull out, size_t sizeX, size_t sizeY,
476 const uint8_t* _Nonnull cube, size_t cubeSizeX, size_t cubeSizeY, size_t cubeSizeZ,
504 void resize(const uint8_t* _Nonnull in, uint8_t* _Nonnull out, size_t inputSizeX,
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/fuzzer/
DclearkeyV1.4_fuzzer.cpp75 typedef ::android::hardware::hidl_vec<uint8_t> SessionId;
76 typedef ::android::hardware::hidl_vec<uint8_t> SecureStopId;
78 static const uint8_t kInvalidUUID[] = {0x10, 0x20, 0x30, 0x40, 0x50, 0x60,
82 static const uint8_t kClearKeyUUID[] = {0xE2, 0x71, 0x9D, 0x58, 0xA9, 0x85,
120 const hidl_vec<uint8_t> validInitData = {
136 const hidl_vec<uint8_t> validKeyResponse = {
163 const hidl_vec<uint8_t> & /*sessionId*/, in sendEvent() argument
164 const hidl_vec<uint8_t> & /*data*/) override { in sendEvent()
169 sendExpirationUpdate(const hidl_vec<uint8_t> & /*sessionId*/, in sendExpirationUpdate() argument
175 sendKeysChange(const hidl_vec<uint8_t> & /*sessionId*/, in sendKeysChange() argument
[all …]

12345678910>>...57