Searched defs:numBytes (Results 1 - 25 of 32) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_get_main_data_size.cpp121 int32 numBytes = fxp_mul32_Q28(mp3_bitrate[info->version_x][info->bitrate_index] << 20, local
125 numBytes >>= (20 - info->version_x);
132 pVars->predicted_frame_size = numBytes;
135 numBytes -= 17;
139 numBytes -= 32;
144 numBytes >>= 1;
145 pVars->predicted_frame_size = numBytes;
149 numBytes -= 9;
153 numBytes -= 17;
159 numBytes
[all...]
H A Dpvmp3_seek_synch.cpp179 int32 numBytes = fxp_mul32_Q28(mp3_bitrate[version][(temp<<16)>>28] << 20, local
182 numBytes >>= (20 - version);
186 numBytes >>= 1;
190 numBytes++;
193 if (numBytes > (int32)pVars->inputStream.inputBufferCurrentLength)
196 pExt->CurrentFrameLength = numBytes + 3;
199 else if (numBytes == (int32)pVars->inputStream.inputBufferCurrentLength)
208 int32 offset = pVars->inputStream.usedBits + ((numBytes) << 3);
/frameworks/av/services/audioflinger/
H A DSpdifStreamOut.cpp122 ssize_t SpdifStreamOut::write(const void* buffer, size_t numBytes) argument
125 return mSpdifEncoder.write(buffer, numBytes);
H A DAudioStreamOut.cpp202 ssize_t AudioStreamOut::write(const void *buffer, size_t numBytes) argument
205 ssize_t bytesWritten = stream->write(stream, buffer, numBytes);
/frameworks/av/media/libstagefright/
H A DHTTPBase.cpp45 size_t numBytes, int64_t delayUs) {
50 entry.mNumBytes = numBytes;
52 mTotalTransferBytes += numBytes;
44 addBandwidthMeasurement( size_t numBytes, int64_t delayUs) argument
H A DVBRISeeker.cpp109 uint32_t numBytes; local
111 case 1: numBytes = buffer[i]; break;
112 case 2: numBytes = U16_AT(buffer + 2 * i); break;
113 case 3: numBytes = U24_AT(buffer + 3 * i); break;
117 numBytes = U32_AT(buffer + 4 * i); break;
121 numBytes *= scale;
123 seeker->mSegments.push(numBytes);
125 ALOGV("entry #%zu: %u offset %#016llx", i, numBytes, (long long)offset);
126 offset += numBytes;
/frameworks/base/services/core/java/com/android/server/am/
H A DNativeCrashListener.java180 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) argument
183 while (numBytes > 0) {
184 int n = Os.read(fd, buffer, offset + totalRead, numBytes);
187 Slog.w(TAG, "Needed " + numBytes + " but saw " + n);
191 numBytes -= n;
/frameworks/rs/
H A DrsStream.cpp30 void IStream::loadByteArray(void *dest, size_t numBytes) { argument
31 memcpy(dest, mData + mPos, numBytes);
32 mPos += numBytes;
65 void OStream::addByteArray(const void *src, size_t numBytes) { argument
67 while (mPos + numBytes >= mLength) {
70 memcpy(mData + mPos, src, numBytes);
71 mPos += numBytes;
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
H A DFwdLockGlue.c126 int FwdLockGlue_GetRandomNumber(void *pBuffer, size_t numBytes) { argument
132 numBytesRead = read(fileDesc, pBuffer, numBytes);
135 return numBytesRead >= 0 && (size_t)numBytesRead == numBytes;
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
H A DFwdLockConv.h40 size_t numBytes; member in struct:FwdLockConv_ConvertData_Output
73 * @param[in] numBytes The number of bytes to read.
78 typedef ssize_t FwdLockConv_ReadFunc_t(int fileDesc, void *pBuffer, size_t numBytes);
85 * @param[in] numBytes The number of bytes to write.
90 typedef ssize_t FwdLockConv_WriteFunc_t(int fileDesc, const void *pBuffer, size_t numBytes);
178 * @param[in] numBytes The number of bytes to convert.
194 size_t numBytes,
/frameworks/av/drm/common/
H A DDrmEngineBase.cpp168 int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) {
169 return onPread(uniqueId, decryptHandle, buffer, numBytes, offset);
167 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
H A DIDrmManagerService.cpp774 ssize_t numBytes, off64_t offset) {
784 data.writeInt32(numBytes);
1518 const uint32_t numBytes = data.readInt32(); local
1519 if (numBytes > MAX_BINDER_TRANSACTION_SIZE) {
1523 char* buffer = new char[numBytes];
1527 ssize_t result = pread(uniqueId, &handle, buffer, numBytes, offset);
772 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClient.cpp162 sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) {
163 return mDrmManagerClientImpl->pread(mUniqueId, decryptHandle, buffer, numBytes, offset);
161 pread( sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
H A DDrmManagerClientImpl.cpp328 void* buffer, ssize_t numBytes, off64_t offset) {
330 if ((NULL != decryptHandle.get()) && (NULL != buffer) && (0 < numBytes)) {
332 uniqueId, decryptHandle.get(), buffer, numBytes, offset);
327 pread(int uniqueId, sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/base/core/java/android/app/backup/
H A DBackupTransport.java452 * Tells the transport to read {@code numBytes} bytes of data from the socket file
456 * @param numBytes The number of bytes of tarball data available to be read from the
463 public int sendBackupData(int numBytes) { argument
677 public int sendBackupData(int numBytes) throws RemoteException { argument
678 return BackupTransport.this.sendBackupData(numBytes);
/frameworks/base/core/java/android/speech/tts/
H A DBlockingAudioTrack.java184 long getAudioLengthMs(int numBytes) { argument
185 final int unconsumedFrames = numBytes / mBytesPerFrame;
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/
H A DCopyJob.java166 void onBytesCopied(long numBytes) { argument
167 this.mBytesCopied += numBytes;
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
H A DFwdLockFile.c299 ssize_t FwdLockFile_read(int fileDesc, void *pBuffer, size_t numBytes) { argument
307 numBytesRead = read(pSession->fileDesc, pBuffer, numBytes);
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp302 void* buffer, ssize_t numBytes, off64_t offset) {
301 onPread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A DDecTestBench.c712 static u32 numBytes = 0; local
713 numBytes += size * num;
714 DEBUG(("Allocated %d bytes, total %d\n", size, numBytes));
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4AudioAssembler.cpp237 size_t numBytes = (totalNumBits + 7) / 8; local
239 *asc = new ABuffer(numBytes);
246 while (numBytes > 0) {
248 --numBytes;
/frameworks/av/drm/drmserver/
H A DDrmManager.cpp541 void* buffer, ssize_t numBytes, off64_t offset) {
547 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset);
540 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
H A DDrmManagerService.cpp332 void* buffer, ssize_t numBytes, off64_t offset) {
337 return mDrmManager->pread(uniqueId, decryptHandle, buffer, numBytes, offset);
331 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A 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) {
636 numBytes > -1) {
639 size = FwdLockFile_read(session->fileDesc, buffer, numBytes);
676 ssize_t numBytes,
682 ssize_t numBytes,
692 (numBytes > -1) &&
699 bytesRead = onRead(uniqueId, decryptHandle, buffer, numBytes);
627 onRead(int , DecryptHandle* decryptHandle, void* buffer, int numBytes) argument
673 onPread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
[all...]
/frameworks/base/core/java/com/android/internal/backup/
H A DLocalTransport.java362 public int sendBackupData(final int numBytes) { argument
368 mFullBackupSize += numBytes;
373 if (numBytes > mFullBackupBuffer.length) {
374 mFullBackupBuffer = new byte[numBytes];
388 int bytesLeft = numBytes;
405 Log.v(TAG, " stored " + numBytes + " of data");

Completed in 453 milliseconds

12