/external/angle/src/tests/preprocessor_tests/ |
D | input_test.cpp | 80 int maxSize = 1; in TEST() local 83 EXPECT_EQ(1u, input1.read(buf, maxSize, &lineNo)); in TEST() 85 EXPECT_EQ(1u, input1.read(buf, maxSize, &lineNo)); in TEST() 87 EXPECT_EQ(1u, input1.read(buf, maxSize, &lineNo)); in TEST() 89 EXPECT_EQ(0u, input1.read(buf, maxSize, &lineNo)); in TEST() 91 maxSize = 2; in TEST() 93 EXPECT_EQ(2u, input2.read(buf, maxSize, &lineNo)); in TEST() 95 EXPECT_EQ(1u, input2.read(buf, maxSize, &lineNo)); in TEST() 97 EXPECT_EQ(0u, input2.read(buf, maxSize, &lineNo)); in TEST() 99 maxSize = 3; in TEST() [all …]
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | EvictingQueue.java | 52 @VisibleForTesting final int maxSize; field in EvictingQueue 54 private EvictingQueue(int maxSize) { in EvictingQueue() argument 55 checkArgument(maxSize >= 0, "maxSize (%s) must >= 0", maxSize); in EvictingQueue() 56 this.delegate = new ArrayDeque<E>(maxSize); in EvictingQueue() 57 this.maxSize = maxSize; in EvictingQueue() 66 public static <E> EvictingQueue<E> create(int maxSize) { in create() argument 67 return new EvictingQueue<E>(maxSize); in create() 77 return maxSize - size(); in remainingCapacity() 107 if (maxSize == 0) { in add() 110 if (size() == maxSize) { in add() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | EvictingQueue.java | 52 @VisibleForTesting final int maxSize; field in EvictingQueue 54 private EvictingQueue(int maxSize) { in EvictingQueue() argument 55 checkArgument(maxSize >= 0, "maxSize (%s) must >= 0", maxSize); in EvictingQueue() 56 this.delegate = new ArrayDeque<E>(maxSize); in EvictingQueue() 57 this.maxSize = maxSize; in EvictingQueue() 66 public static <E> EvictingQueue<E> create(int maxSize) { in create() argument 67 return new EvictingQueue<E>(maxSize); in create() 77 return maxSize - size(); in remainingCapacity() 107 if (maxSize == 0) { in add() 110 if (size() == maxSize) { in add() [all …]
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/ |
D | LruBitmapPool.java | 28 private int maxSize; field in LruBitmapPool 36 LruBitmapPool(int maxSize, LruPoolStrategy strategy) { in LruBitmapPool() argument 37 this.initialMaxSize = maxSize; in LruBitmapPool() 38 this.maxSize = maxSize; in LruBitmapPool() 48 public LruBitmapPool(int maxSize) { in LruBitmapPool() argument 49 this(maxSize, getDefaultStrategy()); in LruBitmapPool() 54 return maxSize; in getMaxSize() 59 maxSize = Math.round(initialMaxSize * sizeMultiplier); in setSizeMultiplier() 65 if (!bitmap.isMutable() || strategy.getSize(bitmap) > maxSize) { in put() 90 trimToSize(maxSize); in evict() [all …]
|
/external/angle/src/tests/gl_tests/ |
D | TextureRectangleTest.cpp | 66 GLint maxSize = 0; in TEST_P() local 67 glGetIntegerv(GL_MAX_RECTANGLE_TEXTURE_SIZE_ANGLE, &maxSize); in TEST_P() 73 glTexImage2D(GL_TEXTURE_RECTANGLE_ANGLE, 0, GL_RGBA, maxSize, maxSize, 0, GL_RGBA, in TEST_P() 80 glTexImage2D(GL_TEXTURE_RECTANGLE_ANGLE, 0, GL_RGBA, maxSize + 1, maxSize, 0, GL_RGBA, in TEST_P() 83 glTexImage2D(GL_TEXTURE_RECTANGLE_ANGLE, 0, GL_RGBA, maxSize, maxSize + 1, 0, GL_RGBA, in TEST_P() 153 GLint maxSize = 0; in TEST_P() local 154 glGetIntegerv(GL_MAX_RECTANGLE_TEXTURE_SIZE_ANGLE, &maxSize); in TEST_P() 162 TexStorage2D(GL_TEXTURE_RECTANGLE_ANGLE, 1, GL_RGBA8UI, maxSize, maxSize); in TEST_P() 171 TexStorage2D(GL_TEXTURE_RECTANGLE_ANGLE, 1, GL_RGBA8UI, maxSize + 1, maxSize); in TEST_P() 173 TexStorage2D(GL_TEXTURE_RECTANGLE_ANGLE, 1, GL_RGBA8UI, maxSize, maxSize + 1); in TEST_P()
|
/external/OpenCL-CTS/test_conformance/basic/ |
D | test_constant.cpp | 103 cl_ulong maxSize, maxGlobalSize, maxAllocSize; in test_constant() local 110 …err = clGetDeviceInfo( device, CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE, sizeof( maxSize ), &maxSize, 0 … in test_constant() 113 log_info("Device reports CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE %llu bytes.\n", maxSize); in test_constant() 119 if (maxSize > maxGlobalSize / 4) in test_constant() 120 maxSize = maxGlobalSize / 4; in test_constant() 125 if (maxSize > maxAllocSize) in test_constant() 126 maxSize = maxAllocSize; in test_constant() 128 maxSize/=4; in test_constant() 129 num_ints = (size_t)maxSize/sizeof(cl_int); in test_constant() 130 num_floats = (size_t)maxSize/sizeof(cl_float); in test_constant()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/ |
D | DiskLruCacheWrapper.java | 30 private final int maxSize; field in DiskLruCacheWrapper 42 public static synchronized DiskCache get(File directory, int maxSize) { in get() argument 45 wrapper = new DiskLruCacheWrapper(directory, maxSize); in get() 50 protected DiskLruCacheWrapper(File directory, int maxSize) { in DiskLruCacheWrapper() argument 52 this.maxSize = maxSize; in DiskLruCacheWrapper() 58 diskLruCache = DiskLruCache.open(directory, APP_VERSION, VALUE_COUNT, maxSize); in getDiskCache()
|
D | MemorySizeCalculator.java | 37 final int maxSize = getMaxSize(activityManager); in MemorySizeCalculator() local 45 if (targetMemoryCacheSize + targetPoolSize <= maxSize) { in MemorySizeCalculator() 49 …int part = Math.round((float) maxSize / (BITMAP_POOL_TARGET_SCREENS + MEMORY_CACHE_TARGET_SCREENS)… in MemorySizeCalculator() 56 … + " memory class limited? " + (targetMemoryCacheSize + targetPoolSize > maxSize) + " max size: " in MemorySizeCalculator() 57 … + toMb(maxSize) + " memoryClass: " + activityManager.getMemoryClass() + " isLowMemoryDevice: " in MemorySizeCalculator()
|
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
D | LruCache.java | 15 private int maxSize; field in LruCache 26 this.maxSize = size; in LruCache() 40 maxSize = Math.round(initialMaxSize * multiplier); in setSizeMultiplier() 68 return maxSize; in getMaxSize() 111 if (itemSize >= maxSize) { in put() 167 trimToSize(maxSize); in evict()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowHttpResponseCache.java | 26 private long maxSize; field in ShadowHttpResponseCache 32 protected static HttpResponseCache install(File directory, long maxSize) { in install() argument 37 shadowCache.maxSize = maxSize; in install() 52 protected long maxSize() { in maxSize() method in ShadowHttpResponseCache 53 return maxSize; in maxSize()
|
/external/libaom/libaom/test/ |
D | av1_quantize_test.cc | 44 const int maxSize = 1024; variable 53 DECLARE_ALIGNED(16, tran_low_t, coeff_ptr[maxSize]); in RunQuantizeTest() 58 DECLARE_ALIGNED(16, tran_low_t, qcoeff_ptr[maxSize]); in RunQuantizeTest() 59 DECLARE_ALIGNED(16, tran_low_t, dqcoeff_ptr[maxSize]); in RunQuantizeTest() 60 DECLARE_ALIGNED(16, tran_low_t, ref_qcoeff_ptr[maxSize]); in RunQuantizeTest() 61 DECLARE_ALIGNED(16, tran_low_t, ref_dqcoeff_ptr[maxSize]); in RunQuantizeTest() 128 DECLARE_ALIGNED(16, tran_low_t, coeff_ptr[maxSize]); in RunEobTest() 133 DECLARE_ALIGNED(16, tran_low_t, qcoeff_ptr[maxSize]); in RunEobTest() 134 DECLARE_ALIGNED(16, tran_low_t, dqcoeff_ptr[maxSize]); in RunEobTest() 135 DECLARE_ALIGNED(16, tran_low_t, ref_qcoeff_ptr[maxSize]); in RunEobTest() [all …]
|
/external/mesa3d/src/amd/compiler/ |
D | aco_reduce_assign.cpp | 40 unsigned maxSize = 0; in setup_reduce_temp() local 48 maxSize = MAX2(maxSize, instr->operands[0].size()); in setup_reduce_temp() 53 if (maxSize == 0) in setup_reduce_temp() 56 assert(maxSize == 1 || maxSize == 2); in setup_reduce_temp() 57 Temp reduceTmp(0, RegClass(RegType::vgpr, maxSize).as_linear()); in setup_reduce_temp() 58 Temp vtmp(0, RegClass(RegType::vgpr, maxSize).as_linear()); in setup_reduce_temp()
|
/external/clang/utils/ABITest/ |
D | TypeGen.py | 324 def __init__(self, typeGen, maxSize, useIncomplete=False, useZero=False): argument 329 self.maxSize = int(maxSize) 330 self.W = useIncomplete + useZero + self.maxSize 352 def __init__(self, typeGen, useUnion, maxSize): argument 356 self.maxSize = int(maxSize) 361 if self.maxSize is aleph0: 365 for i in range(self.maxSize+1): 373 fields = map(self.typeGen.get,getNthTuple(I,self.maxSize,self.typeGen.cardinality)) 377 def __init__(self, typeGen, useReturn, maxSize): argument 381 self.maxSize = maxSize [all …]
|
/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | Initialize.cpp | 6629 const int maxSize = 200; in add2ndGenerationSamplingImaging() local 6630 char builtInConstant[maxSize]; in add2ndGenerationSamplingImaging() 6637 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxVertexAttribs = %d;", resources.maxVe… in add2ndGenerationSamplingImaging() 6640 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxVertexUniformVectors = %d;", resource… in add2ndGenerationSamplingImaging() 6643 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxVertexTextureImageUnits = %d;", resou… in add2ndGenerationSamplingImaging() 6646 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxCombinedTextureImageUnits = %d;", res… in add2ndGenerationSamplingImaging() 6649 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxTextureImageUnits = %d;", resources.m… in add2ndGenerationSamplingImaging() 6652 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxFragmentUniformVectors = %d;", resour… in add2ndGenerationSamplingImaging() 6655 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxDrawBuffers = %d;", resources.maxDraw… in add2ndGenerationSamplingImaging() 6659 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxVaryingVectors = %d;", resources.maxV… in add2ndGenerationSamplingImaging() [all …]
|
/external/angle/third_party/glslang/src/glslang/MachineIndependent/ |
D | Initialize.cpp | 6612 const int maxSize = 200; in add2ndGenerationSamplingImaging() local 6613 char builtInConstant[maxSize]; in add2ndGenerationSamplingImaging() 6620 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxVertexAttribs = %d;", resources.maxVe… in add2ndGenerationSamplingImaging() 6623 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxVertexUniformVectors = %d;", resource… in add2ndGenerationSamplingImaging() 6626 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxVertexTextureImageUnits = %d;", resou… in add2ndGenerationSamplingImaging() 6629 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxCombinedTextureImageUnits = %d;", res… in add2ndGenerationSamplingImaging() 6632 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxTextureImageUnits = %d;", resources.m… in add2ndGenerationSamplingImaging() 6635 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxFragmentUniformVectors = %d;", resour… in add2ndGenerationSamplingImaging() 6638 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxDrawBuffers = %d;", resources.maxDraw… in add2ndGenerationSamplingImaging() 6642 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxVaryingVectors = %d;", resources.maxV… in add2ndGenerationSamplingImaging() [all …]
|
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/ |
D | AndroidShimResponseCache.java | 42 public static AndroidShimResponseCache create(File directory, long maxSize) throws IOException { in create() argument 43 Cache cache = new Cache(directory, maxSize); in create() 47 public boolean isEquivalent(File directory, long maxSize) { in isEquivalent() argument 50 && installedCache.getMaxSize() == maxSize in isEquivalent() 95 public long maxSize() { in maxSize() method in AndroidShimResponseCache
|
/external/okhttp/repackaged/okhttp-android-support/src/main/java/com/android/okhttp/ |
D | AndroidShimResponseCache.java | 44 public static AndroidShimResponseCache create(File directory, long maxSize) throws IOException { in create() argument 45 Cache cache = new Cache(directory, maxSize); in create() 49 public boolean isEquivalent(File directory, long maxSize) { in isEquivalent() argument 52 && installedCache.getMaxSize() == maxSize in isEquivalent() 97 public long maxSize() { in maxSize() method in AndroidShimResponseCache
|
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/ |
D | HttpResponseCache.java | 73 public static synchronized HttpResponseCache install(File directory, long maxSize) throws in install() argument 81 if (trueResponseCache.isEquivalent(directory, maxSize)) { in install() 90 AndroidShimResponseCache.create(directory, maxSize); in install() 123 public long maxSize() { in maxSize() method in HttpResponseCache 124 return shimResponseCache.maxSize(); in maxSize()
|
/external/skqp/tests/ |
D | PackBitsTest.cpp | 38 size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount); in test_pack8() local 40 gTests[i].fCount, dst, maxSize - 1); in test_pack8() 44 REPORTER_ASSERT(reporter, dstSize <= maxSize); in test_pack8() 62 size_t maxSize = SkPackBits::ComputeMaxSize8(size); in test_pack8() local 63 REPORTER_ASSERT(reporter, maxSize >= dstSize); in test_pack8()
|
/external/skia/tests/ |
D | PackBitsTest.cpp | 38 size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount); in test_pack8() local 40 gTests[i].fCount, dst, maxSize - 1); in test_pack8() 44 REPORTER_ASSERT(reporter, dstSize <= maxSize); in test_pack8() 62 size_t maxSize = SkPackBits::ComputeMaxSize8(size); in test_pack8() local 63 REPORTER_ASSERT(reporter, maxSize >= dstSize); in test_pack8()
|
/external/OpenCL-CTS/test_conformance/api/ |
D | test_api_min_max.cpp | 982 size_t maxSize; in test_min_max_parameter_size() local 997 …error = clGetDeviceInfo( deviceID, CL_DEVICE_MAX_PARAMETER_SIZE, sizeof( maxSize ), &maxSize, NULL… in test_min_max_parameter_size() 1001 if( ((!gIsEmbedded) && (maxSize < 1024)) || ((gIsEmbedded) && (maxSize < 256)) ) in test_min_max_parameter_size() 1003 … log_error( "ERROR: Reported max parameter size is less than required! (%d)\n", (int)maxSize ); in test_min_max_parameter_size() 1009 numberOfIntParametersToTry = numberExpected = (maxSize-sizeof(cl_mem))/sizeof(cl_int); in test_min_max_parameter_size() 1011 numberOfIntParametersToTry = numberExpected = (maxSize-sizeof(cl_mem))/sizeof(cl_long); in test_min_max_parameter_size() 1016 log_info("Reported max parameter size of %d bytes.\n", (int)maxSize); in test_min_max_parameter_size() 1290 cl_ulong maxSize, stepSize, currentSize, maxGlobalSize, maxAllocSize; in test_min_max_constant_buffer_size() local 1297 … = clGetDeviceInfo( deviceID, CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE, sizeof( maxSize ), &maxSize, 0 ); in test_min_max_constant_buffer_size() 1300 if( ( 0 == gIsEmbedded && maxSize < 64L * 1024L ) || maxSize < 1L * 1024L ) in test_min_max_constant_buffer_size() [all …]
|
/external/skqp/src/core/ |
D | SkArenaAlloc.cpp | 103 constexpr uint32_t maxSize = std::numeric_limits<uint32_t>::max(); in ensureSpace() local 105 AssertRelease(size <= maxSize - overhead); in ensureSpace() 109 AssertRelease(objSizeAndOverhead <= maxSize - alignmentOverhead); in ensureSpace() 114 if (fFirstHeapAllocationSize <= maxSize / fFib0) { in ensureSpace() 119 minAllocationSize = maxSize; in ensureSpace() 127 AssertRelease(allocationSize <= maxSize - mask); in ensureSpace()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/ |
D | CallOptions.java | 373 public CallOptions withMaxInboundMessageSize(int maxSize) { in withMaxInboundMessageSize() argument 374 checkArgument(maxSize >= 0, "invalid maxsize %s", maxSize); in withMaxInboundMessageSize() 376 newOptions.maxInboundMessageSize = maxSize; in withMaxInboundMessageSize() 384 public CallOptions withMaxOutboundMessageSize(int maxSize) { in withMaxOutboundMessageSize() argument 385 checkArgument(maxSize >= 0, "invalid maxsize %s", maxSize); in withMaxOutboundMessageSize() 387 newOptions.maxOutboundMessageSize = maxSize; in withMaxOutboundMessageSize()
|
/external/jline/src/src/main/java/jline/ |
D | History.java | 21 private int maxSize = 500; field in History 148 public void setMaxSize(final int maxSize) { in setMaxSize() argument 149 this.maxSize = maxSize; in setMaxSize() 156 return this.maxSize; in getMaxSize()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | ForwardingClientStream.java | 91 public void setMaxInboundMessageSize(int maxSize) { in setMaxInboundMessageSize() argument 92 delegate().setMaxInboundMessageSize(maxSize); in setMaxInboundMessageSize() 96 public void setMaxOutboundMessageSize(int maxSize) { in setMaxOutboundMessageSize() argument 97 delegate().setMaxOutboundMessageSize(maxSize); in setMaxOutboundMessageSize()
|