HomeSort by relevance Sort by last modified time
    Searched refs:bytes (Results 326 - 350 of 1073) sorted by null

<<11121314151617181920>>

  /external/skia/src/core/
SkWriter32.cpp 141 size_t bytes = stream->read(scratch, n); local
142 this->writePad(scratch, bytes);
143 remaining -= bytes;
144 if (bytes != n) {
  /external/webkit/WebKitTools/pywebsocket/test/
test_msgutil.py 88 for length, bytes in ((0, '\x00'), (0x7f, '\x7f'), (0x80, '\x81\x00'),
91 msgutil._payload_length(_create_request(bytes)))
135 # Use a queue to check the bytes written by MessageSender.
139 def write(bytes):
140 send_queue.put(bytes)
  /frameworks/base/services/java/com/android/server/
LightsService.java 163 byte[] bytes = new byte[2];
164 bytes[0] = (byte)(on ? '1' : '0');
165 bytes[1] = '\n';
166 fos.write(bytes);
  /frameworks/base/tests/CoreTests/android/core/
DatagramTest.java 110 byte[] bytes = s.getBytes();
111 System.arraycopy(bytes, 0, packet.getData(), 0, bytes.length);
112 packet.setLength(bytes.length);
  /external/protobuf/java/src/test/java/com/google/protobuf/
TextFormatTest.java 207 * characters. The characters are converted directly to bytes, *not*
210 private ByteString bytes(String str) throws Exception { method in class:TextFormatTest
215 * Helper to construct a ByteString from a bunch of bytes. The inputs are
219 private ByteString bytes(int... bytesAsInts) { method in class:TextFormatTest
220 byte[] bytes = new byte[bytesAsInts.length];
222 bytes[i] = (byte) bytesAsInts[i];
224 return ByteString.copyFrom(bytes);
258 // Strings and bytes that needing escaping.
260 .addRepeatedBytes(bytes("\0\001\007\b\f\n\r\t\013\\\'\"\u00fe"))
465 TextFormat.escapeBytes(bytes("\0\001\007\b\f\n\r\t\013\\\'\"")))
    [all...]
  /bionic/libc/bionic/
malloc_debug_common.c 199 void* valloc(size_t bytes) {
200 /* assume page size of 4096 bytes */
201 return memalign( getpagesize(), bytes );
220 void* malloc(size_t bytes) {
221 return __libc_malloc_dispatch->malloc(bytes);
229 void* realloc(void* oldMem, size_t bytes) {
230 return __libc_malloc_dispatch->realloc(oldMem, bytes);
232 void* memalign(size_t alignment, size_t bytes) {
233 return __libc_malloc_dispatch->memalign(alignment, bytes);
  /external/apache-http/src/org/apache/commons/codec/net/
RFC1522Codec.java 139 * Encodes an array of bytes using the defined encoding scheme
141 * @param bytes Data to be encoded
148 protected abstract byte[] doEncoding(byte[] bytes) throws EncoderException;
151 * Decodes an array of bytes using the defined encoding scheme
153 * @param bytes Data to be decoded
160 protected abstract byte[] doDecoding(byte[] bytes) throws DecoderException;
  /external/chromium/net/disk_cache/
mem_backend_impl.h 87 void AddStorageSize(int32 bytes);
88 void SubstractStorageSize(int32 bytes);
  /external/chromium/net/flip/
flip_frame_builder.h 134 // Completes the write operation by padding the data with NULL bytes until it
145 // Moves the iterator by the given number of bytes.
146 static void UpdateIter(void** iter, int bytes) {
147 *iter = static_cast<char*>(*iter) + bytes;
  /external/libffi/src/x86/
ffi.c 176 cif->bytes = (cif->bytes + 15) & ~0xF;
213 ffi_call_SYSV(ffi_prep_args, &ecif, cif->bytes, cif->flags, ecif.rvalue,
218 ffi_call_STDCALL(ffi_prep_args, &ecif, cif->bytes, cif->flags,
359 (void*)codeloc, cif->bytes);
416 memcpy (stack, ecif->avalue, ecif->cif->bytes);
458 ffi_call_SYSV(ffi_prep_args_raw, &ecif, cif->bytes, cif->flags,
463 ffi_call_STDCALL(ffi_prep_args_raw, &ecif, cif->bytes, cif->flags,
  /external/openssl/crypto/rand/
rand_lib.c 157 if (meth && meth->bytes)
158 return meth->bytes(buf,num);
  /external/openssl/crypto/x509/
x509_att.c 158 const unsigned char *bytes, int len)
162 attr = X509_ATTRIBUTE_create_by_OBJ(NULL, obj, type, bytes, len);
171 const unsigned char *bytes, int len)
175 attr = X509_ATTRIBUTE_create_by_NID(NULL, nid, type, bytes, len);
184 const unsigned char *bytes, int len)
188 attr = X509_ATTRIBUTE_create_by_txt(NULL, attrname, type, bytes, len);
258 const char *atrname, int type, const unsigned char *bytes, int len)
271 nattr = X509_ATTRIBUTE_create_by_OBJ(attr,obj,type,bytes,len);
x509_req.c 293 const unsigned char *bytes, int len)
296 type, bytes, len)) return 1;
302 const unsigned char *bytes, int len)
305 type, bytes, len)) return 1;
311 const unsigned char *bytes, int len)
314 type, bytes, len)) return 1;
  /external/webkit/WebKit/mac/WebCoreSupport/
