/external/protobuf/java/src/main/java/com/google/protobuf/ |
ByteString.java | 42 * Immutable array of bytes. 48 private final byte[] bytes; field in class:ByteString 50 private ByteString(final byte[] bytes) { 51 this.bytes = bytes; 60 return bytes[index]; 64 * Gets the number of bytes. 67 return bytes.length; 74 return bytes.length == 0; 86 * Copies the given bytes into a {@code ByteString} [all...] |
/external/protobuf/src/google/protobuf/io/ |
zero_copy_stream_impl_lite.cc | 193 int bytes = Read(junk, min(count - skipped, local 195 if (bytes <= 0) { 199 skipped += bytes; 259 << " Can't back up over more bytes than were returned by the last call" 275 // First skip any bytes left over from a previous BackUp(). 349 << " Can't back up over more bytes than were returned by the last call"
|
/external/qemu/audio/ |
noaudio.c | 47 int64_t bytes; local 51 bytes = muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ()); 52 bytes = audio_MIN (bytes, INT_MAX); 53 samples = bytes >> hw->info.shift; 107 int64_t bytes = local 111 bytes = audio_MIN (bytes, INT_MAX); 112 samples = bytes >> hw->info.shift;
|
wavcapture.c | 7 int bytes; member in struct:__anon13144 36 uint32_t datalen = wav->bytes; 59 wav->bytes += size; 74 monitor_printf(cur_mon, "Capturing audio(%d,%d,%d) to %s: %d bytes\n", 76 path ? path : "<not available>", wav->bytes);
|
/external/quake/quake/src/WinQuake/ |
snd_sun.cpp | 183 int bytes, b; local 194 bytes = (paintedtime - wbufp) * bsize; 196 if (!bytes) 199 if (bytes > sizeof(writebuf)) { 200 bytes = sizeof(writebuf); 201 stop = wbufp + bytes/bsize; 207 for (b = bytes; b; b--) { 214 if (write(audio_fd, writebuf, bytes) < bytes)
|
/external/skia/legacy/src/core/ |
SkWriter32.cpp | 170 size_t bytes = stream->read(scratch, n); local 171 this->writePad(scratch, bytes); 172 remaining -= bytes; 173 if (bytes != n) { 201 * Strings are stored as: length[4-bytes] + string_data + '\0' + pad_to_mul_4 238 // we may have left 0,1,2,3 bytes uninitialized, since we reserved align4 239 // number of bytes. That's ok, since the reader will know to skip those 247 const size_t lenBytes = 4; // we use 4 bytes to record the length
|
/external/skia/src/core/ |
SkWriter32.cpp | 167 // Pad the last four bytes with zeroes in one step. 195 size_t bytes = stream->read(scratch, n); local 196 this->writePad(scratch, bytes); 197 remaining -= bytes; 198 if (bytes != n) { 244 * Strings are stored as: length[4-bytes] + string_data + '\0' + pad_to_mul_4 293 const size_t lenBytes = 4; // we use 4 bytes to record the length
|
/external/skia/src/gpu/ |
GrResourceCache.cpp | 218 GrPrintf("--- add resource to cache %p, count=%d bytes= %d %d\n", 369 size_t bytes = 0; local 377 bytes += entry->resource()->sizeInBytes(); 379 return bytes; 382 static bool both_zero_or_nonzero(int count, size_t bytes) { 383 return (count == 0 && bytes == 0) || (count > 0 && bytes > 0); 419 size_t bytes = countBytes(fList); local 420 GrAssert(bytes == fEntryBytes - fClientDetachedBytes); 422 bytes = countBytes(fExclusiveList) [all...] |
SkGrFontScaler.cpp | 161 uint8_t* bytes = reinterpret_cast<uint8_t*>(dst); local 162 expand_bits(bytes, bits, width, height, dstRB, srcRB);
|
/external/skia/src/ports/ |
SkImageDecoder_WIC.cpp | 215 uint8_t* bytes = pixels + y * bitmap->rowBytes() + x * bitmap->bytesPerPixel(); local 217 SkPMColor* src = reinterpret_cast<SkPMColor*>(bytes); 218 SkColor* dst = reinterpret_cast<SkColor*>(bytes);
|
/external/webkit/Source/WebCore/html/canvas/ |
DataView.cpp | 36 char bytes[sizeof(T)]; member in union:__anon17757::Value 130 memcpy(value.bytes, static_cast<const char*>(m_baseAddress) + byteOffset, sizeof(T)); 131 flipBytesIfNeeded(value.bytes, sizeof(T), littleEndian); 146 flipBytesIfNeeded(tempValue.bytes, sizeof(T), littleEndian); 147 memcpy(static_cast<char*>(m_baseAddress) + byteOffset, tempValue.bytes, sizeof(T));
|
/external/webkit/Source/WebKit/efl/ewk/ |
ewk_tiled_backing_store.h | 83 const size_t bytes; /**< bytes used in pixels. keep member in struct:_Ewk_Tile
|
/external/webkit/Source/WebKit/gtk/WebCoreSupport/ |
TextCheckerClientEnchant.cpp | 107 gint bytes = static_cast<gint>(g_utf8_offset_to_pointer(utf8Text.get(), end) - cstart); local 108 GOwnPtr<gchar> word(g_new0(gchar, bytes + 1));
|
/frameworks/base/core/java/android/util/ |
Log.java | 277 int bytes = println_native(LOG_ID_MAIN, ASSERT, tag, msg + '\n' + getStackTraceString(tr)); local 279 return bytes; 329 * @return The number of bytes written.
|
/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/native/libs/utils/ |
BasicHashtable.cpp | 242 size_t bytes = count * mBucketSize; local 243 SharedBuffer* sb = SharedBuffer::alloc(bytes); 244 LOG_ALWAYS_FATAL_IF(!sb, "Could not allocate %u bytes for hashtable with %u buckets.", 245 uint32_t(bytes), uint32_t(count));
|
/libcore/luni/src/main/java/java/security/ |
SecureRandom.java | 51 * A seed is an array of bytes used to bootstrap random number generation. 262 * Generates and stores random bytes in the given {@code byte[]} for each 265 * @param bytes 266 * the {@code byte[]} to be filled with random bytes. 269 public synchronized void nextBytes(byte[] bytes) { 270 secureRandomSpi.engineNextBytes(bytes); 291 int bytes = (numBits+7)/8; local 292 byte[] next = new byte[bytes]; 296 for (int i = 0; i < bytes; i++) { 299 ret = ret >>> (bytes*8 - numBits) [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/x501/ |
AttributeValue.java | 44 public byte[] bytes; //FIXME remove??? bytes to be encoded field in class:AttributeValue
|
/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 | 80 private static void assertBitSet(BitSet bs, byte[] bytes, String s) { 81 for (int i = 0; i < 8 * bytes.length; ++i) { 82 assertEquals(bs.toString(), ((bytes[i / 8] & (1L << (i % 8))) != 0), bs.get(i)); 85 for (int i = 0; i < bytes.length; ++i) { 86 cardinality += Integer.bitCount(((int) bytes[i]) & 0xff); 94 assertEquals(roundUp(8 * bytes.length, 64), bs.size()); 102 private static void assertBitSet(byte[] bytes, String s) { 104 assertBitSet(BitSet.valueOf(bytes), bytes, s); local 106 assertBitSet(BitSet.valueOf(ByteBuffer.wrap(bytes)), bytes, s) local 111 assertBitSet(BitSet.valueOf(ByteBuffer.wrap(paddedBytes, 1, bytes.length)), bytes, s); local [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/netfilter/ |
xt_sctp.h | 36 #define bytes(type) (sizeof(type) * 8) macro 40 chunkmap[type / bytes(u_int32_t)] |= \ 41 1 << (type % bytes(u_int32_t)); \ 46 chunkmap[type / bytes(u_int32_t)] &= \ 47 ~(1 << (type % bytes(u_int32_t))); \ 52 (chunkmap[type / bytes (u_int32_t)] & \ 53 (1 << (type % bytes (u_int32_t)))) ? 1: 0; \
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/netfilter_ipv4/ |
ipt_sctp.h | 37 #define bytes(type) (sizeof(type) * 8) macro 41 chunkmap[type / bytes(u_int32_t)] |= \ 42 1 << (type % bytes(u_int32_t)); \ 47 chunkmap[type / bytes(u_int32_t)] &= \ 48 ~(1 << (type % bytes(u_int32_t))); \ 53 (chunkmap[type / bytes (u_int32_t)] & \ 54 (1 << (type % bytes (u_int32_t)))) ? 1: 0; \
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/netfilter/ |
xt_sctp.h | 36 #define bytes(type) (sizeof(type) * 8) macro 40 chunkmap[type / bytes(u_int32_t)] |= \ 41 1 << (type % bytes(u_int32_t)); \ 46 chunkmap[type / bytes(u_int32_t)] &= \ 47 ~(1 << (type % bytes(u_int32_t))); \ 52 (chunkmap[type / bytes (u_int32_t)] & \ 53 (1 << (type % bytes (u_int32_t)))) ? 1: 0; \
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/netfilter_ipv4/ |
ipt_sctp.h | 37 #define bytes(type) (sizeof(type) * 8) macro 41 chunkmap[type / bytes(u_int32_t)] |= \ 42 1 << (type % bytes(u_int32_t)); \ 47 chunkmap[type / bytes(u_int32_t)] &= \ 48 ~(1 << (type % bytes(u_int32_t))); \ 53 (chunkmap[type / bytes (u_int32_t)] & \ 54 (1 << (type % bytes (u_int32_t)))) ? 1: 0; \
|