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

/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/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.cpp1303 if (*size > encData->bitstream1->byteCount)
1305 *size = encData->bitstream1->byteCount;
1416 *size = video->vol[0]->stream->byteCount;
1605 *size = currVol->stream->byteCount;
1857 pre_size = currVol->stream->byteCount;
1952 *size = currVol->stream->byteCount - pre_size;
H A Drate_control.cpp309 pMP->actual_bits = currVol->stream->byteCount << 3;
334 rc->Rc = currVol->stream->byteCount << 3; /* Total Bits for current frame */
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DNativeFrame.java179 int byteCount = rgbaBitmap.getByteCount();
181 if (!setNativeBitmap(rgbaBitmap, byteCount, bps)) {
195 int byteCount = result.getByteCount();
197 if (!getNativeBitmap(result, byteCount, bps)) {
246 private native byte[] getNativeData(int byteCount); argument
254 private native int[] getNativeInts(int byteCount); argument
256 private native float[] getNativeFloats(int byteCount); argument
/frameworks/base/core/jni/
H A Dandroid_net_wifi_Wifi.cpp57 int byteCount = vsnprintf(buf, sizeof(buf), fmt, args); local
59 if (byteCount < 0 || byteCount >= BUF_SIZE) {
74 int byteCount = vsnprintf(buf, sizeof(buf), fmt, args); local
76 if (byteCount < 0 || byteCount >= BUF_SIZE) {
91 int byteCount = vsnprintf(buf, sizeof(buf), fmt, args); local
93 if (byteCount < 0 || byteCount >= BUF_SIZE) {
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DSmsMessageBodyTest.java433 int byteCount = length * 2;
434 if (byteCount > SmsConstants.MAX_USER_DATA_BYTES) {
435 values[0] = (byteCount + SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER - 1) /
438 byteCount) / 2;
441 values[2] = (SmsConstants.MAX_USER_DATA_BYTES - byteCount) / 2;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DSmsMessage.java731 * @param byteCount the number of bytes in the user data payload
734 String getUserDataUCS2(int byteCount) { argument
738 ret = new String(pdu, cur, byteCount, "utf-16");
744 cur += byteCount;
752 * @param byteCount the number of bytes in the user data payload
755 String getUserDataKSC5601(int byteCount) { argument
759 ret = new String(pdu, cur, byteCount, "KSC5601");
765 cur += 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/base/core/java/android/net/dhcp/
H A DDhcpPacket.java540 private static String readAsciiString(ByteBuffer buf, int byteCount) { argument
541 byte[] bytes = new byte[byteCount];
/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 2309 milliseconds