WebKeyGenerator.m 86 return WKAddCertificatesToKeychainFromData([data bytes], [data length]);
  /frameworks/base/graphics/java/android/renderscript/
RenderScriptGL.java 117 byte[] bytes = s.getBytes("UTF-8");
118 int id = nFileOpen(bytes);
  /libcore/luni/src/main/java/org/apache/harmony/luni/platform/
OSFileSystem.java 100 public native long read(int fd, byte[] bytes, int offset, int length) throws IOException;
102 public native long write(int fd, byte[] bytes, int offset, int length) throws IOException;
  /libcore/luni/src/test/java/libcore/java/text/
DateFormatSymbolsTest.java 54 byte[] bytes = out.toByteArray();
57 ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes));
  /external/chromium/third_party/icu/source/common/
ucnvmbcs.h 35 * min/max bytes per character, etc.
129 * Offsets are counted in bytes from the beginning of the MBCS header structure.
147 * counts bytes in fromUBytes[]
216 * -- DBCS, MBCS, EBCDIC_STATEFUL, ... 2/3/4 bytes result, see ucnvmbcs.c
306 #define MBCS_VALUE_2_FROM_STAGE_2(bytes, stage2Entry, c) ((uint16_t *)(bytes))[16*(uint32_t)(uint16_t)(stage2Entry)+((c)&0xf)]
307 #define MBCS_VALUE_4_FROM_STAGE_2(bytes, stage2Entry, c) ((uint32_t *)(bytes))[16*(uint32_t)(uint16_t)(stage2Entry)+((c)&0xf)]
309 #define MBCS_POINTER_3_FROM_STAGE_2(bytes, stage2Entry, c) ((bytes)+(16*(uint32_t)(uint16_t)(stage2Entry)+((c)&0xf))*3
    [all...]
  /external/icu4c/common/
