/frameworks/base/core/java/com/android/internal/http/multipart/ |
H A D | ByteArrayPartSource.java | 50 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 D | MultipartEntity.java | 110 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 D | AmrCodec.cpp | 102 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 D | GsmCodec.cpp | 62 unsigned char *bytes = (unsigned char *)payload; local 65 gsm_decode(mDecode, bytes, &samples[n]) == 0) { 68 bytes += 33;
|
/frameworks/base/core/java/com/google/android/mms/pdu/ |
H A D | QuotedPrintable.java | 26 * 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/base/libs/rs/ |
H A D | rsFifoSocket.cpp | 47 void FifoSocket::writeAsync(const void *data, size_t bytes) { argument 48 if (bytes == 0) { 51 //LOGE("writeAsync %p %i", data, bytes); 52 size_t ret = ::send(sv[0], data, bytes, 0); 54 rsAssert(ret == bytes); 64 size_t FifoSocket::read(void *data, size_t bytes) { argument 65 //LOGE("read %p %i", data, bytes); 66 size_t ret = ::recv(sv[1], data, bytes, 0); 67 rsAssert(ret == bytes); 72 void FifoSocket::readReturn(const void *data, size_t bytes) { argument [all...] |
H A D | rsFifo.h | 38 void virtual writeAsync(const void *data, size_t bytes) = 0; 40 size_t virtual read(void *data, size_t bytes) = 0; 41 void virtual readReturn(const void *data, size_t bytes) = 0;
|
H A D | rsFifoSocket.h | 37 void virtual writeAsync(const void *data, size_t bytes); 39 size_t virtual read(void *data, size_t bytes); 40 void virtual readReturn(const void *data, size_t bytes);
|
H A D | rsLocklessFifo.h | 57 void * reserve(uint32_t bytes); 58 void commit(uint32_t command, uint32_t bytes); 59 void commitSync(uint32_t command, uint32_t bytes); 67 void makeSpace(uint32_t bytes); 68 bool makeSpaceNonBlocking(uint32_t bytes);
|
H A D | rsLocklessFifo.cpp | 178 uint32_t bytes = reinterpret_cast<const uint16_t *>(mGet)[1]; local 180 android_atomic_add(((bytes + 3) & ~3) + 4, (int32_t *)&mGet); 181 //mGet += ((bytes + 3) & ~3) + 4; 188 bool LocklessCommandFifo::makeSpaceNonBlocking(uint32_t bytes) { argument 190 if ((mPut+bytes) > mEnd) { 204 if (getFreeSpace() < bytes) { 211 void LocklessCommandFifo::makeSpace(uint32_t bytes) { argument 213 if ((mPut+bytes) > mEnd) { 227 while (getFreeSpace() < bytes) {
|
H A D | rsThreadIO.h | 65 uint32_t bytes; member in struct:android::renderscript::ThreadIO::CoreCmdHeaderRec 69 uint32_t bytes; member in struct:android::renderscript::ThreadIO::ClientCmdHeaderRec
|
H A D | rsThreadIO.cpp | 61 hdr.bytes = dataLen; 169 mLastClientHeader.bytes = bytesData - sizeof(uint32_t); 172 mLastClientHeader.bytes = 0; 175 receiveLen[0] = mLastClientHeader.bytes; 182 receiveLen[0] = mLastClientHeader.bytes; 184 if (bufferLen < mLastClientHeader.bytes) { 210 hdr.bytes = dataLen;
|
/frameworks/base/cmds/keystore/ |
H A D | keystore_cli.cpp | 59 uint8_t bytes[65536]; local 62 bytes[0] = length >> 8; 63 bytes[1] = length; 64 send(sock, &bytes, 2, 0); 76 while ((i = recv(sock, &bytes[0], 1, 0)) == 1) { 79 if ((i = recv(sock, &bytes[1], 1, 0)) != 1) { 83 length = bytes[0] << 8 | bytes[1]; 85 i = recv(sock, &bytes[offset], length - offset, 0); 91 fwrite(bytes, [all...] |
H A D | keystore_get.h | 38 * KEYSTORE_MESSAGE_SIZE bytes. This function returns the length of the value or 42 uint8_t bytes[2] = {length >> 8, length}; local 54 if (send(sock, &code, 1, 0) == 1 && send(sock, bytes, 2, 0) == 2 && 57 recv(sock, &bytes[0], 1, 0) == 1 && recv(sock, &bytes[1], 1, 0) == 1) { 59 length = bytes[0] << 8 | bytes[1];
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | CharSequences.java | 26 * 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 D | BitwiseInputStream.java | 96 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 D | CharSequencesTest.java | 29 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 D | Base64InputStream.java | 103 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 D | Sha1Test.java | 56 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/base/core/jni/ |
H A D | android_ddm_DdmHandleNativeHeap.cpp | 90 LOGD("**** 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/drm/common/ |
H A D | ReadWriteUtils.cpp | 46 char* bytes = new char[length]; local 47 if (length == read(fd, (void*) bytes, length)) { 48 string.append(bytes, length); 50 delete bytes;
|
/frameworks/base/graphics/java/android/renderscript/ |
H A D | BaseObj.java | 92 byte[] bytes = name.getBytes("UTF-8"); 93 mRS.nAssignName(mID, bytes);
|
/frameworks/base/include/media/stagefright/ |
H A D | MediaWriter.h | 41 virtual void setMaxFileSize(int64_t bytes) { mMaxFileSizeLimitBytes = bytes; } argument
|
/frameworks/base/core/java/android/net/http/ |
H A D | SslCertificate.java | 124 byte[] bytes = bundle.getByteArray(X509_CERTIFICATE); 125 if (bytes == null) { 130 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes)); 270 byte[] bytes = x509Certificate.getEncoded(); 272 byte[] digest = md.digest(bytes); 281 private static final String fingerprint(byte[] bytes) { argument 282 if (bytes == null) { 286 for (int i = 0; i < bytes.length; i++) { 287 byte b = bytes[i]; 289 if (i+1 != bytes [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | LightsService.java | 164 byte[] bytes = new byte[2]; 165 bytes[0] = (byte)(on ? '1' : '0'); 166 bytes[1] = '\n'; 167 fos.write(bytes);
|