| /frameworks/base/libs/hwui/utils/ |
| StringUtils.h | 44 int bytes; member in struct:android::uirenderer::SizePrinter 48 double temp = d.bytes;
|
| /frameworks/base/media/mca/filterfw/jni/ |
| jni_vertex_frame.cpp | 77 jbyte* bytes = env->GetByteArrayElements(data, NULL); local 78 if (bytes) { 79 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), 81 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
|
| /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/native/libs/binder/ |
| IpPrefix.cpp | 56 const uint8_t* bytes = reinterpret_cast<const uint8_t*>(&mUnion.mIn6Addr); local 57 byte_vector.insert(byte_vector.end(), bytes, bytes+sizeof(mUnion.mIn6Addr)); 59 const uint8_t* bytes = reinterpret_cast<const uint8_t*>(&mUnion.mInAddr); local 60 byte_vector.insert(byte_vector.end(), bytes, bytes+sizeof(mUnion.mIn6Addr));
|
| /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;
|
| /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...] |
| /packages/apps/DocumentsUI/src/com/android/documentsui/archives/ |
| Proxy.java | 73 int bytes = mInputStream.read(data, size - remainingSize, remainingSize); local 74 if (bytes <= 0) { 77 remainingSize -= bytes; 78 mOffset += bytes;
|
| /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. 51 return 0, errors.New("bytes.Reader.ReadAt: negative offset") 76 return errors.New("bytes.Reader.UnreadByte: at beginning of slice") 99 return errors.New("bytes.Reader.UnreadRune: previous operation was not ReadRune") 118 return 0, errors.New("bytes.Reader.Seek: invalid whence") 121 return 0, errors.New("bytes.Reader.Seek: negative position") 136 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. 51 return 0, errors.New("bytes.Reader.ReadAt: negative offset") 76 return errors.New("bytes.Reader.UnreadByte: at beginning of slice") 99 return errors.New("bytes.Reader.UnreadRune: previous operation was not ReadRune") 118 return 0, errors.New("bytes.Reader.Seek: invalid whence") 121 return 0, errors.New("bytes.Reader.Seek: negative position") 136 panic("bytes.Reader.WriteTo: invalid Write count")
|
| /system/tpm/trunks/ |
| session_manager_test.cc | 63 std::vector<uint8_t> bytes; local 64 CHECK(base::HexStringToBytes(kValidModulus, &bytes)); 65 CHECK_EQ(bytes.size(), 256u); 67 rsa.size = bytes.size(); 68 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 | 135 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 139 bytes.write(buffer, 0, count); 140 if (bytes.size() > MAXIMUM_CONTENT_LENGTH_BYTES) { 145 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);
|
| /art/runtime/mirror/ |
| class_ext.cc | 117 void ClassExt::SetOriginalDexFile(ObjPtr<Object> bytes) { 119 SetFieldObject<false>(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_), bytes); local
|
| /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 | 44 uint8_t bytes[PAGE_SIZE - 16] __attribute__((aligned(16))); member in struct:LinkerBlockAllocatorPage 91 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes; 128 FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes);
|
| /bootable/recovery/applypatch/ |
| applypatch_modes.cpp | 52 size_t bytes; local 53 if (!android::base::ParseUint(argv[2], &bytes) || bytes == 0) { 57 return CacheSizeCheck(bytes); 178 " or %s -s <bytes>\n"
|
| /device/linaro/bootloader/arm-trusted-firmware/drivers/io/ |
| io_semihosting.c | 161 size_t bytes = length; local 170 sh_result = semihosting_file_read(file_handle, &bytes, buffer); 173 *length_read = (bytes != length) ? bytes : length; 189 size_t bytes = length; local 197 sh_result = semihosting_file_write(file_handle, &bytes, buffer);
|
| /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 | 68 int bytes = reply.getNextValueAsInt(); local 69 logWriter.println("bytes = " + bytes); 71 byte[] bytecode = new byte[bytes]; 72 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 if (bytes.length > 1) 94 if (bytes[0] == 0 && (bytes[1] & 0x80) == 0) 98 if (bytes[0] == (byte)0xff && (bytes[1] & 0x80) != 0 [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());
|