Home
last modified time | relevance | path

Searched refs:dataLength (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/core/java/android/bluetooth/le/
DScanRecord.java199 int dataLength = length - 1; in parseFromBytes() local
209 dataLength, BluetoothUuid.UUID_BYTES_16_BIT, serviceUuids); in parseFromBytes()
213 parseServiceUuid(scanRecord, currentPos, dataLength, in parseFromBytes()
218 parseServiceUuid(scanRecord, currentPos, dataLength, in parseFromBytes()
224 extractBytes(scanRecord, currentPos, dataLength)); in parseFromBytes()
244 currentPos + serviceUuidLength, dataLength - serviceUuidLength); in parseFromBytes()
253 dataLength - 2); in parseFromBytes()
260 currentPos += dataLength; in parseFromBytes()
285 private static int parseServiceUuid(byte[] scanRecord, int currentPos, int dataLength, in parseServiceUuid() argument
287 while (dataLength > 0) { in parseServiceUuid()
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
DFwdLockGlue.c158 size_t dataLength = encryptedKeyLength - AES_BLOCK_SIZE; in FwdLockGlue_EncryptKey() local
161 memcpy((unsigned char *)pEncryptedKey + dataLength, initVector, AES_BLOCK_SIZE); in FwdLockGlue_EncryptKey()
162 AES_cbc_encrypt(pEncryptedKey, pEncryptedKey, dataLength, &encryptionRoundKeys, in FwdLockGlue_EncryptKey()
177 size_t dataLength = encryptedKeyLength - AES_BLOCK_SIZE; in FwdLockGlue_DecryptKey() local
178 unsigned char *pData = malloc(dataLength); in FwdLockGlue_DecryptKey()
181 memcpy(pData, pEncryptedKey, dataLength); in FwdLockGlue_DecryptKey()
182 memcpy(initVector, (const unsigned char *)pEncryptedKey + dataLength, AES_BLOCK_SIZE); in FwdLockGlue_DecryptKey()
183 AES_cbc_encrypt(pData, pData, dataLength, &decryptionRoundKeys, initVector, in FwdLockGlue_DecryptKey()
/frameworks/wilhelm/src/itf/
DIAndroidBufferQueue.cpp54 static SLresult setItems(SLuint32 dataLength, in setItems() argument
195 if (dataLength > 0) { in setItems()
217 if (dataLength > 0) { in setItems()
297 SLuint32 dataLength, in IAndroidBufferQueue_Enqueue() argument
302 SL_LOGD("IAndroidBufferQueue_Enqueue pData=%p dataLength=%d", pData, dataLength); in IAndroidBufferQueue_Enqueue()
304 if ((dataLength > 0) && (NULL == pData)) { in IAndroidBufferQueue_Enqueue()
305 SL_LOGE("Enqueue failure: non-zero data length %u but NULL data pointer", dataLength); in IAndroidBufferQueue_Enqueue()
310 } else if ((0 == dataLength) && (0 == itemsLength)) { in IAndroidBufferQueue_Enqueue()
324 if (dataLength % MPEG2_TS_PACKET_SIZE == 0) { in IAndroidBufferQueue_Enqueue()
328 if ((dataLength > 0) && (*(SLuint8 *)pData != MPEG2_TS_PACKET_SYNC)) { in IAndroidBufferQueue_Enqueue()
[all …]
/frameworks/rs/driver/
DrsdBcc.cpp136 uint32_t slot, void *data, size_t dataLength) { in rsdScriptSetGlobalVar() argument
138 cs->setGlobalVar(slot, data, dataLength); in rsdScriptSetGlobalVar()
142 uint32_t slot, void *data, size_t dataLength) { in rsdScriptGetGlobalVar() argument
144 cs->getGlobalVar(slot, data, dataLength); in rsdScriptGetGlobalVar()
149 uint32_t slot, void *data, size_t dataLength, in rsdScriptSetGlobalVarWithElemDims() argument
153 cs->setGlobalVarWithElemDims(slot, data, dataLength, elem, dims, dimLength); in rsdScriptSetGlobalVarWithElemDims()
DrsdBcc.h80 size_t dataLength,
95 size_t dataLength);
100 size_t dataLength);
/frameworks/base/drm/jni/
Dandroid_drm_DrmManagerClient.cpp50 JNIEnv* env, jobject object, const char* fieldName, int* dataLength);
53 JNIEnv* env, jbyteArray byteArray, int* dataLength);
92 JNIEnv* env, jobject object, const char* fieldName, int* dataLength) { in getByteArrayValue() argument
94 *dataLength = 0; in getByteArrayValue()
100 return Utility::getByteArrayValue(env, byteArray, dataLength); in getByteArrayValue()
105 char* Utility::getByteArrayValue(JNIEnv* env, jbyteArray byteArray, int* dataLength) { in getByteArrayValue() argument
110 *dataLength = length; in getByteArrayValue()
111 if (0 < *dataLength) { in getByteArrayValue()
397 int dataLength = 0; in android_drm_DrmManagerClient_saveRights() local
398 char* mData = Utility::getByteArrayValue(env, drmRights, "mData", &dataLength); in android_drm_DrmManagerClient_saveRights()
[all …]
/frameworks/rs/rsov/driver/
DrsovScript.h77 size_t dataLength) override;
78 void getGlobalVar(uint32_t slot, void *data, size_t dataLength) override;
80 size_t dataLength, const Element *e,
199 size_t dataLength, const android::renderscript::Element *,
213 uint32_t slot, void *data, size_t dataLength);
216 uint32_t slot, void *data, size_t dataLength);
DrsovScript.cpp190 size_t dataLength) { in setGlobalVar() argument
195 void RSoVScript::getGlobalVar(uint32_t slot, void *data, size_t dataLength) { in getGlobalVar() argument
201 size_t dataLength, const Element *e, in setGlobalVarWithElemDims() argument
795 void *data, size_t dataLength) { in rsovScriptSetGlobalVar() argument
797 cs->setGlobalVar(slot, data, dataLength); in rsovScriptSetGlobalVar()
801 void *data, size_t dataLength) { in rsovScriptGetGlobalVar() argument
803 cs->getGlobalVar(slot, data, dataLength); in rsovScriptGetGlobalVar()
808 size_t dataLength, const android::renderscript::Element *elem, in rsovScriptSetGlobalVarWithElemDims() argument
811 cs->setGlobalVarWithElemDims(slot, data, dataLength, elem, dims, dimLength); in rsovScriptSetGlobalVarWithElemDims()
/frameworks/base/core/java/android/speech/tts/
DFileSynthesisCallback.java235 int dataLength = (int) (fileChannel.size() - WAV_HEADER_LENGTH); in done() local
237 makeWavHeader(sampleRateInHz, audioFormat, channelCount, dataLength)); in done()
285 int dataLength) { in makeWavHeader() argument
296 header.putInt(dataLength + WAV_HEADER_LENGTH - 8); // RIFF chunk size in makeWavHeader()
307 header.putInt(dataLength); in makeWavHeader()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/
DSoftMPEG4Encoder.cpp407 int32_t dataLength = outHeader->nAllocLen; in onQueueFilled() local
410 if (!PVGetVolHeader(mHandle, outPtr, &dataLength, 0)) { in onQueueFilled()
416 ALOGV("Output VOL header: %d bytes", dataLength); in onQueueFilled()
419 outHeader->nFilledLen = dataLength; in onQueueFilled()
476 &modTimeMs, outPtr, &dataLength, &nLayer) || in onQueueFilled()
490 dataLength = 0; in onQueueFilled()
502 outHeader->nFilledLen = dataLength; in onQueueFilled()
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
DBluetoothPacketEncoder.java154 int dataLength = count - 1;
156 dataLength);
157 mAccumulatedBytes += dataLength;
/frameworks/rs/cpu_ref/
Drsd_cpu.h73 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) = 0;
74 virtual void getGlobalVar(uint32_t slot, void *data, size_t dataLength) = 0;
75 virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
DrsCpuIntrinsic.h69 void setGlobalVar(uint32_t slot, const void * data, size_t dataLength) override;
71 size_t dataLength, const Element * e,
DrsCpuScript.h73 void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) override;
74 void getGlobalVar(uint32_t slot, void *data, size_t dataLength) override;
75 void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
DrsCpuIntrinsic.cpp50 void RsdCpuScriptIntrinsic::setGlobalVar(uint32_t slot, const void *data, size_t dataLength) { in setGlobalVar() argument
56 size_t dataLength, const Element *e, in setGlobalVarWithElemDims() argument
/frameworks/av/media/libstagefright/
DAACWriter.cpp352 ssize_t dataLength = buffer->range_length(); in threadFunc() local
354 if (writeAdtsHeader(kAdtsHeaderLength + dataLength) != OK || in threadFunc()
355 dataLength != write(mFd, data, dataLength)) { in threadFunc()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DNAIRealmElementTest.java45 int dataLength = NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES.length * dataCount; in getTestBufferWithNAIRealmData() local
47 ByteBuffer buffer = ByteBuffer.allocate(dataLength + 2).order(ByteOrder.LITTLE_ENDIAN); in getTestBufferWithNAIRealmData()
/frameworks/av/include/drm/
Ddrm_framework_common.h75 DrmBuffer(char* dataBytes, int dataLength) : in DrmBuffer() argument
77 length(dataLength) { in DrmBuffer()
/frameworks/base/packages/Osu/src/com/android/anqp/
DHSIconFileElement.java40 int dataLength = payload.getShort() & SHORT_MASK; in HSIconFileElement()
41 mIconData = new byte[dataLength]; in HSIconFileElement()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/
Dm4v_h263_enc_test.cpp224 int32_t dataLength = kOutputBufferSize; in main() local
226 &modTimeMs, outputBuf, &dataLength, &nLayer) || in main()
237 fwrite(outputBuf, 1, dataLength, fpOutput); in main()
/frameworks/av/media/ndk/
DNdkImage.cpp415 AImage::getPlaneData(int planeIdx,/*out*/uint8_t** data, /*out*/int* dataLength) const { in getPlaneData()
426 if (data == nullptr || dataLength == nullptr) { in getPlaneData()
594 *dataLength = dataSize; in getPlaneData()
752 /*out*/uint8_t** data, /*out*/int* dataLength) { in AImage_getPlaneData() argument
754 if (image == nullptr || data == nullptr || dataLength == nullptr) { in AImage_getPlaneData()
756 __FUNCTION__, image, data, dataLength); in AImage_getPlaneData()
765 return image->getPlaneData(planeIdx, data, dataLength); in AImage_getPlaneData()
/frameworks/rs/
DrsGrallocConsumer.cpp124 int dataLength = 0; in lockNextBuffer() local
125 ret = AImage_getPlaneData(img, 0, &data, &dataLength); in lockNextBuffer()
126 if (ret != AMEDIA_OK || data == nullptr || dataLength <= 0) { in lockNextBuffer()
128 __FUNCTION__, img, ret, data, dataLength); in lockNextBuffer()
/frameworks/av/media/libstagefright/mpeg2ts/
DMPEG2PSExtractor.cpp521 unsigned dataLength = in dequeuePES() local
524 if (br.numBitsLeft() < dataLength * 8) { in dequeuePES()
527 br.numBitsLeft(), dataLength * 8); in dequeuePES()
532 if (br.numBitsLeft() < dataLength * 8) { in dequeuePES()
565 PTS_DTS_flags, PTS, DTS, br.data(), dataLength); in dequeuePES()
568 br.skipBits(dataLength * 8); in dequeuePES()
/frameworks/base/location/java/android/location/
DGpsNavigationMessage.java257 int dataLength = parcel.readInt();
258 byte[] data = new byte[dataLength];
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
DPduComposer.java981 int dataLength = 0; // Just for safety... in makeMessageBody() local
986 dataLength = partData.length; in makeMessageBody()
996 dataLength += len; in makeMessageBody()
1014 if (dataLength != (attachment.getLength() - headerLength)) { in makeMessageBody()
1020 appendUintvarInteger(dataLength); in makeMessageBody()

12