ucnvmbcs.h 35 * min/max bytes per character, etc.
129 * Offsets are counted in bytes from the beginning of the MBCS header structure.
147 * counts bytes in fromUBytes[]
216 * -- DBCS, MBCS, EBCDIC_STATEFUL, ... 2/3/4 bytes result, see ucnvmbcs.c
306 #define MBCS_VALUE_2_FROM_STAGE_2(bytes, stage2Entry, c) ((uint16_t *)(bytes))[16*(uint32_t)(uint16_t)(stage2Entry)+((c)&0xf)]
307 #define MBCS_VALUE_4_FROM_STAGE_2(bytes, stage2Entry, c) ((uint32_t *)(bytes))[16*(uint32_t)(uint16_t)(stage2Entry)+((c)&0xf)]
309 #define MBCS_POINTER_3_FROM_STAGE_2(bytes, stage2Entry, c) ((bytes)+(16*(uint32_t)(uint16_t)(stage2Entry)+((c)&0xf))*3
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/security/x509/
NameConstraints.java 167 byte[] bytes = cert.getExtensionValue(OID);
168 if (bytes == null) {
171 return (byte[]) ASN1OctetString.getInstance().decode(bytes);
197 byte[] bytes = getExtensionValue(cert, "2.5.29.17");
200 names = (bytes == null)
202 : ((GeneralNames) GeneralNames.ASN1.decode(bytes)).getNames();
  /libcore/luni/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/
CharsetDecoderTest.java 299 for (byte[] bytes : invalidSequences) {
301 decoder.decode(ByteBuffer.wrap(bytes));
302 fail("No exception thrown on " + Arrays.toString(bytes));
311 for (byte[] bytes : invalidSequences) {
314 bb.put(bytes).flip();
316 fail("No exception thrown on " + Arrays.toString(bytes));
  /packages/apps/Contacts/src/com/android/contacts/
ContactPhotoLoader.java 166 // Null bitmap reference means that database contains no bytes for the photo
290 private void cacheBitmap(long id, byte[] bytes) {
297 if (bytes != null) {
299 Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length, null);
401 byte[] bytes = cursor.getBlob(1);
402 cacheBitmap(id, bytes);
  /external/protobuf/src/google/protobuf/io/
coded_stream_unittest.cc 145 uint8 bytes[10]; // Encoded bytes. member in struct:google::protobuf::io::__anon5773::VarintCase
146 int size; // Encoded size, in bytes.
180 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size);
195 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size);
215 memcpy(buffer_ + 1, kVarintCases_case.bytes, kVarintCases_case.size);
246 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size);
264 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size);
297 memcmp(buffer_, kVarintCases_case.bytes, kVarintCases_case.size));
314 memcmp(buffer_, kVarintCases_case.bytes, kVarintCases_case.size))
370 uint8 bytes[12]; member in struct:google::protobuf::io::__anon5773::VarintErrorCase
461 uint8 bytes[sizeof(uint32)]; \/\/ Encoded bytes. member in struct:google::protobuf::io::__anon5773::Fixed32Case
466 uint8 bytes[sizeof(uint64)]; \/\/ Encoded bytes. member in struct:google::protobuf::io::__anon5773::Fixed64Case
    [all...]
  /device/htc/passion-common/liblights/
lights.c 164 int bytes; local
172 bytes = snprintf(buffer, sizeof(buffer), "%d\n", value);
173 while (bytes > 0) {
174 amt = write(prop->fd, buffer, bytes);
180 bytes -= amt;
190 int bytes; local
199 bytes = snprintf(buffer, sizeof(buffer), "%d %d %d\n", red, green, blue);
200 while (bytes > 0) {
201 amt = write(prop->fd, buffer, bytes);
207 bytes -= amt
    [all...]
  /external/guava/src/com/google/common/io/
ByteStreams.java 69 * @param len the maximum number of bytes to read from the buffer
84 * @param from the bytes to write
103 * bytes from the input to the output, and closes the streams.
107 * @return the number of bytes copied
129 * Opens an input stream from the supplier, copies all bytes from the
135 * @return the number of bytes copied
152 * Copies all bytes from the input stream to the output stream.
157 * @return the number of bytes copied
176 * Copies all bytes from the readable channel to the writable channel.
181 * @return the number of bytes copie
    [all...]

Completed in 598 milliseconds

<<11121314151617181920>>