/frameworks/base/core/jni/ |
android_media_AudioRecord.cpp | 390 long capacity = env->GetDirectBufferCapacity(jBuffer); local 391 if(capacity == -1) { 396 //LOGV("capacity = %ld", capacity); 405 capacity < sizeInBytes ? capacity : sizeInBytes);
|
/libcore/luni/src/test/java/libcore/java/nio/ |
BufferTest.java | 588 dst.put(ByteBuffer.allocate(dst.capacity() + 1)); 610 for (int i = 0; i < dst.capacity(); ++i) { 617 for (int i = 0; i < src.capacity(); ++i) { 627 assertEquals(src.position(), src.capacity()); 628 assertEquals(dst.position(), src.capacity() + 1); 629 for (int i = 0; i < src.capacity(); ++i) {
|
/libcore/luni/src/test/java/tests/api/java/util/ |
ArrayListTest.java | 337 int capacity = 20; local 338 ArrayList al = new ArrayList(capacity); 340 for (i = 0; i < capacity / 2; i++) { 346 al.ensureCapacity(capacity); 350 al.ensureCapacity(capacity); 353 al.ensureCapacity(capacity + 2);
|
/ndk/tests/device/test-gnustl-full/unit/ |
mvctor_test.cpp | 38 size_t cur_capacity = v_v_ints.capacity(); 39 while (v_v_ints.capacity() <= cur_capacity) { 70 cur_capacity = vec_strs.capacity(); 71 while (vec_strs.capacity() <= cur_capacity) { 124 cur_capacity = v_v_bits.capacity(); 125 while (v_v_bits.capacity() <= cur_capacity) {
|
string_test.cpp | 105 CPPUNIT_TEST(capacity); 137 void capacity(); 1399 void StringTest::capacity() function in class:StringTest [all...] |
/ndk/tests/device/test-stlport/unit/ |
mvctor_test.cpp | 38 size_t cur_capacity = v_v_ints.capacity(); 39 while (v_v_ints.capacity() <= cur_capacity) { 70 cur_capacity = vec_strs.capacity(); 71 while (vec_strs.capacity() <= cur_capacity) { 124 cur_capacity = v_v_bits.capacity(); 125 while (v_v_bits.capacity() <= cur_capacity) {
|
string_test.cpp | 105 CPPUNIT_TEST(capacity); 137 void capacity(); 1399 void StringTest::capacity() function in class:StringTest [all...] |
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/ |
Client.java | 606 * have a full packet in the buffer. If the buffer is at capacity, 614 if (mReadBuffer.position() == mReadBuffer.capacity()) { 615 if (mReadBuffer.capacity() * 2 > MAX_BUF_SIZE) { 620 + mReadBuffer.capacity() * 2); 622 ByteBuffer newBuffer = ByteBuffer.allocate(mReadBuffer.capacity() * 2); 654 * "limit" is set to the buffer capacity.
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
StringBuilderTest.java | 36 assertEquals(16, sb.capacity()); 45 assertEquals(24, sb.capacity()); 64 assertEquals("fixture".length() + 16, sb.capacity()); 68 assertEquals("fixture".length() + 16, sb.capacity()); 84 assertEquals("fixture".length() + 16, sb.capacity()); 383 * @tests java.lang.StringBuilder.capacity()' 387 assertEquals(16, sb.capacity()); 389 assertTrue(sb.capacity() > 16); 631 assertEquals(5, sb.capacity()); 633 assertEquals(12, sb.capacity()); [all...] |
StringBufferTest.java | 126 int origCapacity = buffer.capacity(); 128 int trimCapacity = buffer.capacity(); 129 assertTrue("Assert 0: capacity must be smaller.", trimCapacity < origCapacity);
|
/external/icu4c/common/ |
uresbund.c | 844 int32_t capacity; local 861 capacity = (int32_t)uprv_strlen(parent->fResPath) + 1; 863 capacity = 0; 865 if(capacity < len) { 866 capacity = len; 868 if(capacity <= sizeof(stackAlias)) { 869 capacity = sizeof(stackAlias); 872 chAlias = (char *)uprv_malloc(capacity); 1178 int32_t capacity; local [all...] |
utrie2_builder.c | 526 int32_t capacity; local 530 capacity=UNEWTRIE2_MEDIUM_DATA_LENGTH; 532 capacity=UNEWTRIE2_MAX_DATA_LENGTH; 541 data=(uint32_t *)uprv_malloc(capacity*4); 548 trie->dataCapacity=capacity; [all...] |
uchar.c | 578 UScriptCode *scripts, int32_t capacity, 587 if(capacity<0 || (capacity>0 && scripts==NULL)) { 603 if(length<capacity) { 608 if(length>capacity) {
|
uniset.cpp | 144 len(1), capacity(1 + START_EXTRA), list(0), bmpSet(0), buffer(0), 153 list = (UChar32*) uprv_malloc(sizeof(UChar32) * capacity); 171 len(1), capacity(1 + START_EXTRA), list(0), bmpSet(0), buffer(0), 180 list = (UChar32*) uprv_malloc(sizeof(UChar32) * capacity); 196 len(0), capacity(o.isFrozen() ? o.len : o.len + GROW_EXTRA), list(0), 207 list = (UChar32*) uprv_malloc(sizeof(UChar32) * capacity); 220 len(0), capacity(o.len + GROW_EXTRA), list(0), 231 list = (UChar32*) uprv_malloc(sizeof(UChar32) * capacity); [all...] |
/external/apache-harmony/nio_char/src/test/java/tests/api/java/nio/charset/ |
CharsetEncoderTest.java | 719 assertEquals(out.capacity(), 200); 734 assertEquals(out.capacity(), 200); 744 assertEquals(out.capacity(), 200); 757 assertEquals(out.capacity(), 4); 766 assertEquals(out.capacity(), 200); 776 assertEquals(out.capacity(), 4); 785 assertEquals(out.capacity(), 200); [all...] |
/external/freetype/src/psaux/ |
psobjs.c | 85 table->capacity = 0; 134 FT_MEM_COPY( table->block, old_base, table->capacity ); 139 table->capacity = new_size; 186 if ( table->cursor + length > table->capacity ) 189 FT_Offset new_size = table->capacity; 194 if ( in_offset < 0 || (FT_Offset)in_offset >= table->capacity ) 256 table->capacity = table->cursor; [all...] |
/external/flac/libFLAC/ |
bitreader.c | 140 unsigned capacity; /* in words */ member in struct:FLAC__BitReader 227 bytes = (br->capacity - br->words) * FLAC__BYTES_PER_WORD - br->bytes; 303 br->capacity = 0; 332 br->capacity = FLAC__BITREADER_DEFAULT_CAPACITY; 333 br->buffer = (brword*)malloc(sizeof(brword) * br->capacity); 350 br->capacity = 0; 371 fprintf(out, "bitreader: capacity=%u words=%u bytes=%u consumed: words=%u, bits=%u\n", br->capacity, br->words, br->bytes, br->consumed_words, br->consumed_bits); 441 FLAC__ASSERT((br->capacity*FLAC__BITS_PER_WORD) * 2 >= bits); [all...] |
/external/protobuf/src/google/protobuf/ |
repeated_field.h | 103 int Capacity() const; 209 int Capacity() const; 336 int Capacity() const; 440 inline int RepeatedField<Element>::Capacity() const { 446 GOOGLE_DCHECK_LT(size(), Capacity()); 452 GOOGLE_DCHECK_LT(size(), Capacity()); 682 inline int RepeatedPtrFieldBase::Capacity() const { 905 inline int RepeatedPtrField<Element>::Capacity() const { 906 return RepeatedPtrFieldBase::Capacity(); [all...] |
/external/stlport/test/unit/ |
string_test.cpp | 105 CPPUNIT_TEST(capacity); 137 void capacity(); 1399 void StringTest::capacity() function in class:StringTest [all...] |
/external/v8/src/ |
builtins.cc | 464 int capacity = new_length + (new_length >> 1) + 16; local 466 { MaybeObject* maybe_obj = heap->AllocateUninitializedFixedArray(capacity); 475 FillWithHoles(heap, new_elms, new_length, capacity); 597 int capacity = new_length + (new_length >> 1) + 16; local 599 { MaybeObject* maybe_obj = heap->AllocateUninitializedFixedArray(capacity); 608 FillWithHoles(heap, new_elms, new_length, capacity); 862 int capacity = new_length + (new_length >> 1) + 16; local 865 heap->AllocateUninitializedFixedArray(capacity); 882 FillWithHoles(heap, new_elms, new_length, capacity); [all...] |
/frameworks/base/services/input/ |
EventHub.cpp | 536 size_t capacity = bufferSize; 564 if (--capacity == 0) { 585 if (--capacity == 0) { 595 if (--capacity == 0) { 639 sizeof(struct input_event) * capacity); 642 LOGW("could not get event, removed? (fd: %d size: %d bufferSize: %d capacity: %d errno: %d)\n", 643 device->fd, readSize, bufferSize, capacity, errno); 695 capacity -= count; 696 if (capacity == 0) { [all...] |
/bionic/libc/bionic/ |
dlmalloc.h | 492 given initial capacity, or, if 0, the default granularity size. It 495 lock to control access. The capacity of the space will grow 501 mspace create_mspace(size_t capacity, int locked); 514 space is used for bookkeeping, so the capacity must be at least this 520 mspace create_mspace_with_base(void* base, size_t capacity, int locked);
|
/external/icu4c/tools/genprops/ |
props2.c | 506 UPVecToUTrieContext toUTrie={ NULL, 50000 /* capacity */, 0, TRUE /* latin1Linear */ }; 707 writeAdditionalData(FILE *f, uint8_t *p, int32_t capacity, int32_t indexes[UPROPS_INDEX_COUNT]) { 717 length=utrie_serialize(newTrie, p, capacity, NULL, TRUE, &errorCode); 778 capacity-=length; 799 if(p!=NULL && (pvCount*4)<=capacity) {
|
/development/tools/glesv2debugger/src/com/android/glesv2debugger/ |
GLServerVertex.java | 41 copy.data = ByteBuffer.allocate(data.capacity()); 231 ByteBuffer buffer = ByteBuffer.allocate(attribBuffer.data.capacity()); 240 ByteBuffer buffer = ByteBuffer.allocate(indexBuffer.data.capacity());
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
OutputStreamWriterTest.java | 425 int capacity = 65536; local 426 byte[] bytes = new byte[capacity]; 441 char[] outChars = new char[capacity];
|