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

<<21222324252627282930>>

  /packages/apps/Email/src/org/apache/commons/io/
EndianUtils.java 30 * subsequent bytes at higher addresses. For "Big Endian" architectures
413 byte[] bytes = new byte[8];
415 bytes[i] = (byte) read( input );
417 return readSwappedLong( bytes, 0 );
FileSystemUtils.java 114 * bytes on Windows, 512 byte units on OS X and kilobytes on Unix.
228 // non-empty line (the free space bytes should be in the last element
248 * @return the number of bytes
255 // numeric character inclusive is our free space bytes count
263 // the free space bytes count
273 // beginning of the free space bytes count
285 // remove commas and dots in the bytes count
355 * Parses the bytes from a string.
359 * @return the number of bytes
364 long bytes = Long.parseLong(freeSpace); local
    [all...]
  /packages/apps/Email/tests/src/com/android/exchange/utility/
CalendarUtilitiesTests.java 98 byte[] bytes = new byte[] {0, 1, 2, 3, 4, 5, 6, 7};
101 assertEquals(0x0100, CalendarUtilities.getWord(bytes, 0));
102 assertEquals(0x03020100, CalendarUtilities.getLong(bytes, 0));
103 assertEquals(0x07060504, CalendarUtilities.getLong(bytes, 4));
106 CalendarUtilities.setWord(bytes, 0, 0xDEAD);
107 CalendarUtilities.setLong(bytes, 2, 0xBEEFBEEF);
108 CalendarUtilities.setWord(bytes, 6, 0xCEDE);
111 assertEquals(0xDEAD, CalendarUtilities.getWord(bytes, 0));
112 assertEquals(0xBEEFBEEF, CalendarUtilities.getLong(bytes, 2));
113 assertEquals(0xCEDE, CalendarUtilities.getWord(bytes, 6))
    [all...]
  /packages/apps/Gallery3D/src/com/cooliris/picasa/
GDataClient.java 195 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local
199 bytes.write(buffer, 0, bytesRead);
201 return new String(bytes.toString());
  /system/core/libcutils/
