| /frameworks/base/media/mca/filterfw/jni/ |
| jni_native_frame.cpp | 61 jbyte* bytes = env->GetByteArrayElements(data, NULL); local 62 if (bytes) { 63 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), 66 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT); 208 ALOGE("Unsupported bytes-per-pixel %d in setBitmap!", bytes_per_sample); 260 ALOGE("Unsupported bytes-per-pixel %d in getBitmap!", bytes_per_sample);
|
| /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
| DataUsageDetailView.java | 68 final long bytes; local 75 bytes = info.usageLevel; 81 bytes = info.limitLevel - info.usageLevel; 89 bytes = info.usageLevel - info.limitLevel; 104 usage.setText(formatBytes(bytes)); 126 private String formatBytes(long bytes) { 127 final long b = Math.abs(bytes); 140 return FORMAT.format(val * (bytes < 0 ? -1 : 1)) + " " + suffix;
|
| /hardware/qcom/wlan/qcwcn/wifi_hal/ |
| common.cpp | 245 char *bytes = (char *)buf; local 251 bytes[i], bytes[i+1], 252 bytes[i+2], bytes[i+3], 253 bytes[i+4], bytes[i+5], 254 bytes[i+6], bytes[i+7]); 258 bytes[i], bytes[i+1] [all...] |
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
| ConsoleTest.java | 40 private static final byte[] bytes = "hello world\n".getBytes(); field in class:ConsoleTest 42 private InputStream in = new ByteArrayInputStream(bytes);
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
| AttributedCharacterIteratorAttributeTest.java | 75 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 76 out = new ObjectOutputStream(bytes); 93 in = new ObjectInputStream(new ByteArrayInputStream(bytes
|
| DataFormatFieldTest.java | 178 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 179 out = new ObjectOutputStream(bytes); 193 in = new ObjectInputStream(new ByteArrayInputStream(bytes
|
| /libcore/luni/src/test/java/libcore/java/text/ |
| OldAttributedCharacterIteratorAttributeTest.java | 160 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 161 out = new ObjectOutputStream(bytes); 169 in = new ObjectInputStream(new ByteArrayInputStream(bytes
|
| /libcore/ojluni/src/main/native/ |
| Bits.c | 56 #define GETCRITICAL(bytes, env, obj) { \ 57 (bytes) = (*(env))->GetPrimitiveArrayCritical(env, obj, NULL); \ 58 if ((bytes) == NULL) \ 62 #define RELEASECRITICAL(bytes, env, obj, mode) { \ 63 (*(env))->ReleasePrimitiveArrayCritical(env, obj, bytes, mode); \ 79 jbyte *bytes; local 93 GETCRITICAL(bytes, env, src); 95 srcShort = (jshort *)(bytes + srcPos); 102 RELEASECRITICAL(bytes, env, src, JNI_ABORT); 114 jbyte *bytes; local 149 jbyte *bytes; local 184 jbyte *bytes; local 219 jbyte *bytes; local 254 jbyte *bytes; local [all...] |
| LinuxNativeDispatcher.c | 181 jbyteArray bytes; local 196 bytes = (*env)->NewByteArray(env, len); 197 if (bytes == NULL) 199 (*env)->SetByteArrayRegion(env, bytes, 0, len, (jbyte*)name); 200 (*env)->SetObjectField(env, entry, entry_name, bytes); 203 bytes = (*env)->NewByteArray(env, len); 204 if (bytes == NULL) 206 (*env)->SetByteArrayRegion(env, bytes, 0, len, (jbyte*)dir); 207 (*env)->SetObjectField(env, entry, entry_dir, bytes); 210 bytes = (*env)->NewByteArray(env, len) [all...] |
| /libcore/tzdata/shared2/src/main/libcore/tzdata/shared2/ |
| TimeZoneDistro.java | 29 * A time zone distro. This is a thin wrapper around some in-memory bytes representing a zip 45 * The content is ASCII bytes representing a set of version numbers. See {@link DistroVersion}. 58 private final byte[] bytes; field in class:TimeZoneDistro 60 public TimeZoneDistro(byte[] bytes) { 61 this.bytes = bytes; 65 return bytes; 70 new ByteArrayInputStream(bytes), DISTRO_VERSION_FILE_NAME); 105 extractZipSafely(new ByteArrayInputStream(bytes), targetDir, true /* makeWorldReadable */); 163 if (!Arrays.equals(bytes, that.bytes)) [all...] |
| /packages/apps/Dialer/java/com/android/dialer/about/ |
| Licenses.java | 89 int bytes = 0; local 92 && (bytes = stream.read(buffer, 0, Math.min(bytesRemaining, buffer.length))) != -1) { 93 textArray.write(buffer, 0, bytes); 94 bytesRemaining -= bytes;
|
| /packages/apps/Dialer/java/com/android/dialer/protos/ |
| ProtoParsers.java | 105 /* One of these two fields is always populated - since the bytes field never escapes this 108 private volatile byte[] bytes; field in class:ProtoParsers.InternalDontUse 132 private InternalDontUse(byte[] bytes, T message) { 133 Assert.checkArgument(bytes != null || message != null, "Must have a message or bytes"); 134 this.bytes = bytes; 145 if (bytes == null) { 149 bytes = flatArray; 154 parcel.writeInt(bytes.length) [all...] |
| /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/netfilter/ |
| xt_sctp.h | 38 #define bytes(type) (sizeof(type) * 8) macro 42 (chunkmap)[type / bytes(__u32)] |= \ 43 1 << (type % bytes(__u32)); \ 48 (chunkmap)[type / bytes(__u32)] &= \ 49 ~(1 << (type % bytes(__u32))); \ 54 ((chunkmap)[type / bytes (__u32)] & \ 55 (1 << (type % bytes (__u32)))) ? 1: 0; \
|
| /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/netfilter/ |
| xt_sctp.h | 38 #define bytes(type) (sizeof(type) * 8) macro 42 (chunkmap)[type / bytes(__u32)] |= \ 43 1 << (type % bytes(__u32)); \ 48 (chunkmap)[type / bytes(__u32)] &= \ 49 ~(1 << (type % bytes(__u32))); \ 54 ((chunkmap)[type / bytes (__u32)] & \ 55 (1 << (type % bytes (__u32)))) ? 1: 0; \
|
| /prebuilts/go/darwin-x86/src/bytes/ |
| buffer.go | 5 package bytes package 15 // A Buffer is a variable-sized buffer of bytes with Read and Write methods. 18 buf []byte // contents are the bytes buf[off : len(buf)] 40 var ErrTooLarge = errors.New("bytes.Buffer: too large") 42 // Bytes returns a slice of length b.Len() holding the unread portion of the buffer. 47 func (b *Buffer) Bytes() []byte { return b.buf[b.off:] } 59 // Len returns the number of bytes of the unread portion of the buffer; 60 // b.Len() == len(b.Bytes()). 67 // Truncate discards all but the first n unread bytes from the buffer 74 panic("bytes.Buffer: truncation out of range" [all...] |
| /prebuilts/go/linux-x86/src/bytes/ |
| buffer.go | 5 package bytes package 15 // A Buffer is a variable-sized buffer of bytes with Read and Write methods. 18 buf []byte // contents are the bytes buf[off : len(buf)] 40 var ErrTooLarge = errors.New("bytes.Buffer: too large") 42 // Bytes returns a slice of length b.Len() holding the unread portion of the buffer. 47 func (b *Buffer) Bytes() []byte { return b.buf[b.off:] } 59 // Len returns the number of bytes of the unread portion of the buffer; 60 // b.Len() == len(b.Bytes()). 67 // Truncate discards all but the first n unread bytes from the buffer 74 panic("bytes.Buffer: truncation out of range" [all...] |
| /prebuilts/ndk/r10/platforms/android-12/arch-arm/usr/include/linux/netfilter/ |
| xt_sctp.h | 49 #define bytes(type) (sizeof(type) * 8) macro 51 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 53 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
| /prebuilts/ndk/r10/platforms/android-12/arch-arm/usr/include/linux/netfilter_ipv4/ |
| ipt_sctp.h | 47 #define bytes(type) (sizeof(type) * 8) macro 49 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 51 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 53 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
| /prebuilts/ndk/r10/platforms/android-12/arch-mips/usr/include/linux/netfilter/ |
| xt_sctp.h | 49 #define bytes(type) (sizeof(type) * 8) macro 51 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 53 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
| /prebuilts/ndk/r10/platforms/android-12/arch-mips/usr/include/linux/netfilter_ipv4/ |
| ipt_sctp.h | 47 #define bytes(type) (sizeof(type) * 8) macro 49 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 51 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 53 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
| /prebuilts/ndk/r10/platforms/android-12/arch-x86/usr/include/linux/netfilter/ |
| xt_sctp.h | 49 #define bytes(type) (sizeof(type) * 8) macro 51 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 53 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
| /prebuilts/ndk/r10/platforms/android-12/arch-x86/usr/include/linux/netfilter_ipv4/ |
| ipt_sctp.h | 47 #define bytes(type) (sizeof(type) * 8) macro 49 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 51 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 53 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
| /prebuilts/ndk/r10/platforms/android-13/arch-arm/usr/include/linux/netfilter/ |
| xt_sctp.h | 49 #define bytes(type) (sizeof(type) * 8) macro 51 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 53 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
| /prebuilts/ndk/r10/platforms/android-13/arch-arm/usr/include/linux/netfilter_ipv4/ |
| ipt_sctp.h | 47 #define bytes(type) (sizeof(type) * 8) macro 49 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 51 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 53 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
| /prebuilts/ndk/r10/platforms/android-13/arch-mips/usr/include/linux/netfilter/ |
| xt_sctp.h | 49 #define bytes(type) (sizeof(type) * 8) macro 51 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 53 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|