HomeSort by relevance Sort by last modified time
    Searched defs:bytes (Results 101 - 125 of 2610) sorted by null

1 2 3 45 6 7 8 91011>>

  /frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
UnsafeByteSequence.java 31 private byte[] bytes; field in class:UnsafeByteSequence
35 this.bytes = new byte[initialCapacity];
51 if (count + length >= bytes.length) {
53 System.arraycopy(bytes, 0, newBytes, 0, count);
54 bytes = newBytes;
56 System.arraycopy(buffer, offset, bytes, count, length);
61 if (count == bytes.length) {
63 System.arraycopy(bytes, 0, newBytes, 0, count);
64 bytes = newBytes;
66 bytes[count++] = (byte) b
    [all...]
  /frameworks/opt/net/voip/src/jni/rtp/
GsmCodec.cpp 62 unsigned char *bytes = (unsigned char *)payload; local
65 gsm_decode(mDecode, bytes, &samples[n]) == 0) {
68 bytes += 33;
  /frameworks/support/documents-archive/tests/src/android/support/provider/
TestUtils.java 47 int bytes; local
48 while ((bytes = inputStream.read(buffer)) != -1) {
49 outputStream.write(buffer, 0, bytes);
  /hardware/bsp/intel/peripheral/libmraa/api/mraa/
iio.h 39 unsigned int bytes; member in struct:__anon30603
  /libcore/ojluni/src/main/native/
ObjectInputStream.c 61 jbyte *bytes; local
73 bytes = (*env)->GetPrimitiveArrayCritical(env, src, NULL);
74 if (bytes == NULL) /* exception thrown */
79 (*env)->ReleasePrimitiveArrayCritical(env, src, bytes, JNI_ABORT);
85 (*env)->ReleasePrimitiveArrayCritical(env, src, bytes, JNI_ABORT);
92 ival = ((bytes[srcpos + 0] & 0xFF) << 24) +
93 ((bytes[srcpos + 1] & 0xFF) << 16) +
94 ((bytes[srcpos + 2] & 0xFF) << 8) +
95 ((bytes[srcpos + 3] & 0xFF) << 0);
101 (*env)->ReleasePrimitiveArrayCritical(env, src, bytes, JNI_ABORT)
129 jbyte *bytes; local
    [all...]
  /prebuilts/go/darwin-x86/src/bytes/
reader.go 5 package bytes package
23 // Len returns the number of bytes of the unread portion of the
33 // Size is the number of bytes available for reading via ReadAt.
54 return 0, errors.New("bytes.Reader.ReadAt: negative offset")
79 return errors.New("bytes.Reader.UnreadByte: at beginning of slice")
102 return errors.New("bytes.Reader.UnreadRune: previous operation was not ReadRune")
121 return 0, errors.New("bytes.Reader.Seek: invalid whence")
124 return 0, errors.New("bytes.Reader.Seek: negative position")
139 panic("bytes.Reader.WriteTo: invalid Write count")
  /prebuilts/go/linux-x86/src/bytes/
reader.go 5 package bytes package
23 // Len returns the number of bytes of the unread portion of the
33 // Size is the number of bytes available for reading via ReadAt.
54 return 0, errors.New("bytes.Reader.ReadAt: negative offset")
79 return errors.New("bytes.Reader.UnreadByte: at beginning of slice")
102 return errors.New("bytes.Reader.UnreadRune: previous operation was not ReadRune")
121 return 0, errors.New("bytes.Reader.Seek: invalid whence")
124 return 0, errors.New("bytes.Reader.Seek: negative position")
139 panic("bytes.Reader.WriteTo: invalid Write count")
  /system/bt/btcore/src/
bdaddr.c 97 const char *bytes = (const char *)key; local
99 hash = ((hash << 5) + hash) + bytes[i];
  /system/tpm/trunks/
session_manager_test.cc 65 std::vector<uint8_t> bytes; local
66 CHECK(base::HexStringToBytes(kValidModulus, &bytes));
67 CHECK_EQ(bytes.size(), 256u);
69 rsa.size = bytes.size();
70 memcpy(rsa.buffer, bytes.data(), bytes.size());
  /system/update_engine/
fake_file_writer.h 44 virtual ssize_t Write(const void* bytes, size_t count) {
47 const char* char_bytes = reinterpret_cast<const char*>(bytes);
59 const brillo::Blob& bytes() { function in class:chromeos_update_engine::FakeFileWriter
64 // The internal store of all bytes that have been written
  /frameworks/base/services/core/java/com/android/server/location/
GpsXtraDownloader.java 133 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local
137 bytes.write(buffer, 0, count);
138 if (bytes.size() > MAXIMUM_CONTENT_LENGTH_BYTES) {
143 return bytes.toByteArray();
  /libcore/luni/src/main/java/libcore/io/
Streams.java 57 * Fills 'dst' with bytes from 'in', throwing EOFException if insufficient bytes are available.
64 * Reads exactly 'byteCount' bytes from 'in' (into 'dst' at offset 'offset'), and throws
65 * EOFException if insufficient bytes are available.
105 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local
109 bytes.write(buffer, 0, count);
111 return bytes.toByteArray();
138 * Skip <b>at most</b> {@code byteCount} bytes from {@code in} by calling read
139 * repeatedly until either the stream is exhausted or we read fewer bytes than
176 * Copies all of the bytes from {@code in} to {@code out}. Neither stream is closed
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
DataOutputStreamTest.java 26 private ByteArrayOutputStream bytes = new ByteArrayOutputStream(); field in class:DataOutputStreamTest
27 private DataOutputStream os = new DataOutputStream(bytes);
32 assertEquals("[01, 00]", toHexString(bytes.toByteArray()));
42 assertEquals("[ff, 00, 01, 81, 34]", toHexString(bytes.toByteArray()));
48 assertEquals("[30, 34, 31]", toHexString(bytes.toByteArray()));
55 assertEquals("[00, 30, 12, 34]", toHexString(bytes.toByteArray()));
61 assertEquals("[00, 30, 12, 34, 00, 31]", toHexString(bytes.toByteArray()));
66 assertEquals("[01, 23, 45, 67, 89, ab, cd, ef]", toHexString(bytes.toByteArray()));
71 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray()));
76 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray()))
    [all...]
  /sdk/apps/NotificationStudio/src/com/android/notificationstudio/action/
ShareMockupAction.java 54 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local
55 mockup.compress(Bitmap.CompressFormat.PNG, 100, bytes);
61 fo.write(bytes.toByteArray());
  /art/runtime/gc/allocator/
rosalloc-inl.h 47 uint8_t* bytes = reinterpret_cast<uint8_t*>(m); local
49 DCHECK_EQ(bytes[i], 0);
  /bionic/libc/upstream-netbsd/lib/libc/isc/
ev_streams.c 49 static void consume(evStream *str, size_t bytes);
233 consume(evStream *str, size_t bytes) {
234 while (bytes > 0U) {
235 if (bytes < (size_t)str->iovCur->iov_len) {
236 str->iovCur->iov_len -= bytes;
238 ((u_char *)str->iovCur->iov_base + bytes);
239 str->ioDone += bytes;
240 bytes = 0;
242 bytes -= str->iovCur->iov_len;
268 /* Dribble out some bytes on the stream. (Called by evDispatch().) *
272 int bytes; local
295 int bytes; local
    [all...]
  /bionic/linker/
linker_block_allocator.cpp 32 uint8_t bytes[PAGE_SIZE - 16] __attribute__((aligned(16))); member in struct:LinkerBlockAllocatorPage
79 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes;
118 FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes);
  /bootable/recovery/applypatch/
main.cpp 41 size_t bytes = strtol(argv[2], &endptr, 10); local
42 if (bytes == 0 && endptr == argv[2]) {
46 return CacheSizeCheck(bytes);
174 " or %s -s <bytes>\n"
  /external/ImageMagick/coders/
url.c 216 bytes;
229 while ((bytes=xmlNanoHTTPRead(context,buffer,MaxBufferExtent)) > 0)
230 count=(ssize_t) fwrite(buffer,bytes,1,file);
214 bytes; local
  /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Method/
BytecodesTest.java 69 int bytes = reply.getNextValueAsInt(); local
70 logWriter.println("bytes = " + bytes);
72 byte[] bytecode = new byte[bytes];
73 for (int j = 0; j < bytes; j++) {
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
ASN1Integer.java 14 private final byte[] bytes; field in class:ASN1Integer
75 bytes = BigInteger.valueOf(value).toByteArray();
81 bytes = value.toByteArray();
85 byte[] bytes)
87 this(bytes, true);
90 ASN1Integer(byte[] bytes, boolean clone)
92 this.bytes = (clone) ? Arrays.clone(bytes) : bytes;
97 return new BigInteger(bytes);
    [all...]
  /external/caliper/caliper/src/main/java/com/google/caliper/bridge/
CommandLineSerializer.java 43 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local
45 ObjectOutputStream out = new ObjectOutputStream(bytes);
48 return BaseEncoding.base64().encode(bytes.toByteArray());
  /external/dbus/dbus/
dbus-types.h 34 /* boolean size must be fixed at 4 bytes due to wire protocol! */
143 dbus_uint32_t first32; /**< first 32 bits in the 8 bytes (beware endian issues) */
144 dbus_uint32_t second32; /**< second 32 bits in the 8 bytes (beware endian issues) */
148 * A simple value union that lets you access bytes as if they
155 * than 8 bytes.
159 unsigned char bytes[8]; /**< as 8 individual bytes */ member in union:__anon10235
  /external/guava/guava-testlib/src/com/google/common/collect/testing/
ReserializingTestCollectionGenerator.java 55 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local
56 ObjectOutputStream out = new ObjectOutputStream(bytes);
59 new ByteArrayInputStream(bytes.toByteArray()));
  /external/guava/guava-tests/test/com/google/common/io/
TestByteSource.java 35 private final byte[] bytes; field in class:TestByteSource
41 TestByteSource(byte[] bytes, TestOption... options) {
42 this.bytes = checkNotNull(bytes);
65 super(new ByteArrayInputStream(bytes), options);

Completed in 1710 milliseconds

1 2 3 45 6 7 8 91011>>