Searched defs:bytes (Results 1 - 25 of 74) sorted by relevance

123

/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/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/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/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);
/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/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/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/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/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DDataUsageDetailView.java67 final long bytes;
74 bytes = info.usageLevel;
80 bytes = info.limitLevel - info.usageLevel;
88 bytes = info.usageLevel - info.limitLevel;
99 usage.setText(formatBytes(bytes));
115 private String formatBytes(long bytes) { argument
116 final long b = Math.abs(bytes);
129 return FORMAT.format(val * (bytes < 0 ? -1 : 1)) + " " + suffix;
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
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...]
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...]
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DExif.java45 Looking at this algorithm, we never look ahead more than 8 bytes. As long as we call
48 Also, the most we ever read backwards is 4 bytes. pack() reads backwards if the encoding
49 is in little endian format. These following two lines potentially reads 4 bytes backwards:
187 private static int pack(final InputStreamBuffer bytes, int offset, int length, argument
197 value = (value << 8) | (bytes.get(offset) & 0xFF);
/frameworks/opt/net/voip/src/jni/rtp/
H A DGsmCodec.cpp62 unsigned char *bytes = (unsigned char *)payload; local
65 gsm_decode(mDecode, bytes, &samples[n]) == 0) {
68 bytes += 33;
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...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DExif.java40 Looking at this algorithm, we never look ahead more than 8 bytes. As long as we call
43 Also, the most we ever read backwards is 4 bytes. pack() reads backwards if the encoding
44 is in little endian format. These following two lines potentially reads 4 bytes backwards:
182 private static int pack(final InputStreamBuffer bytes, int offset, int length, argument
192 value = (value << 8) | (bytes.get(offset) & 0xFF);
/frameworks/av/include/media/stagefright/
H A DMediaWriter.h41 virtual void setMaxFileSize(int64_t bytes) { mMaxFileSizeLimitBytes = bytes; } argument
/frameworks/base/core/jni/
H A Dandroid_ddm_DdmHandleNativeHeap.cpp59 char bytes[1024]; local
61 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) {
62 s.append(bytes, byteCount);
/frameworks/rs/
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 DrsThreadIO.h73 uint32_t bytes; member in struct:android::renderscript::ThreadIO::CoreCmdHeaderRec
77 uint32_t bytes; member in struct:android::renderscript::ThreadIO::ClientCmdHeaderRec
/frameworks/base/core/java/android/speech/tts/
H A DSynthesisPlaybackQueueItem.java242 ListEntry(byte[] bytes) { argument
243 mBytes = bytes;
/frameworks/base/keystore/java/android/security/
H A DAndroidKeyStore.java146 private static X509Certificate toCertificate(byte[] bytes) { argument
150 .generateCertificate(new ByteArrayInputStream(bytes));
158 private static Collection<X509Certificate> toCertificates(byte[] bytes) { argument
162 .generateCertificates(new ByteArrayInputStream(bytes));
/frameworks/base/telecomm/java/android/telecom/
H A DLog.java151 private static String encodeHex(byte[] bytes) { argument
152 StringBuffer hex = new StringBuffer(bytes.length * 2);
154 for (int i = 0; i < bytes.length; i++) {
155 int byteIntValue = bytes[i] & 0xff;
/frameworks/ex/framesequence/jni/
H A DFrameSequenceJNI.cpp50 jbyte* bytes = reinterpret_cast<jbyte*>(env->GetPrimitiveArrayCritical(byteArray, NULL)); local
51 if (bytes == NULL) {
53 "couldn't read array bytes");
56 MemoryStream stream(bytes + offset, length);
58 env->ReleasePrimitiveArrayCritical(byteArray, bytes, 0);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DIccUtils.java149 * shall be left justified. Unused bytes shall be set to 'FF'; or
307 * @param bytes an array of bytes
309 * @return hex string representation of bytes array
312 bytesToHexString(byte[] bytes) { argument
313 if (bytes == null) return null;
315 StringBuilder ret = new StringBuilder(2*bytes.length);
317 for (int i = 0 ; i < bytes.length ; i++) {
320 b = 0x0f & (bytes[i] >> 4);
324 b = 0x0f & bytes[
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DIccUtils.java149 * shall be left justified. Unused bytes shall be set to 'FF'; or
307 * @param bytes an array of bytes
309 * @return hex string representation of bytes array
312 bytesToHexString(byte[] bytes) { argument
313 if (bytes == null) return null;
315 StringBuilder ret = new StringBuilder(2*bytes.length);
317 for (int i = 0 ; i < bytes.length ; i++) {
320 b = 0x0f & (bytes[i] >> 4);
324 b = 0x0f & bytes[
[all...]

Completed in 4390 milliseconds

123