mq.c 55 /** Listens for bytes coming from remote peers. */
56 typedef void BytesListener(Credentials credentials, char* bytes, size_t size);
72 /** A generic packet of bytes. */
73 BYTES,
83 /** Reading bytes. */
92 /** Packet size. Used for BYTES. */
110 /** Buffer of bytes. Used with BYTES. */
111 Buffer* bytes; member in union:OutgoingPacket::__anon15937
460 /** Writes packet bytes to peer. *
    [all...]
  /bionic/libc/bionic/
dlmalloc.c 64 Supported pointer/size_t representation: 4 or 8 bytes
71 Alignment: 8 bytes (default)
74 if necessary (up to 128bytes), at the expense of using more space.
76 Minimum overhead per allocated chunk: 4 or 8 bytes (if 4byte sizes)
77 8 or 16 bytes (if 8byte sizes)
82 Minimum allocated size: 4-byte ptrs: 16 bytes (including overhead)
83 8-byte ptrs: 32 bytes (including overhead)
85 Even a request for zero bytes (i.e., malloc(0)) returns a
87 The maximum overhead wastage (i.e., number of extra bytes
91 32 bytes plus the remainder from a system page (the minima
    [all...]
  /external/dhcpcd/
if-linux.c 87 ssize_t bytes; local
93 bytes = recv(fd, buffer, BUFFERLEN, flags);
94 if (bytes == -1) {
104 NLMSG_OK(nlm, (size_t)bytes);
105 nlm = NLMSG_NEXT(nlm, bytes))
  /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
SettingsBackupAgent.java 385 byte[] bytes = new byte[data.getDataSize()];
386 if (bytes.length <= 0) return;
388 data.readEntityData(bytes, 0, bytes.length);
395 fos.write(bytes);
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DigestOutputStreamTest.java 153 // check that bytes have been written correctly
190 // check that bytes have been written correctly
272 // check that bytes have been written correctly
279 * Assertion: put bytes into output stream<br>
309 * Assertion: put bytes into output stream<br>
344 * Assertion: put bytes into output stream<br>
364 // write remaining bytes
384 * Assertion: put bytes into output stream<br>
429 byte[] bytes = new byte[] { 1, 2 };
440 dig.write(bytes, 0, bytes.length + 1)
    [all...]
  /packages/apps/CertInstaller/src/com/android/certinstaller/
CertInstaller.java 224 byte[] bytes = Util.toBytes((Serializable) map);
225 if (!mKeyStore.put(PKEY_MAP_KEY, bytes)) {
231 byte[] bytes = mKeyStore.get(PKEY_MAP_KEY);
232 if (bytes != null) {
234 (Map<String, byte[]>) Util.fromBytes(bytes);
387 // Note: one key takes about 1300 bytes in the keystore, so be
  /external/freetype/src/cff/
cffload.c 282 if ( FT_FRAME_EXTRACT( size, idx->bytes ) )
310 if ( idx->bytes )
311 FT_FRAME_RELEASE( idx->bytes );
410 FT_Byte* org_bytes = idx->bytes;
527 if ( idx->bytes )
530 *pbytes = idx->bytes + off1 - 1;
559 if ( idx->bytes == 0 )
576 FT_Byte* bytes; local
582 error = cff_index_access_element( idx, element, &bytes, &byte_len );
588 FT_MEM_COPY( name, bytes, byte_len )
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
ObjectInputStreamTest.java 217 assertEquals("Read incorrect bytes", 10, ois.available());
272 assertEquals("Read incorrect bytes", "HelloWorld", new String(buf, 0,
368 assertEquals("Read incorrect bytes", "HelloWorld", new String(buf, 0,
382 assertEquals("Read incorrect bytes", "HelloWorld", new String(buf, 0,
546 byte[] bytes = { 00, 00, 00, 0x64, 0x43, 0x48, (byte) 0xFD, 0x71, 00,
548 ByteArrayInputStream bin = new ByteArrayInputStream(bytes);
616 assertEquals("Skipped incorrect bytes", "World", new String(buf, 0, 5, "UTF-8"));
749 byte[] bytes = baos.toByteArray();
750 ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
792 byte[] bytes = baos.toByteArray()
    [all...]
  /libcore/luni/src/test/java/tests/api/java/io/
ObjectInputStreamTest.java 161 assertEquals("Test 1: Incorrect number of bytes;", testLength, ois.available());
322 assertEquals("Read incorrect bytes", testString, new String(buf));
429 assertEquals("Test 1: Incorrect bytes read;",
486 assertEquals("Read incorrect bytes", testString, new String(buf));
771 byte[] bytes = { 00, 00, 00, 0x64, 0x43, 0x48, (byte) 0xFD, 0x71, 00,
773 ByteArrayInputStream bin = new ByteArrayInputStream(bytes);
    [all...]
  /external/blktrace/btreplay/
btrecord.c 66 * @bytes: Number of bytes transferred
72 __u32 bytes; member in struct:io_spec
275 .nbytes = spec->bytes,
514 spec->bytes = t.bytes;
521 spec->bytes = be32_to_cpu(t.bytes);
550 (long long unsigned)spec->bytes / 512LLU,
  /external/chromium/third_party/icu/source/tools/makeconv/
makeconv.c 160 fprintf(stderr, "error: wrote %u bytes to the .cnv file but counted %u bytes\n", (int)sz2, (int)size);
165 printf("- Wrote %u bytes to the udata.\n", (int)sz2);
459 uint8_t bytes[UCNV_EXT_MAX_BYTES]; local
463 length=ucm_parseBytes(bytes, line, (const char **)&s);
466 uprv_memcpy(staticData->subChar, bytes, length);
473 uint8_t bytes[UCNV_EXT_MAX_BYTES]; local
476 if(1==ucm_parseBytes(bytes, line, (const char **)&s) && *s==0) {
477 staticData->subChar1=bytes[0];
820 if(!MBCSOkForBaseFromUnicode(mbcsData, m->b.bytes, m->bLen, m->u, m->f))
    [all...]
  /external/icu4c/tools/makeconv/
makeconv.c 161 fprintf(stderr, "error: wrote %u bytes to the .cnv file but counted %u bytes\n", (int)sz2, (int)size);
166 printf("- Wrote %u bytes to the udata.\n", (int)sz2);
467 uint8_t bytes[UCNV_EXT_MAX_BYTES]; local
471 length=ucm_parseBytes(bytes, line, (const char **)&s);
474 uprv_memcpy(staticData->subChar, bytes, length);
481 uint8_t bytes[UCNV_EXT_MAX_BYTES]; local
484 if(1==ucm_parseBytes(bytes, line, (const char **)&s) && *s==0) {
485 staticData->subChar1=bytes[0];
828 if(!MBCSOkForBaseFromUnicode(mbcsData, m->b.bytes, m->bLen, m->u, m->f))
    [all...]
  /frameworks/base/cmds/keystore/
keystore.c 55 * into two bytes. The first byte is one of [+-.] which represents the first
95 * network order. Thus the maximum length of a message is 65535 bytes. */
106 uint8_t bytes[2]; local
107 if (recv(the_socket, &bytes[0], 1, 0) != 1 ||
108 recv(the_socket, &bytes[1], 1, 0) != 1) {
111 int offset = bytes[0] << 8 | bytes[1];
141 uint16_t bytes = htons(length); local
142 send(the_socket, &bytes, 2, 0);
150 * parts must be no more than VALUE_SIZE bytes. The first three bytes of th
    [all...]
  /external/webkit/JavaScriptCore/assembler/
ARMv7Assembler.h 277 PatternBytes bytes; local
278 bytes.asInt = value;
280 if ((bytes.byte0 == bytes.byte1) && (bytes.byte0 == bytes.byte2) && (bytes.byte0 == bytes.byte3)) {
281 encoding.immediate = bytes.byte0;
286 if ((bytes.byte0 == bytes.byte2) && !(bytes.byte1 | bytes.byte3))
    [all...]
  /external/chromium/third_party/icu/source/common/
ucnv_u16.c 112 /* copy an even number of bytes for complete UChars */
183 length=2; /* 2 bytes to output */
196 length=0; /* from here on, length counts the bytes in overflow[] */
215 length=4; /* 4 bytes to output */
232 /* output length bytes with overflow (length>targetCapacity>0) */
317 /* continue collecting bytes for the trail surrogate */
356 * used for the lead unit's bytes
374 /* copy an even number of bytes for complete UChars */
536 /* too few (2 or 3) bytes for a surrogate pair: truncated code point */
537 uint8_t *bytes=pArgs->converter->toUBytes local
554 uint8_t *bytes=pArgs->converter->toUBytes; local
1136 uint8_t *bytes=pArgs->converter->toUBytes; local
1153 uint8_t *bytes=pArgs->converter->toUBytes; local
    [all...]
  /external/icu4c/common/
ucnv_u16.c 112 /* copy an even number of bytes for complete UChars */
183 length=2; /* 2 bytes to output */
196 length=0; /* from here on, length counts the bytes in overflow[] */
215 length=4; /* 4 bytes to output */
232 /* output length bytes with overflow (length>targetCapacity>0) */
317 /* continue collecting bytes for the trail surrogate */
356 * used for the lead unit's bytes
374 /* copy an even number of bytes for complete UChars */
536 /* too few (2 or 3) bytes for a surrogate pair: truncated code point */
537 uint8_t *bytes=pArgs->converter->toUBytes local
554 uint8_t *bytes=pArgs->converter->toUBytes; local
1139 uint8_t *bytes=pArgs->converter->toUBytes; local
1156 uint8_t *bytes=pArgs->converter->toUBytes; local
    [all...]
triedict.cpp 358 uint32_t size; // Size of the data in bytes
700 virtual void write(uint8_t *bytes, uint32_t &offset, const UVector32 &/*translate*/) {
702 *((uint16_t *)(bytes+offset)) = (fChars.length() & kCountMask)
725 virtual void write(uint8_t *bytes, uint32_t &offset, const UVector32 &translate) {
726 BuildCompactTrieNode::write(bytes, offset, translate);
729 CompactTrieHorizontalEntry *entry = (CompactTrieHorizontalEntry *)(bytes+offset);
765 virtual void write(uint8_t *bytes, uint32_t &offset, const UVector32 &translate) {
766 CompactTrieVerticalNode *node = (CompactTrieVerticalNode *)(bytes+offset);
767 BuildCompactTrieNode::write(bytes, offset, translate);
1109 uint8_t *bytes = (uint8_t *)uprv_malloc(totalSize); local
    [all...]
  /external/libffi/src/
dlmalloc.c 37 Supported pointer/size_t representation: 4 or 8 bytes
44 Alignment: 8 bytes (default)
47 if necessary (up to 128bytes), at the expense of using more space.
49 Minimum overhead per allocated chunk: 4 or 8 bytes (if 4byte sizes)
50 8 or 16 bytes (if 8byte sizes)
55 Minimum allocated size: 4-byte ptrs: 16 bytes (including overhead)
56 8-byte ptrs: 32 bytes (including overhead)
58 Even a request for zero bytes (i.e., malloc(0)) returns a
60 The maximum overhead wastage (i.e., number of extra bytes
64 32 bytes plus the remainder from a system page (the minima
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/stdlib/
SDL_malloc.c 73 Supported pointer/size_t representation: 4 or 8 bytes
80 Alignment: 8 bytes (default)
83 if necessary (up to 128bytes), at the expense of using more space.
85 Minimum overhead per allocated chunk: 4 or 8 bytes (if 4byte sizes)
86 8 or 16 bytes (if 8byte sizes)
91 Minimum allocated size: 4-byte ptrs: 16 bytes (including overhead)
92 8-byte ptrs: 32 bytes (including overhead)
94 Even a request for zero bytes (i.e., malloc(0)) returns a
96 The maximum overhead wastage (i.e., number of extra bytes
100 32 bytes plus the remainder from a system page (the minima
    [all...]
  /external/webkit/WebKit/mac/Plugins/
WebBaseNetscapePluginStream.mm 314 // and all original bytes verbatim, rather than sent through Unicode translation.
325 // This is not the intended behavior; we're supposed to pass original bytes verbatim.
326 // But we don't have the original bytes, we have NSStrings built by the URL loading system.
516 LOG(Plugins, "NPP_WriteReady responseURL=%@ bytes=%d", m_responseURL.get(), deliveryBytes);
530 deliveryBytes = m_pluginFuncs->write(m_plugin, &m_stream, m_offset, [subdata length], (void *)[subdata bytes]);
539 LOG(Plugins, "NPP_Write responseURL=%@ bytes=%d total-delivered=%d/%d", m_responseURL.get(), deliveryBytes, m_offset, m_stream.end);
546 [newDeliveryData appendBytes:(char *)[m_deliveryData.get() bytes] + totalBytesDelivered length:totalBytes - totalBytesDelivered];
584 int byteCount = write(m_fileDescriptor, [data bytes], dataLength);
613 void WebNetscapePluginStream::didReceiveData(NetscapePlugInStreamLoader*, const char* bytes, int length)
615 NSData *data = [[NSData alloc] initWithBytesNoCopy:(void*)bytes length:length freeWhenDone:NO]
    [all...]
  /device/samsung/crespo/alsa-lib/src/seq/
seq_midi_event.c 261 * \brief Read bytes and encode to sequencer event if finished
264 * \param count count of bytes of MIDI byte stream to encode
266 * \return count of encoded bytes otherwise a negative error code
268 * Read bytes and encode to sequencer event if finished.
411 * \param count Available bytes in MIDI byte stream
413 * \return count of decoded bytes otherwise a negative error code
561 unsigned char bytes[4]; local
569 bytes[0] = ev->data.control.param & 0x007f;
570 bytes[1] = (ev->data.control.param & 0x3f80) >> 7;
571 bytes[2] = ev->data.control.value & 0x007f
    [all...]

Completed in 736 milliseconds

<<21222324252627282930>>