/external/toybox/toys/pending/ |
file.c | 89 // map e_phentsize*e_phnum bytes at e_phoff 174 int i, bytes; local 185 if ((bytes = mbrtowc(&wc, s+i, len-i, 0))>0 && wcwidth(wc)>=0) { 186 i += bytes-1;
|
/external/toybox/toys/posix/ |
od.c | 17 -j Skip this many bytes of input 18 -N Stop dumping after this many bytes 20 plus optional size in bytes 161 int bytes = 0; local 164 j = od_out_t(types+i, buf, &bytes); 165 j = (j+bytes-1)/bytes; 174 int bytes = j; local 176 // pad for as many bytes as were consumed, and indent non-numbered lines 177 od_out_t(types+i, buf, &bytes); [all...] |
tail.c | 19 -c output the last NUMBER bytes, +NUMBER counts from start 36 long bytes; 73 // Note: bytes and lines are negative here. 74 static int try_lseek(int fd, long bytes, long lines) 84 if (bytes) { 85 if (lseek(fd, bytes, SEEK_END)<0) lseek(fd, 0, SEEK_SET); 92 bytes = pos; 128 lseek(fd, bytes, SEEK_SET); 135 long bytes = TT.bytes, lines = TT.lines local [all...] |
/external/valgrind/coregrind/m_aspacemgr/ |
aspacemgr-common.c | 417 HChar bytes[1]; member in struct:_VgStack 456 (Addr) &stack->bytes[0], 461 (Addr) &stack->bytes[VG_STACK_GUARD_SZB + VG_(clo_valgrind_stacksize)], 466 (Addr) &stack->bytes[VG_STACK_GUARD_SZB + VG_(clo_valgrind_stacksize)], 473 p = (UInt*)&stack->bytes[VG_STACK_GUARD_SZB]; 477 *initial_sp = (Addr)&stack->bytes[VG_STACK_GUARD_SZB + VG_(clo_valgrind_stacksize)]; 496 /* Figure out how many bytes of the stack's active area have not 504 p = (const UInt*)&stack->bytes[VG_STACK_GUARD_SZB];
|
/external/valgrind/coregrind/ |
vgdb-invoker-solaris.c | 85 /* Copy LEN bytes of data from vgdb memory at MYADDR 104 DEBUG(1, "Writing bytes '"); 115 " bytes at %#lx to %#lx.\n", 147 size_t bytes = sizeof(ctl.cmd) + sizeof(ctl.arg.flags); local 148 ssize_t written = write(ctl_fd, (void *) &ctl, bytes); 149 if ((written < 0) || (written != bytes)) { 158 bytes = sizeof(ctl.cmd); 159 written = write(ctl_fd, (void *) &ctl, bytes); 160 if ((written < 0) || (written != bytes)) { 176 bytes = read(status_fd, &pstatus, sizeof(pstatus)) 229 ssize_t bytes = read(status_fd, &status, sizeof(status)); local 381 size_t bytes = sizeof(ctl.cmd) + sizeof(ctl.arg.regs); local 470 size_t bytes = sizeof(ctl.cmd); local [all...] |
/external/valgrind/none/tests/solaris/ |
coredump_many_segments.c | 121 ssize_t bytes = read(fd, &map, sizeof(map)); local 122 while (bytes == sizeof(map)) { 129 bytes = read(fd, &map, sizeof(map)); 187 PRINT("Page size determined as %ld bytes.\n", page_size);
|
/external/vboot_reference/firmware/lib/cgptlib/ |
cgptlib_internal.c | 18 size_t bytes = h->number_of_entries * h->size_of_entry; local 19 size_t ret = (bytes + SECTOR_SIZE - 1) / SECTOR_SIZE;
|
/external/vixl/src/vixl/ |
utils.h | 222 uint8_t bytes[8]; local 225 bytes[i] = (static_cast<uint64_t>(value) & mask) >> (i * 8); 240 result |= bytes[permute_table[block_bytes_log2 - 1][i]];
|
/external/webrtc/talk/media/base/ |
fakenetworkinterface.h | 72 int bytes = 0; local 74 bytes += static_cast<int>(rtp_packets_[i].size()); 76 return bytes; 81 int bytes = 0; local 82 GetNumRtpBytesAndPackets(ssrc, &bytes, NULL); 83 return bytes; 201 void GetNumRtpBytesAndPackets(uint32_t ssrc, int* bytes, int* packets) { 202 if (bytes) { 203 *bytes = 0; 215 if (bytes) { [all...] |
/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 | 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/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; \
|