/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/ |
D | VectorTest.java | 353 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/ |
D | Lists.java | 59 int capacity = (elements.length * 110) / 100 + 5; in newArrayList() local 60 ArrayList<E> list = new ArrayList<E>(capacity); in newArrayList()
|
D | Sets.java | 65 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/ |
D | NIOTest.java | 39 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/ |
D | VectorImpl.cpp | 90 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/ |
D | uvector.h | 57 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()
|
D | ustring.cpp | 214 …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()
|
D | sostream.h | 66 inline size_type capacity (void) const { return (m_Buffer.capacity()); } in capacity() function
|
D | memblock.h | 51 inline size_type capacity (void) const { return (m_Capacity); } in capacity() function
|
D | ofstream.cpp | 81 if (eof() || (n > remaining() && n < capacity() - pos())) in overflow()
|
D | ubitset.h | 61 inline size_type capacity (void) const { return (s_nBits); } in capacity() function
|
D | ustring.h | 69 … inline size_type capacity (void) const { size_type c (memblock::capacity()); return (c - !!c); } in capacity() function
|
D | uspecial.h | 166 return (v.capacity() / CHAR_BIT); in stream_size_of()
|
/frameworks/base/core/java/android/content/ |
D | ContentQueryMap.java | 140 int capacity = mValues != null ? mValues.size() : 0; in readCursorIntoCache() local 141 mValues = new HashMap<String, ContentValues>(capacity); in readCursorIntoCache()
|
/frameworks/base/core/jni/ |
D | android_util_EventLog.cpp | 52 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()
|
D | android_media_AudioRecord.cpp | 357 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/ |
D | MultiRectAreaOp.java | 40 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/ |
D | Group.java | 110 numTriangles += indexBuffer.capacity()/3; in getNumTriangles() 144 indexBuffer.capacity(), in draw()
|
/frameworks/base/include/utils/ |
D | KeyedVector.h | 56 inline size_t capacity() const { return mVector.capacity(); } in capacity() function
|
D | SortedVector.h | 65 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
|
D | Vector.h | 71 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
|
D | VectorImpl.h | 65 size_t capacity() const;
|
/frameworks/base/media/java/android/media/ |
D | MediaPlayer.java | 984 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/ |
D | Bundle.java | 103 public Bundle(int capacity) { in Bundle() argument 104 mMap = new HashMap<String, Object>(capacity); in Bundle()
|
/frameworks/base/docs/html/guide/developing/tools/ |
D | emulator.jd | 1380 <td>Set remaining battery capacity state (0-100).</td>
|