/external/nanopb-c/tests/encode_unittests/ |
encode_unittests.c | 39 * Y is a string, which may contain null bytes. Null terminator is ignored. 172 struct { size_t size; uint8_t bytes[5]; } value = {5, {'x', 'y', 'z', 'z', 'y'}}; member in struct:__anon32657 266 COMMENT("Test pb_encode with bytes message.")
|
/external/openssl/crypto/bn/ |
bn_rand.c | 122 int ret=0,bit,bytes,mask; local 131 bytes=(bits+7)/8; 135 buf=(unsigned char *)OPENSSL_malloc(bytes); 148 if (RAND_pseudo_bytes(buf, bytes) == -1) 153 if (RAND_bytes(buf, bytes) <= 0) 165 for (i = 0; i < bytes; i++) 199 buf[bytes-1]|=1; 200 if (!BN_bin2bn(buf,bytes,rnd)) goto err; 205 OPENSSL_cleanse(buf,bytes); 324 /* We generate |range|+8 bytes of random output. * [all...] |
/external/pixman/test/ |
rotate-test.c | 64 uint32_t *bytes = malloc (WIDTH * HEIGHT * 4); local 67 prng_randmemset (bytes, WIDTH * HEIGHT * 4, 0); 70 format, WIDTH, HEIGHT, bytes, WIDTH * 4); 73 pixman_image_set_destroy_function (image, on_destroy, bytes);
|
/external/protobuf/java/src/main/java/com/google/protobuf/micro/ |
ByteStringMicro.java | 36 * Immutable array of bytes. 42 private final byte[] bytes; field in class:ByteStringMicro 44 private ByteStringMicro(final byte[] bytes) { 45 this.bytes = bytes; 54 return bytes[index]; 58 * Gets the number of bytes. 61 return bytes.length; 68 return bytes.length == 0; 80 * Copies the given bytes into a {@code ByteStringMicro} [all...] |
/external/protobuf/java/src/test/java/com/google/protobuf/ |
CodedOutputStreamTest.java | 50 * Helper to construct a byte array from a bunch of bytes. The inputs are 54 private byte[] bytes(int... bytesAsInts) { method in class:CodedOutputStreamTest 55 byte[] bytes = new byte[bytesAsInts.length]; 57 bytes[i] = (byte) bytesAsInts[i]; 59 return bytes; 63 private List<Byte> toList(byte[] bytes) { 65 for (byte b : bytes) { 77 * checks that the result matches the given bytes. 130 assertWriteVarint(bytes(0x00), 0); 131 assertWriteVarint(bytes(0x01), 1) [all...] |
/external/qemu/distrib/jpeg-6b/ |
jmemmac.c | 158 long bytes = byte_count; local 164 retVal = FSRead ( info->temp_file, &bytes, 166 if ( retVal != noErr || bytes != byte_count ) 176 long bytes = byte_count; local 182 retVal = FSWrite ( info->temp_file, &bytes, 184 if ( retVal != noErr || bytes != byte_count ) 279 * Note that FreeMem returns the total number of free bytes;
|
/external/qemu/distrib/sdl-1.2.15/src/video/bwindow/ |
SDL_sysevents.cc | 342 const char *bytes; local 343 if (msg->FindString("bytes", &bytes) == B_OK) { 348 keysym.unicode = Translate2Unicode(bytes); 372 const char *bytes; local 373 if (msg->FindString("bytes", &bytes) == B_OK) { 374 keysym.unicode = Translate2Unicode(bytes);
|
/external/regex-re2/util/ |
benchmark.cc | 34 static int64 bytes; variable 40 bytes = x; 67 bytes = 0; 121 if(ns > 0 && bytes > 0) 122 snprintf(mb, sizeof mb, "\t%7.2f MB/s", ((double)bytes/1e6)/((double)ns/1e9));
|
/external/skia/src/core/ |
SkChunkAlloc.cpp | 72 SkChunkAlloc::Block* SkChunkAlloc::newBlock(size_t bytes, AllocFailType ftype) { 73 size_t size = bytes; 94 void* SkChunkAlloc::alloc(size_t bytes, AllocFailType ftype) { 95 fTotalUsed += bytes; 97 bytes = SkAlign4(bytes); 101 if (block == NULL || bytes > block->fFreeSize) { 102 block = this->newBlock(bytes, ftype); 110 SkASSERT(block && bytes <= block->fFreeSize); 113 block->fFreeSize -= bytes; 119 size_t bytes = 0; local [all...] |
/external/skia/src/images/ |
SkImageDecoder_ktx.cpp | 216 const uint8_t *bytes = data->bytes(); local 217 if (etc1_pkm_is_valid(bytes)) { 222 if (SkKTXFile::is_ktx(bytes)) { 223 return stream->write(bytes, data->size()); 234 const uint8_t* bytes = data->bytes(); local 235 SkASSERT(etc1_pkm_is_valid(bytes)); 237 etc1_uint32 width = etc1_pkm_get_width(bytes); 238 etc1_uint32 height = etc1_pkm_get_height(bytes); [all...] |
SkImageDecoder_wbmp.cpp | 77 int bytes = bits >> 3; local 79 for (int i = 0; i < bytes; i++) {
|
/external/skia/tests/ |
StreamTest.cpp | 27 size_t bytes = stream->read(tmp, len); local 28 REPORTER_ASSERT(reporter, bytes == len); 33 size_t bytes = stream->read(tmp, 1); local 34 REPORTER_ASSERT(reporter, 0 == bytes); 105 size_t bytes = stream->read(&tmp, 1); local 106 REPORTER_ASSERT(reporter, 0 == bytes); 140 // we know that packeduint tries to write 1, 2 or 4 bytes for the length,
|
/external/strace/ |
mtd.c | 276 ", bytes=%" PRIi64 ", vol_type=", mkvol.vol_id, 277 mkvol.alignment, (int64_t)mkvol.bytes); 290 tprintf(", {vol_id=%" PRIi32 ", bytes=%" PRIi64 "}", 291 rsvol.vol_id, (int64_t)rsvol.bytes); 315 __s64 bytes; local 317 if (!verbose(tcp) || umove(tcp, arg, &bytes) < 0) 320 tprintf(", %" PRIi64, (int64_t)bytes);
|
/external/tremolo/Tremolo/ |
misc.c | 58 long bytes; member in struct:__anon36182 64 static void *_insert(void *ptr,long bytes,char *file,long line){ 68 ((head *)ptr)->bytes=bytes-HEAD_ALIGN; 113 file_bytes[i]+=bytes-HEAD_ALIGN; 122 file_bytes[i]-(bytes-HEAD_ALIGN)); 132 global_bytes+(bytes-HEAD_ALIGN)); 137 global_bytes+=(bytes-HEAD_ALIGN); 152 long bytes =((head *)ptr)->bytes; local [all...] |
/external/valgrind/main/coregrind/m_ume/ |
elf.c | 223 UInt bytes; local 225 bytes = VG_PGROUNDUP(brkaddr)-VG_PGROUNDUP(bss); 226 if (bytes > 0) { 229 VG_PGROUNDUP(bss), bytes, 233 check_mmap(res, VG_PGROUNDUP(bss), bytes); 236 bytes = bss & (VKI_PAGE_SIZE - 1); 239 if ((prot & VKI_PROT_WRITE) && (bytes > 0)) { 240 bytes = VKI_PAGE_SIZE - bytes; 241 VG_(memset)((void *)bss, 0, bytes); [all...] |
/frameworks/base/core/java/android/util/ |
Base64InputStream.java | 103 long bytes = Math.min(n, outputEnd-outputStart); local 104 outputStart += bytes; 105 return bytes; 126 int bytes = Math.min(len, outputEnd-outputStart); local 127 System.arraycopy(coder.output, outputStart, b, off, bytes); 128 outputStart += bytes; 129 return bytes;
|
/frameworks/base/core/jni/ |
android_ddm_DdmHandleNativeHeap.cpp | 59 char bytes[1024]; local 61 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) { 62 s.append(bytes, byteCount);
|
/frameworks/ex/framesequence/jni/ |
FrameSequenceJNI.cpp | 50 jbyte* bytes = reinterpret_cast<jbyte*>(env->GetPrimitiveArrayCritical(byteArray, NULL)); local 51 if (bytes == NULL) { 53 "couldn't read array bytes"); 56 MemoryStream stream(bytes + offset, length); 58 env->ReleasePrimitiveArrayCritical(byteArray, bytes, 0);
|
/frameworks/opt/net/voip/src/jni/rtp/ |
AmrCodec.cpp | 102 unsigned char *bytes = (unsigned char *)payload; local 106 samples, bytes + 1, &type, AMR_TX_WMF); 113 bytes[0] = 0xF0; 114 bytes[1] = (mMode << 3) | 0x04; 118 bytes[0] = 0xFF; 119 bytes[1] = 0xC0 | (mMode << 1) | 1; 122 bytes[length + 1] = 0; 124 bytes[i] = (bytes[i] << 6) | (bytes[i + 1] >> 2) 133 unsigned char *bytes = (unsigned char *)payload; local 226 unsigned char *bytes = (unsigned char *)payload; local 244 unsigned char *bytes = (unsigned char *)payload; local [all...] |
/frameworks/rs/ |
rsThreadIO.h | 73 uint32_t bytes; member in struct:android::renderscript::ThreadIO::CoreCmdHeaderRec 77 uint32_t bytes; member in struct:android::renderscript::ThreadIO::ClientCmdHeaderRec
|
/hardware/akm/AK8975_FS/libsensors/ |
AdxlSensor.cpp | 132 int bytes; local 156 bytes = sprintf(buffer, "%d", rate_val); 157 err = write_sys_attribute(input_sysfs_path, buffer, bytes);
|
AkmSensor.cpp | 139 int bytes; local 162 bytes = sprintf(buffer, "%lld", ns); 163 err = write_sys_attribute(input_sysfs_path, buffer, bytes);
|
/hardware/ti/omap4-aah/libtiutils/ |
MessageQueue.cpp | 193 size_t bytes = 0; local 212 while( bytes < sizeof(msg) ) 214 int err = write(this->fd_write, p, sizeof(*msg) - bytes); 224 bytes += err;
|
/hardware/ti/omap4xxx/libtiutils/ |
MessageQueue.cpp | 192 size_t bytes = 0; local 211 while( bytes < sizeof(msg) ) 213 int err = write(this->fd_write, p, sizeof(*msg) - bytes); 223 bytes += err;
|
/libcore/luni/src/test/java/libcore/java/text/ |
OldMessageFormatFieldTest.java | 49 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 50 out = new ObjectOutputStream(bytes); 62 in = new ObjectInputStream(new ByteArrayInputStream(bytes
|