/external/skia/include/core/ |
H A D | SkChecksum.h | 46 * @param size Size of the data block in bytes. Must be a multiple of 4. 50 static uint32_t Murmur3(const uint32_t* data, size_t bytes, uint32_t seed=0) { argument 51 SkASSERT(SkIsAlign4(bytes)); 52 const size_t words = bytes/4; 66 hash ^= bytes; 85 * @param size Size of the data block in bytes. Must be a multiple of 4.
|
/external/skia/src/core/ |
H A D | SkChunkAlloc.cpp | 72 SkChunkAlloc::Block* SkChunkAlloc::newBlock(size_t bytes, AllocFailType ftype) { argument 73 size_t size = bytes; 94 void* SkChunkAlloc::alloc(size_t bytes, AllocFailType ftype) { argument 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/gpu/ |
H A D | GrAllocPool.cpp | 31 bool canAlloc(size_t bytes) const { 32 return bytes <= fBytesFree; 35 void* alloc(size_t bytes) { argument 36 SkASSERT(bytes <= fBytesFree); 37 fBytesFree -= bytes; 39 fPtr += bytes; 43 size_t release(size_t bytes) { argument 44 SkASSERT(bytes > 0); 45 size_t free = SkTMin(bytes, fBytesTotal - fBytesFree); 48 return bytes 90 release(size_t bytes) argument [all...] |
/external/skia/src/images/ |
H A D | SkJpegUtility.cpp | 53 size_t bytes = src->fStream->read(src->fBuffer, skjpeg_source_mgr::kBufferSize); local 56 if (bytes == 0) { 61 src->current_offset += bytes; 64 src->bytes_in_buffer = bytes; 74 size_t bytes = src->fStream->skip(bytesToSkip); local 75 if (bytes <= 0 || bytes > bytesToSkip) { 76 // SkDebugf("xxxxxxxxxxxxxx failure to skip request %d returned %d\n", bytesToSkip, bytes); 81 src->current_offset += bytes; 83 bytesToSkip -= bytes; [all...] |
/external/skia/src/pipe/utils/ |
H A D | SamplePipeControllers.cpp | 35 void PipeController::notifyWritten(size_t bytes) { argument 36 fStatus = fReader.playback(this->getData(), bytes); 38 fBytesWritten += bytes; 76 void TiledPipeController::notifyWritten(size_t bytes) { argument 78 fReaders[i].playback(this->getData(), bytes); 80 this->INHERITED::notifyWritten(bytes); 105 void ThreadSafePipeController::notifyWritten(size_t bytes) { argument 106 fBytesWritten += bytes;
|
H A D | SamplePipeControllers.h | 22 virtual void notifyWritten(size_t bytes) SK_OVERRIDE; 40 virtual void notifyWritten(size_t bytes) SK_OVERRIDE; 61 virtual void notifyWritten(size_t bytes) SK_OVERRIDE; 75 PipeBlock(void* block, size_t bytes) { fBlock = block, fBytes = bytes; } argument 79 // Number of bytes that were written to fBlock.
|
/external/skia/src/utils/ |
H A D | SkBase64.cpp | 45 unsigned char bytes[4]; local 56 bytes[byte] = decoded; 80 int one = (uint8_t) (bytes[0] << 2); 81 two = bytes[1]; 84 three = bytes[2]; 87 three |= bytes[3];
|
/external/skia/tests/ |
H A D | ImageCacheTest.cpp | 83 static SkDiscardableMemory* pool_factory(size_t bytes) { argument 85 return gPool->create(bytes);
|
H A D | MemsetTest.cpp | 42 static void set_zero(void* dst, size_t bytes) { argument 44 for (size_t i = 0; i < bytes; ++i) {
|
H A D | 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/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/io/ |
H A D | FileDeferredOutputStream.java | 49 @Override public void write(byte[] bytes) throws IOException { argument 50 output.write(bytes); 51 writtenBytes += bytes.length; 54 @Override public void write(byte[] bytes, int off, int len) throws IOException { argument 55 output.write(bytes, off, len);
|
/external/strace/ |
H A D | 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/ |
H A D | misc.c | 58 long bytes; member in struct:__anon31578 64 static void *_insert(void *ptr,long bytes,char *file,long line){ argument 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 209 _VDBG_malloc(void *ptr,long bytes,char *file,long line) argument [all...] |
/external/webp/include/webp/ |
H A D | mux_types.h | 59 const uint8_t* bytes; member in struct:WebPData 74 free((void*)webp_data->bytes); 84 if (src->bytes != NULL && src->size != 0) { 85 dst->bytes = (uint8_t*)malloc(src->size); 86 if (dst->bytes == NULL) return 0; 87 memcpy((void*)dst->bytes, src->bytes, src->size);
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
H A D | ByteBuffer.java | 56 * @param length the length of valid bytes in the array 101 * @param length the length of valid bytes in the array 116 * @return Returns a byte stream that is limited to the valid amount of bytes. 125 * @return Returns the length, that means the number of valid bytes, of the buffer; 192 * @param bytes a byte array 196 public void append(byte[] bytes, int offset, int len) argument 199 System.arraycopy(bytes, offset, buffer, length, len); 206 * @param bytes a byte array 208 public void append(byte[] bytes) argument 210 append(bytes, [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
H A D | SecureRandom2Test.java | 114 byte[] bytes = new byte[313]; 115 new SecureRandom().nextBytes(bytes); 201 protected void engineNextBytes(byte[] bytes) { argument 202 for (int i = 0; i < bytes.length; i++) { 203 bytes[i] = (byte) 0xFF;
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
H A D | JcaContentVerifierProviderBuilder.java | 267 public void write(byte[] bytes, int off, int len) argument 272 sig.update(bytes, off, len); 280 public void write(byte[] bytes) argument 285 sig.update(bytes);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
H A D | DERBitString.java | 69 * return the correct number of bytes for a bit string defined in 74 int bytes = 4; 81 bytes--; 84 byte[] result = new byte[bytes]; 85 for (int i = 0; i < bytes; i++) 216 byte[] bytes = new byte[getBytes().length + 1]; 218 bytes[0] = (byte)getPadBits(); 219 System.arraycopy(getBytes(), 0, bytes, 1, bytes.length - 1); 221 out.writeEncoded(BERTags.BIT_STRING, bytes); 274 fromOctetString(byte[] bytes) argument [all...] |
H A D | DERObjectIdentifier.java | 93 byte[] bytes) 100 for (int i = 0; i != bytes.length; i++) 102 int b = bytes[i] & 0xff; 172 this.body = Arrays.clone(bytes); 92 DERObjectIdentifier( byte[] bytes) argument
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/ |
H A D | PKCS10CertificationRequest.java | 224 byte[] bytes) 228 ASN1InputStream dIn = new ASN1InputStream(bytes); 243 byte[] bytes) 245 super(toDERSequence(bytes)); 223 toDERSequence( byte[] bytes) argument 242 PKCS10CertificationRequest( byte[] bytes) argument
|
/external/chromium_org/base/android/ |
H A D | jni_array.cc | 15 JNIEnv* env, const uint8* bytes, size_t len) { 21 byte_array, 0, len, reinterpret_cast<const jbyte*>(bytes)); 144 jbyte* bytes = env->GetByteArrayElements(byte_array, NULL); local 145 out->insert(out->end(), bytes, bytes + len); 146 env->ReleaseByteArrayElements(byte_array, bytes, JNI_ABORT); 209 jbyte* bytes = env->GetByteArrayElements(bytes_array.obj(), NULL); local 210 (*out)[i].assign(reinterpret_cast<const char*>(bytes), bytes_len); 211 env->ReleaseByteArrayElements(bytes_array.obj(), bytes, JNI_ABORT); 14 ToJavaByteArray( JNIEnv* env, const uint8* bytes, size_t len) argument
|
/external/chromium_org/base/memory/ |
H A D | discardable_memory_manager.cc | 35 void DiscardableMemoryManager::SetMemoryLimit(size_t bytes) { argument 37 memory_limit_ = bytes; 42 void DiscardableMemoryManager::SetSoftMemoryLimit(size_t bytes) { argument 44 soft_memory_limit_ = bytes; 57 void DiscardableMemoryManager::ReduceMemoryUsageUntilWithinLimit(size_t bytes) { argument 60 bytes); local 63 void DiscardableMemoryManager::Register(Allocation* allocation, size_t bytes) { argument 66 allocations_.Put(allocation, AllocationInfo(bytes)); 76 size_t bytes_purgable = info.bytes; 93 if (!info->bytes) [all...] |
H A D | shared_memory_nacl.cc | 87 bool SharedMemory::MapAt(off_t offset, size_t bytes) { argument 91 if (bytes > static_cast<size_t>(std::numeric_limits<int>::max())) 97 memory_ = mmap(NULL, bytes, PROT_READ | (read_only_ ? 0 : PROT_WRITE), 102 mapped_size_ = bytes;
|
H A D | shared_memory_win.cc | 186 bool SharedMemory::MapAt(off_t offset, size_t bytes) { argument 190 if (bytes > static_cast<size_t>(std::numeric_limits<int>::max())) 201 bytes);
|
/external/chromium_org/cc/resources/ |
H A D | prioritized_resource.cc | 113 void PrioritizedResource::SetToSelfManagedMemoryPlaceholder(size_t bytes) { argument 116 bytes_ = bytes;
|