HomeSort by relevance Sort by last modified time
    Searched defs:bytes (Results 351 - 375 of 2455) sorted by null

<<11121314151617181920>>

  /external/webrtc/webrtc/base/
helpers.cc 130 char* bytes = reinterpret_cast<char*>(buf); local
132 bytes[i] = static_cast<char>(rand());
226 scoped_ptr<uint8_t[]> bytes(new uint8_t[len]);
227 if (!Rng().Generate(bytes.get(), len)) {
233 str->push_back(table[bytes[i] % table_size]);
253 scoped_ptr<uint8_t[]> bytes(new uint8_t[31]);
254 if (!Rng().Generate(bytes.get(), 31)) {
260 str.push_back(kHex[bytes[i] % 16]);
264 str.push_back(kHex[bytes[i] % 16]);
269 str.push_back(kHex[bytes[i] % 16])
    [all...]
stream_unittest.cc 78 size_t bytes; local
82 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS);
83 EXPECT_EQ(bytes, kBufSize);
85 EXPECT_TRUE(stream->GetPosition(&bytes));
86 EXPECT_EQ(13U, bytes);
90 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS);
91 EXPECT_EQ(bytes, kBufSize);
93 EXPECT_TRUE(stream->GetPosition(&bytes));
94 EXPECT_EQ(20U, bytes);
103 size_t bytes; local
    [all...]
  /external/wpa_supplicant_8/src/ap/
accounting.c 274 u64 bytes; local
309 bytes = data.rx_bytes;
311 bytes = ((u64) sta->last_rx_bytes_hi << 32) |
315 (u32) bytes)) {
321 (u32) (bytes >> 32))) {
326 bytes = data.tx_bytes;
328 bytes = ((u64) sta->last_tx_bytes_hi << 32) |
332 (u32) bytes)) {
338 (u32) (bytes >> 32))) {
  /frameworks/base/core/jni/
android_hardware_UsbDeviceConnection.cpp 98 jbyte* bytes = (jbyte*)env->GetPrimitiveArrayCritical(ret, 0); local
99 if (bytes) {
100 memcpy(bytes, buffer, length);
101 env->ReleasePrimitiveArrayCritical(ret, bytes, 0);
  /frameworks/base/media/mca/filterfw/jni/
jni_gl_frame.cpp 119 jbyte* bytes = env->GetByteArrayElements(data, NULL); local
120 if (bytes) {
121 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), length);
122 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
jni_native_frame.cpp 60 jbyte* bytes = env->GetByteArrayElements(data, NULL); local
61 if (bytes) {
62 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset),
65 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
207 ALOGE("Unsupported bytes-per-pixel %d in setBitmap!", bytes_per_sample);
259 ALOGE("Unsupported bytes-per-pixel %d in getBitmap!", bytes_per_sample);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DataUsageDetailView.java 66 final long bytes; local
73 bytes = info.usageLevel;
79 bytes = info.limitLevel - info.usageLevel;
87 bytes = info.usageLevel - info.limitLevel;
98 usage.setText(formatBytes(bytes));
114 private String formatBytes(long bytes) {
115 final long b = Math.abs(bytes);
128 return FORMAT.format(val * (bytes < 0 ? -1 : 1)) + " " + suffix;
  /hardware/qcom/wlan/qcwcn/wifi_hal/
common.cpp 245 char *bytes = (char *)buf; local
249 bytes[i], bytes[i+1],
250 bytes[i+2], bytes[i+3],
251 bytes[i+4], bytes[i+5],
252 bytes[i+6], bytes[i+7]);
256 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/luni/src/test/java/libcore/java/util/
BitSetTest.java 81 private static void assertBitSet(BitSet bs, byte[] bytes, String s) {
82 for (int i = 0; i < 8 * bytes.length; ++i) {
83 assertEquals(bs.toString(), ((bytes[i / 8] & (1L << (i % 8))) != 0), bs.get(i));
86 for (int i = 0; i < bytes.length; ++i) {
87 cardinality += Integer.bitCount(((int) bytes[i]) & 0xff);
95 assertEquals(roundUp(8 * bytes.length, 64), bs.size());
103 private static void assertBitSet(byte[] bytes, String s) {
105 assertBitSet(BitSet.valueOf(bytes), bytes, s); local
107 assertBitSet(BitSet.valueOf(ByteBuffer.wrap(bytes)), bytes, s) local
112 assertBitSet(BitSet.valueOf(ByteBuffer.wrap(paddedBytes, 1, bytes.length)), bytes, s); local
    [all...]
  /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...]
  /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/test/bench/shootout/
fasta.c 95 int bytes = n > LINE_LEN ? LINE_LEN : n; local
97 fwrite_unlocked(buffer + pos, bytes, 1, stdout);
98 pos += bytes;
103 n -= bytes;
  /prebuilts/go/linux-x86/test/bench/shootout/
fasta.c 95 int bytes = n > LINE_LEN ? LINE_LEN : n; local
97 fwrite_unlocked(buffer + pos, bytes, 1, stdout);
98 pos += bytes;
103 n -= bytes;
  /prebuilts/ndk/current/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/current/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/current/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/current/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/current/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/current/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/current/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; })

Completed in 948 milliseconds

<<11121314151617181920>>