/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;
|
/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/dropbear/ |
progressmeter.c | 63 static int bytes_per_second; /* current speed in bytes per second */ 77 format_rate(char *buf, int size, off_t bytes) 81 bytes *= 100; 82 for (i = 0; bytes >= 100*1000 && unit[i] != 'T'; i++) 83 bytes = (bytes + 512) / 1024; 86 bytes = (bytes + 512) / 1024; 89 (long long) (bytes + 5) / 100, 90 (long long) (bytes + 5) / 10 % 10 [all...] |
keyimport.c | 226 * bytes used out of the source data. 285 * number of bytes consumed. Assumes dest contains enough space. 303 * Identifier is multiple bytes: the first byte is 11111 304 * plus the flags, and subsequent bytes encode the value of 311 continue; /* count the bytes */ 327 * Length is multiple bytes. The first is 0x80 plus the 328 * number of subsequent bytes, and the subsequent bytes 332 continue; /* count the bytes */ 346 struct mpint_pos { void *start; int bytes; }; member in struct:mpint_pos [all...] |
bignum.c | 55 void bytes_to_mp(mp_int *mp, const unsigned char* bytes, unsigned int len) { 57 if (mp_read_unsigned_bin(mp, (unsigned char*)bytes, len) != MP_OKAY) {
|
/external/webkit/Source/WebKit/mac/WebView/ |
WebPDFDocumentExtras.mm | 107 const UInt8* bytes = 0; 117 bytes = CFDataGetBytePtr(data.get()); 120 bytes = CGPDFStringGetBytePtr(string); 123 if (!bytes) 126 NSStringEncoding encoding = (length > 1 && bytes[0] == 0xFE && bytes[1] == 0xFF) ? NSUnicodeStringEncoding : NSUTF8StringEncoding; 127 NSString *script = [[NSString alloc] initWithBytes:bytes length:length encoding:encoding];
|
/external/openssl/crypto/x509/ |
x509name.c | 175 unsigned char *bytes, int len, int loc, int set) 179 ne = X509_NAME_ENTRY_create_by_OBJ(NULL, obj, type, bytes, len); 187 unsigned char *bytes, int len, int loc, int set) 191 ne = X509_NAME_ENTRY_create_by_NID(NULL, nid, type, bytes, len); 199 const unsigned char *bytes, int len, int loc, int set) 203 ne = X509_NAME_ENTRY_create_by_txt(NULL, field, type, bytes, len); 276 const char *field, int type, const unsigned char *bytes, int len) 289 nentry = X509_NAME_ENTRY_create_by_OBJ(ne,obj,type,bytes,len); 295 int type, unsigned char *bytes, int len) 306 nentry = X509_NAME_ENTRY_create_by_OBJ(ne,obj,type,bytes,len) [all...] |
/external/protobuf/java/src/test/java/com/google/protobuf/ |
CodedOutputStreamTest.java | 50 * Helper to construct a byte array from a bunch of bytes. The inputs are 54 private byte[] bytes(int... bytesAsInts) { method in class:CodedOutputStreamTest 55 byte[] bytes = new byte[bytesAsInts.length]; 57 bytes[i] = (byte) bytesAsInts[i]; 59 return bytes; 63 private List<Byte> toList(byte[] bytes) { 65 for (byte b : bytes) { 77 * checks that the result matches the given bytes. 130 assertWriteVarint(bytes(0x00), 0); 131 assertWriteVarint(bytes(0x01), 1) [all...] |
/external/webkit/Source/WebCore/platform/text/wince/ |
TextCodecWinCE.cpp | 190 static inline const char* findFirstNonAsciiCharacter(const char* bytes, size_t length) 192 for (const char* bytesEnd = bytes + length; bytes < bytesEnd; ++bytes) { 193 if (*bytes & 0x80) 196 return bytes; 199 static void decodeInternal(Vector<UChar, 8192>& result, UINT codePage, const char* bytes, size_t length, size_t* left) 202 if (!bytes || !length) 210 int resultLength = MultiByteToWideChar(codePage, flags, bytes, testLength, 0, 0); 216 MultiByteToWideChar(codePage, flags, bytes, testLength, result.data() + oldSize, resultLength) [all...] |
/libcore/luni/src/main/java/java/net/ |
URLConnection.java | 314 * Returns the content length in bytes specified by the response header field 708 // Look ahead up to 64 bytes for the longest encoded header 710 byte[] bytes = new byte[64]; 711 int length = is.read(bytes); 723 if ((bytes[0] == (byte) 0xFF) && (bytes[1] == (byte) 0xFE)) { 728 if ((bytes[0] == (byte) 0xFE) && (bytes[1] == (byte) 0xFF)) { 734 if ((bytes[0] == (byte) 0xEF) && (bytes[1] == (byte) 0xBB [all...] |
/dalvik/tests/003-omnibus-opcodes/src/ |
Array.java | 12 static void checkBytes(byte[] bytes) { 13 assert(bytes[0] == 0); 14 assert(bytes[1] == -1); 15 assert(bytes[2] == -2); 16 assert(bytes[3] == -3); 17 assert(bytes[4] == -4);
|
/development/tools/axl/ |
chewperf.py | 59 bytes = sum(x[1] for x in chewed) 60 print "total time", totalTime, "bytes", bytes, "rate", bytes * 1000 / totalTime 65 bytes = x[1] 67 buckets[bucket] += bytes 69 buckets[bucket] = bytes
|
/device/moto/wingray/libaudio/ |
AudioPostProcessor.h | 58 bool stereo, int bytes, Mutex * fdLockp); 59 int read(int fd, void * buffer, int bytes, int rate); 60 int applyUplinkEcns(void * buffer, int bytes, int rate); 67 void initEcns(int rate, int bytes); 70 void ecnsLogToRam(int bytes); 118 int readData(int fd, void * buffer, int bytes, int rate,
|
/external/bouncycastle/src/main/java/org/bouncycastle/util/io/pem/ |
PemWriter.java | 42 * Return the number of bytes or characters required to contain the 46 * @return an estimate of the number of bytes 99 private void writeEncoded(byte[] bytes) 102 bytes = Base64.encode(bytes); 104 for (int i = 0; i < bytes.length; i += buf.length) 110 if ((i + index) >= bytes.length) 114 buf[index] = (char)bytes[i + index];
|
/external/chromium/net/base/ |
ip_endpoint.cc | 89 const char* bytes = reinterpret_cast<const char*>(&addr->sin_addr); local 90 address_.assign(&bytes[0], &bytes[kIPv4AddressSize]); 97 const char* bytes = reinterpret_cast<const char*>(&addr->sin6_addr); local 98 address_.assign(&bytes[0], &bytes[kIPv6AddressSize]);
|
/external/emma/core/java12/com/vladium/jcd/cls/ |
Method_info.java | 76 final UDataInputStream bytes) 79 m_access_flags = bytes.readU2 (); 81 m_name_index = bytes.readU2 (); 82 m_descriptor_index = bytes.readU2 (); 86 final int attributes_count = bytes.readU2 (); 91 final Attribute_info attribute_info = Attribute_info.new_Attribute_info (constants, bytes);
|
/external/valgrind/main/drd/tests/ |
annotate_ignore_rw2.stderr.exp | 4 Location 0x........ is 0 bytes inside local var "s_b" 9 Location 0x........ is 0 bytes inside local var "s_a" 14 Location 0x........ is 0 bytes inside local var "s_c"
|
annotate_ignore_write.stderr.exp | 4 Location 0x........ is 0 bytes inside local var "s_b" 9 Location 0x........ is 0 bytes inside local var "s_c" 14 Location 0x........ is 0 bytes inside local var "s_a"
|
/external/valgrind/main/memcheck/tests/ |
realloc3.stderr.exp | 3 Address 0x........ is 15 bytes after a block of size 5 alloc'd 9 Address 0x........ is 15 bytes after a block of size 5 alloc'd 15 Address 0x........ is 15 bytes after a block of size 5 alloc'd
|
/hardware/ti/omap4xxx/camera/ |
MemoryManager.cpp | 46 void* MemoryManager::allocateBuffer(int width, int height, const char* format, int &bytes, int numBufs)
78 if(bytes != 0) 86 int ret = ion_alloc(mIonFd, bytes, 0, 1 << ION_HEAP_TYPE_CARVEOUT, &handle); 93 CAMHAL_LOGDB("Before mapping, handle = %x, nSize = %d", handle, bytes); 94 if ((ret = ion_map(mIonFd, handle, bytes, PROT_READ | PROT_WRITE, MAP_SHARED, 0, 104 mIonBufLength.add(bufsArr[i], (unsigned int) bytes); 108 else // If bytes is not zero, then it is a 2-D tiler buffer request
|
/dalvik/dx/src/com/android/dx/cf/code/ |
BytecodeArray.java | 41 /** {@code non-null;} underlying bytes */ 42 private final ByteArray bytes; field in class:BytecodeArray 53 * @param bytes {@code non-null;} underlying bytes 57 public BytecodeArray(ByteArray bytes, ConstantPool pool) { 58 if (bytes == null) { 59 throw new NullPointerException("bytes == null"); 66 this.bytes = bytes; 76 return bytes; [all...] |
/external/blktrace/btt/ |
trace_queue.c | 32 update_q_histo(q_iop->t.bytes); 46 if (q_iop->t.bytes == 0)
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/ |
DERSequence.java | 76 byte[] bytes = bOut.toByteArray(); 78 out.writeEncoded(SEQUENCE | CONSTRUCTED, bytes);
|
/external/chromium/net/tools/flip_server/ |
ring_buffer.cc | 53 // Appends up-to-'size' bytes to the ringbuffer. 54 int RingBuffer::Write(const char* bytes, int size) { 67 memcpy(wptr, bytes + bytes_written, wsize); 75 const char* p = bytes; 82 const char* end = bytes + bytes_to_write; 131 // returns the number of bytes read into 132 int RingBuffer::Read(char* bytes, int size) { 145 memcpy(bytes + bytes_read, rptr, rsize); 153 char* p = bytes; 159 char* end = bytes + bytes_to_read [all...] |
ring_buffer.h | 49 // appends up-to-'size' bytes to the ringbuffer. 50 virtual int Write(const char * bytes, int size); 54 // If there are no writable bytes available, then *size will contain 0. 59 // If there are no readable bytes available, then *size will contain 0. 62 // Returns the number of bytes read into 'bytes'. 63 virtual int Read(char* bytes, int size); 68 // Reserves contiguous writable empty space in the buffer of size bytes.
|