Searched refs:byteCount (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/base/core/java/android/content/pm/
H A DLimitedLengthInputStream.java68 public int read(byte[] buffer, int offset, int byteCount) throws IOException { argument
74 Arrays.checkOffsetAndCount(arrayLength, offset, byteCount);
76 if (mOffset > Long.MAX_VALUE - byteCount) {
77 throw new IOException("offset out of bounds: " + mOffset + " + " + byteCount);
80 if (mOffset + byteCount > mEnd) {
81 byteCount = (int) (mEnd - mOffset);
84 final int numRead = super.read(buffer, offset, byteCount);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_byte_stream.c87 u32 byteCount,initByteCount; local
107 zeroCount = byteCount = 2;
113 byteCount++;
115 if (byteCount == len)
130 initByteCount = byteCount;
139 byteCount++;
151 byteCount - initByteCount - zeroCount - 1;
162 if (byteCount == len)
164 pStrmData->strmBuffSize = byteCount - initByteCount - zeroCount;
/frameworks/base/core/java/com/android/internal/util/
H A DSizedInputStream.java49 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
52 } else if (byteCount > mLength) {
53 byteCount = (int) mLength;
56 final int n = mWrapped.read(buffer, byteOffset, byteCount);
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dbitstream_io.cpp22 /* Note byteCount doesn't have to be multiple of 2 or 4 */
75 stream->byteCount = 0;
213 if (stream->byteCount + WORD_SIZE > stream->bufferSize)
217 stream->byteCount += WORD_SIZE;
222 ptr = stream->bitstreamBuffer + stream->byteCount;
226 /* NOTE: byteCount does not have to be multiple of 2 or 4 */
236 stream->byteCount += 4;
239 stream->byteCount += 2;
267 if (stream->byteCount + numbyte > stream->bufferSize)
271 stream->byteCount
581 BitstreamRepos(BitstreamEncVideo *bitstream, Int byteCount, Int bitCount) argument
[all...]
H A Dcombined_encode.cpp285 Int byteCount = 0, byteCount1 = 0, bitCount = 0; local
368 byteCount1 = byteCount = bitCount >> 3; /* save the position before GOB header */
438 byteCount = bitCount >> 3; /* save the state before encoding */
469 BitstreamRepos(bs1, byteCount, bitCount); /* rewind one MB */
506 if (mbnum < nTotalMB - 1 && currVol->stream->byteCount + bs1->byteCount + 1 >= currVol->stream->bufferSize)
509 byteCount = currVol->stream->bufferSize - currVol->stream->byteCount - 1;
511 num_bits = BitstreamGetPos(bs1) - (byteCount << 3);
512 BitstreamRepos(bs1, byteCount,
[all...]
H A Dbitstream_io.h44 PV_STATUS BitstreamRepos(BitstreamEncVideo *bitstream, Int byteCount, Int bitCount);
H A Dmp4lib_int.h32 Int byteCount; /*how many bytes already encoded*/ member in struct:tagBitstream
H A Dmp4enc_api.cpp1332 if (*size > encData->bitstream1->byteCount)
1334 *size = encData->bitstream1->byteCount;
1445 *size = video->vol[0]->stream->byteCount;
1634 *size = currVol->stream->byteCount;
1886 pre_size = currVol->stream->byteCount;
1981 *size = currVol->stream->byteCount - pre_size;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/
H A DBridgeBufferIterator.java48 public void skip(int byteCount) { argument
49 int newPosition = mByteBuffer.position() + byteCount;
55 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { argument
56 assert dst.length >= dstOffset + byteCount;
57 mByteBuffer.get(dst, dstOffset, byteCount);
/frameworks/base/packages/PrintSpooler/jni/
H A Dcom_android_printspooler_util_BitmapSerializeUtils.cpp29 static bool writeAllBytes(const int fd, void* buffer, const size_t byteCount) { argument
31 size_t remainingBytes = byteCount;
48 static bool readAllBytes(const int fd, void* buffer, const size_t byteCount) { argument
50 size_t remainingBytes = byteCount;
67 byteCount);
123 size_t byteCount = readInfo.stride * readInfo.height; local
124 read = readAllBytes(fd, (void*) pixels, byteCount);
162 size_t byteCount = info.stride * info.height; local
163 written = writeAllBytes(fd, (void*) pixels, byteCount);
/frameworks/base/core/java/android/util/jar/
H A DStrictJarFile.java347 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
352 int r = super.read(buffer, byteOffset, byteCount);
384 public long skip(long byteCount) throws IOException { argument
385 return Streams.skipByReading(this, byteCount);
399 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
402 i = super.read(buffer, byteOffset, byteCount);
458 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
461 if (byteCount > length) {
462 byteCount = (int) length;
469 int count = IoBridge.read(fd, buffer, byteOffset, byteCount);
479 skip(long byteCount) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DNativeFrame.java177 int byteCount = rgbaBitmap.getByteCount();
179 if (!setNativeBitmap(rgbaBitmap, byteCount, bps)) {
193 int byteCount = result.getByteCount();
195 if (!getNativeBitmap(result, byteCount, bps)) {
244 private native byte[] getNativeData(int byteCount); argument
252 private native int[] getNativeInts(int byteCount); argument
254 private native float[] getNativeFloats(int byteCount); argument
/frameworks/base/core/jni/
H A Dandroid_ddm_DdmHandleNativeHeap.cpp60 ssize_t byteCount; local
61 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) {
62 s.append(bytes, byteCount);
H A Dandroid_hardware_camera2_CameraMetadata.cpp314 jsize byteCount = entry.count * tagSize; local
315 jbyteArray byteArray = env->NewByteArray(byteCount);
320 memcpy(arrayWriter.get(), entry.data.u8, byteCount);
/frameworks/base/core/java/android/os/
H A DFileBridge.java180 public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
181 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
183 Memory.pokeInt(mTemp, 4, byteCount, ByteOrder.BIG_ENDIAN);
185 IoBridge.write(mClient, buffer, byteOffset, byteCount);
/frameworks/av/media/libaaudio/src/legacy/
H A DAudioStreamLegacy.cpp79 int32_t byteCount = audioBuffer->frameCount * getBytesPerFrame(); local
81 (uint8_t *) audioBuffer->raw, byteCount);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DSmsMessageBodyTest.java434 int byteCount = length * 2;
435 if (byteCount > SmsConstants.MAX_USER_DATA_BYTES) {
436 values[0] = (byteCount + SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER - 1) /
439 byteCount) / 2;
442 values[2] = (SmsConstants.MAX_USER_DATA_BYTES - byteCount) / 2;
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
H A DSmsMessage.java719 * @param byteCount the number of byest in the user data payload
722 String getUserDataGSM8bit(int byteCount) { argument
725 ret = GsmAlphabet.gsm8BitUnpackedToString(mPdu, mCur, byteCount);
727 mCur += byteCount;
736 * @param byteCount the number of bytes in the user data payload
739 String getUserDataUCS2(int byteCount) { argument
743 ret = new String(mPdu, mCur, byteCount, "utf-16");
749 mCur += byteCount;
757 * @param byteCount the number of bytes in the user data payload
760 String getUserDataKSC5601(int byteCount) { argument
[all...]
/frameworks/av/media/img_utils/src/
H A DTiffIfd.cpp312 uint32_t byteCount = stripByteCounts->getCount(); local
313 if (offsetsCount != byteCount) {
315 __FUNCTION__, offsetsCount, byteCount, mIfdId);
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfEditor.cpp75 static bool writeAllBytes(const int fd, const void* buffer, const size_t byteCount) { argument
77 size_t remainingBytes = byteCount;
/frameworks/native/libs/ui/
H A DFenceTime.cpp36 void* FenceTime::operator new(size_t byteCount) noexcept {
38 if (posix_memalign(&p, alignof(FenceTime), byteCount)) {
/frameworks/base/opengl/java/android/opengl/
H A DGLLogWrapper.java930 private ByteBuffer toByteBuffer(int byteCount, Buffer input) { argument
932 boolean convertWholeBuffer = (byteCount < 0);
937 byteCount = input2.limit() - position;
939 result = ByteBuffer.allocate(byteCount).order(input2.order());
940 for (int i = 0; i < byteCount; i++) {
948 byteCount = (input2.limit() - position) * 2;
950 result = ByteBuffer.allocate(byteCount).order(input2.order());
952 for (int i = 0; i < byteCount / 2; i++) {
960 byteCount = (input2.limit() - position)* 2;
962 result = ByteBuffer.allocate(byteCount)
[all...]
/frameworks/support/exifinterface/src/android/support/media/
H A DExifInterface.java2713 long byteCount = 0;
2720 byteCount = (long) numberOfComponents * IFD_FORMAT_BYTES_PER_FORMAT[dataFormat];
2721 if (byteCount < 0 || byteCount > Integer.MAX_VALUE) {
2735 if (byteCount > 4) {
2768 if (offset + byteCount <= dataInputStream.mLength) {
2781 Log.d(TAG, "nextIfdType: " + nextIfdType + " byteCount: " + byteCount);
2824 byte[] bytes = new byte[(int) byteCount];
2992 for (long byteCount
3473 seek(long byteCount) argument
3615 skipBytes(int byteCount) argument
[all...]
/frameworks/base/media/java/android/media/
H A DExifInterface.java2771 long byteCount = 0;
2778 byteCount = (long) numberOfComponents * IFD_FORMAT_BYTES_PER_FORMAT[dataFormat];
2779 if (byteCount < 0 || byteCount > Integer.MAX_VALUE) {
2793 if (byteCount > 4) {
2826 if (offset + byteCount <= dataInputStream.mLength) {
2839 Log.d(TAG, "nextIfdType: " + nextIfdType + " byteCount: " + byteCount);
2882 byte[] bytes = new byte[(int) byteCount];
3513 public void seek(long byteCount) throw argument
3648 skipBytes(int byteCount) argument
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DGsmAlphabet.java393 int byteCount = ((septetCount * 7) + 7) / 8;
394 byte[] ret = new byte[byteCount + 1]; // Include space for one byte length prefix.

Completed in 614 milliseconds

12