HomeSort by relevance Sort by last modified time
    Searched full:capacity (Results 176 - 200 of 1135) sorted by null

1 2 3 4 5 6 78 91011>>

  /packages/apps/Gallery/src/com/android/camera/gallery/
LruCache.java 33 public LruCache(final int capacity) {
37 return size() > capacity;
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
LruCache.java 37 public LruCache(final int capacity) {
41 return size() > capacity;
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
StringBuilderPool.java 60 public static void ensureCapacity(final int capacity, final int initialSize) {
61 for (int i = sInstance.mPool.size(); i < capacity; ++i) {
  /external/flac/libFLAC/
bitwriter.c 74 * The default capacity here doesn't matter too much. The buffer always grows
105 unsigned capacity; /* capacity of buffer in words */ member in struct:FLAC__BitWriter
134 if(bw->capacity >= new_capacity)
137 /* round up capacity increase to the nearest FLAC__BITWRITER_DEFAULT_INCREMENT */
138 if((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT)
139 new_capacity += FLAC__BITWRITER_DEFAULT_INCREMENT - ((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT);
141 FLAC__ASSERT(0 == (new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT);
142 FLAC__ASSERT(new_capacity > bw->capacity);
149 bw->capacity = new_capacity
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
VectorTest.java 57 assertEquals("Wrong capacity", 10, v.capacity());
68 assertEquals("Wrong capacity", 100, v.capacity());
82 assertEquals("Failed to inc capacity by proper amount",
83 12, v.capacity());
91 assertEquals("Wrong capacity", 6, grow.capacity());
280 * @tests java.util.Vector#capacity()
283 // Test for method int java.util.Vector.capacity()
    [all...]
AbstractQueueTest.java 33 static final int CAPACITY = 10;
37 private Object[] elements = new Object[CAPACITY];
77 if (size >= CAPACITY) {
124 for(int i = 0; i < MockAbstractQueue.CAPACITY; i++ ) {
  /external/chromium/chrome/browser/renderer_host/
web_cache_manager.cc 129 entry->second.capacity = stats.capacity;
177 stats->capacity += elmt->second.capacity;
286 // This is the capacity this renderer has been allocated.
287 size_t capacity = allocation->second; local
296 // capacity lower.
297 size_t max_dead_capacity = capacity;
301 capacity));
332 active.capacity / 1024 / 1024)
    [all...]
  /external/clang/include/clang/AST/
ASTVector.h 56 T *Begin, *End, *Capacity;
63 : Begin(NULL), End(NULL), Capacity(NULL) {
155 if (End < Capacity) {
166 if (unsigned(Capacity-Begin) < N)
170 /// capacity - Return the total number of elements in the currently allocated
172 size_t capacity() const { return Capacity - Begin; } function in class:clang::ASTVector
339 if (this->capacity() < N)
364 iterator capacity_ptr() { return (iterator)this->Capacity; }
370 size_t CurCapacity = Capacity-Begin
    [all...]
  /external/icu4c/i18n/unicode/
udatpg.h 201 * @param capacity the capacity of bestPattern.
210 UChar *bestPattern, int32_t capacity,
235 * @param capacity
236 * the capacity of bestPattern.
247 UChar *bestPattern, int32_t capacity,
264 * @param capacity the capacity of skeleton.
273 UChar *skeleton, int32_t capacity,
293 * @param capacity the capacity of base skeleton
    [all...]
  /dalvik/tests/051-thread/src/
Main.java 40 * Simple thread capacity test.
  /external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/
ReadOnlyCharBufferTest.java 114 buf.put(new char[buf.capacity() + 1], 0, buf.capacity() + 1);
166 String str = String.valueOf(new char[buf.capacity()]);
185 String longStr = String.valueOf(new char[buf.capacity()+1]);
MappedByteBufferTest.java 40 * A regression test for failing to correctly set capacity of underlying
49 int len = mmb.capacity();
83 // check capacity is 0
84 int len = mmb.capacity();
85 assertEquals("MappedByteBuffer created from empty file should have 0 capacity",
  /external/flac/libFLAC/include/private/
md5.h 36 size_t capacity; member in struct:__anon5604
  /external/icu4c/common/unicode/
ucnvsel.h 118 * @param length the capacity of this buffer (can be equal to or larger than
135 * @param bufferCapacity the capacity of this buffer
137 * @return the required buffer capacity to hold serialize data (even if the call fails
138 * with a U_BUFFER_OVERFLOW_ERROR, it will return the required capacity)
  /external/icu4c/test/intltest/
strtest.cpp 399 int32_t capacity = -1; local
400 char *dest = sink.GetAppendBuffer(0, 50, scratch, (int32_t)sizeof(scratch), &capacity);
401 if(dest != NULL || capacity != 0) {
405 dest = sink.GetAppendBuffer(10, 50, scratch, 9, &capacity);
406 if(dest != NULL || capacity != 0) {
410 dest = sink.GetAppendBuffer(5, 50, scratch, (int32_t)sizeof(scratch), &capacity);
411 if(dest != scratch || capacity != (int32_t)sizeof(scratch)) {
430 int32_t capacity = -1; local
431 char *dest = sink.GetAppendBuffer(0, 50, scratch, (int32_t)sizeof(scratch), &capacity);
432 if(dest != NULL || capacity != 0)
    [all...]
  /external/icu4c/test/perf/usetperf/
bitset.cpp 13 // TODO: have a separate capacity, so the len can just be set to
  /external/icu4c/tools/genprops/
genprops.h 90 writeAdditionalData(FILE *f, uint8_t *p, int32_t capacity, int32_t indexes[16]);
  /external/qemu/hw/
power_supply.h 24 * For systems where the charger determines the maximum battery capacity
  /external/webkit/Tools/TestWebKitAPI/Tests/WTF/
VectorBasic.cpp 37 TEST_ASSERT(intVector.capacity() == 0);
  /libcore/luni/src/main/java/java/nio/
DirectByteBuffer.java 27 protected DirectByteBuffer(MemoryBlock block, int capacity, int offset) {
28 super(capacity, block);
31 if (baseSize >= 0 && (capacity + offset) > baseSize) {
32 throw new IllegalArgumentException("capacity + offset > baseSize");
  /libcore/luni/src/main/java/java/util/
WeakHashMap.java 193 * capacity.
195 * @param capacity
196 * the initial capacity of this map.
198 * if the capacity is less than zero.
200 public WeakHashMap(int capacity) {
201 if (capacity >= 0) {
203 elementData = newEntryArray(capacity == 0 ? 1 : capacity);
213 * Constructs a new {@code WeakHashMap} instance with the specified capacity
216 * @param capacity
    [all...]
  /libcore/luni/src/test/java/tests/api/java/util/
AbstractQueueTest.java 35 static final int CAPACITY = 10;
39 private Object[] elements = new Object[CAPACITY];
79 if (size >= CAPACITY) {
126 for(int i = 0; i < MockAbstractQueue.CAPACITY; i++ ) {
  /system/extras/tests/sdcard/
stopwatch.h 84 // Create a stop watch. Default capacity == 2 * interval_nb
87 // @param capacity Hint about the number of sampless that will be
89 // to size the internal storage, when the capacity
91 StopWatch(const char *name, size_t capacity = kUseDefaultCapacity);
  /external/icu4c/test/cintltst/
cucdapi.c 69 const int32_t capacity = 10; local
73 uscript_getCode(testNames[i],script,capacity, &err);
87 int32_t capacity=0; local
91 int32_t num = uscript_getCode("ja",script,capacity, &err);
95 capacity = 10;
96 num = uscript_getCode("ja",script,capacity, &err);
452 log_err("uscript_getScriptExtensions(capacity<0) did not set U_ILLEGAL_ARGUMENT_ERROR - %s\n",
458 log_err("uscript_getScriptExtensions(capacity=0: pure preflighting)=%d != 2 - %s\n",
464 log_err("uscript_getScriptExtensions(capacity=1: preflighting)=%d != 2 - %s\n",
472 log_err("uscript_getScriptExtensions(U+063F, capacity=0)=%d != 0 - %s\n"
    [all...]
  /external/apache-http/src/org/apache/http/util/
CharArrayBuffer.java 50 public CharArrayBuffer(int capacity) {
52 if (capacity < 0) {
53 throw new IllegalArgumentException("Buffer capacity may not be negative");
55 this.buffer = new char[capacity];
176 public int capacity() { method in class:CharArrayBuffer

Completed in 1359 milliseconds

1 2 3 4 5 6 78 91011>>