Home
last modified time | relevance | path

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

1234

/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/base/services/usb/java/com/android/server/usb/descriptors/
DByteStream.java183 public void advance(int numBytes) { in advance() argument
184 if (numBytes < 0) { in advance()
189 long longNewIndex = (long) mIndex + (long) numBytes; in advance()
191 mReadCount += numBytes; in advance()
192 mIndex += numBytes; in advance()
204 public void reverse(int numBytes) { in reverse() argument
205 if (numBytes < 0) { in reverse()
209 if (mIndex >= numBytes) { in reverse()
210 mReadCount -= numBytes; in reverse()
211 mIndex -= numBytes; in reverse()
/frameworks/av/media/extractors/mp3/
DVBRISeeker.cpp125 uint32_t numBytes; in CreateFromSource() local
127 case 1: numBytes = buffer[i]; break; in CreateFromSource()
128 case 2: numBytes = U16_AT(buffer + 2 * i); break; in CreateFromSource()
129 case 3: numBytes = U24_AT(buffer + 3 * i); break; in CreateFromSource()
133 numBytes = U32_AT(buffer + 4 * i); break; in CreateFromSource()
137 numBytes *= scale; in CreateFromSource()
139 seeker->mSegments.push(numBytes); in CreateFromSource()
141 ALOGV("entry #%zu: %u offset %#016llx", i, numBytes, (long long)offset); in CreateFromSource()
142 offset += numBytes; in CreateFromSource()
/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()
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp133 int32_t numBytes = convertFramesToBytes(framesToRead); in read() local
134 memcpy(destination, wrappingBuffer.data[partIndex], numBytes); in read()
136 destination += numBytes; in read()
164 int32_t numBytes = convertFramesToBytes(framesToWrite); in write() local
165 memcpy(wrappingBuffer.data[partIndex], source, numBytes); in write()
167 source += numBytes; in write()
192 int32_t numBytes = convertFramesToBytes(getBufferCapacityInFrames()); in eraseMemory() local
193 if (numBytes > 0) { in eraseMemory()
194 memset(mStorage, 0, (size_t) numBytes); in eraseMemory()
/frameworks/av/media/libaaudio/src/utility/
DFixedBlockWriter.cpp27 int32_t FixedBlockWriter::writeToStorage(uint8_t *buffer, int32_t numBytes) { in writeToStorage() argument
28 int32_t bytesToStore = numBytes; in writeToStorage()
38 int32_t FixedBlockWriter::processVariableBlock(uint8_t *buffer, int32_t numBytes) { in processVariableBlock() argument
40 int32_t bytesLeft = numBytes; in processVariableBlock()
DFixedBlockReader.cpp36 int32_t FixedBlockReader::readFromStorage(uint8_t *buffer, int32_t numBytes) { in readFromStorage() argument
37 int32_t bytesToRead = numBytes; in readFromStorage()
47 int32_t FixedBlockReader::processVariableBlock(uint8_t *buffer, int32_t numBytes) { in processVariableBlock() argument
49 int32_t bytesLeft = numBytes; in processVariableBlock()
DFixedBlockWriter.h35 int32_t writeToStorage(uint8_t *buffer, int32_t numBytes);
40 int32_t processVariableBlock(uint8_t *buffer, int32_t numBytes) override;
DFixedBlockReader.h39 int32_t readFromStorage(uint8_t *buffer, int32_t numBytes);
44 int32_t processVariableBlock(uint8_t *buffer, int32_t numBytes) override;
DFixedBlockAdapter.h28 virtual int32_t onProcessFixedBlock(uint8_t *buffer, int32_t numBytes) = 0;
57 virtual int32_t processVariableBlock(uint8_t *buffer, int32_t numBytes) = 0;
/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,
/frameworks/base/services/core/jni/
Dcom_android_server_UsbDescriptorParser.cpp52 int numBytes = read(fd, buffer, sizeof(buffer)); in Java_com_android_server_usb_descriptors_UsbDescriptorParser_getRawDescriptors_1native() local
56 if (numBytes > 0) { in Java_com_android_server_usb_descriptors_UsbDescriptorParser_getRawDescriptors_1native()
57 ret = env->NewByteArray(numBytes); in Java_com_android_server_usb_descriptors_UsbDescriptorParser_getRawDescriptors_1native()
58 env->SetByteArrayRegion(ret, 0, numBytes, buffer); in Java_com_android_server_usb_descriptors_UsbDescriptorParser_getRawDescriptors_1native()
Dcom_android_server_UsbHostManager.cpp68 int numBytes = usb_device_get_descriptors_length(device); in usb_device_added() local
69 if (numBytes > 0) { in usb_device_added()
74 jbyteArray descriptorsArray = env->NewByteArray(numBytes); in usb_device_added()
76 env->SetByteArrayRegion(descriptorsArray, 0, numBytes, rawDescriptors); in usb_device_added()
/frameworks/base/media/native/midi/
Damidi.cpp381 uint8_t *buffer, const uint8_t *data, size_t numBytes, uint64_t timestamp) { in AMIDI_makeSendBuffer() argument
384 memcpy(buffer + 1, data, numBytes); in AMIDI_makeSendBuffer()
385 memcpy(buffer + 1 + numBytes, &timestamp, sizeof(timestamp)); in AMIDI_makeSendBuffer()
386 return numBytes + AMIDI_PACKET_OVERHEAD; in AMIDI_makeSendBuffer()
390 size_t numBytes) { in AMidiInputPort_send() argument
391 return AMidiInputPort_sendWithTimestamp(inputPort, buffer, numBytes, 0); in AMidiInputPort_send()
395 const uint8_t *data, size_t numBytes, int64_t timestamp) { in AMidiInputPort_sendWithTimestamp() argument
404 while (numSent < numBytes) { in AMidiInputPort_sendWithTimestamp()
406 blockSize = std::min(blockSize, numBytes - numSent); in AMidiInputPort_sendWithTimestamp()
/frameworks/base/core/java/android/util/
DStatsEvent.java227 @NonNull final byte[] payload, final int numBytes) { in StatsEvent() argument
231 mNumBytes = numBytes; in StatsEvent()
448 final int numBytes = value.length; in writeByteArray() local
449 mPos += mBuffer.putInt(mPos, numBytes); in writeByteArray()
726 private boolean hasEnoughSpace(final int index, final int numBytes) { in hasEnoughSpace() argument
727 final boolean result = index + numBytes < MAX_PAYLOAD_SIZE; in hasEnoughSpace()
821 final int numBytes = value.length; in putByteArray() local
822 if (hasEnoughSpace(index, numBytes)) { in putByteArray()
823 System.arraycopy(value, 0, mBytes, index, numBytes); in putByteArray()
824 return numBytes; in putByteArray()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccServiceTable.java61 int numBytes = mServiceTable.length; in toString() local
63 .append(numBytes * 8).append("]={ "); in toString()
66 for (int i = 0; i < numBytes; i++) { in toString()
DRuimRecords.java300 int numBytes; in onRecordLoaded() local
301 for (numBytes = 0; numBytes < spnData.length; numBytes++) { in onRecordLoaded()
302 if ((spnData[numBytes] & 0xFF) == 0xFF) break; in onRecordLoaded()
305 if (numBytes == 0) { in onRecordLoaded()
313 setServiceProviderName(new String(spnData, 0, numBytes, "ISO-8859-1")); in onRecordLoaded()
318 GsmAlphabet.gsm7BitPackedToString(spnData, 0, (numBytes*8)/7)); in onRecordLoaded()
321 String spn = new String(spnData, 0, numBytes, "US-ASCII"); in onRecordLoaded()
333 GsmAlphabet.gsm7BitPackedToString(spnData, 0, (numBytes * 8) / 7)); in onRecordLoaded()
337 setServiceProviderName(new String(spnData, 0, numBytes, "utf-16")); in onRecordLoaded()
/frameworks/av/media/libaaudio/tests/
Dtest_block_adapter.cpp74 int32_t onProcessFixedBlock(uint8_t *buffer, int32_t numBytes) override { in onProcessFixedBlock() argument
75 int32_t frameCount = numBytes / sizeof(int32_t); in onProcessFixedBlock()
101 int32_t onProcessFixedBlock(uint8_t *buffer, int32_t numBytes) override { in onProcessFixedBlock() argument
102 int32_t frameCount = numBytes / sizeof(int32_t); in onProcessFixedBlock()
/frameworks/base/cmds/statsd/src/config/
DConfigManager.cpp73 const int numBytes = config.ByteSize(); in UpdateConfig() local
74 vector<uint8_t> buffer(numBytes); in UpdateConfig()
75 config.SerializeToArray(&buffer[0], numBytes); in UpdateConfig()
95 update_saved_configs_locked(key, buffer, numBytes); in UpdateConfig()
100 update_saved_configs_locked(key, buffer, numBytes); in UpdateConfig()
305 const int numBytes) { in update_saved_configs_locked() argument
313 StorageManager::writeFile(file_name.c_str(), &buffer[0], numBytes); in update_saved_configs_locked()
/frameworks/av/media/libdatasource/
DHTTPBase.cpp43 size_t numBytes, int64_t delayUs) { in addBandwidthMeasurement() argument
48 entry.mNumBytes = numBytes; in addBandwidthMeasurement()
50 mTotalTransferBytes += numBytes; in addBandwidthMeasurement()
/frameworks/base/services/core/java/com/android/server/am/
DNativeCrashListener.java174 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) in readExactly() argument
177 while (numBytes > 0) { in readExactly()
178 int n = Os.read(fd, buffer, offset + totalRead, numBytes); in readExactly()
181 Slog.w(TAG, "Needed " + numBytes + " but saw " + n); in readExactly()
185 numBytes -= n; in readExactly()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
DFwdLockEngine.cpp424 if (convSession->output.fromConvertData.numBytes > 0) {
425 convResult->data = new char[convSession->output.fromConvertData.numBytes];
428 convResult->length = convSession->output.fromConvertData.numBytes;
634 int numBytes) { argument
640 numBytes > -1) {
643 size = FwdLockFile_read(session->fileDesc, buffer, numBytes);
680 ssize_t numBytes, argument
686 ssize_t numBytes,
696 (numBytes > -1) &&
703 bytesRead = onRead(uniqueId, decryptHandle, buffer, numBytes);
/frameworks/av/media/tests/benchmark/tests/
DBenchmarkTestEnvironment.h96 int32_t numBytes = fwrite(statsHeader, sizeof(char), sizeof(statsHeader), fpStats); in writeStatsHeader() local
98 if(numBytes != sizeof(statsHeader)) { in writeStatsHeader()
/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()

1234