/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
pvmp3_get_main_data_size.cpp | 121 int32 numBytes = fxp_mul32_Q28(mp3_bitrate[info->version_x][info->bitrate_index] << 20, 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...] |
pvmp3_seek_synch.cpp | 179 int32 numBytes = fxp_mul32_Q28(mp3_bitrate[version][(temp<<16)>>28] << 20, 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);
|
/external/deqp/framework/delibs/debase/ |
deMemory.h | 35 void* deMalloc (size_t numBytes); 36 void* deCalloc (size_t numBytes); 37 void* deRealloc (void* ptr, size_t numBytes); 40 void* deAlignedMalloc (size_t numBytes, size_t alignBytes); 41 void* deAlignedRealloc(void* ptr, size_t numBytes, size_t alignBytes); 50 * \param numBytes Number of bytes to write. 52 DE_INLINE void deMemset (void* ptr, int value, size_t numBytes) 55 memset(ptr, value, numBytes); 58 DE_INLINE int deMemCmp (const void* a, const void* b, size_t numBytes) 60 return memcmp(a, b, numBytes); [all...] |
deMemory.c | 57 * \param numBytes Number of bytes to allocate. 60 void* deMalloc (size_t numBytes) 64 DE_ASSERT(numBytes > 0); 66 ptr = malloc((size_t)numBytes); 72 memset(ptr, 0xcd, numBytes); 77 VALGRIND_MAKE_MEM_UNDEFINED(ptr, numBytes); 87 * \param numBytes Number of bytes to allocate. 90 void* deCalloc (size_t numBytes) 92 void* ptr = deMalloc(numBytes); 94 deMemset(ptr, 0, numBytes); [all...] |
/external/deqp/framework/delibs/decpp/ |
deMemPool.hpp | 51 void* alloc (deUintptr numBytes); 52 void* alignedAlloc (deUintptr numBytes, deUint32 alignBytes); 86 inline void* MemPool::alloc (deUintptr numBytes) 89 DE_ASSERT((deUintptr)(int)numBytes == numBytes); 90 void* ptr = deMemPool_alloc(m_pool, (int)numBytes); 96 inline void* MemPool::alignedAlloc (deUintptr numBytes, deUint32 alignBytes) 99 DE_ASSERT((deUintptr)(int)numBytes == numBytes); 100 void* ptr = deMemPool_alignedAlloc(m_pool, (int)numBytes, alignBytes) [all...] |
deRingBuffer.cpp | 63 int numBytes = rnd.getInt(1, buffer.getNumElements()); 64 vector<int> tmp (numBytes); 66 buffer.popBack(&tmp[0], numBytes); 68 for (int i = 0; i < numBytes; i++) 71 readPos += numBytes; 77 int numBytes = rnd.getInt(1, de::min(dataSize-writePos, buffer.getNumFree())); 78 buffer.pushFront(&data[writePos], numBytes); 79 writePos += numBytes;
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
ByteStream.java | 179 * @param numBytes The number of bytes to advance. 183 public void advance(int numBytes) { 184 if (numBytes < 0) { 189 long longNewIndex = (long) mIndex + (long) numBytes; 191 mReadCount += numBytes; 192 mIndex += numBytes; 200 * @param numBytes The (positive) number of bytes to reverse. 204 public void reverse(int numBytes) { 205 if (numBytes < 0) { 209 if (mIndex >= numBytes) { [all...] |
/libcore/ojluni/src/main/java/java/security/ |
SecureRandomSpi.java | 69 * @param numBytes the number of seed bytes to generate. 73 protected abstract byte[] engineGenerateSeed(int numBytes);
|
/external/deqp/execserver/ |
xsPosixFileReader.hpp | 45 int read (deUint8* dst, int numBytes) { return m_buf.tryRead(numBytes, dst); }
|
xsTestProcess.hpp | 51 virtual int readTestLog (deUint8* dst, int numBytes) = DE_NULL; 52 virtual int readInfoLog (deUint8* dst, int numBytes) = DE_NULL;
|
/frameworks/av/media/libaaudio/src/utility/ |
FixedBlockReader.h | 39 int32_t readFromStorage(uint8_t *buffer, int32_t numBytes); 44 int32_t processVariableBlock(uint8_t *buffer, int32_t numBytes) override;
|
FixedBlockWriter.h | 35 int32_t writeToStorage(uint8_t *buffer, int32_t numBytes); 40 int32_t processVariableBlock(uint8_t *buffer, int32_t numBytes) override;
|
FixedBlockAdapter.h | 28 virtual int32_t onProcessFixedBlock(uint8_t *buffer, int32_t numBytes) = 0; 54 * @param numBytes 57 virtual int32_t processVariableBlock(uint8_t *buffer, int32_t numBytes) = 0;
|
/external/libmojo/mojo/android/system/src/org/chromium/mojo/system/impl/ |
DataPipeConsumerHandleImpl.java | 44 public int discardData(int numBytes, ReadFlags flags) { 45 return mCore.discardData(this, numBytes, flags); 60 public ByteBuffer beginReadData(int numBytes, ReadFlags flags) { 61 return mCore.beginReadData(this, numBytes, flags);
|
/libcore/ojluni/src/main/java/sun/misc/ |
CharacterEncoder.java | 144 int numBytes; 150 numBytes = readFully(inStream, tmpbuffer); 151 if (numBytes == 0) { 154 encodeLinePrefix(outStream, numBytes); 155 for (j = 0; j < numBytes; j += bytesPerAtom()) { 157 if ((j + bytesPerAtom()) <= numBytes) { 160 encodeAtom(outStream, tmpbuffer, j, (numBytes)- j); 163 if (numBytes < bytesPerLine()) { 279 int numBytes; 285 numBytes = readFully(inStream, tmpbuffer) [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
OpenSSLRandom.java | 44 protected byte[] engineGenerateSeed(int numBytes) { 45 byte[] output = new byte[numBytes];
|
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/ |
PipeComm.cpp | 58 int numBytes; 60 numBytes = qemu_pipe_frame_recv(mPipeFd, msg.data(), msg.size()); 62 if (numBytes == MAX_RX_MSG_SZ) { 64 } else if (numBytes > 0) { 65 msg.resize(numBytes); 68 ALOGD("%s: Connection terminated on pipe %d, numBytes=%d", __FUNCTION__, mPipeFd, numBytes);
|
/external/deqp/modules/glshared/ |
glsBufferTestUtil.hpp | 54 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed); 55 bool compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numBytes); 90 void setSize (int numBytes); 91 void setData (int numBytes, const deUint8* bytes); 92 void setSubData (int offset, int numBytes, const deUint8* bytes); 123 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes) = DE_NULL; 124 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32 targetHint); 142 void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes); 143 void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32 targetHint); 160 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes) [all...] |
/external/deqp/modules/gles2/functional/ |
es2fBufferTestUtil.hpp | 50 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed); 51 bool compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numBytes); 83 void setSize (int numBytes); 84 void setData (int numBytes, const deUint8* bytes); 85 void setSubData (int offset, int numBytes, const deUint8* bytes); 112 virtual bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes) = DE_NULL; 132 bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes); 149 bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes); 165 bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes);
|
/external/deqp/framework/platform/android/ |
tcuAndroidAssets.cpp | 60 void AssetResource::read (deUint8* dst, int numBytes) 62 TCU_CHECK(AAsset_read(m_asset, dst, numBytes) == numBytes);
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/session/ |
Session.java | 63 * @param numBytes - the number of bytes from data to send
65 public void sendData(byte[] data, int numBytes);
75 * Read and return (up to) numBytes of data from the client across the data connection
77 * @return the data that was read; the byte[] will be up to numBytes bytes long
79 public byte[] readData(int numBytes);
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
RandomImpl.java | 47 protected byte[] engineGenerateSeed(int numBytes) { 49 byte[] b = new byte[numBytes];
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
CountingSecureRandom.java | 39 public byte[] generateSeed(int numBytes) { 40 if (numBytes > 0) { 41 mOutputSizeBytes.addAndGet(numBytes); 43 return mDelegate.generateSeed(numBytes);
|
/external/deqp/executor/ |
xeTestCaseListParser.hpp | 42 void parse (const deUint8* bytes, int numBytes);
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/stub/command/ |
FileRetrCommandHandler.java | 88 int numBytes;
89 while ((numBytes = inputStream.read(buffer)) != -1) {
90 LOG.trace("Sending " + numBytes + " bytes...");
91 session.sendData(buffer, numBytes);
|