Home
last modified time | relevance | path

Searched refs:byteLimit (Results 1 – 12 of 12) sorted by relevance

/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DCodedInputByteBufferNano.java478 public int pushLimit(int byteLimit) throws InvalidProtocolBufferNanoException { in pushLimit() argument
479 if (byteLimit < 0) { in pushLimit()
482 byteLimit += bufferPos; in pushLimit()
484 if (byteLimit > oldLimit) { in pushLimit()
487 currentLimit = byteLimit; in pushLimit()
/external/skia/src/core/
DSkResourceCache.cpp98 SkResourceCache::SkResourceCache(size_t byteLimit) { in SkResourceCache() argument
100 fTotalByteLimit = byteLimit; in SkResourceCache()
202 size_t byteLimit; in purgeAsNeeded() local
207 byteLimit = UINT32_MAX; // no limit based on bytes in purgeAsNeeded()
210 byteLimit = fTotalByteLimit; in purgeAsNeeded()
215 if (!forcePurge && fTotalBytesUsed < byteLimit && fCount < countLimit) { in purgeAsNeeded()
DSkResourceCache.h207 explicit SkResourceCache(size_t byteLimit);
/external/skqp/src/core/
DSkResourceCache.cpp98 SkResourceCache::SkResourceCache(size_t byteLimit) { in SkResourceCache() argument
100 fTotalByteLimit = byteLimit; in SkResourceCache()
202 size_t byteLimit; in purgeAsNeeded() local
207 byteLimit = UINT32_MAX; // no limit based on bytes in purgeAsNeeded()
210 byteLimit = fTotalByteLimit; in purgeAsNeeded()
215 if (!forcePurge && fTotalBytesUsed < byteLimit && fCount < countLimit) { in purgeAsNeeded()
DSkResourceCache.h207 explicit SkResourceCache(size_t byteLimit);
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/
DCodedInputStreamMicro.java535 public int pushLimit(int byteLimit) throws InvalidProtocolBufferMicroException { in pushLimit() argument
536 if (byteLimit < 0) { in pushLimit()
539 byteLimit += totalBytesRetired + bufferPos; in pushLimit()
541 if (byteLimit > oldLimit) { in pushLimit()
544 currentLimit = byteLimit; in pushLimit()
/external/protobuf/csharp/src/Google.Protobuf/
DCodedInputStream.cs930 internal int PushLimit(int byteLimit) in PushLimit() argument
932 if (byteLimit < 0) in PushLimit()
936 byteLimit += totalBytesRetired + bufferPos; in PushLimit()
938 if (byteLimit > oldLimit) in PushLimit()
942 currentLimit = byteLimit; in PushLimit()
/external/protobuf/objectivec/
DGPBCodedInputStream.m261 size_t byteLimit) {
262 byteLimit += state->bufferPos;
264 if (byteLimit > oldLimit) {
266 format:@"byteLimit > oldLimit: %tu > %tu", byteLimit, oldLimit];
268 state->currentLimit = byteLimit;
DGPBCodedInputStream_PackagePrivate.h106 size_t byteLimit);
/external/skqp/tests/
DSkResourceCacheTest.cpp128 const size_t byteLimit = 100 * 1024; in DEF_TEST() local
130 SkResourceCache cache(byteLimit); in DEF_TEST()
134 sk_sp<SkDiscardableMemoryPool> pool(SkDiscardableMemoryPool::Make(byteLimit)); in DEF_TEST()
/external/skia/tests/
DSkResourceCacheTest.cpp128 const size_t byteLimit = 100 * 1024; in DEF_TEST() local
130 SkResourceCache cache(byteLimit); in DEF_TEST()
134 sk_sp<SkDiscardableMemoryPool> pool(SkDiscardableMemoryPool::Make(byteLimit)); in DEF_TEST()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java978 public int pushLimit(int byteLimit) throws InvalidProtocolBufferException { in pushLimit() argument
979 if (byteLimit < 0) { in pushLimit()
982 byteLimit += totalBytesRetired + bufferPos; in pushLimit()
984 if (byteLimit > oldLimit) { in pushLimit()
987 currentLimit = byteLimit; in pushLimit()