/system/media/audio_utils/tests/ |
format_tests.cpp | 38 uint8_t bytes[size]; variable 40 bytes[i] = i; 45 bytes, AUDIO_FORMAT_PCM_8_BIT, size); 51 EXPECT_EQ(0, memcmp(check, bytes, size)); 77 // data buffer for in-place conversion (uint32_t is maximum sample size of 4 bytes)
|
/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
|
/system/update_engine/payload_consumer/ |
cached_file_descriptor.cc | 52 auto bytes = static_cast<const uint8_t*>(buf); local 59 bytes + total_bytes_wrote,
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
EncodeUtils.java | 44 * @param bytes the raw data buffer to read from 45 * @param length the number of bytes in the raw data buffer containing the string to decode 50 public static String decode(@Nonnull ByteBuffer bytes, int length, @Nonnull GPFlags flags) 52 if (bytes.remaining() < length) { 53 throw new IOException("Only " + bytes.remaining() + " bytes exist in the buffer, but " 58 bytes.get(stringBytes); 109 ByteBuffer bytes = charset.encode(name); local 110 byte[] result = new byte[bytes.remaining()]; 111 bytes.get(result) [all...] |
/frameworks/base/services/core/java/com/android/server/location/ |
GpsXtraDownloader.java | 137 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 141 bytes.write(buffer, 0, count); 142 if (bytes.size() > MAXIMUM_CONTENT_LENGTH_BYTES) { 147 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 | 28 private ByteArrayOutputStream bytes = new ByteArrayOutputStream(); field in class:DataOutputStreamTest 29 private DataOutputStream os = new DataOutputStream(bytes); 34 assertEquals("0100", HexEncoding.encodeToString(bytes.toByteArray())); 44 assertEquals("FF00018134", HexEncoding.encodeToString(bytes.toByteArray())); 50 assertEquals("303431", HexEncoding.encodeToString(bytes.toByteArray())); 57 assertEquals("00301234", HexEncoding.encodeToString(bytes.toByteArray())); 63 assertEquals("003012340031", HexEncoding.encodeToString(bytes.toByteArray())); 68 assertEquals("0123456789ABCDEF", HexEncoding.encodeToString(bytes.toByteArray())); 73 assertEquals("01234567", HexEncoding.encodeToString(bytes.toByteArray())); 78 assertEquals("01234567", HexEncoding.encodeToString(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);
|
/device/linaro/bootloader/arm-trusted-firmware/drivers/io/ |
io_semihosting.c | 131 size_t bytes = length; local 140 sh_result = semihosting_file_read(file_handle, &bytes, buffer); 143 *length_read = (bytes != length) ? bytes : length; 157 size_t bytes = length; local 165 sh_result = semihosting_file_write(file_handle, &bytes, buffer); 167 *length_written = length - bytes;
|
/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/boringssl/src/crypto/fipsmodule/bn/ |
random.c | 127 int ret = 0, bit, bytes, mask; local 149 bytes = (bits + 7) / 8; 153 buf = OPENSSL_malloc(bytes); 160 RAND_bytes(buf, bytes); 179 buf[bytes - 1] |= 1; 182 if (!BN_bin2bn(buf, bytes, rnd)) {
|
/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());
|
/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);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
CollationRoot.java | 51 ByteBuffer bytes = ICUBinary.getRequiredData("coll/ucadata.icu"); external variable declarations 53 CollationDataReader.read(null, bytes, t2);
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
CollationRoot.java | 49 ByteBuffer bytes = ICUBinary.getRequiredData("coll/ucadata.icu"); external variable declarations 51 CollationDataReader.read(null, bytes, t2);
|
/external/libcap/libcap/ |
cap_extint.c | 25 __u8 bytes[CAP_SET_SIZE][NUMBER_OF_CAP_SETS]; member in struct:cap_ext_struct 66 result->bytes[j++][i] = val & 0xFF; 67 result->bytes[j++][i] = (val >>= 8) & 0xFF; 68 result->bytes[j++][i] = (val >>= 8) & 0xFF; 69 result->bytes[j++][i] = (val >> 8) & 0xFF; 108 val = export->bytes[bno++][set]; 110 val |= export->bytes[bno++][set] << 8; 112 val |= export->bytes[bno++][set] << 16; 114 val |= export->bytes[bno++][set] << 24;
|
/external/libchrome/base/metrics/ |
bucket_ranges.cc | 13 // Static table of checksums for all possible 8 bit bytes. 84 unsigned char bytes[sizeof(HistogramBase::Sample)]; member in union:base::__anon24232 88 sum = kCrcTable[(sum & 0xff) ^ converter.bytes[i]] ^ (sum >> 8); 92 // and we don't care about edge cases since we have an even number of bytes.
|