/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | AudioSample.java | 23 public final byte[] bytes; field in class:AudioSample 25 public AudioSample(int sampleRate, int channelCount, byte[] bytes) { argument 28 this.bytes = bytes;
|
/frameworks/opt/net/voip/src/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/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
H A D | UnsafeByteSequence.java | 31 private byte[] bytes; field in class:UnsafeByteSequence 35 this.bytes = new byte[initialCapacity]; 51 if (count + length >= bytes.length) { 53 System.arraycopy(bytes, 0, newBytes, 0, count); 54 bytes = newBytes; 56 System.arraycopy(buffer, offset, bytes, count, length); 61 if (count == bytes.length) { 63 System.arraycopy(bytes, 0, newBytes, 0, count); 64 bytes = newBytes; 66 bytes[coun [all...] |
H A D | Charsets.java | 49 * Returns a new byte array containing the bytes corresponding to the given characters, 59 * Returns a new byte array containing the bytes corresponding to the given characters, 69 * Returns a new byte array containing the bytes corresponding to the given characters, 79 * Returns a new byte array containing the bytes corresponding to the given characters, 95 * Decodes the given US-ASCII bytes into the given char[]. Equivalent to but faster than: 102 public static void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars) { argument 103 if (bytes == null || chars == null) { 109 char ch = (char) (bytes[start++] & 0xff); 115 * Decodes the given ISO-8859-1 bytes into the given char[]. Equivalent to but faster than: 121 public static void isoLatin1BytesToChars(byte[] bytes, in argument [all...] |
/frameworks/opt/telephony/src/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/rs/ |
H A D | rsFifo.h | 38 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 D | rsFifoSocket.cpp | 52 bool FifoSocket::writeAsync(const void *data, size_t bytes, bool waitForSpace) { argument 53 if (bytes == 0) { 56 //ALOGE("writeAsync %p %i", data, bytes); 57 size_t ret = ::send(sv[0], data, bytes, 0); 58 rsAssert(ret == bytes); 59 if (ret != bytes) { 60 ALOGE("writeAsync %p %zu ret %zu", data, bytes, ret); 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_WAITAL 101 readReturn(const void *data, size_t bytes) argument [all...] |
H A D | rsFifoSocket.h | 37 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 D | rsThreadIO.cpp | 54 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 = (uint32_t)dataLen;
|
/frameworks/base/tools/layoutlib/bridge/src/dalvik/system/ |
H A D | VMRuntime_Delegate.java | 33 // Dalvik has 32bit pointers, the array header is 16bytes plus 4bytes for dlmalloc, 34 // allocations are 8byte aligned so having 4bytes of array data avoids padding. 39 int bytes = 20 + (2 * minLength); 40 int alignedUpBytes = (bytes + 7) & -8; 48 int bytes = 20 + minLength; 49 int alignedUpBytes = (bytes + 7) & -8; 54 int bytes = 20 + minLength; 55 int alignedUpBytes = (bytes + 7) & -8; 60 int bytes [all...] |
/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/av/services/audioflinger/ |
H A D | SpdifStreamOut.h | 53 * Write audio buffer to driver. Returns number of bytes written, or a 60 * bytes that currently fit in the driver/hardware buffer and then return 65 virtual ssize_t write(const void* buffer, size_t bytes); 103 virtual ssize_t writeOutput(const void* buffer, size_t bytes) argument 105 return mSpdifStreamOut->writeDataBurst(buffer, bytes); 116 ssize_t writeDataBurst(const void* data, size_t bytes); 117 ssize_t writeInternal(const void* buffer, size_t 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/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ByteBufferInputStream.java | 39 public int read(byte[] bytes, int off, int len) { argument 45 mBuf.get(bytes, off, len);
|
/frameworks/base/core/java/android/net/netlink/ |
H A D | NetlinkConstants.java | 57 public static String hexify(byte[] bytes) { argument 58 if (bytes == null) { return "(null)"; } 59 return HexDump.toHexString(bytes);
|
H A D | NetlinkSocket.java | 138 public boolean sendMessage(byte[] bytes, int offset, int count) argument 140 return sendMessage(bytes, offset, count, 0); 149 public boolean sendMessage(byte[] bytes, int offset, int count, long timeoutMs) argument 162 return (count == Os.write(mDescriptor, bytes, offset, count));
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | SdpOppOpsRecord.java | 77 byte[] bytes = new byte[arrayLength]; 78 in.readByteArray(bytes); 79 this.mFormatsList = bytes;
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | VertexFrame.java | 90 byte[] bytes = buffer.array(); 91 if (getFormat().getSize() != bytes.length) { 93 } else if (!setNativeData(bytes, offset, length)) {
|
/frameworks/base/tools/aapt2/ |
H A D | BigBuffer.h | 72 * Number of occupied bytes in all the allocated blocks. 90 * Pads the block with 'bytes' bytes of zero values. 92 void pad(size_t bytes); 138 inline void BigBuffer::pad(size_t bytes) { argument 139 nextBlock<char>(bytes);
|
/frameworks/av/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/core/jni/ |
H A D | android_ddm_DdmHandleNativeHeap.cpp | 59 char bytes[1024]; local 61 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) { 62 s.append(bytes, byteCount);
|