Home
last modified time | relevance | path

Searched refs:numBytes (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_get_main_data_size.cpp121 int32 numBytes = fxp_mul32_Q28(mp3_bitrate[info->version_x][info->bitrate_index] << 20, in pvmp3_get_main_data_size() local
125 numBytes >>= (20 - info->version_x); in pvmp3_get_main_data_size()
132 pVars->predicted_frame_size = numBytes; in pvmp3_get_main_data_size()
135 numBytes -= 17; in pvmp3_get_main_data_size()
139 numBytes -= 32; in pvmp3_get_main_data_size()
144 numBytes >>= 1; in pvmp3_get_main_data_size()
145 pVars->predicted_frame_size = numBytes; in pvmp3_get_main_data_size()
149 numBytes -= 9; in pvmp3_get_main_data_size()
153 numBytes -= 17; in pvmp3_get_main_data_size()
159 numBytes++; in pvmp3_get_main_data_size()
[all …]
Dpvmp3_seek_synch.cpp179 int32 numBytes = fxp_mul32_Q28(mp3_bitrate[version][(temp<<16)>>28] << 20, in pvmp3_frame_synch() local
182 numBytes >>= (20 - version); in pvmp3_frame_synch()
186 numBytes >>= 1; in pvmp3_frame_synch()
190 numBytes++; in pvmp3_frame_synch()
193 if (numBytes > (int32)pVars->inputStream.inputBufferCurrentLength) in pvmp3_frame_synch()
196 pExt->CurrentFrameLength = numBytes + 3; in pvmp3_frame_synch()
199 else if (numBytes == (int32)pVars->inputStream.inputBufferCurrentLength) in pvmp3_frame_synch()
208 int32 offset = pVars->inputStream.usedBits + ((numBytes) << 3); in pvmp3_frame_synch()
/frameworks/av/media/libstagefright/
DVBRISeeker.cpp123 uint32_t numBytes; in CreateFromSource() local
125 case 1: numBytes = buffer[i]; break; in CreateFromSource()
126 case 2: numBytes = U16_AT(buffer + 2 * i); break; in CreateFromSource()
127 case 3: numBytes = U24_AT(buffer + 3 * i); break; in CreateFromSource()
131 numBytes = U32_AT(buffer + 4 * i); break; in CreateFromSource()
135 numBytes *= scale; in CreateFromSource()
137 seeker->mSegments.push(numBytes); in CreateFromSource()
139 ALOGV("entry #%zu: %u offset %#016llx", i, numBytes, (long long)offset); in CreateFromSource()
140 offset += numBytes; in CreateFromSource()
DHTTPBase.cpp45 size_t numBytes, int64_t delayUs) { in addBandwidthMeasurement() argument
50 entry.mNumBytes = numBytes; in addBandwidthMeasurement()
52 mTotalTransferBytes += numBytes; in addBandwidthMeasurement()
/frameworks/rs/
DrsStream.cpp30 void IStream::loadByteArray(void *dest, size_t numBytes) { in loadByteArray() argument
31 memcpy(dest, mData + mPos, numBytes); in loadByteArray()
32 mPos += numBytes; in loadByteArray()
65 void OStream::addByteArray(const void *src, size_t numBytes) { in addByteArray() argument
67 while (mPos + numBytes >= mLength) { in addByteArray()
70 memcpy(mData + mPos, src, numBytes); in addByteArray()
71 mPos += numBytes; in addByteArray()
DrsStream.h60 void loadByteArray(void *dest, size_t numBytes);
133 void addByteArray(const void *src, size_t numBytes);
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
DFwdLockConv.h40 size_t numBytes; member
78 typedef ssize_t FwdLockConv_ReadFunc_t(int fileDesc, void *pBuffer, size_t numBytes);
90 typedef ssize_t FwdLockConv_WriteFunc_t(int fileDesc, const void *pBuffer, size_t numBytes);
194 size_t numBytes,
DFwdLockConv.c579 pOutput->fromConvertData.numBytes = pSession->dataOffset; in FwdLockConv_WriteHeader()
836 if (pOutput->fromConvertData.numBytes == pSession->outputBufferSize) { in FwdLockConv_WriteEncryptedChar()
853 ((unsigned char *)pOutput->fromConvertData.pBuffer)[pOutput->fromConvertData.numBytes++] = ch; in FwdLockConv_WriteEncryptedChar()
1170 size_t numBytes, in FwdLockConv_ConvertData() argument
1180 pOutput->fromConvertData.numBytes = 0; in FwdLockConv_ConvertData()
1183 for (i = 0; i < numBytes; ++i) { in FwdLockConv_ConvertData()
1280 output.fromConvertData.numBytes > 0) { in FwdLockConv_ConvertOpenFile()
1283 output.fromConvertData.numBytes); in FwdLockConv_ConvertOpenFile()
1284 if (numBytesWritten != (ssize_t)output.fromConvertData.numBytes) { in FwdLockConv_ConvertOpenFile()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccServiceTable.java57 int numBytes = mServiceTable.length; in toString() local
59 .append(numBytes * 8).append("]={ "); in toString()
62 for (int i = 0; i < numBytes; i++) { in toString()
DRuimRecords.java299 int numBytes; in onRecordLoaded() local
300 for (numBytes = 0; numBytes < spnData.length; numBytes++) { in onRecordLoaded()
301 if ((spnData[numBytes] & 0xFF) == 0xFF) break; in onRecordLoaded()
304 if (numBytes == 0) { in onRecordLoaded()
312 setServiceProviderName(new String(spnData, 0, numBytes, "ISO-8859-1")); in onRecordLoaded()
317 GsmAlphabet.gsm7BitPackedToString(spnData, 0, (numBytes*8)/7)); in onRecordLoaded()
320 String spn = new String(spnData, 0, numBytes, "US-ASCII"); in onRecordLoaded()
332 GsmAlphabet.gsm7BitPackedToString(spnData, 0, (numBytes * 8) / 7)); in onRecordLoaded()
336 setServiceProviderName(new String(spnData, 0, numBytes, "utf-16")); in onRecordLoaded()
/frameworks/base/services/core/java/com/android/server/am/
DNativeCrashListener.java180 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) in readExactly() argument
183 while (numBytes > 0) { in readExactly()
184 int n = Os.read(fd, buffer, offset + totalRead, numBytes); in readExactly()
187 Slog.w(TAG, "Needed " + numBytes + " but saw " + n); in readExactly()
191 numBytes -= n; in readExactly()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
DFwdLockEngine.cpp422 if (convSession->output.fromConvertData.numBytes > 0) {
423 convResult->data = new char[convSession->output.fromConvertData.numBytes];
426 convResult->length = convSession->output.fromConvertData.numBytes;
630 int numBytes) { argument
636 numBytes > -1) {
639 size = FwdLockFile_read(session->fileDesc, buffer, numBytes);
676 ssize_t numBytes, argument
682 ssize_t numBytes,
692 (numBytes > -1) &&
699 bytesRead = onRead(uniqueId, decryptHandle, buffer, numBytes);
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
DFwdLockGlue.c126 int FwdLockGlue_GetRandomNumber(void *pBuffer, size_t numBytes) { in FwdLockGlue_GetRandomNumber() argument
132 numBytesRead = read(fileDesc, pBuffer, numBytes); in FwdLockGlue_GetRandomNumber()
135 return numBytesRead >= 0 && (size_t)numBytesRead == numBytes; in FwdLockGlue_GetRandomNumber()
DFwdLockGlue.h32 int FwdLockGlue_GetRandomNumber(void *pBuffer, size_t numBytes);
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/
DFwdLockEngine.h450 int numBytes);
491 ssize_t numBytes,
497 ssize_t numBytes,
/frameworks/av/services/audioflinger/
DSpdifStreamOut.cpp122 ssize_t SpdifStreamOut::write(const void* buffer, size_t numBytes) in write() argument
125 return mSpdifEncoder.write(buffer, numBytes); in write()
DAudioStreamOut.cpp202 ssize_t AudioStreamOut::write(const void *buffer, size_t numBytes) in write() argument
205 ssize_t bytesWritten = stream->write(stream, buffer, numBytes); in write()
/frameworks/base/core/java/android/app/backup/
DBackupTransport.java463 public int sendBackupData(int numBytes) { in sendBackupData() argument
677 public int sendBackupData(int numBytes) throws RemoteException { in sendBackupData() argument
678 return BackupTransport.this.sendBackupData(numBytes); in sendBackupData()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videoproc/
DBackDropperFilter.java614 int numBytes = mMaskFormat.getSize(); in allocateFrames() local
615 byte[] initialBgMean = new byte[numBytes]; in allocateFrames()
616 byte[] initialBgVariance = new byte[numBytes]; in allocateFrames()
617 byte[] initialMaskVerify = new byte[numBytes]; in allocateFrames()
618 for (int i = 0; i < numBytes; i++) { in allocateFrames()
627 mBgMean[i].setData(initialBgMean, 0, numBytes); in allocateFrames()
630 mBgVariance[i].setData(initialBgVariance, 0, numBytes); in allocateFrames()
633 mMaskVerify[i].setData(initialMaskVerify, 0, numBytes); in allocateFrames()
/frameworks/base/core/java/com/android/internal/backup/
DLocalTransport.java362 public int sendBackupData(final int numBytes) { in sendBackupData() argument
368 mFullBackupSize += numBytes; in sendBackupData()
373 if (numBytes > mFullBackupBuffer.length) { in sendBackupData()
374 mFullBackupBuffer = new byte[numBytes]; in sendBackupData()
388 int bytesLeft = numBytes; in sendBackupData()
405 Log.v(TAG, " stored " + numBytes + " of data"); in sendBackupData()
/frameworks/base/core/java/com/android/internal/os/
DLoggingPrintStream.java133 int numBytes = Math.min(encodedBytes.remaining(), end - start); in write() local
134 encodedBytes.put(bytes, start, numBytes); in write()
135 start += numBytes; in write()
/frameworks/av/media/libstagefright/rtsp/
DAMPEG4AudioAssembler.cpp237 size_t numBytes = (totalNumBits + 7) / 8; in parseAudioSpecificConfig() local
239 *asc = new ABuffer(numBytes); in parseAudioSpecificConfig()
246 while (numBytes > 0) { in parseAudioSpecificConfig()
248 --numBytes; in parseAudioSpecificConfig()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
DFwdLockFile.h48 ssize_t FwdLockFile_read(int fileDesc, void *pBuffer, size_t numBytes);
/frameworks/av/drm/common/
DDrmEngineBase.cpp168 int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) { in pread() argument
169 return onPread(uniqueId, decryptHandle, buffer, numBytes, offset); in pread()
/frameworks/av/drm/libdrmframework/
DDrmManagerClient.cpp162 sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) { in pread() argument
163 return mDrmManagerClientImpl->pread(mUniqueId, decryptHandle, buffer, numBytes, offset); in pread()

123