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

1234567891011>>

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DAudioSample.java23 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 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/layoutlib/create/src/com/android/tools/layoutlib/java/
H A DUnsafeByteSequence.java31 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 DCharsets.java49 * 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 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/base/core/java/android/util/
H A DByteStringUtils.java33 * Returns the hex encoded string representation of bytes.
34 * @param bytes Byte array to encode.
35 * @return Hex encoded string representation of bytes.
37 public static String toHexString(byte[] bytes) { argument
38 if (bytes == null || bytes.length == 0 || bytes.length % 2 != 0) {
42 final int byteLength = bytes.length;
47 final int byteHex = bytes[i] & 0xFF;
66 final byte[] bytes
[all...]
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/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.cpp52 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 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);
/frameworks/base/core/java/android/bluetooth/
H A DUidTraffic.java22 * Record of data traffic (in bytes) by an application identified by its UID.
54 public void setRxBytes(long bytes) { argument
55 mRxBytes = bytes;
58 public void setTxBytes(long bytes) { argument
59 mTxBytes = bytes;
62 public void addRxBytes(long bytes) { argument
63 mRxBytes += bytes;
66 public void addTxBytes(long bytes) { argument
67 mTxBytes += bytes;
/frameworks/base/core/proto/android/os/
H A Ddata.proto33 optional bytes gzipped_data = 2;
/frameworks/layoutlib/bridge/src/dalvik/system/
H A DVMRuntime_Delegate.java33 // 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/rs/rsov/compiler/spirit/
H A Dinstructions_test.cpp34 uint8_t bytes[] = {0x0a, 0x00, 0x03, 0x00, 0x41, 0x42, local
36 std::vector<uint32_t> words((uint32_t *)bytes,
37 (uint32_t *)(bytes + sizeof(bytes)));
44 uint8_t bytes[] = {0x0b, 0x00, 0x06, 0x00, 0x01, 0x00, 0x00, 0x00, local
47 std::vector<uint32_t> words((uint32_t *)bytes,
48 (uint32_t *)(bytes + sizeof(bytes)));
H A Dword_stream_test.cpp30 const std::vector<uint8_t> bytes((uint8_t *)words.data(),
34 EXPECT_EQ(bytesExpected, bytes);
41 const std::vector<uint8_t> bytes((uint8_t *)words.data(),
46 EXPECT_EQ(bytesExpected, bytes);
50 uint8_t bytes[] = {0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x00}; local
51 std::vector<uint32_t> words((uint32_t *)bytes,
52 (uint32_t *)(bytes + sizeof(bytes)));
60 uint8_t bytes[] = {0x47, 0x4c, 0x53, 0x4c, 0x2e, 0x73, 0x74, 0x64, local
62 std::vector<uint32_t> words((uint32_t *)bytes,
[all...]
H A Dword_stream.cpp35 InputWordStream *InputWordStream::Create(const std::vector<uint8_t> &bytes) { argument
36 std::vector<uint32_t> words((uint32_t *)bytes.data(),
37 (uint32_t *)(bytes.data() + bytes.size()));
/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...]
/frameworks/av/drm/mediacas/plugins/clearkey/protos/
H A Dlicense_protos.proto41 // 'bytes' instead of 'string' due to UTF-8 validation in the latter.
42 optional bytes name = 2;
61 optional bytes encryption_key = 1; // 256-byte key for the asset.
/frameworks/base/core/tests/utiltests/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/av/services/audioflinger/
H A DSpdifStreamOut.h51 * Write audio buffer to driver. Returns number of bytes written, or a
58 * bytes that currently fit in the driver/hardware buffer and then return
63 virtual ssize_t write(const void* buffer, size_t bytes);
101 virtual ssize_t writeOutput(const void* buffer, size_t bytes) argument
103 return mSpdifStreamOut->writeDataBurst(buffer, bytes);
114 ssize_t writeDataBurst(const void* data, size_t bytes);
115 ssize_t writeInternal(const void* buffer, size_t bytes);
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/util/
H A DAtomicFileTest.kt44 val bytes = file.openRead().use { it.readBytes() }
45 assertArrayEquals(byteArrayOf(0, 1, 2), bytes)
61 val bytes = file.openRead().use { it.readBytes() }
62 assertArrayEquals(byteArrayOf(0, 1, 2), bytes)
68 val bytes = file.openRead().use { it.readBytes() }
69 assertArrayEquals(byteArrayOf(0, 1, 2), bytes)
75 val bytes = file.openRead().use { it.readBytes() }
76 assertArrayEquals(byteArrayOf(72, 101, 121), bytes)
82 val bytes = file.openRead().use { it.readBytes() }
83 assertArrayEquals(byteArrayOf(72, 0, 101, 0, 121, 0), bytes)
[all...]
/frameworks/base/libs/services/src/os/
H A DStatsLogEventWrapper.cpp35 out->writeByteVector(bytes);
40 in->readByteVector(&bytes);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { argument
45 mBuf.get(bytes, off, len);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DInformationElementUtil.java35 public static InformationElement[] parseInformationElements(byte[] bytes) { argument
36 if (bytes == null) {
39 ByteBuffer data = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN);
49 // APs often pad the data with bytes that happen to match that of the EID_SSID
60 ie.bytes = new byte[elementLength];
61 data.get(ie.bytes);
142 if (ie.bytes.length != 5) {
144 + ie.bytes.length);
146 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN);
184 secondChannelOffset = ie.bytes[
[all...]

Completed in 1754 milliseconds

1234567891011>>