Searched refs:bytes (Results 1 - 25 of 115) sorted by relevance

12345

/frameworks/base/core/java/com/android/internal/http/multipart/
H A DByteArrayPartSource.java50 private byte[] bytes; field in class:ByteArrayPartSource
55 * @param fileName the name of the file these bytes represent
56 * @param bytes the content of this part
58 public ByteArrayPartSource(String fileName, byte[] bytes) { argument
61 this.bytes = bytes;
69 return bytes.length;
83 return new ByteArrayInputStream(bytes);
H A DMultipartEntity.java110 byte[] bytes = new byte[rand.nextInt(11) + 30]; // a random size from 30 to 40
111 for (int i = 0; i < bytes.length; i++) {
112 bytes[i] = MULTIPART_CHARS[rand.nextInt(MULTIPART_CHARS.length)];
114 return bytes;
/frameworks/base/voip/jni/rtp/
H A DAmrCodec.cpp102 unsigned char *bytes = (unsigned char *)payload; local
106 samples, bytes + 1, &type, AMR_TX_WMF);
113 bytes[0] = 0xF0;
114 bytes[1] = (mMode << 3) | 0x04;
118 bytes[0] = 0xFF;
119 bytes[1] = 0xC0 | (mMode << 1) | 1;
122 bytes[length + 1] = 0;
124 bytes[i] = (bytes[i] << 6) | (bytes[
133 unsigned char *bytes = (unsigned char *)payload; local
226 unsigned char *bytes = (unsigned char *)payload; local
244 unsigned char *bytes = (unsigned char *)payload; local
[all...]
H A DGsmCodec.cpp62 unsigned char *bytes = (unsigned char *)payload; local
65 gsm_decode(mDecode, bytes, &samples[n]) == 0) {
68 bytes += 33;
/frameworks/opt/mms/src/java/com/google/android/mms/pdu/
H A DQuotedPrintable.java26 * Decodes an array quoted-printable characters into an array of original bytes.
35 * @param bytes array of quoted-printable characters
36 * @return array of original bytes,
39 public static final byte[] decodeQuotedPrintable(byte[] bytes) { argument
40 if (bytes == null) {
44 for (int i = 0; i < bytes.length; i++) {
45 int b = bytes[i];
48 if('\r' == (char)bytes[i + 1] &&
49 '\n' == (char)bytes[i + 2]) {
53 int u = Character.digit((char) bytes[
[all...]
/frameworks/rs/
H A DrsFifo.h38 bool virtual writeAsync(const void *data, size_t bytes, bool waitForSpace = true) = 0;
40 size_t virtual read(void *data, size_t bytes, bool doWait = true, uint64_t timeToWait = 0) = 0;
41 void virtual readReturn(const void *data, size_t bytes) = 0;
H A DrsFifoSocket.cpp54 bool FifoSocket::writeAsync(const void *data, size_t bytes, bool waitForSpace) { argument
55 if (bytes == 0) {
58 //ALOGE("writeAsync %p %i", data, bytes);
59 size_t ret = ::send(sv[0], data, bytes, 0);
60 rsAssert(ret == bytes);
61 if (ret != bytes) {
62 ALOGE("writeAsync %p %zu ret %zu", data, bytes, ret);
78 size_t FifoSocket::read(void *data, size_t bytes) { argument
83 //ALOGE("read %p %i", data, bytes);
84 size_t ret = ::recv(sv[1], data, bytes, MSG_WAITAL
103 readReturn(const void *data, size_t bytes) argument
[all...]
H A DrsFifoSocket.h37 bool writeAsync(const void *data, size_t bytes, bool waitForSpace = true);
39 size_t read(void *data, size_t bytes);
40 void readReturn(const void *data, size_t bytes);
H A DrsThreadIO.cpp54 hdr->bytes = dataLen;
139 mToCore.read(&buf[sizeof(CoreCmdHeader)], cmd->bytes);
153 //ALOGV("playCoreCommands 3 %i %i", cmd->cmdID, cmd->bytes);
161 gPlaybackFuncs[cmd->cmdID](con, data, cmd->bytes);
190 receiveLen[0] = mLastClientHeader.bytes;
199 receiveLen[0] = mLastClientHeader.bytes;
201 if (bufferLen < mLastClientHeader.bytes) {
216 hdr.bytes = dataLen;
/frameworks/support/renderscript/v8/rs_support/
H A DrsFifo.h38 bool virtual writeAsync(const void *data, size_t bytes, bool waitForSpace = true) = 0;
40 size_t virtual read(void *data, size_t bytes, bool doWait = true, uint64_t timeToWait = 0) = 0;
41 void virtual readReturn(const void *data, size_t bytes) = 0;
H A DrsFifoSocket.cpp54 bool FifoSocket::writeAsync(const void *data, size_t bytes, bool waitForSpace) { argument
55 if (bytes == 0) {
58 //ALOGE("writeAsync %p %i", data, bytes);
59 size_t ret = ::send(sv[0], data, bytes, 0);
61 rsAssert(ret == bytes);
76 size_t FifoSocket::read(void *data, size_t bytes) { argument
81 //ALOGE("read %p %i", data, bytes);
82 size_t ret = ::recv(sv[1], data, bytes, MSG_WAITALL);
83 rsAssert(ret == bytes || mShutdown);
84 //ALOGE("read ret %i bytes
101 readReturn(const void *data, size_t bytes) argument
[all...]
H A DrsFifoSocket.h37 bool writeAsync(const void *data, size_t bytes, bool waitForSpace = true);
39 size_t read(void *data, size_t bytes);
40 void readReturn(const void *data, size_t bytes);
H A DrsThreadIO.cpp54 hdr->bytes = dataLen;
139 mToCore.read(&buf[sizeof(CoreCmdHeader)], cmd->bytes);
153 //ALOGV("playCoreCommands 3 %i %i", cmd->cmdID, cmd->bytes);
161 gPlaybackFuncs[cmd->cmdID](con, data, cmd->bytes);
190 receiveLen[0] = mLastClientHeader.bytes;
199 receiveLen[0] = mLastClientHeader.bytes;
201 if (bufferLen < mLastClientHeader.bytes) {
216 hdr.bytes = dataLen;
/frameworks/base/core/java/com/android/internal/util/
H A DCharSequences.java26 * bytes.
28 * @param bytes ASCII bytes
30 public static CharSequence forAsciiBytes(final byte[] bytes) { argument
33 return (char) bytes[index];
37 return bytes.length;
41 return forAsciiBytes(bytes, start, end);
45 return new String(bytes);
52 * bytes.
54 * @param bytes ASCI
61 forAsciiBytes(final byte[] bytes, final int start, final int end) argument
[all...]
H A DBitwiseInputStream.java96 int bytes = (bits >>> 3) + ((bits & 0x07) > 0 ? 1 : 0); // &7==%8
97 byte[] arr = new byte[bytes];
98 for (int i = 0; i < bytes; i++) {
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DCharSequencesTest.java29 byte[] bytes = s.getBytes();
31 String copy = toString(forAsciiBytes(bytes));
34 copy = toString(forAsciiBytes(bytes, 0, s.length()));
37 String crazy = toString(forAsciiBytes(bytes, 0, 5));
40 String a = toString(forAsciiBytes(bytes, 0, 3).subSequence(2, 3));
43 String empty = toString(forAsciiBytes(bytes, 0, 3).subSequence(3, 3));
/frameworks/base/core/java/android/util/
H A DBase64InputStream.java103 long bytes = Math.min(n, outputEnd-outputStart);
104 outputStart += bytes;
105 return bytes;
126 int bytes = Math.min(len, outputEnd-outputStart);
127 System.arraycopy(coder.output, outputStart, b, off, bytes);
128 outputStart += bytes;
129 return bytes;
/frameworks/base/tests/CoreTests/android/core/
H A DSha1Test.java56 private static String encodeHex(byte[] bytes) { argument
57 StringBuffer hex = new StringBuffer(bytes.length * 2);
59 for (int i = 0; i < bytes.length; i++) {
60 if (((int) bytes[i] & 0xff) < 0x10) {
63 hex.append(Integer.toString((int) bytes[i] & 0xff, 16));
/frameworks/support/volley/tests/src/com/android/volley/toolbox/
H A DImageRequestTest.java90 ByteArrayOutputStream bytes = new ByteArrayOutputStream();
94 bytes.write(buffer, 0, count);
97 return bytes.toByteArray();
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DVertexFrame.java90 byte[] bytes = buffer.array();
91 if (getFormat().getSize() != bytes.length) {
93 } else if (!setNativeData(bytes, offset, length)) {
/frameworks/av/drm/common/
H A DReadWriteUtils.cpp46 char* bytes = new char[length]; local
47 if (length == read(fd, (void*) bytes, length)) {
48 string.append(bytes, length);
50 delete bytes;
/frameworks/base/core/jni/
H A Dandroid_ddm_DdmHandleNativeHeap.cpp90 ALOGD("**** read %d bytes from '%s'", (int) header.mapSize, path);
98 jbyte* bytes = NULL; local
105 bytes = env->GetByteArrayElements(array, NULL);
106 ptr = bytes;
120 env->ReleaseByteArrayElements(array, bytes, 0);
/frameworks/base/media/mca/filterfw/jni/
H A Djni_vertex_frame.cpp76 jbyte* bytes = env->GetByteArrayElements(data, NULL); local
77 if (bytes) {
78 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset),
80 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
/frameworks/av/include/media/stagefright/
H A DMediaWriter.h41 virtual void setMaxFileSize(int64_t bytes) { mMaxFileSizeLimitBytes = bytes; } argument
/frameworks/av/media/libstagefright/codecs/flac/enc/
H A DSoftFlacEncoder.h80 size_t bytes, unsigned samples, unsigned current_frame, void *client_data);
84 size_t bytes, unsigned samples, unsigned current_frame);

Completed in 328 milliseconds

12345