Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/
DVectorTest.java353 int capacity; in testVectorCapacity() local
356 capacity = vector.capacity(); in testVectorCapacity()
357 capacity = vector.capacity(); in testVectorCapacity()
358 capacity = vector.capacity(); in testVectorCapacity()
359 capacity = vector.capacity(); in testVectorCapacity()
360 capacity = vector.capacity(); in testVectorCapacity()
361 capacity = vector.capacity(); in testVectorCapacity()
362 capacity = vector.capacity(); in testVectorCapacity()
363 capacity = vector.capacity(); in testVectorCapacity()
364 capacity = vector.capacity(); in testVectorCapacity()
[all …]
/frameworks/base/core/java/com/google/android/collect/
DLists.java59 int capacity = (elements.length * 110) / 100 + 5; in newArrayList() local
60 ArrayList<E> list = new ArrayList<E>(capacity); in newArrayList()
DSets.java65 int capacity = elements.length * 4 / 3 + 1; in newHashSet() local
66 HashSet<E> set = new HashSet<E>(capacity); in newHashSet()
/frameworks/base/tests/CoreTests/android/core/
DNIOTest.java39 assertTrue(b.limit() <= b.capacity()); in checkBuffer()
120 for (int i = 0; i < b.capacity(); i++) { in byteBufferTest()
199 assertEquals(4, bb.capacity()); in byteBufferTest()
214 b.limit(b.capacity()); in byteBufferTest()
335 assertEquals(4, bb.capacity()); in byteBufferTest()
342 assertEquals(2, sb.capacity()); in byteBufferTest()
350 assertEquals(2, sb.capacity()); in byteBufferTest()
358 assertEquals(1, ib.capacity()); in byteBufferTest()
365 assertEquals(1, ib.capacity()); in byteBufferTest()
372 assertEquals(1, fb.capacity()); in byteBufferTest()
[all …]
/frameworks/base/libs/utils/
DVectorImpl.cpp90 sb = SharedBuffer::alloc(capacity() * mItemSize); in editArrayImpl()
101 size_t VectorImpl::capacity() const in capacity() function in android::VectorImpl
279 LOG_ASSERT(index<capacity(), in editItemLocation()
281 this, (int)index, (int)capacity(), (int)mCount); in editItemLocation()
291 LOG_ASSERT(index<capacity(), in itemLocation()
293 this, (int)index, (int)capacity(), (int)mCount); in itemLocation()
303 size_t current_capacity = capacity(); in setCapacity()
341 if (capacity() < new_size) { in _grow()
394 if (new_size*3 < capacity()) { in _shrink()
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
Duvector.h57 inline size_type capacity (void) const { return (m_Data.capacity() / sizeof(T)); } in capacity() function
113 const size_type oldCapacity = capacity(); in reserve()
115 if (capacity() > oldCapacity) in reserve()
116 construct (begin() + oldCapacity, begin() + capacity()); in reserve()
123 if (m_Data.capacity() < n * sizeof(T)) in resize()
133 destroy (begin(), begin() + capacity()); in deallocate()
Dustring.cpp214 …assert ((first < begin() || first >= end() || size() + abs_distance(first,last) < capacity()) && "… in insert()
255 …assert ((i1 < begin() || i1 >= end() || abs_distance(i1,i2) * n + size() < capacity()) && "Replace… in replace()
361 rv = vsnprintf (data(), memblock::capacity(), fmt, args2); in vformat()
362 rv = min (rv, memblock::capacity()); in vformat()
363 } while (rv > capacity()); in vformat()
364 resize (min (rv, capacity())); in vformat()
Dsostream.h66 inline size_type capacity (void) const { return (m_Buffer.capacity()); } in capacity() function
Dmemblock.h51 inline size_type capacity (void) const { return (m_Capacity); } in capacity() function
Dofstream.cpp81 if (eof() || (n > remaining() && n < capacity() - pos())) in overflow()
Dubitset.h61 inline size_type capacity (void) const { return (s_nBits); } in capacity() function
Dustring.h69 … inline size_type capacity (void) const { size_type c (memblock::capacity()); return (c - !!c); } in capacity() function
Duspecial.h166 return (v.capacity() / CHAR_BIT); in stream_size_of()
/frameworks/base/core/java/android/content/
DContentQueryMap.java140 int capacity = mValues != null ? mValues.size() : 0; in readCursorIntoCache() local
141 mValues = new HashMap<String, ContentValues>(capacity); in readCursorIntoCache()
/frameworks/base/core/jni/
Dandroid_util_EventLog.cpp52 size_t capacity; member
58 capacity = initSize; in ByteBuf()
67 if (spaceNeeded > capacity) { in ensureExtraCapacity()
68 size_t newCapacity = MAX(spaceNeeded, 2 * capacity); in ensureExtraCapacity()
73 capacity = newCapacity; in ensureExtraCapacity()
Dandroid_media_AudioRecord.cpp357 long capacity = env->GetDirectBufferCapacity(jBuffer); in android_media_AudioRecord_readInDirectBuffer() local
358 if(capacity == -1) { in android_media_AudioRecord_readInDirectBuffer()
372 capacity < sizeInBytes ? capacity : sizeInBytes); in android_media_AudioRecord_readInDirectBuffer()
/frameworks/base/awt/org/apache/harmony/awt/gl/
DMultiRectAreaOp.java40 public static int[] createBuf(int capacity) { in createBuf() argument
41 if (capacity == 0) { in createBuf()
42 capacity = RECT_CAPACITY; in createBuf()
44 int[] buf = new int[capacity]; in createBuf()
52 public static int[] checkBufSize(int[] buf, int capacity) { in checkBufSize() argument
53 if (buf[0] + capacity >= buf.length) { in checkBufSize()
54 int length = buf[0] + (capacity > RECT_CAPACITY ? capacity : RECT_CAPACITY); in checkBufSize()
59 buf[0] += capacity; in checkBufSize()
/frameworks/base/opengl/java/android/opengl/
DGroup.java110 numTriangles += indexBuffer.capacity()/3; in getNumTriangles()
144 indexBuffer.capacity(), in draw()
/frameworks/base/include/utils/
DKeyedVector.h56 inline size_t capacity() const { return mVector.capacity(); } in capacity() function
DSortedVector.h65 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
DVector.h71 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
DVectorImpl.h65 size_t capacity() const;
/frameworks/base/media/java/android/media/
DMediaPlayer.java984 int capacity = request.dataSize() + 4 * (1 + allow.size() + 1 + block.size()); in setMetadataFilter() local
986 if (request.dataCapacity() < capacity) { in setMetadataFilter()
987 request.setDataCapacity(capacity); in setMetadataFilter()
/frameworks/base/core/java/android/os/
DBundle.java103 public Bundle(int capacity) { in Bundle() argument
104 mMap = new HashMap<String, Object>(capacity); in Bundle()
/frameworks/base/docs/html/guide/developing/tools/
Demulator.jd1380 <td>Set remaining battery capacity state (0-100).</td>